cf/mirror

Game with Stones

CF
1584E2300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
2
2 2
3
1 2 3
4
1 1 1 1
4
1 2 2 1
4
1 2 1 2
8
1 2 1 2 1 2 1 2
Output
1
0
4
2
1
3
1584E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)