摘要: Description我们定义斐波那契数列如下:f1=1f2=2f(n)=f(n-1)+f(n-2)(n>=3)现在,给定两个数a和b,计算有多少个斐波那契数列中的数在a和b之间(包含边界)。Input输入包含多组测试数据,每组测试数据都是两个非负整数a和b,当a和b都等于0时,程序结束。0#inc... 阅读全文
posted @ 2015-08-16 18:19 茶飘香~ 阅读(458) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe Fibonacci sequence is the sequence of numbers such that every element is equal to the sum of the two previous elements, except for the ... 阅读全文
posted @ 2015-08-16 18:13 茶飘香~ 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Description2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列(f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeStar决定要考考他,于是每问他一个数字,他... 阅读全文
posted @ 2015-08-16 18:09 茶飘香~ 阅读(302) 评论(0) 推荐(0) 编辑
摘要: A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1.F(1) = 1, F(2) = 1, F(3) =... 阅读全文
posted @ 2015-08-16 18:05 茶飘香~ 阅读(342) 评论(0) 推荐(0) 编辑
摘要: As we know , the Fibonacci numbers are defined as follows:""""Given two numbers a and b , calculate. """"InputThe input contains several test cases. E... 阅读全文
posted @ 2015-08-16 17:52 茶飘香~ 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Maybe ACMers of HIT are always fond of fibonacci numbers, because it is so beautiful. Don't you think so? At the same time,fishcanflyalways likes to c... 阅读全文
posted @ 2015-08-16 17:44 茶飘香~ 阅读(340) 评论(0) 推荐(0) 编辑