cf/mirror

Unusual Minesweeper

CF
1619G2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
 
5 0
0 0 1
0 1 4
1 0 2
1 1 3
2 2 9
 
5 2
0 0 1
0 1 4
1 0 2
1 1 3
2 2 9
 
6 1
1 -1 3
0 -1 9
0 1 7
-1 0 1
-1 1 9
-1 -1 7
Output
2
1
0
1619G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…