再谈Bellman-Ford

这几天学校女生节,挺累的,感觉还是挺好玩的,前几天看了一下最短路,Bellman-fort算法果然比较厉害,今天又参考了刘汝佳的两本书,有了一点新的认识。 废话不说,先上代码: #include <bits/stdc++.h> using namespace std; const int INF = 0x3f3f3f3f; const int maxn = 1000; struct Edge
相关文章
相关标签/搜索