用C++求和(do...while) 摘要:解题思路:从题目中知道要输入N,且要求N以内所有数之和,代码中用sum表示。注意事项:do...while中do括号里面是循环体,while括号里面满足循环的条件表达式,其无论如何都会执行一次。参考代…… 题解列表 2025年02月28日 0 点赞 0 评论 318 浏览 评分:0.0
先求最大的,再递减比较 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x; cin>>x; cou…… 题解列表 2025年03月01日 0 点赞 0 评论 100 浏览 评分:0.0
1738: 排序 (sort) 摘要:解题思路:使用sort()排序,注意使用头文件<bits/stdc++.h>或使用#include<algorithm>头文件sort(begin, end, cmp),其中b…… 题解列表 2025年03月01日 2 点赞 0 评论 543 浏览 评分:0.0
蓝桥杯算法提高VIP-逆序排列(c语言) 摘要:#include<stdio.h>#include<string.h>#include<math.h>int&n…… 题解列表 2025年03月01日 0 点赞 0 评论 193 浏览 评分:0.0
猴子吃桃。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n;&nb…… 题解列表 2025年03月01日 0 点赞 0 评论 295 浏览 评分:0.0
C语言:三个数组+两个函数 解决问题【豆包改过的代码】 摘要:解题思路:【原代码是我写的,现在这个代码是豆包改的,和我原本想法细节上有出入,我就不解释了,直接分享代码吧】注意事项:参考代码:#include <stdio.h>#include <…… 题解列表 2025年03月01日 0 点赞 0 评论 394 浏览 评分:0.0
震宇大神的杀毒软件(冒泡) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,num[100]; while (~scanf("%d", &…… 题解列表 2025年03月02日 0 点赞 0 评论 128 浏览 评分:0.0
一看就懂的简单代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[6]={100,50,10,5,2,1};int main(…… 题解列表 2025年03月03日 0 点赞 0 评论 281 浏览 评分:0.0
状态管理+贪心 摘要:```cpp#include #include using namespace std;//状态管理加贪心int main(){ ios::sync_with_s…… 题解列表 2025年03月03日 0 点赞 0 评论 148 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 简单易懂的方法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//个,百,万是奇数位,十,千,十万是偶数位int ishaoshu(i…… 题解列表 2025年03月03日 6 点赞 1 评论 1272 浏览 评分:0.0