cf/mirror

Find a Mine

CF
1934C1700· expert2s256 MB⇄ interactive

Examples

Sample 1of 1
Input
2
4 4
 
3
 
2
 
2
 
0
 
5 5
 
1
 
2
 
3
Output
? 1 1
 
? 1 4
 
? 4 1
 
? 2 3
 
! 2 3
 
? 5 5
 
? 2 2
 
? 3 3
 
! 1 1
1934C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)