摘要: 洛谷p1546链接 Prime算法的核心也是贪心,但是不同的就是,它是一直维护一颗树, 直到变成一颗最小生成树, #include<bits/stdc++.h> using namespace std; const int maxn = 110; const int inf = 0x3f3f3f3f 阅读全文
posted @ 2020-02-15 19:40 lifehappy 阅读(405) 评论(0) 推荐(0)