| 4 | int N, a[10000009]; |
| 5 | |
| 6 | int main() { |
| 7 | cin >> N; |
| 8 | a[1] = 1; a[2] = 1; |
| 9 | for (int i = 3; i <= N; i++) a[i] = (a[i - 1] + a[i - 2]) % 1000000007; |
| 10 | cout << a[N] % 1000000007 << endl; |
| 11 | return 0; |
| 12 | } |
nothing calls this directly
no outgoing calls
no test coverage detected