最短路
文章平均质量分 78
eeeaaaaa
这个作者很懒,什么都没留下…
展开
-
HDU1839
Delay Constrained Maximum Capacity PathTime Limit: 10000/10000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 969 Accepted Submission(s): 301Problem Descr原创 2014-07-13 18:57:18 · 336 阅读 · 0 评论 -
POJ3114 Countries in War
Countries in WarTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2314 Accepted: 721DescriptionIn the year 2050, after different attempts of the UN to maintain peace in the world, th原创 2014-07-27 18:04:27 · 331 阅读 · 0 评论 -
HDU1595 find the longest of the shortest
find the longest of the shortestTime Limit: 1000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1560 Accepted Submission(s): 557Problem Descripti原创 2014-07-13 14:59:13 · 388 阅读 · 0 评论 -
UVA1416 Warfare And Logistics
Warfare And LogisticsTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu[Submit] [Go Back] [Status] DescriptionDownload as PDFThe army of United Nations launched a new原创 2014-07-30 14:59:47 · 341 阅读 · 0 评论 -
HDU1531 King
链接:HDU1531原创 2014-08-15 10:31:46 · 763 阅读 · 0 评论 -
HDU3440 House Man
House ManTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2056 Accepted Submission(s): 811Problem DescriptionIn Fuzhou, there is a c原创 2014-08-16 10:51:23 · 397 阅读 · 0 评论 -
HDU1529 Cashier Employment
Cashier EmploymentTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 858 Accepted Submission(s): 367Problem DescriptionA supermarket i原创 2014-08-16 13:33:35 · 742 阅读 · 0 评论 -
HDU4871 Shortest-path tree【最短路+点分治】
题意:给出一张图,要求从1点开始跑最短路,并以1为根生产一棵最短路树(长度相同找到字典序最小的),然后求出这个树上恰好经过k个点的最长路径,并输出数量。从1点跑一遍最短路,然后dfs生产最短路生成树,然后点分治,找到重心之后对重心每条边算一次经过了i个点的最长路,然后还要用数组记录一下前面经过了i个点的最长路。。处理方法在讲点分治的论文上有。#include#include#inclu原创 2015-05-14 15:55:47 · 428 阅读 · 0 评论