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-11-25 09:15:27
gay is chimedragchaa
2022-11-25 09:13:48
chimedragchaa t1
2022-09-07 05:09:51
#include <bits/stdc++.h>
int a, b, i, c;
int main()
{
scanf("%d %d", &a, &b);
if (a>b) {
i=a ;
while (i>-12312412) {
if (i%a==0 && i%b==0) break ;
i++ ;
}
}
else {
i=b ;
while (i>-124432432) {
if (i%a==0 && i%b==0) break ;
i++ ;
}

}
printf("%d", i);
return 0;
}
2022-02-26 06:26:09
nice
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;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.