无穷数列 1,1,2,3,5,8,13,21,34,55...称为 Fibonacci 数列,
它可以递归地定义为
F(n)=1 ...........(n=1 或 n=2) ,F(n)=F(n-1)+F(n-2).....(n>2)
现要你来求第 n 个斐波纳奇数。(第 1 个、第二个都为 1)
3
2
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 192
关于网站改版