摘要: #include #include #include int n,m,ans,p[1010];void Make(int *a){for(int i=1;i<=n;i++)p[i] = i;}int Find(int x){return x==p[x]?x:(p[x]=Find(p[x]));}vo... 阅读全文
posted @ 2013-04-22 20:11 白洞 阅读(174) 评论(0) 推荐(0) 编辑