![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
朱刘算法
Seattle1
这个作者很懒,什么都没留下…
展开
-
HDU4966
#include //这是别人的题解 #include //A了 #include #include #include using namespace std;const int INF = 100000000;const int MAXN = 1010; //点数const int MAXM = 1010000;//边数struct EDGE{ int u,v,cost;转载 2014-08-27 00:44:04 · 385 阅读 · 0 评论 -
HDU4966详解
#include //这是别人的题解 #include #include #include #include //不过这道题为什么要达到所有点,不是只要有最高等级的点就行了么? using namespace std;/** 最小树形图* 复杂度O(NM)* 点下标[0,n-1] 边下标[0,m-1]* 有向边表示:u->v 花费为cost* 返回最小树形图的边权和,-1表示转载 2014-08-27 00:45:24 · 508 阅读 · 0 评论