cf/mirror

Puzzle

CF
1700F2600· international gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5
0 1 0 1 0
1 1 0 0 1
1 0 1 0 1
0 0 1 1 0
Output
5
Sample 2of 2
Input
3
1 0 0
0 0 0
0 0 0
0 0 0
Output
-1
1700F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)