摘要:
#include<iostream>using namespace std;int father[50005];int rank[50005];int maxNum;void make_set(int x){ father[x]=x; rank[x]=1;}int find_set(int x){ if(x!=father[x]) { father[x]=find_set(father[x]); } return father[x];}void Union(int x,int y){ x=find_set(x); y=... 阅读全文
posted @ 2012-01-19 16:10
Jason Damon
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号