2810: 鸡尾酒疗法 摘要:解题思路:注意采取循环注意事项:参考代码:# 鸡尾酒疗法n=int(input())b=[]avg=0now=0for i in range(1,n+1): x,y=(map(int,input…… 题解列表 2024年09月13日 1 点赞 0 评论 350 浏览 评分: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 评论 421 浏览 评分:9.9
bfs之八数码问题/一维化二维思路--蓝桥杯省赛2023 摘要:# 此题使用简单的宽搜解决 ###### 八数码原题链接请看[八数码原题链接](https://www.xfxcy.com/p/P0231 "八数码原题链接") ###### 分享一下我的洛谷…… 题解列表 2024年09月13日 1 点赞 0 评论 430 浏览 评分:9.9
必备技法--高精加//vector数组版 + string版 摘要:# 高精度加法vector版 使用vevtor容器 容量可变的优势 模拟高精度 本模板无难点 需要注意 输出答案之前要 反转结果 ```cpp #include #inclu…… 题解列表 2024年09月13日 0 点赞 0 评论 588 浏览 评分:9.9
必备技法--高精度乘法//vector版 摘要:###### 高精度乘法vector版 ```cpp #include #include #include #include #define int long long …… 题解列表 2024年09月13日 0 点赞 0 评论 239 浏览 评分:9.9
[蓝桥杯2017年第八届真题-九宫幻方] DFS 摘要:## 思路:先找出未用的数字有哪些,再进行深搜找出全排列的数,然后放入九宫格中,最后进行检测看是否符合题意 ```cpp #include #define ULL unsigned long l…… 题解列表 2024年09月13日 0 点赞 1 评论 200 浏览 评分:9.9
【C语言+图解】通过双倍数组的数量插入数据,简单易懂 摘要:解题思路:通过创建二倍的数组大小来保证有地方插入注意事项:为了防止数组位置越界,第0项和最后一项要分开判断参考代码:#include<stdio.h> int main(){ //创建一个数…… 题解列表 2024年09月14日 0 点赞 0 评论 180 浏览 评分:9.9
对题2844:数组之间的转化以及数组计算 摘要:解题思路:首先,需要定义一个字符数组,用于输入大整数,并将其储存在数组中;然后再定义一个整型数组,利用ASCII码之间的关系,将字符数组中每个元素减轻‘0’,即可将输入的整数储存在数组中,用来进行后续…… 题解列表 2024年09月14日 0 点赞 0 评论 373 浏览 评分:9.9
单调栈(可做模板) 摘要: ##优化版(O(n)) ###手写栈版 #include #include using namespace std; const int N = 5000…… 题解列表 2024年09月14日 1 点赞 0 评论 293 浏览 评分:9.9
筛素数最全模板 摘要:###暴力筛素数(O(sqrt(n))) #include #include using namespace std; bool primes(int x) { …… 题解列表 2024年09月14日 1 点赞 0 评论 301 浏览 评分:9.9