Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7316 - Гурван тооны ХБЕХ

Өгөгдсөн 3 натурал тооны хамгийн бага ерөнхий хуваагдагчийг (ХБЕХ) ол.

Input

Нэг мөрөнд 3 натурал тоо зайгаар тусгаарлагдан өгөгдөнө. Тоонууд 1200-аас ихгүй.

Output

ХБЕХ

Example

Input:

4 6 18

Output:

36


Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2020-06-20 07:56:40
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:39
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:39
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:39
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:39
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:39
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:39
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:11
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-06-20 07:56:11
#include <cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int z=a*b;
while(a!=b){
if(a>b){
a=a-b;
}else{
b=b-a;
}
}
int k=z/a;
int d=k*c;
while(k!=c){
if(k>c){
k=k-c;
}else{
c=c-k;
}
}
printf("%d",d/k);
} ez! suguudaa
2020-05-12 07:08:08
#include <iostream>
#include <algorithm>
using namespace std;

int main() {
int a , b , c;
scanf("%d %d %d " , &a , &b ,&c );
int ab = a * b / __gcd(a , b);
int abc =ab * c / __gcd(ab , c);
printf("%d" , abc);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.