摘要: 模板题: 亲戚 题解: #include <bits/stdc++.h> using namespace std; int n, m, p; int fa[5050]; int find(int x) { return fa[x] == x ? x : fa[x] = find(fa[x]); } 阅读全文
posted @ 2024-03-16 14:52 懒羊羊爱吃灰太狼 阅读(7) 评论(0) 推荐(0)