cf/mirror

Tree Diameter

CF
1919H2000· candidate master2s256 MB⇄ interactive

Examples

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