A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra
转载 2020-06-15 16:15:00
104阅读
题目题意:给定n个城市以及之间的m条路、每条路的长度以及费用,从开始城市到目的城
原创 2023-06-27 10:18:09
78阅读
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra
转载 2018-03-10 09:44:00
35阅读
#include<iostream>#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>#include<algorithm> #include<map>#include<vector>#inclu...
原创 2022-07-14 10:19:19
23阅读
水~。 题意 有N个城市(编号为0~N-1)、M条道路(无向边),并给出M条道路的距离属性与花费属性。现在给定起点S与终点D,求从起点到终点的最短路径、最短距离及花费。注意:如果有多条最短路径,则选择花费最小的那条。 const int N=510; struct Node { int v,dis,
转载 2021-03-01 11:43:00
61阅读
N(编号0-N-1的城市) M(高速路) S(起始点) D(目的地) 城市A 城市B 距离 过路费
原创 2022-11-25 14:28:40
99阅读
PAT A1030 Travel Plandijkstra 优先队列实现 + dfs#include<iostream>#include<qu
原创 2023-06-09 14:19:33
76阅读
返回目录 题意
原创 2022-07-14 17:46:38
48阅读
1030 Travel Plan (30 point(s))A traveler's map gives the distances between cities along the highways, together wavel...
原创 2022-09-15 10:52:18
49阅读
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra
转载 2018-06-03 23:50:00
96阅读
1030Trav
原创 2022-09-19 15:41:19
53阅读
400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A traveler's map gives the distances between c
原创 2022-11-09 19:41:23
52阅读
1 题目1030 Travel Plan (30分)A traveler’s map gives the distances between cities alo
原创 2022-05-26 02:14:03
83阅读
题目链接A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest ...
原创 2021-07-12 10:19:30
67阅读
1,题目描述Sample Input:4 5 0 30 1 1 201 3 2 300 3 4
原创 2022-10-27 15:52:07
99阅读
题意: 给出一个无向图。求出起点到终点的最优路,并输出所经过的点。 最优: 距离最短,若距离相等则权重最短。 思路: 1.注意这是个无向图!! 2.用vector存储经过的点。记得起点也要存储。 //628K 94MS #include #include #include #include #include #include #include #include #include
原创 2022-09-26 10:01:59
53阅读
A traveler’s map gives the distances between cities along the highways, together with the cost of each highwao help a traveler to decide the shortest path b...
原创 2023-06-20 10:04:22
57阅读
1030 Travel Plan (30 分)A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a
原创 2022-09-19 15:38:02
31阅读
  1030 Travel Plan (30 分)   A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a tra
原创 2021-08-30 16:19:28
50阅读
                                    1030 Travel Plan (30 分)   A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are suppo
原创 2021-08-30 16:30:20
49阅读
  • 1
  • 2
  • 3
  • 4
  • 5