![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lca
文章平均质量分 72
yukang_0613
这个作者很懒,什么都没留下…
展开
-
hdu2586
#include #include #include #include #include using namespace std; int p[40005]; int n,m; int z[40005],d[40005]; int l[203],r[203]; int find(int x){ return x==p[x]?x:p[x]=find(p[x]);原创 2016-07-17 10:59:01 · 427 阅读 · 0 评论 -
poj3417
//这道题巨坑,用vector超时 #include #include #include using namespace std; const int maxn=100007; int z[maxn]; int n,m,p[maxn]; int visit[maxn]; int l[maxn],r[maxn]; int cnt[maxn],cnt2[maxn]; int原创 2016-07-17 11:42:52 · 705 阅读 · 1 评论