03 2021 档案

摘要:Bellman-Ford 基于迭代思想的暴力,而非贪心 // 853.有边数限制的最短路 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 510; const 阅读全文
posted @ 2021-03-27 17:22 lemonsbiscuit 阅读(81) 评论(0) 推荐(0)
摘要:A. 搬家 stack #include <iostream> #include <algorithm> #include <cstring> #include <string> #include <stack> using namespace std; int n; stack<string> s 阅读全文
posted @ 2021-03-17 17:06 lemonsbiscuit 阅读(164) 评论(0) 推荐(0)
摘要:第一题 7-1 Arithmetic Progression of Primes (20 分) 未加优化 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 10 阅读全文
posted @ 2021-03-16 22:41 lemonsbiscuit 阅读(225) 评论(2) 推荐(1)