【并查集复习】hrbust oj 1073/1173/1490/1725/1160

1073 #include <iostream> #include <stdio.h> #include <algorithm> using namespace std; int pre[50005]; void init(int n){ for(int i=0; i<n; i++) pre[i] = i; } int Find(int x){ if(pre[
相关文章
相关标签/搜索