2025.7.21刷题记录 摘要:解题思路:等差数列第n项为 a1+(n-1)d注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ &nbs…… 题解列表 2025年07月21日 0 点赞 0 评论 218 浏览 评分:0.0
2025.7.21刷题记录 摘要:解题思路:pow(x,y) 求x的y次方注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2025年07月21日 1 点赞 0 评论 210 浏览 评分:0.0
题目 2777: 计算2的幂 摘要:解题思路:使用pow函数进行快速求解注意事项:pow函数里形参为double类型,返回值也是double类型参考代码:#include <iostream>#inc…… 题解列表 2025年07月21日 1 点赞 0 评论 275 浏览 评分:0.0
寻找最大数 摘要:解题思路:在c++中,有一个max()函数,可以快速找到最大值,但max()函数是对比两个数的大小,所以我们要用max()嵌套。注意事项:题解中用的是万能头文件,不习惯用万能头文件的同学请加上#inc…… 题解列表 2025年07月22日 0 点赞 0 评论 249 浏览 评分:0.0
2894 肿瘤检测 。题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){int a[…… 题解列表 2025年07月22日 0 点赞 0 评论 153 浏览 评分:0.0
整数序列的元素最大跨度值 给定一个长度为n的非负整数序列,请计算序列的最大跨度值(最大跨度值 = 最大值减去最小值)。 摘要:解题思路:通过循环将数组赋值后,将a[0]赋值给max和min分别代表最大值和最小值,接着进行循环比较,从a[1]对比到a[n-1]。如果a[j]大于max,那就max更新为a[j]的值。相反,如果a…… 题解列表 2025年07月22日 0 点赞 0 评论 285 浏览 评分:0.0
1098陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,…… 题解列表 2025年07月23日 1 点赞 0 评论 240 浏览 评分:0.0
2835:计算书费 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ float a[10]…… 题解列表 2025年07月23日 0 点赞 0 评论 217 浏览 评分: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 评论 199 浏览 评分:0.0
冒泡排序法-------编写题解 1006: [编程入门]三个数找最大值 摘要:解题思路:先降序排列,取数组第一个输出即可注意事项:参考代码:#include<stdio.h>#define n 3int main(){ int a, b, …… 题解列表 2025年07月24日 1 点赞 0 评论 769 浏览 评分:0.0