cf/mirror

Stone Game

CF
1538A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
5
1 5 4 3 2
8
2 1 3 4 5 6 8 7
8
4 2 3 1 8 6 7 5
4
3 4 2 1
4
2 3 1 4
Output
2
4
5
3
2
1538A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)