[蓝桥杯2015年第六届真题-赢球票] 循环队列解决 摘要:```cpp #include using namespace std; const int N = 110; int a[N]; int ans = -1; int n; void…… 题解列表 2024年09月12日 0 点赞 0 评论 324 浏览 评分:9.9
写题解 2841: 大整数加法,字符串与整型数组之间的转化 摘要:解题思路:由于本题的输入为两个不超过200位的整数,int类型、long int类型以及long long int类型所支持的最大输入数并不能满足这类大整数之间的加法计算,基于以上背景,只能将输入整数…… 题解列表 2024年09月12日 0 点赞 0 评论 617 浏览 评分:9.9
dfs之八皇后问题--经典模板题 // 保姆级教程 -- 求赞 摘要:##### 做了这么多dfs的题了 很多dfs都是千篇一律的 递归+回溯+剪枝 这题也不例外 ###### 但是 唯一需要主要的是 此题需要满足任意对角线 列 行 都不存在皇后 ##### 所…… 题解列表 2024年09月13日 1 点赞 0 评论 696 浏览 评分:9.9
2810: 鸡尾酒疗法 摘要:解题思路:注意采取循环注意事项:参考代码:# 鸡尾酒疗法n=int(input())b=[]avg=0now=0for i in range(1,n+1): x,y=(map(int,input…… 题解列表 2024年09月13日 1 点赞 0 评论 509 浏览 评分:9.9
A star/A * 路径规划算法 摘要:# A star/A * 路径规划算法 ## 曼哈顿距离介绍: [详情](https://baike.baidu.com/item/%E6%9B%BC%E5%93%88%E9%A1%BF%E8%B7…… 题解列表 2024年09月13日 0 点赞 1 评论 560 浏览 评分:9.9
bfs之八数码问题/一维化二维思路--蓝桥杯省赛2023 摘要:# 此题使用简单的宽搜解决 ###### 八数码原题链接请看[八数码原题链接](https://www.xfxcy.com/p/P0231 "八数码原题链接") ###### 分享一下我的洛谷…… 题解列表 2024年09月13日 1 点赞 0 评论 588 浏览 评分:9.9
必备技法--高精加//vector数组版 + string版 摘要:# 高精度加法vector版 使用vevtor容器 容量可变的优势 模拟高精度 本模板无难点 需要注意 输出答案之前要 反转结果 ```cpp #include #inclu…… 题解列表 2024年09月13日 0 点赞 0 评论 736 浏览 评分:9.9
必备技法--高精度乘法//vector版 摘要:###### 高精度乘法vector版 ```cpp #include #include #include #include #define int long long …… 题解列表 2024年09月13日 0 点赞 0 评论 382 浏览 评分:9.9
[蓝桥杯2017年第八届真题-九宫幻方] DFS 摘要:## 思路:先找出未用的数字有哪些,再进行深搜找出全排列的数,然后放入九宫格中,最后进行检测看是否符合题意 ```cpp #include #define ULL unsigned long l…… 题解列表 2024年09月13日 0 点赞 1 评论 290 浏览 评分:9.9
【C语言+图解】通过双倍数组的数量插入数据,简单易懂 摘要:解题思路:通过创建二倍的数组大小来保证有地方插入注意事项:为了防止数组位置越界,第0项和最后一项要分开判断参考代码:#include<stdio.h> int main(){ //创建一个数…… 题解列表 2024年09月14日 0 点赞 0 评论 285 浏览 评分:9.9