#include "stdafx.h"
int Gcd(int a, int b)
{
int t;
if (a < b)
{
t = a;
a = b;
b = t;
}
do
{
t = a % b;
a = b;
b = t;
} while (b);
return a;
}
int Lcm(int a, int b)
{
return a*b / Gcd(a, b);
}
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("%d",Lcm(Lcm(a,b), Lcm(Lcm(b,c), Lcm(a, c))));
return 0;
}
0.0分
0 人评分