暢通工程(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 }
相關文章
相關標籤/搜索