摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; // N为点数最大值,M为边数最大值(100个点最多约5000条边) const int N=105, M=5050; int n, m; // m用来动态记录我们提取出的有效边数 struct 阅读全文
posted @ 2026-03-18 22:38 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=5050,M=2e5+10; int n,m; struct Edge{ int a,b,w; bool operator<(const Edge& W) const{ r 阅读全文
posted @ 2026-03-18 22:32 AnoSky 阅读(2) 评论(0) 推荐(0)