#include <iostream>
usingnamespace std;
int gcd(int x,int y){
int temp;
while(y!=0){
temp=x%y;
x=y;
y=temp;
}
return x;
}
int main(){
int a,b,c;
cin>>a>>b>>c;
int temp=(a*b)/gcd(a,b);
int res=(temp*c)/gcd(temp,c);
cout<<res;
}
posted on
2018-03-26 22:27我吃你大西瓜
阅读(454)
评论(0)
编辑收藏举报