Sum the Fibonacci
914G2600· international gm4s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
21 2
Output
32
Sample 2of 4
Input
37 4 1
Output
3520
Sample 3of 4
Input
101 3 0 7 3 7 6 5 7 5
Output
1235424
Sample 4of 4
Input
1050 9 11 44 39 40 5 39 23 7
Output
113860062
58%
914G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)