dfs--字符转数存状态//[LETTERS] 摘要:# 利用Ascall码性质 将字符转为数字存在数组跟新状态 ###### 话说unordered_map也有这种性质 但是我用他wa了一个点 首先 看到最多 最长 类似的字样 首先想到的是深搜…… 题解列表 2024年09月15日 0 点赞 1 评论 275 浏览 评分:9.9
map哈希存储 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { if…… 题解列表 2024年09月15日 0 点赞 0 评论 182 浏览 评分:0.0
[LETTERS] BFS 配合 map容器 摘要:## unordered_map 的.count函数-用于查找是否出现过该状态,是返回1; ```cpp #include #define ULL unsigned long long #d…… 题解列表 2024年09月14日 0 点赞 1 评论 368 浏览 评分:9.9
筛素数最全模板 摘要:###暴力筛素数(O(sqrt(n))) #include #include using namespace std; bool primes(int x) { …… 题解列表 2024年09月14日 1 点赞 0 评论 299 浏览 评分:9.9
单调栈(可做模板) 摘要: ##优化版(O(n)) ###手写栈版 #include #include using namespace std; const int N = 5000…… 题解列表 2024年09月14日 1 点赞 0 评论 290 浏览 评分:9.9
[蓝桥杯2017年第八届真题-九宫幻方] DFS 摘要:## 思路:先找出未用的数字有哪些,再进行深搜找出全排列的数,然后放入九宫格中,最后进行检测看是否符合题意 ```cpp #include #define ULL unsigned long l…… 题解列表 2024年09月13日 0 点赞 1 评论 196 浏览 评分:9.9
必备技法--高精度乘法//vector版 摘要:###### 高精度乘法vector版 ```cpp #include #include #include #include #define int long long …… 题解列表 2024年09月13日 0 点赞 0 评论 236 浏览 评分:9.9
蓝桥杯2024年第十五届决赛真题-最小字符串 摘要:#贪心+二路归并 ```cpp #include #include #include using namespace std; int main(void) { ios::sync_w…… 题解列表 2024年09月13日 2 点赞 2 评论 1100 浏览 评分:6.3
必备技法--高精加//vector数组版 + string版 摘要:# 高精度加法vector版 使用vevtor容器 容量可变的优势 模拟高精度 本模板无难点 需要注意 输出答案之前要 反转结果 ```cpp #include #inclu…… 题解列表 2024年09月13日 0 点赞 0 评论 586 浏览 评分:9.9
bfs之八数码问题/一维化二维思路--蓝桥杯省赛2023 摘要:# 此题使用简单的宽搜解决 ###### 八数码原题链接请看[八数码原题链接](https://www.xfxcy.com/p/P0231 "八数码原题链接") ###### 分享一下我的洛谷…… 题解列表 2024年09月13日 1 点赞 0 评论 425 浏览 评分:9.9