Pro.ID21398 TitleFibonacci Numbers Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21398 AC52 Submit122 Ratio42.62% 时间&空间限制描述A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f(1) = 1, f(2) = 1, f(n > 2) = f(n - 1) + f(n - 2) Your task is to take a number as input, and print that Fibonacci number. 输入One integer i 输出Description A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f(1) = 1, f(2) = 1, f(n > 2) = f(n - 1) + f(n - 2) Your task is to take a number as input, and print that Fibonacci number. Input One integer i Output Output the i-th Fibonacci number. Sample Input 100 Sample Output 354224848179261915075 Hint No generated Fibonacci number in excess of 1000 digits will be in the test data, i.e. f(20) = 6765 has 4 digits. Source 样例输入100 样例输出354224848179261915075 提示No generated Fibonacci number in excess of 1000 digits will be in the test data, i.e. f(20) = 6765 has 4 digits. |