
树的分治
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
POJ1741--Tree(树的分治)
DescriptionGive a tree with n vertices,each edge has a length(positive integer less than 1001).Define dist(u,v)=The min distance between node u and v. Give an integer k,for every pair (u,v) of原创 2014-05-16 23:26:59 · 1412 阅读 · 0 评论 -
2014多校一1011(HDU4871)--Shortest-path tree树分治
Problem DescriptionGiven a connected, undirected graph G, a shortest-path tree rooted at vertex v is a spanning tree T of G, such that the path distance from root v to any other vertex u in T is t原创 2014-07-23 18:27:47 · 1146 阅读 · 0 评论