最大公约数与最小公倍数题解 摘要:解题思路:我们先根据输入的数可以确定约数和倍数肯定是在我们输入的两个数的乘积和1之间,这样我们的循环范围就可以确定了,正向的循环可以找出约数,而且会由大的数覆盖小的数,倍数从小开始找,找到就用brea…… 题解列表 2022年09月01日 0 点赞 0 评论 570 浏览 评分:7.3
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2022年09月02日 0 点赞 0 评论 1060 浏览 评分:7.3
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int n…… 题解列表 2022年09月02日 0 点赞 0 评论 665 浏览 评分:7.3
纯数学题,没意思 摘要:解题思路:注意事项:参考代码:a, b = map(int, input().split())c = abs(b - a)print(c - (a % c))…… 题解列表 2022年10月06日 2 点赞 4 评论 1406 浏览 评分:7.3
[编程入门]利润计算(方便易写,极易理解,请看注释) 摘要:```cpp #include using namespace std; int main(){ int p;//输入利润(profit) const int j=100000;//为…… 题解列表 2022年10月13日 0 点赞 0 评论 452 浏览 评分:7.3
输入输出练习之第二个数字 摘要:解题思路:定义三个变量,用scanf输入三个整数,用printf输出第二个整数注意事项:%d%d%d之间无任何字符参考代码:#include<stdio.h>int main(){int a,b,c;…… 题解列表 2022年10月19日 0 点赞 0 评论 641 浏览 评分:7.3
1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,d,e,f,g,h,i,j; cin >>a>>b…… 题解列表 2022年10月20日 0 点赞 0 评论 304 浏览 评分:7.3
C语言-矩阵交换行 摘要:解题思路:输入-改行-输出注意事项:改行的时候注意是一个二维数组参考代码:#include<stdio.h>int main(){ int n[5][5]; int m,a; int…… 题解列表 2022年10月21日 0 点赞 1 评论 777 浏览 评分:7.3
2762: 计算(a+b)*c的值 摘要:解题思路:直接带入!注意事项:无参考代码:#include<iostream> using namespace std; int main() { int a,b,c; ci…… 题解列表 2022年10月22日 0 点赞 0 评论 387 浏览 评分:7.3
计负均正(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip> …… 题解列表 2022年10月23日 0 点赞 0 评论 331 浏览 评分:7.3