cf/mirror

Kostyanych's Theorem

CF
1979F2900· international gm3s256 MB⇄ interactive

Examples

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