题解列表
1041题 : 宏定义之找最大数
摘要:# 自己写的代码
```c
#include
#define qiumax(a,b,c) (a>b?(a>c?printf("%.3f\n",a):printf("%.3f\n",c)):(b>……
数字的处理与判断(不用字符数组的解法)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/*给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各……
1112: C语言考试练习题_一元二次方程(c语言)
摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float m,x1,x2,t; scanf("%d %d %d",&a,&b……
3009: 判断闰年(c语言)
摘要:解题思路:能被4整除但不能被100整除,能被400整除的年份就是闰年注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a)……
自定义函数之字符串反转
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 char……
Who's in the Middle
摘要:解题思路:利用数组,冒泡排序注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,j; int arr[10000]; scanf("%ll……
编写题解 2790: 分段函数if--else
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float a,y; scanf("%f",&a); if(a<5){ y=-……