题解 1011: [编程入门]最大公约数与最小公倍数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

最大公约数与最小公倍数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int a, b, temp;    scanf("%d%d", &a, &b);    int res……

简单又暴力

摘要:解题思路:逐层思考思考,简单暴力。注意事项:注意开始的位置。参考代码:#include<stdio.h>int main(void){ int m,n,a,b; scanf("%d%d",&m,&n)……

最大公约数与最小公倍数(简化)

摘要:解题思路:辗转相除法求得最大公约数,再求得最小公倍数。注意事项:参考代码:#include <stdio.h>int main(){ int a,b; int t;  scanf("%d %d", &……

自己瞎想的

摘要:#include<stdio.h>int main(){ int n,m,max,min; scanf("%d",&n); scanf("%d",&m); max=n>m?n:m; min=n<m?n……