题解列表

筛选

getchar用法。。。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,m; char str[100]; scanf("%d",&n); getchar(); get……

数据结构-快速排序

摘要:解题思路:注意事项:    存储数组0位置设为空,起初存数。参考代码:#include<iostream>using namespace std;int partition(int* a,int lo……

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)……