摘要: Problem DescriptionAre you excited when you see the title "AC" ? If the answer is YES , AC it ;You must learn these two combination formulas in the school . If you have forgotten it , see the picture.Now I will give you n and m , and your task is to calculate the answer .InputIn the first 阅读全文
posted @ 2013-05-20 10:47 翼展zjz 阅读(164) 评论(0) 推荐(0) 编辑
摘要: The number of divisors(约数) about Humble NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1947Accepted Submission(s): 959Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 阅读全文
posted @ 2013-05-20 10:20 翼展zjz 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionPeople in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all square numbers up to 289 (=17^2), i.e., 1-credit coins, 4-credit coins, 9-credit coins, ..., and 289-credit coins, are available in Silverland 阅读全文
posted @ 2013-05-20 08:20 翼展zjz 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College and Software College in 2002.The splitting is absolutely a big event in HDU! At the same time, it is a troubl 阅读全文
posted @ 2013-05-19 11:19 翼展zjz 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11342Accepted Submission(s): 5076Problem DescriptionWe all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported 阅读全文
posted @ 2013-05-19 09:32 翼展zjz 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11317Accepted Submission(s): 5064Problem DescriptionWe all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported 阅读全文
posted @ 2013-05-13 10:37 翼展zjz 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionNow our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebub has to beat our hero first. feng5166 says, "I have three question for you, if you can work them out, I will release the Prin 阅读全文
posted @ 2013-05-12 00:12 翼展zjz 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Problem Description话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。这时他已经不是那个只会做100以内加法的那个“小明”了,现在他甚至会任意长度的正小数的加法。现在,给你两个正的小数A和B,你的任务是代表大明计算出A+B的值。Input本题目包含多组测试数据,请处理到文件结束。每一组测试数据在一行里面包含两个长度不大于400的正小数A和B。Output请在一行里面输出输出A+B的值,请输出最简形式。详细要求请见Sample Output。Sample Input1.1 2.91.1111111111 2.34443233431 1.1Sample 阅读全文
posted @ 2013-05-11 09:43 翼展zjz 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionRecall the definition of the Fibonacci numbers: f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n >= 3) Given two numbers a and b, calculate how many Fibonacci numbers are in the range [a, b]. InputThe input contains several test cases. Each test case consists of two non-negative integer nu 阅读全文
posted @ 2013-05-11 07:33 翼展zjz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionFibonacci数列,定义如下:f(1)=f(2)=1f(n)=f(n-1)+f(n-2) n>=3。计算第n项Fibonacci数值。Input输入第一行为一个整数N,接下来N行为整数Pi(1<=Pi<=1000)。Output输出为N行,每行为对应的f(Pi)。Sample Input512345Sample Output11235Source 2007省赛集训队练习赛(2) Recommendlcy 用一个二维数组存放斐波那契数,第一个维表示 第几个斐波那契数,第二位是该斐波那契数属于的最大长度; 然后用查表的方式进行查询,这样的 阅读全文
posted @ 2013-05-10 23:51 翼展zjz 阅读(134) 评论(0) 推荐(0) 编辑