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 评论 31 浏览 评分:10.0
冒泡排序法-------编写题解 1006: [编程入门]三个数找最大值 摘要:解题思路:先降序排列,取数组第一个输出即可注意事项:参考代码:#include<stdio.h>#define n 3int main(){ int a, b, …… 题解列表 2025年07月24日 0 点赞 0 评论 35 浏览 评分: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 评论 24 浏览 评分: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
1098陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,…… 题解列表 2025年07月23日 0 点赞 0 评论 44 浏览 评分:0.0
整数序列的元素最大跨度值 给定一个长度为n的非负整数序列,请计算序列的最大跨度值(最大跨度值 = 最大值减去最小值)。 摘要:解题思路:通过循环将数组赋值后,将a[0]赋值给max和min分别代表最大值和最小值,接着进行循环比较,从a[1]对比到a[n-1]。如果a[j]大于max,那就max更新为a[j]的值。相反,如果a…… 题解列表 2025年07月22日 0 点赞 0 评论 36 浏览 评分:0.0
2025.7.22刷题记录 摘要:解题思路:fabs对浮点数求绝对值注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ dou…… 题解列表 2025年07月22日 0 点赞 0 评论 38 浏览 评分:0.0