刷题记录(头秃的第n天) 摘要:#include<stdio.h>int maxnum(int max,int min);int minnum(int max,int min);int main(){ int i,j,max,m…… 题解列表 2022年03月20日 0 点赞 0 评论 168 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:## 原题链接 **https://www.dotcpp.com/oj/problem1028.html** ## 解题思路(有两整数a和b) ### 一、最大公约数GCD #…… 题解列表 2022年03月26日 0 点赞 0 评论 298 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:def max_min(m,n): lst = [] for i in range(1,m): if m%i==0: ls…… 题解列表 2022年04月19日 0 点赞 0 评论 169 浏览 评分:0.0
[编程入门]自定义函数处理最大公约数与最小公倍 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>int main(){ int gongyinshu(int,int); int gongbeishu(int,int)…… 题解列表 2022年04月25日 0 点赞 0 评论 190 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int gys(int a,int b)//最大公约数{ for(i…… 题解列表 2022年04月29日 0 点赞 0 评论 163 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数(递归法) 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())def maxgongyue(m,n): if n != 0 : return maxgong…… 题解列表 2022年05月03日 0 点赞 0 评论 254 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 题解(c++简单 函数解决) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ scanf("%d%d",&a,&b)…… 题解列表 2022年05月09日 0 点赞 0 评论 191 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:#include int ji(int a,int b); int main() { int a=0,b=0; scanf("%d%d",&a,&b); ji(a,b); re…… 题解列表 2022年05月10日 0 点赞 0 评论 159 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:import java.io.*; /** * 最小公约数:从两数中小的那个数开始找,直到找到一个可以同时被两数整除的数为止 * 最小公倍数:两数相乘再除以最小公约数 */ p…… 题解列表 2022年05月12日 0 点赞 0 评论 161 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,m;int main(){ cin>>n>>m; f…… 题解列表 2022年05月16日 0 点赞 0 评论 151 浏览 评分:0.0