#H620. [CSP-S 2019] 树的重心
[CSP-S 2019] 树的重心
题目描述
输入格式
输出格式
2
5
1 2
2 3
2 4
3 5
7
1 2
1 3
1 4
3 5
3 6
6 7
32
56
2
5
1 2
2 3
2 4
3 5
7
1 2
1 3
1 4
3 5
3 6
6 7
32
56
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.