随笔分类 -  并查集

摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N = 1e5 + 10; 4 int f[N]; 5 6 inline int find(int x) 7 { 8 return (f[x] == x) ? x : f[x] 阅读全文
posted @ 2021-01-18 12:16 LegendN 阅读(99) 评论(0) 推荐(0)