![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图论
青春斗
这个作者很懒,什么都没留下…
展开
-
HDU_1233 还是畅通工程
http://acm.hdu.edu.cn/showproblem.php?pid=1233#include #include using namespace std; struct edge { int u,v,w; }node[5005]; int father[5005]; void Init(int n) { for(int i=0;i<=n;i++) fath原创 2012-06-17 21:01:03 · 254 阅读 · 0 评论 -
HDU_1301 Jungle Roads
http://acm.hdu.edu.cn/showproblem.php?pid=1301 #include #include using namespace std; struct edge { int u,v,w; }node[900]; int parents[900]; void UFset() { for(int i=0;i<900;i++) parent原创 2012-06-17 21:05:02 · 308 阅读 · 0 评论