Rosetta Problems

树的重心

https://www.acwing.com/problem/content/1159