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

RGB7313 - ХИЕХ

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

Input

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

Output

ХИЕХ

Example

Input:
9 15

Output:
3

Нэмсэн: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-09-26 10:25:57
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
2022-07-25 08:52:33
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
2022-07-25 08:51:34
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
2022-06-30 11:44:00
#include<stdio.h>
int a,b,c;
int main()
{
scanf("%d %d",&a,&b);
for(int i=1; i<=a && i<=b; i++)
{
if (a%i==0 && b%i==0)
c = i;
}
printf("%d",c);
}
2022-06-27 12:36:57
ХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХХИЕХ
2022-06-27 12:29:36
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
2022-06-10 13:33:24
#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
int a,b;
cin>>a>>b;
cout<<__gcd(a,b);
return 0;
}khandmaa to tusa
2022-06-10 13:29:09
#include<iostream>
using namespace std;
int main()
{
long long int n,i=0,ans=1,m;
cin>>n;
m=n;
while(true){
i++;
if(n==1) {
ans=1;
break;
}
if(n%i==0) n=n/i;
else{
ans=0;
break;
}

}
if(ans==1){
i=0;
while(m>0){
i++;
m=m/i;
}
cout<<i-1;
}
else cout<<"No";
return 0;

}khandmaa to tusa
2022-03-27 08:00:30
togs-erdene t1 and stupet

Last edit: 2022-03-27 08:01:45
2022-03-16 03:10:30
#Python :)
import math
a, b = [int(x) for x in input().split()]
print(math.gcd(a,b))
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.