摘要: 输入包括多组数据。每组数据第一行是两个整数N、M(N 2 #include 3 const int inf=0x3f3f3f3f ; 4 int path[101]; 5 int sta[101][101],lowcost[101]; 6 void Dijkstra( int cost[][101], int n ) 7 { 8 int i,j,min; 9 int vis[101]={1};10 for(i=0; i#include#include#include#includeusing namespace std;const int inf=0x3f3f3f3f;... 阅读全文
posted @ 2014-02-28 23:32 龚细军 阅读(373) 评论(0) 推荐(0) 编辑