1011: [编程入门]最大公约数与最小公倍数 摘要:#include<stdio.h> int main() { int a,b,m,n; int gcd(int x,int y);//函数声明 int lcm(int…… 题解列表 2023年03月11日 0 点赞 0 评论 87 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数,递归 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int gcd(int m,int n){ if(m%n==0) return n…… 题解列表 2023年03月14日 0 点赞 0 评论 119 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:最大公约数a:满足 、m%a=0 and n%a=0.最小公倍数b:m*n/最大公约数.注意事项:b是一个大于或者等于m、n其中的最大整数的整数,它是m、n的整数倍。参考代码:a,b=map…… 题解列表 2023年03月18日 0 点赞 0 评论 157 浏览 评分:0.0
更相减损法 c++ 摘要:解题思路:更相减损法注意事项:参考代码:#include <iostream>using namespace std;int main() { int a,b; cin>>a>>b; int m = …… 题解列表 2023年03月20日 0 点赞 0 评论 107 浏览 评分:0.0
最大公约数与最小公倍数c 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; scanf("%d%d",&m,&n); int a,b,c,d; a…… 题解列表 2023年03月27日 0 点赞 0 评论 105 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:用列表很方便参考代码:a,b=map(int,input().split()) lis1=[] lis2=[] def f1(x,y): for i in range(1,x…… 题解列表 2023年03月29日 0 点赞 0 评论 148 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码://辗转相除法#include <stdio.h>int main() { int m, n; scanf("%d %d", &m, &n); int …… 题解列表 2023年04月18日 0 点赞 0 评论 274 浏览 评分:0.0
1011题: 最大公约数与最小公倍数 摘要:# 自己写的代码 ```c #include int main() { int a,b; int temp=0; scanf("%d %d",&a,&b); …… 题解列表 2023年04月25日 0 点赞 0 评论 161 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#includeint main() { int a,b,i,temp; scanf("%d %d",&a,&b); if(a<b){ temp=a; } …… 题解列表 2023年05月06日 0 点赞 0 评论 157 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scanne…… 题解列表 2023年05月21日 0 点赞 0 评论 198 浏览 评分:0.0