随笔分类 -  图论

摘要:// Luogu P3366 【模板】最小生成树 include <bits/stdc++.h> using namespace std; const int N=200006; int n, m; struct edge{ int u,v,w; bool operator<(const edge 阅读全文
posted @ 2025-02-05 19:53 伍跳跳 阅读(3) 评论(0) 推荐(0) 编辑
摘要:// Luogu P3366 【模板】最小生成树 include include include include define inf 1e9 using namespace std; int n,m,a,b,c,ans,cnt; const int N=5010; struct edge{int 阅读全文
posted @ 2025-02-05 19:52 伍跳跳 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示