题解列表

筛选

C语言 最小绝对值&

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#define LONG 10int main(){         int nums[LONG] ……

2790: 分段函数

摘要:解题思路:注意事项:参考代码:import sysx = float(input())if x < 0 or x >= 20:    sys.exit()elif x < 5:    print(&#……

2792: 三角形判断

摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().strip().split())if a + b > c and a + c > b and b + c > a:    ……

二级-求偶数和

摘要:参考代码如下 #include int main(void) { int n, x, i, sum = 0, t; scanf("%d", &n)……

结构体与时间设计C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Date{ int year; int mouth; int day;}data;int main(){ int i=0;……

自定义函数之整数处理

摘要:解题思路:1.提前自定义最大值函数,最小值函数2.利用for循环依次比较10个数,选出最小值并用 j 记录位置,将 arr[0] 与 arr[j] 互换其值3.同样利用上述思想实现 arr[9] 与最……

一种超简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int r,int c){    int a=1;    for(int i=0;i<c;i++)    {     ……