水..
主要是最大公因数要忘干净了
#include<iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<memory.h>
using namespace std;
long long shu[1200];
int ge;
void jinqu(string qq)
{
long long s=0;
int w=0;
for(int a=qq.size()-1;a>=0;a--)
{
w++;
s=s+(qq[a]-'0')*pow(10.0,double(w));
}
shu[ge]=s;
shu[ge]=shu[ge]/10;
ge++;
}
int divisor (int a,int b)
{
int temp;
while(b!=0)
{
temp=a%b;
a=b;
b=temp;
}
return a;
}
int main()
{
int a,b;
while(cin>>a>>b)
{
cout<<a*b/divisor(a,b)<<endl;;
}
return 0;
}