
最短路
文章平均质量分 55
kuronekonano
这个作者很懒,什么都没留下…
展开
-
HDU-1874-畅通工程续(最短路 未队列优化)
畅通工程续Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 53520 Accepted Submission(s): 19997Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路原创 2017-06-01 22:44:58 · 383 阅读 · 0 评论 -
UPC-9519 New Game(最短路)
题目描述Eagle Jump公司正在开发一款新的游戏。泷本一二三作为其员工,获得了提前试玩的机会。现在她正在试图通过一个迷宫。这个迷宫有一些特点。为了方便描述,我们对这个迷宫建立平面直角坐标系。迷宫中有两条平行直线 L1:Ax+By+C1=0,L2:Ax+By+C2=0,还有 n 个圆 。角色在直线上、圆上、圆内行走不消耗体力。在其他位置上由S点走到T点消耗的体力为S和T的欧几里得距离。泷本...原创 2018-10-15 00:45:50 · 193 阅读 · 0 评论 -
【ICPC 2015 Shenyang 】UPC-9254 MEETING(最短路&虚点建图)
题目描述Bessie and her friend Elsie decide to have a meeting. However, after Farmer John decorated his fences they were separated into different blocks. John’s farm are divided into n blocks. Bessie live...原创 2018-10-05 23:49:24 · 264 阅读 · 0 评论 -
UPC-6690 Transit Tree Path(树上最短路径SPFA)
题目描述 You are given a tree with N vertices. Here, a tree is a kind of graph, and more specifically, a connected undirected graph with N−1 edges, where N is the number of its vertices. The i-th edge ...原创 2018-08-02 10:36:05 · 241 阅读 · 0 评论 -
HDU - 6290 奢侈的旅行(最短路dijkstra &vis标记)
高玩小Q不仅喜欢玩寻宝游戏,还喜欢一款升级养成类游戏。在这个游戏的世界地图中一共有n个城镇,编号依次为1到n。 这些城镇之间有m条单向道路,第i 条单项道路包含四个参数ui,vi,ai,bi,表示一条从ui号城镇出发,在vi号城镇结束的单向道路,因为是单向道路,这不意味着小Q可以从vi沿着该道路走到ui。小Q的初始等级level为1,每当试图经过一条道路时,需要支付cost=log2level...原创 2018-06-10 20:13:30 · 688 阅读 · 2 评论 -
FZU - 2261 浪里个浪(多源最短路SPFA)
TonyY是一个喜欢到处浪的男人,他的梦想是带着兰兰姐姐浪遍天朝的各个角落,不过在此之前,他需要做好规划。现在他的手上有一份天朝地图,上面有n个城市,m条交通路径,每条交通路径都是单行道。他已经预先规划好了一些点作为旅游的起点和终点,他想选择其中一个起点和一个终点,并找出从起点到终点的一条路线亲身体验浪的过程。但是他时间有限,所以想选择耗时最小的,你能告诉他最小的耗时是多少吗?Input ...原创 2018-06-02 11:41:55 · 1956 阅读 · 3 评论 -
UPC-6487 Cosmic Rays(SPFA最短路)
题目描述 On the xy-plane, Snuke is going to travel from the point (xs,ys) to the point (xt,yt). He can move in arbitrary directions with speed 1. Here, we will consider him as a point without size. Ther...原创 2018-05-31 09:08:49 · 249 阅读 · 0 评论 -
UVALive - 7015 Elevators(dijkstra最短路)
#include<stdio.h>///楼层之间没有楼梯,只通过电梯行走,因此利用两两电梯之间都到的楼层可以联结所有的电梯,到达时间便是楼层之间的权值,跑一个最短路即可#include<string.h>#include<vector>#include<queue>#include<stdlib.h>using namesp...原创 2018-03-17 01:35:02 · 204 阅读 · 0 评论 -
POJ-1860 Currency Exchange(贝尔曼最短路判断负环)
Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations only with these currencies. There can...原创 2018-03-17 01:24:55 · 265 阅读 · 0 评论 -
POJ-2253 Frogger(利用dijkstra最短路求最大路径最小边)
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full of tourists’ sun...原创 2018-03-16 01:21:49 · 424 阅读 · 0 评论 -
POJ - 1797 Heavy Transportation(dijkstra最短路求最大边)
Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place his cu...原创 2018-03-16 00:21:18 · 700 阅读 · 0 评论 -
HDU-1874-畅通工程续 (最短路 贝尔曼Bellman_Ford)
畅通工程续Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 53520 Accepted Submission(s): 19997Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不原创 2017-11-14 14:13:28 · 361 阅读 · 0 评论 -
Hrbust-2122 旅行(最短路)
**旅行** Time Limit: 1000 MS Memory Limit: 32768 K Total Submit: 50(25 users) Total Accepted: 20(20 users) Rating: Special Judge: No Description “04.24,和Sakura去东京天空树,世界上最暖和的地方天空树的顶上。”“04.26,和原创 2017-11-07 20:31:11 · 357 阅读 · 0 评论 -
HDU-1874-畅通工程续 (队列优化)
畅通工程续Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 53520 Accepted Submission(s): 19997Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不原创 2017-09-01 00:08:33 · 361 阅读 · 0 评论 -
POJ-3255 Roadblocks(次短路)
Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home too quickly, because she likes the scenery along the way. She...原创 2018-09-30 01:29:30 · 197 阅读 · 0 评论