hdoj 1232 畅通工程 -并查集入门题

题目 code #include<stdio.h> #include<algorithm> #include<string.h> #include <math.h> using namespace std; int pre[1000],total; /*int find_digui(int x){// 递归调用 但是容易造成栈溢出 if(pre[x]!=x) pre[x]=find_digui(p
相关文章
相关标签/搜索