#include <cstdio>
#include <iostream>
using namespace std;
int GCD(int a, int b){
if (b == 0)return a;
else
return GCD(b, a % b);
}
int main(){
int a, b;
while (scanf("%d%d", &a, &b)){
printf("%d", (a * b) / GCD(a, b));
}
return 0;
}
求最小公倍数
最新推荐文章于 2022-08-08 00:06:10 发布