编写题解 3010: 奇偶数之和 摘要:解题思路:注意事项:注意要定义两个不同的sum!参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n;cin>…… 题解列表 2024年12月08日 0 点赞 2 评论 287 浏览 评分:9.9
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年12月08日 1 点赞 2 评论 414 浏览 评分:10.0
2751: 超级玛丽游戏题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"…… 题解列表 2024年12月08日 1 点赞 2 评论 325 浏览 评分:9.9
1123: C语言训练-列出最简真分数序列* 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i = 1;i<40;i++) if (i == 1) { printf(…… 题解列表 2024年12月08日 0 点赞 0 评论 273 浏览 评分:0.0
循环的嵌套 处理 输入与输出 摘要:解题思路:通过两层循环达到输入二维数组以及输出二维数组的效果,从而达到二维数组转置的效果。注意事项:在使用printf输出时,注意目标所需要的效果,即space,换行。参考代码:#include <s…… 题解列表 2024年12月08日 1 点赞 0 评论 392 浏览 评分:10.0
蓝桥杯算法提高-快速排序C++ 摘要:解题思路:使用快速排序标准解答注意事项:参考代码:#include<iostream>using namespace std;const int MAX=1e5+10;int a[MAX];int p…… 题解列表 2024年12月07日 0 点赞 0 评论 167 浏览 评分:0.0
【超详细】判断高精度数字的奇偶性(C/C++) 摘要:解题思路:奇偶性只需要判断最后一位数字即可,所以我们的思路是:用一个字符串读入一个整数,之后把这个字符串最后面的字符数字转化为整形数字,然后判断这个数是偶数还是奇数就行。注意事项:有多组数据输入,不要…… 题解列表 2024年12月07日 0 点赞 0 评论 343 浏览 评分:9.9
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum(int n){ int sum = 0; for(int i = 1; i < n; i++) if(…… 题解列表 2024年12月07日 0 点赞 0 评论 386 浏览 评分:0.0
2544:N以内累加求和(使用到for循环) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(int argc, char *argv[]) { int N,i; int sum=0; sca…… 题解列表 2024年12月07日 0 点赞 0 评论 425 浏览 评分:10.0
3010: 奇偶数之和(使用到for循环语句) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(int argc, char *argv[]) { int n,i; int sum1=0,sum2=0…… 题解列表 2024年12月07日 0 点赞 0 评论 292 浏览 评分:10.0