最短路模板 POJ-2387 Til the Cows Come Home
题意就是求最短路,重点是模板
bellmanFord//时间复杂度 O(V*E)
#include <cstdio>
#include <algorithm>
#include <queue>
#include <cstring>
using namespace std;
const int MAXN=2222;
const int MAXM=2333;
const int INF=0x3f3f3
原创
2017-03-30 20:40:36 ·
212 阅读 ·
0 评论