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
2024-02-04 13:08:53
Chipi chipi chapa chapa
Dubi dubi daba daba
Mágico mi dubi dubi
Boom, boom, boom, boom
Chipi chipi chapa chapa
Dubi dubi daba daba
Mágico mi dubi dubi
Booooooooooom
2024-01-31 02:13:44
chipi chipi chapa chapa rubi rubi raba raba wo xihuang bing chilling
2024-01-16 06:10:28
#include <bits/stdc++.h>
using namespace std;
int main (){
int a, b, c, x, ans;
cin >> a >> b >> c;
x = a * b / __gcd(a, b);
ans = c * x / __gcd(c, x);
cout << ans << endl;

return 0;
}

//a*b = hieh(a, b) * hbeh(a, b)
2023-12-27 15:23:24
int a,b,c;
cin>>a>>b>>c;

int result = 1;
int i=2;
while(i<=a||i<=b||i<=c){
if(a%i==0||b%i==0||c%i==0){
result = result * i; //2

if(a%i==0) a=a/i;//2
if(b%i==0) b=b/i;//3
if(c%i==0) c=c/i;//9

}else{
i=i+1;
}
}
cout << result;

return 0;
2023-11-20 12:38:43
dwhgjhgfuufsgygfagsyguyagsgfhgyysgasg
hi guy woolcome to my histrory irs s## lol f#rc# its so bab histoyire
2023-11-04 11:23:16
#include <iostream>

using namespace std;

int main()
{
int a, b, c, min;

cin >> a >> b >> c;

min = a;

if(min > b)
min = b;
if(min > c)
min = c;
for(int i = min ; i <= a * b * c ; i++)
{
if(i % a == 0 && i % b == 0 && i % c == 0)
{
cout << i;
break;
}
}
}
2023-10-20 20:00:25
#include <stdio.h>

int fun_1(int a, int b) {
while (b != 0) {
int temp = b;
b = a % b;
a = temp;
}
return a;
}

int fun_2(int a, int b) {
return (a * b) / fun_1(a, b);
}

int main() {
int a, b, c, res;

scanf("%d %d %d", &a, &b, &c);


int res1 = fun_2(a, b);
int res2 = fun_2(res1, c);

printf("%d", res2);

return 0;
}
ene shig bodson hun algo
2023-09-26 08:53:32
LOL


Last edit: 2023-09-26 08:53:56
2023-08-19 22:46:23
hope someone willl publish it >:)

Last edit: 2023-08-19 22:47:25
2023-05-10 11:48:04
hi no code here >:)
































































































































bro i said no code here











































































































































BRO STOP SCROLLING




































































































































I SAID STOP









































































































































ALR HERE IS THE CODE


















































































































































HAHA SIKE L BOZO
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.