cf/mirror

Conquer or of Forest

CF
2178F2200· master2s512 MB⌨ stdin/stdout

Examples

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