B - The Suspects POJ - 1611B - The Suspects POJ - 1611
B - The Suspects POJ - 1611基并查集#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>using namespace std;const int maxn = 3e4+100;int n, m;int fa[maxn], cnt[maxn];void init() { m