2025/7/24刷题记录 摘要:解题思路:switch 可以将输出结果一样的case放一部分不写break到最后一个再写 如果switch 如果前面的case匹配成功但是没有break会继续往下执行注意事项:参考代码:#includ…… 题解列表 2025年07月24日 0 点赞 0 评论 89 浏览 评分:0.0
2025/7/24刷题记录 摘要:解题思路:if...elseif 如果前面的if成功匹配后面的elseif不管匹配成功不成功都不会执行了 但是if...if前面的if匹配执行后后面的if如果也匹配还会继续执行注意事项:参考代码:#i…… 题解列表 2025年07月24日 0 点赞 0 评论 92 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年07月24日 0 点赞 0 评论 47 浏览 评分:0.0
1032:[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:要写括号参考代码:#include<bits/stdc++.h>using namespace std;int q(string a,string b){ …… 题解列表 2025年07月24日 1 点赞 1 评论 53 浏览 评分:10.0
简单思路解求矩阵的两对角线上的元素之和 摘要:解题思路:利用斜对线的数组编号注意事项:奇数的时候中间的那个数是多加了一次,要减掉参考代码:#include<stdio.h>int main(){ int n,…… 题解列表 2025年07月24日 1 点赞 0 评论 33 浏览 评分:8.0
2936:简单算数表达式求值;;;;;;题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int a,char c,int b){&nbs…… 题解列表 2025年07月24日 1 点赞 0 评论 33 浏览 评分:10.0
冒泡排序法-------编写题解 1006: [编程入门]三个数找最大值 摘要:解题思路:先降序排列,取数组第一个输出即可注意事项:参考代码:#include<stdio.h>#define n 3int main(){ int a, b, …… 题解列表 2025年07月24日 0 点赞 0 评论 37 浏览 评分:0.0
2816:统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[110],s=0; cin>…… 题解列表 2025年07月24日 0 点赞 0 评论 26 浏览 评分:0.0
3020 :正确题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m=0;&…… 题解列表 2025年07月23日 0 点赞 0 评论 52 浏览 评分:0.0
2835:计算书费 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ float a[10]…… 题解列表 2025年07月23日 0 点赞 0 评论 34 浏览 评分:0.0