为什么D题只有百分之四十的通过率 #include<bits/stdc++.h> using namespace std; using ll=long long; const int N=1e5+10; int n,m,p[N],s[N]; ll c; struct Edge{ int a,b,w; bool operator< (const Edge &W) const{ return w<W.w; } }edge[N]; int find(int u) { if(p[u]!=u) p[u]=find(p[u]); return p[u]; } vector&...