摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1010,M=1e5+10; struct Edge{ int a,b,w; bool operator< (const Edge &W) const { return w 阅读全文
posted @ 2026-03-19 23:21 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=110; int n; int g[N][N]; int st[N]; int dist[N]; int prim() { int res=0; memset(dist,0 阅读全文
posted @ 2026-03-19 22:41 AnoSky 阅读(2) 评论(0) 推荐(0)