poj1611 The Suspects (并查集)
题目链接:http://poj.org/problem?id=1611
//非常基础的并查集 可以参考http://www.cnblogs.com/cherish_yimi/archive/2009/10/11/1580839.html
#include
using namespace std;
int f[30000],rank[30000];
void makeset(int
原创
2012-07-26 01:01:18 ·
306 阅读 ·
0 评论