POJ 2378 Tree Cutting

题意

变相考察求树的重心。

思路

和这个题一致

代码

 

Leave a Reply

Scroll to top