题解列表

筛选

人民币为什么没有20.。。。

摘要:解题思路:        先把人民币的面值都定义出来,然后看题目是多组输入,所以就要用到while来输入多组                      输入一个n表示人数,后面再输入n个人的工资,题目……

十->二进制转换

```cpp#include#include#includetypedefstructSNode{longlongdata;structSNode*next;}SNode,*LinkStack;intInitSNode(LinkStack&S){S=(SNode*)malloc(sizeof(SNod

二级c语言-计负均正(C++ 代码)

解题思路:1、先定义20大小的数组,两个计数count,分别用来计算正数和负数的个数2、定义sum用来计算正数的和,用ave来计算正数的平均数注意事项:1、计算平均数要记得类型转换2、输出负数个数(count1)后要记得换行参考代码:#includeusingnamespacest

还行,一般般吧

摘要:解题思路:注意事项:参考代码:def hanshu(a, b, c):    det = b ** 2 - 4 * a * c    if det > 0:        x1 = (-b + pow……

记录一蛤 T#T

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