2013年1月16日
摘要: Fibs之和descriptionAs we know , the Fibonacci numbers are defined as follows: F(0)=1,f(1)=1;f(n)=f(n-1)+f(n-2) n>=2;Given two numbers a and b , calculate S(n)=f(a)+f(a+1)+….+f(b)inputThe input contains several test cases. Each test case consists of two non-negative integer numbers a and b (0 ≤ a ≤ 阅读全文
posted @ 2013-01-16 20:23 行者1992 阅读(165) 评论(1) 推荐(0) 编辑
摘要: FibonacciTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2295Accepted Submission(s): 1077 Problem Description2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列 (f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeStar决定要考考他,于是每问他一 阅读全文
posted @ 2013-01-16 11:39 行者1992 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Hat's Fibonacci Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4400 Accepted Submission(s): 148 阅读全文
posted @ 2013-01-16 10:48 行者1992 阅读(2079) 评论(0) 推荐(0) 编辑