cf/mirror

Nastia and a Hidden Permutation

CF
1521C2000· candidate master3s256 MB⇄ interactive

Examples

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