#P4000. 斐波那契数列
斐波那契数列
Description
Everyone knows the Fibonacci sequence is defined by the following properties:
- .
- .
- ( and is an integer).
Please compute the value of .
Input Format
- Line 1: An integer .
- Line 2: An integer .
Output Format
- Line 1: The value of .
5
1000000007
5
10
1000000007
55
Hint
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号