摘要: P3366 【模板】最小生成树 P1194 买礼物 因为起点有权值,所以ans+=A; 若连边为空,或权值大于A,修改为A; 正常跑一边模板... 1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #define M 阅读全文
posted @ 2019-01-06 21:37 flickerr 阅读(257) 评论(0) 推荐(0)