cf/mirror

Deconstruction Tree

CF
2229E2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
2
1 2
5
5 1
5 3
5 4
5 2
7
7 6
7 4
5 7
1 6
2 4
3 5
10
10 9
10 8
10 7
10 6
9 5
8 4
7 3
6 2
5 1
4
2 4
3 1
1 4
4
1 4
2 3
3 4
Output
1
1
3
13
1
1
2229E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…