再談Bellman-Ford

這幾天學校女生節,挺累的,感覺還是挺好玩的,前幾天看了一下最短路,Bellman-fort算法果然比較厲害,今天又參考了劉汝佳的兩本書,有了一點新的認識。 廢話不說,先上代碼: #include <bits/stdc++.h> using namespace std; const int INF = 0x3f3f3f3f; const int maxn = 1000; struct Edge
相關文章
相關標籤/搜索