树的重心
swust_fangfangfang
这个作者很懒,什么都没留下…
展开
-
POJ 1655 Balancing Act 树的重心
DescriptionConsider 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原创 2016-07-16 19:46:35 · 363 阅读 · 0 评论 -
codeforces 686D. Kay and Snowflake 树的重心应用
D. Kay and Snowflaketime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the piece of a devilish mirror h原创 2016-07-17 15:19:24 · 1237 阅读 · 0 评论