
最小生成树
hipamp
这个作者很懒,什么都没留下…
展开
-
CF733F Drivers Dissatisfaction(次小生成树)
【问题描述】 给出一张 n 个点 m 条边的无向图,每条边(ai,bi)有一个权值 wi 和费用 ci,表示这条边 每降低 1 的权值需要 ci 的花费。现在一共有 S 费用可以用来降低某些边的权值(可以降到 负数),求图中的一棵权值和最小的生成树并输出方案。 【输入描述】 第一行两个整数 n,m。 第二行 m 个整数 wi,表示每条边的权值。 第三行 m 个整数 ci,表示这条边每降低 1 的权...原创 2020-02-16 17:35:43 · 397 阅读 · 0 评论 -
HDU3938 Portal(最小生成树 + 计数)
Problem Description ZLGG found a magic theory that the bigger banana the bigger banana peel .This important theory can help him make a portal in our universal. Unfortunately, making a pair of portals ...原创 2019-08-20 15:29:13 · 309 阅读 · 0 评论 -
hdu1598 最小差值生成树
Problem Description XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure—超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求,flycar必须瞬间提速/降...原创 2019-08-17 23:17:32 · 159 阅读 · 0 评论 -
POJ1679 The Unique MS(次小生成树)
Description Given a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connected, undirected graph G = (V, E). A spanning tree of G is a ...原创 2019-08-23 14:39:32 · 149 阅读 · 0 评论 -
poj2728 Desert King(0/1分数规划 + 最小生成树
Description David the Great has just become the king of a desert country. To win the respect of his people, he decided to build channels all over his country to bring water to every village. Villages ...原创 2019-09-30 17:59:44 · 174 阅读 · 0 评论