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.|

RGB7314 - ХБЕХ

Өгөгдсөн хоёр натурал тооны хамгийн бага ерөнхий хуваагдагчийг ол.

Input

Нэг мөрөнд хоёр натурал тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

ХБЕХ

Example

Input:
9 15

Output:
45

Нэмсэн:Bataa
Огноо:2013-01-11
Хугацааны хязгаарлалт: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
2022-01-05 14:27:37
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d",&a,&b);
c=a;
while(true)
{
if(c%a==0 && c%b==0) break;
c++;
}
printf("%d",c);
}
pls copy this
nodlin jiliin bodolt min bas baiv haah
2021-04-17 17:54:48
#include<stdio.h>
int main()
{
long long a,b,i,k;
scanf("%lld %lld",&a,&b);
i=1;
while(true)
{
if(a*i%b==0 ) break;
i++;
}
printf("%lld",a*i);
return 0;
}
hello dahiad bi bn ahaha
2021-02-21 16:45:25
n m ees ih uyed for dotor i = n geed i aa n eer nemegduuleed m d huvaagdtal yavuul. tgeed nuguuduh uu m n ees ih uyed gej bgaad esergeer n bod. tentsuu uyed gejaagaad bas neg yum hiichih tgeel boloo. Bur bolku bol bodoltiig n deerees huul lol.
2021-02-06 12:54:52
#include<bits/stdc++.h>
using namespace std;
main(){
int a,b,c,d,e;
cin>>a>>b;
d=a;
e=b;
if(a>=b&&a%b!=0){
a=a%b;
}
if(b>=a&&b%a!=0){
b=b%a;
}
if(a>=b&&a%b==0){
c=b;
}
if(b>=a&&b%a==0){
c=a;
}
if(a>=b&&a%b!=0){
a=a%b;
}
if(b>=a&&b%a!=0){
b=b%a;
}
if(a>=b&&a%b==0){
c=b;
}
if(b>=a&&b%a==0){
c=a;
}


cout<<(d*e)/c;
return 0;
}
2021-01-25 04:58:12
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, v;
cin>>a>>b;
v=1;
while (a>=v && b>=v){
if (a%v==0 && b%v==0){
c=v;
v+=1;
}
else {v+=1;}
}
cout<<c<<endl;
return 0;
}
2020-11-14 18:20:24
#include<stdio.h>

int main()
{
int a, b, c, d;
scanf("%d %d", &a, &b);
for(int i = 1; i <= a && i <= b; i++)
{
if(a % i == 0 && b % i == 0)
c = i;
d = a * b / c;
}
printf("%d", d);
return 0;
}
2020-08-18 10:42:41
// BEST DODO
#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
int a,b,c ,d ;
cin>>a>>b;
c = __gcd(a,b);
d = a*b/c;
cout<<d;
return 0;
}
2020-05-20 09:35:24
n
2016-03-22 03:17:39
sdahfghf
2016-03-14 08:27:35

yuiniy
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.