cf/mirror

Tree Destruction

CF
2050G1900· candidate master2s256 MB⌨ stdin/stdout

Examples

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