题解列表
编写题解 1009: [编程入门]数字的处理与判断【C++】
摘要:解题思路:这道题用数组做会方便一点。如果不想用数组做,就需要像下面这么麻烦。注意事项:建议还是学习用数组做参考代码:#include<iostream>using namespace std;int ……
自用if _else_语句
摘要:解题思路:if else语句注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b……
超级无敌简单易懂的最大公约数与最小公倍数解答
摘要:解题思路: 辗转相除法又称为欧几里德算法。这个方法大家已经都已经在数学上学过了。具体的步骤就是:用较小数除较大数,再用出现的余数(第一余数)去除除数,再用出现的余数(第二余数)去除第一余数,如……
用列表计算企业利润比较简单
摘要:解题思路:注意事项:参考代码:n = float(input())bonus = [1000000, 600000, 400000, 200000, 100000]tax = [0.01, 0.015……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int a[10];
for (int i = 0; i < 10; i++)
……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int a = 0, b = 0, t;
for (int i = 0; i < ……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int gcd(int a, int b)//最大公约数
{
if (b == 0)
return ……
朴实无华的解法,只要你懂结构体,冒泡排序,strcmp函数,就能看得懂。
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>struct student{ char name[101]; int age; ……