並查集題目合集

1、暢通工程 傳送門: http://acm.hdu.edu.cn/showproblem.php?pid=1232 #include<bits/stdc++.h> using namespace std; int bin[1010]; int findx(int x){ int r=x; while(bin[r]!=r){ r=bin[r]; } return r; } void
相關文章
相關標籤/搜索