我这个应该是挺好理解的吧 摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m)//n…… 题解列表 2023年01月19日 0 点赞 0 评论 265 浏览 评分:0.0
链队列/循环队列 摘要:解题思路:注意事项:参考代码://linkquene #include <iostream>#include <cstdlib>using namespace std;typedef struct q…… 题解列表 2023年01月19日 0 点赞 0 评论 211 浏览 评分:0.0
1287: 最大质因数(算数基本定理) 摘要:解题思路:找一个数的最大质因数,只需要从2开始将它的因数都除掉,剩下的最后一个就是最大的质因数。以380为例,380/2=190 190/2=95 ,95不能/2了,就向后面找,95/5=19,这个…… 题解列表 2023年01月19日 0 点赞 0 评论 293 浏览 评分:9.9
3032: 扩号匹配问题 摘要:解题思路:先看一下题目,要求将不能匹配的括号在下面标出来,不能匹配的左括号用"$"标注,不能匹配的右括号用"?"标注。、例如:((ABCD(x),前面两个左括号不能匹配,所以打印出来是这样的:((AB…… 题解列表 2023年01月19日 0 点赞 0 评论 413 浏览 评分:9.9
1444: 蓝桥杯2014年第五届真题-斐波那契 摘要:```cpp #include #include using namespace std; typedef long long LL; LL llmul(LL a,LL b,LL mod)…… 题解列表 2023年01月19日 1 点赞 0 评论 426 浏览 评分:9.9
3025: 踩方格(dfs) 摘要:解题思路:n不超过20,先写一个dfs爆搜。因为是二维数组,所以把只能向上、左、右走改成了向下、左、右走,起始位置在(0,50),这样向下左右走不会超过边界。先将起始位置标记为-1,表示不能返回。以走…… 题解列表 2023年01月19日 0 点赞 0 评论 356 浏览 评分:9.9
2099: C++重载练习之复数加减法 摘要:解题思路:当复数为0时不进行打印操作,注意正负号。参考代码:#include <iostream> #include <cmath> using namespace std; int m…… 题解列表 2023年01月19日 0 点赞 0 评论 655 浏览 评分:9.9
题解 2841: 大整数加法 (c++)string解题 摘要:解题思路:用string把输入的数字倒叙存入在数组里面,然后进行对位相加,再倒叙输出参考代码:#include <iostream> using namespace std; string s1,…… 题解列表 2023年01月19日 1 点赞 0 评论 383 浏览 评分:9.0
初学树状数组 摘要:解题思路:树状数组注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=15005,M=32005;int a[N],b[M…… 题解列表 2023年01月18日 0 点赞 0 评论 214 浏览 评分:9.9
每日打卡题目 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e7 + 5;int arry[N];int main…… 题解列表 2023年01月18日 0 点赞 0 评论 181 浏览 评分:0.0