
树的分治
YOONGI
这个作者很懒,什么都没留下…
展开
-
HDU - 4812 D Tree (点分治 + 逆元预处理 )
D Tree There is a skyscraping tree standing on the playground of Nanjing University of Science and Technology. On each branch of the tree is an integer (The tree can be treated as a connected grap...原创 2019-10-31 19:56:20 · 176 阅读 · 0 评论 -
POJ - 2114 Boatherds (点分治 距离等于k的点对)
Boatherds Boatherds Inc. is a sailing company operating in the country of Trabantustan and offering boat trips on Trabantian rivers. All the rivers originate somewhere in the mountains and on thei...原创 2019-10-31 11:22:43 · 160 阅读 · 0 评论 -
POJ - 1987 Distance Statistics (点分治 距离小于等于k的点对)
Distance Statistics Frustrated at the number of distance queries required to find a reasonable route for his cow marathon, FJ decides to ask queries from which he can learn more information. Speci...原创 2019-10-30 09:53:14 · 399 阅读 · 0 评论 -
POJ - 1741 Tree (点分治 求路径距离小于等于k的点对)
Tree Give 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 vertices...原创 2019-10-25 18:40:46 · 1109 阅读 · 1 评论 -
POJ - 1655 Balancing Act (树的重心)
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 no...原创 2019-10-25 11:13:31 · 131 阅读 · 0 评论