cf/mirror

Sliding Tree

CF
2134D2300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
6
4 3
3 5
3 1
1 2
3 6
1
2
1 2
5
5 4
2 3
4 2
1 4
Output
4 3 5
-1
-1
2 4 1
2134D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…