cf/mirror

Guess the Permutation

CF
1584D2000· candidate master1s256 MB⇄ interactive

Examples

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