cf/mirror

Parsa's Humongous Tree

CF
1528A1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
2
1 6
3 8
1 2
3
1 3
4 6
7 9
1 2
2 3
6
3 14
12 20
12 19
2 12
10 17
3 17
3 2
6 5
1 5
2 6
4 6
Output
7
8
62
1528A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…