cf/mirror

Lost Tree

CF
1534D1800· expert3s256 MB⇄ interactive

Examples

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