cf/mirror

Antifibonacci Cut

CF
1743G3000· legendary gm12s4 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
1
10110101
Output
3
Sample 2of 3
Input
3
1111
1
0
Output
2
3
3
Sample 3of 3
Input
6
10110101
100100001110
0000001100010001
1111
1001010100101010101001
000100000010101111
Output
3
561
1466229
9887505
972227653
52128355
1743G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)