并查集题目合集

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
相关文章
相关标签/搜索