题解列表

筛选

温度转换 题解

摘要:解题思路:直接套公式!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double f;int main(){     scanf("%l……

猴子吃桃的问题

摘要:解题思路:求原来的桃子数,这题也就是逆推法。注意事项:s初始值为1。参考代码:#include<bits/stdc++.h>using namespace std;int n,s=1;int main……

C++ 最小绝对值

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

利用递归函数来求阶乘

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

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

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

快速排序练习

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

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

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

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

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

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

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