[并查集模板]HDU1213
原题链接
//! 并查集模板题!
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
#define RG register int
#define ULL unsigned long long
int n,m,fa[1010]; //!fa[x]=y:元素 x的祖先为y(用y代表属于这一个集合的元素)...
原创
2020-04-11 00:32:22 ·
100 阅读 ·
0 评论