摘要: 我们可以遍历得出每个节点到根节点的距离h,然后用可并堆进行维护。树形dp 我用的是pairing heap 阅读全文
posted @ 2016-03-31 15:11 Chris_2 阅读(200) 评论(0) 推荐(0) 编辑