题解列表

筛选

C语言训练-排序问题<1>

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<4;i++)……

[编程入门]三个数字的排序

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<3;i++)……

快速排序练习

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){    cin>>n; for……

[编程入门]数组插入处理

摘要:解题思路:把新的插入变量带入兑换为其中一个比他大的量然后交换以此类推注意事项:参考代码:#include<stdio.h>int main(){ int s[9],i,t,x; for(i=0;i<9……

利用递归函数来求阶乘

摘要:解题思路:先定义一个函数,用递归思想求一个数的阶乘,再用for循环求1~30的每个数的阶乘,最后注意%.2e表示科学计数法并且保留两位小数注意事项:参考代码:def func(x):    if x=……

C++ 最小绝对值

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