Loading

摘要: 最小生成树(无向图) Kruskal 给所有边按从小到大排序 形成环则不选择(利用并查集) P1546 最短网络 https://www.luogu.com.cn/problem/P1546 #include<iostream> #include<cstdio> #include<string> # 阅读全文
posted @ 2020-02-05 10:24 MQFLLY 阅读(133) 评论(0) 推荐(0) 编辑