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-10-18 05:06:16
int nu1,b=0,nu2;
Scanner scan = new Scanner (System.in);
nu1=scan.nextInt();
nu2=scan.nextInt();
for(int i=1;i<nu1;i++)
{
if(nu1%i==0 && nu2%i==0)
{
b=i;
}
}
System.out.print(b);
2022-10-02 14:30:18
hihi


Last edit: 2022-10-02 14:30:30
2022-10-02 13:29:42
int main()
{

int a, b , c , i;
cin >> a >> b ;
for ( i=( a >b ? a : b ) ; i >=1 ; i-- )
if ( a % i== 0 && b % i == 0 )
break ;

cout << i;
return 0;
}
archaaguu amitad mine " copy "
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
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.