cf/mirror

Find the Last Number

CF
2156D1900· candidate master3s256 MB⇄ interactive

Examples

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