摘要: acwing836—合并集合 #include<iostream> #include<cstdio> using namespace std; const int N=1e5+10; int n,m; int p[N]; int find(int x)//返回x的祖宗节点 { if(x!=p[x]) 阅读全文
posted @ 2020-09-17 15:01 30天CF上蓝!!! 阅读(131) 评论(0) 推荐(0)