2015年3月9日
摘要: #include#include#includeusing namespace std;const int MAXV=510;const int INF=0x3fffffff;int n,m,c1,c2;bool vis[MAXV];int G[MAXV][MAXV]; //城市间距离in... 阅读全文
posted @ 2015-03-09 22:46 Evence 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;const int MAXV=510;const int INF=0x3fffffff;int N,M,S,D; //城市数,高速公路数,起点,终点bool visit[MAXV]; //标记... 阅读全文
posted @ 2015-03-09 18:51 Evence 阅读(185) 评论(0) 推荐(0) 编辑