摘要: 并查集(路径压缩) // luogu p3367 并查集板子#include<bits/stdc++.h> using namespace std; int n, m, z, x, y; int f[10005]; int find(int x) { if(x == f[x]) return x; 阅读全文
posted @ 2019-09-12 19:34 ATKevin 阅读(123) 评论(0) 推荐(0) 编辑