摘要: 适用范围 1.有负环存在 2.有边数限制 模板 有边数限制的最短路 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N = 510,M = 10010; int dist[ 阅读全文
posted @ 2021-07-24 15:29 Xuuxxi 阅读(36) 评论(0) 推荐(0)
摘要: #适用范围 单源正权边最短路 时间复杂度O(n^2) #模板 稠密图(n^2) Dijkstra求最短路 I #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N = 510 阅读全文
posted @ 2021-07-24 02:05 Xuuxxi 阅读(62) 评论(0) 推荐(0)