摘要: 原题链接 并查集模板练手。 递归版本 #include<bits/stdc++.h> using namespace std; const int N=1e4+5; int father[N]; int find(int mid){ if (father[mid]!=mid){ father[mid 阅读全文
posted @ 2024-02-13 19:38 黑屿白 阅读(29) 评论(0) 推荐(0)