cf/mirror

Catch the Mole(Hard Version)

CF
1990E22600· international gm4s256 MB⇄ interactive

Examples

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