摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1232 并查集水。 #include<bits/stdc++.h> using namespace std; const int N=1005; int n,m; int father[N]; int f 阅读全文