【POJ - 1655】Balancing Act (树的重心)
Consider a tree T with N (1 <= N <= 20,000) nodes numbered 1...N. Deleting any node from the tree yields a forest: a collection of one or more trees. Define the balance of a node to be the size ...
原创
2018-11-14 16:13:36 ·
331 阅读 ·
0 评论