摘要: Manacher(马拉车) 1 #include<iostream> 2 #include<string.h> 3 #include<algorithm> 4 #include <cstdio> 5 using namespace std; 6 7 const int N = 1e7 + 1e6 + 阅读全文
posted @ 2020-05-21 20:13 SummerMingQAQ 阅读(199) 评论(0) 推荐(0) 编辑
摘要: SPFA #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <queue> using namespace std; #define ll long long #define p 阅读全文
posted @ 2020-05-21 19:23 SummerMingQAQ 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Bellman-ford #include <iostream> #include <cstdio> #include <algorithm> #include <vector> using namespace std; #define ll long long #define pb push_ba 阅读全文
posted @ 2020-05-21 17:31 SummerMingQAQ 阅读(124) 评论(0) 推荐(0) 编辑