cf/mirror

Li Hua and Chess

CF
1797C1600· expert1s256 MB⇄ interactive

Examples

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