摘要:
kruskal算法(类似于并查集) ` include<bits/stdc++.h> using namespace std; const int maxn = 114514; int maxx,ans; int fa[maxn],n,m,k=0; int find(int x) { if(fa[x 阅读全文
posted @ 2024-03-12 20:28
类人群星闪耀时
阅读(10)
评论(0)
推荐(0)
摘要:
kruskal算法(好像并查集) #include<bits/stdc++.h>using namespace std;const int maxn = 114514;int maxx,ans;int fa[maxn],n,m,k=0;int find(int x){ if(fa[x]!=x) fa 阅读全文
posted @ 2024-03-12 20:27
类人群星闪耀时
阅读(17)
评论(0)
推荐(0)