【並查集複習】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[
相關文章
相關標籤/搜索