上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页
摘要: 视频链接:B28 A*算法 八数码_哔哩哔哩_bilibili Luogu P1379 八数码难题 #include <iostream> #include <algorithm> #include <queue> #include <unordered_map> using namespace s 阅读全文
posted @ 2023-06-23 20:52 董晓 阅读(688) 评论(0) 推荐(1)
摘要: 视频链接:B27 A*算法 第K短路_哔哩哔哩_bilibili POJ2449 Remmarguts' Date #include <cstdio> #include <iostream> #include <cstring> #include <vector> #include <queue> 阅读全文
posted @ 2023-06-23 20:51 董晓 阅读(861) 评论(0) 推荐(0)
摘要: 视频链接:B26 双向DFS 送礼物_哔哩哔哩_bilibili CH2401 送礼物 //双向DFS+二分: N=2^23=8*10^6, N*logN=2^23*23=2*10^8 #include <iostream> #include <algorithm> using namespace 阅读全文
posted @ 2023-06-22 22:05 董晓 阅读(545) 评论(0) 推荐(1)
摘要: 视频链接:B25 迭代加深 Addition Chains_哔哩哔哩_bilibili Luogu UVA529 Addition Chains POJ2248 Addition Chains #include <iostream> using namespace std; int n, d; // 阅读全文
posted @ 2023-06-21 21:45 董晓 阅读(590) 评论(0) 推荐(0)
摘要: 视频链接:B24 DFS剪枝 生日蛋糕_哔哩哔哩_bilibili Luogu P1731 [NOI1999] 生日蛋糕 #include <cstring> #include <iostream> #include <algorithm> #include <cmath> using namesp 阅读全文
posted @ 2023-06-20 20:24 董晓 阅读(544) 评论(0) 推荐(1)
摘要: 视频链接:B23 DFS剪枝 小木棍_哔哩哔哩_bilibili Luogu P1120 小木棍 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N=70; int 阅读全文
posted @ 2023-06-18 10:24 董晓 阅读(792) 评论(3) 推荐(2)
摘要: 视频链接:B22 DFS剪枝 小猫爬山_哔哩哔哩_bilibili CH2201 小猫爬山 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N=30; int n,w 阅读全文
posted @ 2023-06-17 12:53 董晓 阅读(490) 评论(0) 推荐(1)
摘要: 视频链接:B21 DFS剪枝 分成互质组_哔哩哔哩_bilibili ybt1221 分成互质组 2 #include <cstdio> #include <iostream> #include <vector> using namespace std; const int N=11; int n, 阅读全文
posted @ 2023-06-17 12:15 董晓 阅读(529) 评论(0) 推荐(0)
摘要: 视频链接:B20 DFS 单词接龙_哔哩哔哩_bilibili Luogu P1019 [NOIP2000 提高组] 单词接龙 #include<iostream> using namespace std; const int N=25; int n,ans; int used[N]; //每个单词 阅读全文
posted @ 2023-06-16 21:33 董晓 阅读(586) 评论(0) 推荐(0)
摘要: 视频链接:B19 双向BFS 字串变换_哔哩哔哩_bilibili Luogu P1032 [NOIP2002 提高组] 字串变换 #include <iostream> #include <queue> #include <unordered_map> using namespace std; c 阅读全文
posted @ 2023-06-14 10:09 董晓 阅读(799) 评论(2) 推荐(1)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页