题解列表

筛选

C语言 阶乘数列

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){         double factorial( int n);         double Sn = 0……

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(&#……