摘要: dijkstra #include <iostream> #include <vector> #include <queue> #include <cstring> using namespace std; int n, m, s, a, b, c; const int MAXN = 100010; 阅读全文
posted @ 2025-07-05 20:12 张诗羽 阅读(10) 评论(0) 推荐(0)
摘要: Kahn算法 #include <iostream> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int N = 100010; int n, m, a, b; vector< 阅读全文
posted @ 2025-07-05 17:21 张诗羽 阅读(7) 评论(0) 推荐(0)