poj 1611

并查集入门ios 一个社团的合并一次,最后统计和0是在相同集合的人spa #include<iostream> #include<cstdio> #include<algorithm> using namespace std; const int maxn = 30000 + 10; int p[maxn]; int a[maxn]; int tofind(int x){ if(x ==
相关文章
相关标签/搜索