上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 21 下一页
Map map = new HashMap(); map.put("a", "1"); map.put("b", "2"); map.put("c", "3"); map.put("d", "4"); map.put("e", "5"); for (Iterator iter = map.keySet().iterator(); iter.hasNext();) { Object key = it Read More
posted @ 2013-05-20 19:23 free斩 Views(150) Comments(0) Diggs(0) Edit
转载来自:http://www.shabiyuan.com/?p=6782013蓝桥杯C语言本科组B1、题目标题: 高斯日记(满分4分)大数学家高斯有个好习惯:无论如何都要记日记。他的日记有个与众不同的地方,他从不注明年月日,而是用一个整数代替,比如:4210 后来人们知道,那个整数就是日期,它表示那一天是高斯出生后的第几天。这或许也是个好习惯,它时时刻刻提醒着主人:日子又过去一天,还有多少时光可以用于浪费呢? 高斯出生于:1777年4月30日。在高斯发现的一个重要定理的日记上标注着:5343,因此可算出那天是:1791年12月15日。 高斯获得博士学位的那天日记上标着:8113 请你... Read More
posted @ 2013-05-16 20:22 free斩 Views(274) Comments(0) Diggs(0) Edit
How Many Fibs?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2814Accepted Submission(s): 1112Problem DescriptionRecall the definition of the Fibonacci numbers:f1 := 1f2 := 2fn := fn-1 + fn-2 (n >= 3)Given two numbers a and b, calculate how many Read More
posted @ 2013-05-10 16:58 free斩 Views(166) Comments(0) Diggs(0) Edit
A == B ?Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 47896Accepted Submission(s): 7324Problem DescriptionGive you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".Inputeach test case contains two Read More
posted @ 2013-05-10 16:43 free斩 Views(136) Comments(0) Diggs(0) Edit
求高精度幂Time Limit:500MSMemory Limit:10000KTotal Submissions:117394Accepted:28569Description对数值很大、精度很高的数进行高精度计算是一类十分常见的问题。比如,对国债进行计算就是属于这类问题。现在要你解决的问题是:对一个实数R( 0.0 < R < 99.999 ),要求写程序精确计算 R 的 n 次方(Rn),其中n 是整数并且 0 < n <= 25。InputT输入包括多组 R 和 n。 R 的值占第 1 到第 6 列,n 的值占第 8 和第 9 列。Output对于每组输入,要求 Read More
posted @ 2013-05-10 02:59 free斩 Views(408) Comments(0) Diggs(0) Edit
Integer InquiryTime Limit:1000MSMemory Limit:10000KTotal Submissions:26642Accepted:10325DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers.``This superco Read More
posted @ 2013-05-10 02:22 free斩 Views(183) Comments(0) Diggs(0) Edit
ACM中java的使用这里指的java速成,只限于java语法,包括输入输出,运算处理,字符串和高精度的处理,进制之间的转换等,能解决OJ上的一些高精度题目。1.输入:格式为:Scannercin=newScanner(newBufferedInputStream(System.in));例程:importjava.io.*;importjava.math.*;importjava.util.*;importjava.text.*;publicclassMain{publicstaticvoidmain(String[]args){Scannercin=newScanner(newBuffer Read More
posted @ 2013-05-10 01:07 free斩 Views(179) Comments(0) Diggs(0) Edit
Basic remainsTime Limit:1000MSMemory Limit:65536KTotal Submissions:4429Accepted:1869DescriptionGiven a base b and two non-negative base b integers p and m, compute p mod m and print the result as a base b integer. p mod m is defined as the smallest non-negative integer k such that p = a*m + k for so Read More
posted @ 2013-05-09 11:33 free斩 Views(173) Comments(0) Diggs(0) Edit
欢迎来到CSUST Online Judge System1530: 快速找钱Time Limit:1 SecMemory Limit:128 MBSubmit:5Solved:3SubmitStatusWeb BoardDescription老王的杂货店雇用了一个便宜的伙计来看店子.他雇用的伙计(通常是高中生)经常在找钱的时候出错.吝啬的老王认为由于伙计的错误造成的经济损失比他自己的错误造成的经济损失大,也就是伙计容易找更多的零钱给顾客.老王想让你写一个程序计算一个顾客能得到的零钱.零钱由0.25美圆硬币,0.1美圆硬币,0.05美圆硬币和0.01美圆硬币组成.当顾客的零钱小于5美圆时,希望 Read More
posted @ 2013-05-08 19:57 free斩 Views(214) Comments(0) Diggs(0) Edit
1526: 拣金豆Time Limit:1 SecMemory Limit:256 MBSubmit:20Solved:5SubmitStatusWeb BoardDescription最近小明非常喜欢玩捡金豆游戏。有一个n*m的方格棋盘,每一个格子中有一个金豆或者没有。如果两个相邻的格子都有一个金豆,则可以捡起金豆,这两个格子中就没有金豆了。如果两个格子的曼哈顿距离等于1,则表示两个格子相邻。游戏的目的尽可能捡最多的金豆。Input第一行输入是一个整数T,表示测试用例个数,每一个测试用例包含两个整数n,m(1 #include #include #include using namespac Read More
posted @ 2013-05-08 19:52 free斩 Views(302) Comments(0) Diggs(0) Edit
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 21 下一页