摘要:
(借鉴漆子超的国家队论文:http://wenku.baidu.com/view/e087065f804d2b160b4ec0b5.html)树的分治分为:树上点分治和树上边分治。基于点的分治:首先选取一个点将无根树转为有根树,再递归处理每一颗以根结点的儿子为根的子树... 阅读全文
摘要:
TreeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17740 Accepted: 5788DescriptionGive a tree with n vertices,each edge has... 阅读全文