题解(最小生成树) kruskal 博客链接:https://blog.csdn.net/qq_50285142/article/details/116995428 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e2+10; struct edge { int u,v,w; }e[N*N]; ll n,m,c,f[N]; ll find(ll x){return x==f[x] ? x :(f[x]=find(f[x]));}//路径压缩 bool cmp(...