![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
文章平均质量分 82
lbz8o8
这个作者很懒,什么都没留下…
展开
-
USACO 2007 Dec Silver 2.Building Roads
USACO 2007 Dec Silver 2.Building Roads做了 第一道 最小生成树 hehe#include<stdio.h> #include<iostream> #include<algorithm> #include<math.h> #include<functional> using namespace std; typedef long long ll; int n,m;原创 2016-08-27 16:29:11 · 700 阅读 · 0 评论 -
codevs1001 舒适的路线
并查集 按边长从小到大排序 http://blog.csdn.net/zhuml123/article/details/51722485很巧妙的想法#include<stdio.h> #include<iostream> #include<algorithm> using namespace std; int n,m; int s,t; struct edd { int x; i原创 2016-11-04 15:08:05 · 262 阅读 · 0 评论