P4178

洛谷P4178 Tree 题解 树上点分治

题目链接:[https://www.luogu.com.cn/problem/P4178](https://www.luogu.com.cn/problem/P4178) 解题思路: 点分治模板题。 设当前重心为 $u$,一共有三种不同类型的路径: 1. 路径的一个端点恰好是重心 $u$; 2. 路 ......
题解 P4178 4178 Tree
共1篇  :1/1页 首页上一页1下一页尾页