最小公倍数一般比两数大,最小的时候为其中交大一个
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 0x3f3f3f3f
#define Max (int)2e5+10
int main()
{
int a,b , num1,num2;
while (~scanf("%d%d", &a,&b))
{
num1=a,num2=b;
if(a<b)
swap(a,b);
while(b!=0)
{
int c=a%b;
a=b;
b=c;
}
printf("%d\n",num1*num2/a);
}
return 0;
}