摘要: 链接 感觉正常写即可 #include <bits/stdc++.h> using namespace std; const int maxn = 2e6 + 10; int t,n,a,b,e,fa[maxn],aa[maxn],cnt,ssize; vector<pair<int,int> >v 阅读全文
posted @ 2020-08-14 22:39 Hazelxcf 阅读(127) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; const int maxn = 3e5 + 10; int n,m,fa[maxn],col[maxn]; int find(int x){ return fa[x] == x ? x : fa[x] = 阅读全文
posted @ 2020-08-14 11:47 Hazelxcf 阅读(136) 评论(0) 推荐(0)