C++ 代码
#include<iostream>
using namespace std;
int max(int a,int b,int c){
return a>=b?a:b>=c?b:c;
}
int main(){
int a,b,c;
cin>>a>>b>>c;
int k=max(a,b,c);
int i=1;
while(i){
int t=k*i;
if(!(t%a)&&!(t%b)&&!(t%c)){
cout<<t;
break;
}
i++;
}
return 0;
}