cf/mirror

Grid Puzzle

CF
1990D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
10
1
0
4
2 4 4 2
4
3 2 1 0
3
0 3 0
3
0 1 3
3
3 1 0
4
3 1 0 3
4
0 2 2 2
6
1 3 4 2 0 4
8
2 2 5 2 3 4 2 4
Output
0
3
2
1
2
2
3
2
4
6
1990D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)