摘要: 点分治 询问树上距离为 k 的点对是否存在。 #include<bits/stdc++.h> using namespace std; const int MAX=20010; const int inf=1.5e8; int n,m,x,y,z,q[MAX],rt,siz[MAX],maxx[MA 阅读全文
posted @ 2023-06-07 20:58 yisiwunian 阅读(37) 评论(0) 推荐(2)