题解列表

筛选

判断数正负

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() {     int N;     scanf("%d",&N); ……

2790:分段函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { float N; scanf("%f",&N); if(0<=N && N<20) { ……

2841: 大整数加法

摘要:```cpp #include using namespace std; struct hp { int len; int s[1000]; }; void init(string……

编写题解 1098: 陶陶摘苹果

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

输出结果是“inf”的看过来

摘要:![](/image_editor_upload/20240806/20240806040232_77229.png) 结果不管输入什么都是inf 那是因为计算阶乘的时候,累乘的那个数如果没有初始……

宏定义秒了

摘要:解题思路:注意事项:宏定义的变量尽量用(),防止误运算参考代码:#include <stdio.h>#define MAX(a,b) ((a)>(b)?(a):(b))int main() {    ……

最直观的方法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void big(double a, double b,double c);void equal(d……