The Fibonacci Segment
365B1100· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
101 2 3 5 8 13 21 34 55 89
Output
10
Sample 2of 2
Input
51 1 1 1 1
Output
2
58%
365B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
101 2 3 5 8 13 21 34 55 89
10
51 1 1 1 1
2