cf/mirror

Hidden Permutations

CF
1621C1700· expert1s256 MB⇄ interactive

Examples

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