Coloring Game
1197F2700· international gm5s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
33 4 521 1 12 2 21 1 11 0 00 1 1
Output
14346
Sample 2of 3
Input
1111 1 11 1 11 1 11 1 1
Output
1
Sample 3of 3
Input
31 1 111 1 11 1 11 1 11 1 1
Output
9
58%
1197F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)