题解列表

筛选

[编程入门]利润计算

摘要:解题思路:        本人一开始便想到用if-else if来实现,感觉本题是不是太简单,直接分情况讨论呗,就是麻烦点,于是一直在想有没有方法可以写更少的代码。水平有限,最后还是采用else if……

[编程入门]利润计算(C语言)

摘要:解题思路:就是用很正常的if语句就行了注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x);     if(x>0&&x<=10……

数组插入处理

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>#include<stdio.h>int main (){ i……

无需指针的数字后移

摘要:解题思路:将最后的数字存起来,循环一次后放在第一位注意事项:参考代码:#include "stdio.h"int main(){    int a,b[1000],c,temp;    scanf("……

代码还是很简单的!!!!

摘要:解题思路                    题目要求用6.2f的格式,意思就是用占位符 %6.2f 的形式来输出               &nbs

1737: 二叉搜索树 C++/Java

摘要:##### 二叉搜索树又名二叉排序树 ##### 性质:二叉树的任一子树,其(结点值)左孩子l,num); } else{//num小于当前结点值,前往其右子树 create(……

编写题解 1197: 发工资咯

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; int M; while (scanf("%d", &n) != EOF)  {int k =……

十->二进制转换qwdddddqwdq

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int ten; int two[100]; while (scanf("%d", &ten) != EOF……