摘要: ###思路 先求两个数的最小公倍数,再求和第三个数的最小公倍数 两个数求最小公倍数:辗转相除法求最大公约数,两个数的乘积除求出的最大公约数得到的数即为最小公倍数。 #include <iostream> using namespace std; int gcd(int a,int b){ if(a% 阅读全文
posted @ 2021-04-08 19:07 菜菜ee 阅读(51) 评论(0) 推荐(0)