pat a1030 Travel Plan 【Dijkstra求最短路径】
题目: https://pintia.cn/problem-sets/994805342720868352/problems/994805464397627392 https://www.nowcoder.com/pat/1/submission-detail/64261014 一、问题描述 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 path between his/her starting city and the destination. If such a shortest path is not unique, you are supposed to output the one with the minimum cost, which is guaranteed to be unique. Input Specification: Each input file contains one test case. Each case