cf/mirror

The Hidden Pair (Hard Version)

CF
1370F22700· international gm2s256 MB⇄ interactive

Examples

Sample 1of 1
Input
1
3
1 2
1 3
 
1 1
 
2 3
 
3 1
 
3 1
 
Correct
Output
? 1 1
 
? 1 2
 
? 1 3
 
? 2 2 3
 
! 1 3
1370F2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…