cf/mirror

Game with Tokens

CF
930D2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4
-2 -1
0 1
0 -3
2 -1
Output
4
Sample 2of 3
Input
4
-2 0
-1 1
0 -2
1 -1
Output
2
Sample 3of 3
Input
16
2 1
1 2
-1 1
0 1
0 0
1 1
2 -1
2 0
1 0
-1 -1
1 -1
2 2
0 -1
-1 0
0 2
-1 2
Output
4
930D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)