题解列表

筛选

2025.7.21刷题记录

摘要:解题思路:pow(x,y) 求x的y次方注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ ……

题目 2777: 计算2的幂

摘要:解题思路:使用pow函数进行快速求解注意事项:pow函数里形参为double类型,返回值也是double类型参考代码:#include <iostream>#inc……

寻找最大数

摘要:解题思路:在c++中,有一个max()函数,可以快速找到最大值,但max()函数是对比两个数的大小,所以我们要用max()嵌套。注意事项:题解中用的是万能头文件,不习惯用万能头文件的同学请加上#inc……

2894 肿瘤检测 。题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){int a[……

1098陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,……

2835:计算书费

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ float a[10]……