题目传送:http://hihocoder.com/problemset/problem/1081 #include<iostream> #include<cstdio> #include<cstring> #define INF 0x03F3F3F3F #define N 1024 int path[N], vis[N]; int cost[N][N],lowcost[N]; void Dijkstra(int n, int beg){ int i, j, min;…
侵删https://blog.csdn.net/qq_35644234/article/details/60870719 前言 Nobody can go back and start a new beginning,but anyone can start today and make a new ending. Name:Willam Time:2017/3/8 1.最短路径问题介绍 问题解释: 从图中的某个顶点出发到达另外一个顶点的所经过的边的权重和最小的一条路径,称为最短路径 解决问题的…