码迷,mamicode.com
首页 >  
搜索关键字:jungle roads    ( 729个结果
poj 1984 Navigation Nightmare 并查集 解题报告
Description Farmer John's pastoral neighborhood has N farms (2 <= N <= 40,000), usually numbered/labeled 1..N. A series of M (1 <= M < 40,000) vertical and horizontal roads each of varying lengths ...
分类:Web程序   时间:2016-05-12 15:28:49    阅读次数:150
HDU 5016 Mart Master II
Description Trader Dogy lives in city S, which consists of n districts. There are n - 1 bidirectional roads in city S, each connects a pair of districts. Indeed, city S is connected, i.e. people ca...
分类:其他好文   时间:2016-05-12 12:17:32    阅读次数:185
hdu 1301(最小生成树)
Jungle Roads Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6211 Accepted Submission(s): 4512 Pr ...
分类:其他好文   时间:2016-05-08 01:00:47    阅读次数:266
“本地数据获取”的综合编程迷你项目
(1) 创建一个文件Blowing in the wind.txt,其内容是:    #问题非原创 How many roads must a man walk down Before they call him a man How many seas must a white dove sail Before she sleeps in the sand How many times...
分类:其他好文   时间:2016-05-07 10:52:57    阅读次数:194
Codeforces Round #302 (Div. 2) D. Destroying Roads 最短路 删边
题目:有n个城镇,m条边权为1的双向边让你破坏最多的道路,使得从s1到t1,从s2到t2的距离分别不超过d1和d2。 分析: 1.反过来思考,转换为求s1到t1和s2到t2的最短路。 2.假如上述两条最短路没有公共边,那么显然能删除的边就是除这两条路以外的所有的边; 但是假如有重合的边呢?那么我们只 ...
分类:其他好文   时间:2016-05-02 10:25:47    阅读次数:257
poj 1947(树形DP+01背包)
Rebuilding Roads Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 10663 Accepted: 4891 Description The cows have reconstructed Farmer John's ...
分类:其他好文   时间:2016-04-21 18:03:36    阅读次数:187
One Way Roads(搜索)
One Way Roads Time Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status Practice LightOJ 1049 One Way Roads Submit Status Practi ...
分类:其他好文   时间:2016-04-14 13:59:53    阅读次数:223
[2016-04-09][POJ][1251][Jungle Roads]
时间:2016-04-09 00:02:24 星期六 题目编号:[2016-04-09][POJ][1251][Jungle Roads] 题目大意:给定n个城镇的若干条路及其每月维修的代价,问,在所有城市联通的情况下,最少需要多少维修费 分析: 保证边权最小,并且图联通—–>最小生成树 #incl... ...
分类:其他好文   时间:2016-04-09 01:32:07    阅读次数:90
杭电1025Constructing Roads In JGShining's Kingdom
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1025 题目: Problem Description JGShining's kingdom consists of 2n(n is no more than 500,000) small cities w ...
分类:其他好文   时间:2016-04-08 21:22:49    阅读次数:144
729条   上一页 1 ... 37 38 39 40 41 ... 73 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!