畅通工程(HDU1232)

并查集html 1 #include<iostream> 2 using namespace std; 3 4 const int MAX=1000; 5 int father[MAX]; 6 7 void initial(int n) //初始化 8 { 9 for(int i=1;i<=n;i++) 10 father[i]=i; 11 }
相关文章
相关标签/搜索