node_ids listlengths 4 1.4k | edge_index listlengths 1 2.22k | text listlengths 4 1.4k | source stringlengths 14 427k |
|---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
86,
11
],
[
86,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArray = br.readLine().split(\" \");\... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strArray = br.readLine().split(" ");
int a = Integer.pa... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
... | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n long x, y, r, temp;\n\n x = stdIn.nextLong();\n y = stdIn.nextLong();\n\n if (x < y) {\n temp = x;\n x = y;\n y =... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
long x, y, r, temp;
x = stdIn.nextLong();
y = stdIn.nextLong();
if (x < y) {
temp = x;
x = y;
y = temp;
}
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
17,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
0,
13,
17,
0,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int x = Math.max(a, b);\n int y = Math.min(a, b);\n boolean equal = true;\n if(x == y) {\n System.out.println(x);... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int x = Math.max(a, b);
int y = Math.min(a, b);
boolean equal = true;
if(x == y) {
System.out.println(x);
equal = f... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
42,
17,
30,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
0,
13,
13,
0,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n\n int rest;\n while(true){\n rest = x % y;\n if(rest == 0){\n System.out... | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int rest;
while(true){
rest = x % y;
if(rest == 0){
System.out.println(y);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int x,y,p,q,tmp;\n x=scan.nextInt();\n y=scan.nextInt();\n \n p=Math.max(x,y);\n q=Math.min(x,y);\n while(p%q!=0){\n tmp... | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int x,y,p,q,tmp;
x=scan.nextInt();
y=scan.nextInt();
p=Math.max(x,y);
q=Math.min(x,y);
while(p%q!=0){
tmp=p%q;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
42,
2,
13,
17,
30,
0,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*; \n\npublic class Main{\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int x,y;\n int t;\n int num;\n x = stdIn.nextInt();\n y = stdIn.nextInt();\n\n if(x>y){\n t=y;\n y=x;\n ... | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int x,y;
int t;
int num;
x = stdIn.nextInt();
y = stdIn.nextInt();
if(x>y){
t=y;
y=x;
x=t;
}
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
13,
30,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
... | [
"import java.io.*;\n\nclass Main{\n \n public static int max(int i, int k){\n if(k < i){\n return i;\n }else{\n return k;\n }\n\n }\n\n public static void main(String[] args){\n\n BufferedReader reader = new BufferedReader(new... | import java.io.*;
class Main{
public static int max(int i, int k){
if(k < i){
return i;
}else{
return k;
}
}
public static void main(String[] args){
BufferedReader reader = new BufferedReader(new InputStreamReader(S... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
29,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.println(gcd(a, b));\n }\n static int gcd (int a, int b) {\n int num;\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println(gcd(a, b));
}
static int gcd (int a, int b) {
int num;
while((num = a%b... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
30,
4,
13,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int r = 0;\n if(a<=b){\n swap(a, b);\n }\n while(b > 0){\n r = a % b;\n a = b;\n b = r;\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int r = 0;
if(a<=b){
swap(a, b);
}
while(b > 0){
r = a % b;
a = b;
b = r;
}
System.out.pri... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
18,
13,
17,
18,
13,
17,
30,
41,
13,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
39,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
... | [
"import java.io.*;\n\nclass Main{\n static void sort(int[] A){\n if(A[0]<A[1]){\n int t = A[0];\n A[0] = A[1];\n A[1] = t;\n }\n }\n public static void main(String[] args) throws IOException{\n ... | import java.io.*;
class Main{
static void sort(int[] A){
if(A[0]<A[1]){
int t = A[0];
A[0] = A[1];
A[1] = t;
}
}
public static void main(String[] args) throws IOException{
Buf... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
41,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] n = line.split(\" \");\n\n\t\tint x = Integer.parseInt(n[0]);\n\t\tint ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] n = line.split(" ");
int x = Integer.parseInt(n[0]);
int y = Integer.parseInt(n[1]);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner number = new Scanner(System.in);\n\t\tint a = number.nextInt();\n\t\tint b = number.nextInt();\n\t\tint c;\n\n\t\tif(a < b) {\n\t\t\tc = a;\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}\n\t\tdo {\n\t\t\tc = b;\n\t\t\tb... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner number = new Scanner(System.in);
int a = number.nextInt();
int b = number.nextInt();
int c;
if(a < b) {
c = a;
a = b;
b = c;
}
do {
c = b;
b = a % b;
a = c;
if(b == 0) {
b = a;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
42,
17,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
41,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n // System.out.println(147 105);\n // System.out.println(105 % 42);\n // System.out.println(42 % 21);\n\n Scanner sc = new Scanner(System.in);\n String[] a = sc.nextLine().split(\" \")... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// System.out.println(147 105);
// System.out.println(105 % 42);
// System.out.println(42 % 21);
Scanner sc = new Scanner(System.in);
String[] a = sc.nextLine().split(" ");
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
2,
13,
13,
17,
30,
41,
13,
13,
0,
13,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
... | [
"import java.util.Scanner;\nclass Main\n{\n public static void main(String args[])\n {\n\tScanner scan=new Scanner(System.in);\n\tint a,b,temp;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\tif(b>a)\n\t {\n\t\ttemp=a;\n\t\ta=b;\n\t\tb=temp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tint tmp=b;\n\t\tb=a%b;\n\t\t... | import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner scan=new Scanner(System.in);
int a,b,temp;
a=scan.nextInt();
b=scan.nextInt();
if(b>a)
{
temp=a;
a=b;
b=temp;
}
while(a%b!=0)
{
int tmp=b;
b=a%b;
a=tmp;
}
System.out.println(b);
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
14,
2,
2,
2,
13,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
30,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
67,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.text.DecimalFormat;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws java.io.IOException{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n int tmp = 0;\n while ... | import java.text.DecimalFormat;
import java.util.*;
public class Main {
public static void main(String[] args) throws java.io.IOException{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
int tmp = 0;
while (true){
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
87,
11
],
[
87,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\n\n/*Question\n/??????????????¶??° x, y ?????\\?????¨???????????????????????§??¬?´???°????±???????????????°????????????????????????????????????\n/???????????´??° x ??¨ y ???????????????x ?? d ??¨ y ?? d ??????????????¨?????? ... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;
/*Question
/??????????????¶??° x, y ?????\?????¨???????????????????????§??¬?´???°????±???????????????°????????????????????????????????????
/???????????´??° x ??¨ y ???????????????x ?? d ??¨ y ?? d ??????????????¨?????? 0 ??¨?????? ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
42,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(), b = sc.nextInt();\n\n while(a!=0 && b!=0) // until either one of them is 0\n {\n int c = b;\n b = a%b;\n ... | import java.util.Scanner;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(), b = sc.nextInt();
while(a!=0 && b!=0) // until either one of them is 0
{
int c = b;
b = a%b;
a = c;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
0,
13,
13,
42,
17,
30,
14,
2,
2,
13,
13,
17,
30,
29,
13,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main\n{\n public static int gcd(int x, int y) {\n int max, min, temp;\n if(x > y){\n max = x;\n min = y;\n } else {\n max = y;\n min = x;\n }\n \n while(true){\n if(max % mi... | import java.util.Scanner;
public class Main
{
public static int gcd(int x, int y) {
int max, min, temp;
if(x > y){
max = x;
min = y;
} else {
max = y;
min = x;
}
while(true){
if(max % min == 0){
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong x = sc.nextLong();\n\t\tlong y = sc.nextLong();\n\n\t\tsc.close();\n\n\t\tif(y > x) {\n\t\t\tlong tmp;\n\t\t\ttmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\n\t\tl... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long y = sc.nextLong();
sc.close();
if(y > x) {
long tmp;
tmp = x;
x = y;
y = tmp;
}
long ans = gcd(x, y);
System.out.println(ans);
}
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
13,
17,
30,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
73,
11
],
[
73,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.util.Scanner;\n\n/**\n * Created by YuyaKita on 16/07/13.\n */\npublic class Main {\n\n public static void main(String[] args){\n // write your code here\n \n Scanner scan = new Scanner(System.in);\n i... |
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
* Created by YuyaKita on 16/07/13.
*/
public class Main {
public static void main(String[] args){
// write your code here
Scanner scan = new Scanner(System.in);
int x,y,temp;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
2,
13,
13,
17,
30,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tint x = scan.nextInt();\n\tint y = scan.nextInt();\n\tif (x < y) {\n\t int tmp = y;\n\t y = x;\n\t x = tmp;\n\t}\n\twhile (x % y != 0) {\n\t int tmp = y;\n\t y = x ... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
if (x < y) {
int tmp = y;
y = x;
x = tmp;
}
while (x % y != 0) {
int tmp = y;
y = x % y;
x = tmp;
}
System... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
79,
11
],
[
79,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tl... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strArr = br.readLine().split(" ");
long a = Long.valueOf(s... |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
29,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.util.*;\n\nclass Animal\n{\n String name;\n String genus;\n int region;\n\n public Animal(String name, String genus, int region)\n {\n this.name = name;\n this.genus = genus;\n this.region = region;\n }\n\n public int getRegion()\n {\n return this.r... |
import java.util.*;
class Animal
{
String name;
String genus;
int region;
public Animal(String name, String genus, int region)
{
this.name = name;
this.genus = genus;
this.region = region;
}
public int getRegion()
{
return this.region;
}
publi... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
13,
13,
13,
41,
13,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
285,
11
],
[
285,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String[] str = br.readLine().spl... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String[] str = br.readLine().split(" ");
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
42,
17,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
14,
2,
13,
17,
3,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\twhile (true) {\n\t\t\tif (x < y) {\n\t\t\t\tint tmp1 = x;\n\t\t\t\tx = y;\n\t\t\t\ty = tmp1;\n\t\t\t}\n\t\t\tint tm... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
while (true) {
if (x < y) {
int tmp1 = x;
x = y;
y = tmp1;
}
int tmp2 = y;
y = x % y;
x = tmp2;
if (y == 0)
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
8,
2,
13,
13,
4,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint num1 = Integer.parseInt(s.next());\n\t\tint num2 = Integer.parseInt(s.next());\n\t\tint sub;\n\t\t\n\t\tif(num2 > num1){\n\t\t\tsub = num2;\n\t\t\tnum2 = num1;\n\t\t\tnum... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int num1 = Integer.parseInt(s.next());
int num2 = Integer.parseInt(s.next());
int sub;
if(num2 > num1){
sub = num2;
num2 = num1;
num1 = sub;
}
System.out.println(num... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
30,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\nclass Main{\n\tpublic static void main(String[]agrs){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tSystem.out.println(gcd(x,y));\n\t}\n\tstatic int gcd(int x, int y){\n\t\tif(y == 0){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn gcd(y... | import java.util.Scanner;
class Main{
public static void main(String[]agrs){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println(gcd(x,y));
}
static int gcd(int x, int y){
if(y == 0){
return x;
}else{
return gcd(y, x % y);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
2,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n long x=scanner.nextLong();\n long y=scanner.nextLong();\n System.out.println(gcd(x,y));\n }\n public static lo... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner scanner =new Scanner(System.in);
long x=scanner.nextLong();
long y=scanner.nextLong();
System.out.println(gcd(x,y));
}
public static long gcd(long x,long... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
12,
13,
30,
14,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
95,
9
],
[
9,
10
],
[
95,
11
],
[
11,
12
],
[
95,
13
],
[
13,
14
]... | [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n \n long a, b;\n long ans;\n\n void run(){\n\twhile(sc.hasNext()){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t if(a!=0 && b!=0)\n\t\ts... | import java.util.*;
public class Main{
public static void main(String[] args){
new Main().run();
}
Scanner sc = new Scanner(System.in);
long a, b;
long ans;
void run(){
while(sc.hasNext()){
a = sc.nextInt();
b = sc.nextInt();
if(a!=0 && b!=0)
solve();
}
}
void ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
42,
40,
2,
13,
13,
30,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\npublic class Main{\n\npublic static void main(String[] args){\n\t\n\tScanner sc = new Scanner(System.in);\n\tint a = sc.nextInt();\n\tint b = sc.nextInt();\n\tint c;\n\twhile(!(a==b)){\n\t\tif(a<b){\n\t\t\tc=b-a;\n\t\t\tb=c;\n\t\t}else{\n\t\t\tc=a-b;\n\t\t\ta=c;\n\t\t}\n\t}\n\tSystem.out.print... | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c;
while(!(a==b)){
if(a<b){
c=b-a;
b=c;
}else{
c=a-b;
a=c;
}
}
System.out.println(a);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputS... | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
4,
13,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt();\n\t\tint y = scn.nextInt();\n\n\t\tif (x >= y) {\n\t\t\tSystem.out.println(calculate(x, y));\n\t\t} else if (x < y) {\n\t\t\tSystem.out.println(calcula... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int x = scn.nextInt();
int y = scn.nextInt();
if (x >= y) {
System.out.println(calculate(x, y));
} else if (x < y) {
System.out.println(calculate(y, x));
}
}
private stati... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
... | [
"import java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String input = new String(in.readLine());\n String[] inputArr = input.split(\" \");\n int x = Integer.parseInt(inputArr[0... | import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String input = new String(in.readLine());
String[] inputArr = input.split(" ");
int x = Integer.parseInt(inputArr[0]);
int y... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
85,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n \npublic class Main\n{\n\tpublic static void main (String[] args) throws Exception\n\t{\n\t\tBufferedReader stdReader =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tString natural[] = stdReader.readLine().split(\" \",0);\n\t\tin... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main
{
public static void main (String[] args) throws Exception
{
BufferedReader stdReader =
new BufferedReader(new InputStreamReader(System.in));
String natural[] = stdReader.readLine().split(" ",0);
int x = Integer.parseInt(natu... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
17,
42,
2,
0,
13,
2,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
... | [
"import java.util.*;\nimport java.lang.*;\n\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint input1;\n\t\tint input2;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// String inputline = sc.next();\n\t\t// String[] inputArray = inputline.split(\"\\\\s\");\n\t\t// ... | import java.util.*;
import java.lang.*;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
int input1;
int input2;
Scanner sc = new Scanner(System.in);
// String inputline = sc.next();
// String[] inputArray = inputline.split("\\s");
// input1 = Integer.parseInt(inputArray... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
30,
0,
13,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] atgs) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint gcd = 0;\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tgcd = calculation(x, y, gcd);\n\t\t}\n\t\tSystem.o... | import java.util.Scanner;
public class Main {
public static void main(String[] atgs) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int gcd = 0;
if (x == y) {
gcd = x;
} else {
gcd = calculation(x, y, gcd);
}
System.out.println(gcd);
sc.close();
}
public... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
93,
11
],
[
93,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\n\npublic class Main{\n \n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] input = br.readLine().spl... | import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] input = br.readLine().split(" ");
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
4,
18,
13,
41,
13,
0,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
123,
11
],
[
123,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n long a,b,gcd;\n ... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
long a,b,gcd;
Stri... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.io.*;\n \nclass Main {\n public static void main(String[] args) {\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n String[] nums = kb.readLine().split( \" \" );\n int a = Integer.parseInt( nums[0] );\n int b = In... | import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
String[] nums = kb.readLine().split( " " );
int a = Integer.parseInt( nums[0] );
int b = Integer.parseInt(... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.InputMismatchException;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tstatic class GreatestCommonDivisor {\n\t\tpublic void greatestcommondivisor (InputReader ir) {\... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.InputMismatchException;
import java.util.StringTokenizer;
class Main {
static class GreatestCommonDivisor {
public void greatestcommondivisor (InputReader ir) {
//2つの自然数入力... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a, b;\n\t\ta = sc.nextLong();\n\t\tb = sc.nextLong();\n\t\tlong tmp = 0;\n\t\tif (a < b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a % b != 0) ... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a, b;
a = sc.nextLong();
b = sc.nextLong();
long tmp = 0;
if (a < b) {
tmp = a;
a = b;
b = tmp;
}
while (a % b != 0) {
tmp = a;
a = b;
b = tmp % b;
}
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
29,
14... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\teuclid(x,y);\n\t}\n\tpublic static void euclid(int x , int y)\n\t{\n\t\tint temp;\n\t\tif (x == 0 || y =... | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
euclid(x,y);
}
public static void euclid(int x , int y)
{
int temp;
if (x == 0 || y == 0) {
System.out.println((x+y));
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
42,
17,
30,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
30,
0,
13,
13,
0,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n \n while(true){\n int result = a % b;\n if(result == 0){\n System.out.pri... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
while(true){
int result = a % b;
if(result == 0){
System.out.println(b);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
42,
2,
13,
17,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int x = stdIn.nextInt();\n int y = stdIn.nextInt();\n\n if (x < y) {\n int t = x;\n x = y;\n y = t;\n }\n x = x % y;\n\n while (x != 0) {\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
int y = stdIn.nextInt();
if (x < y) {
int t = x;
x = y;
y = t;
}
x = x % y;
while (x != 0) {
int t = x;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
2,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint x=cin.nextInt(),y=cin.nextInt();\n\t\tint m=x,n=y,k=x*y;\n\t\t\n\t\twhile(k!=0) {\n\t\t\t k=m%n;\n\t\t\t m=n;n=k;\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n\n}\n",
"impo... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
int x=cin.nextInt(),y=cin.nextInt();
int m=x,n=y,k=x*y;
while(k!=0) {
k=m%n;
m=n;n=k;
}
System.out.println(m);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
13,
23,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n System.out.println(gcd(x,y));\n }\n \n public static int gcd(int x,... | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println(gcd(x,y));
}
public static int gcd(int x, int y) {
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
13,
13,
13,
30,
4,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
14... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] arg){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(a >= b){\n\t\t\tgcd(a,b);\n\t\t}else{\n\t\t\tgcd(b,a);\n\t\t}\n\t}\n\t\n\tstatic void gcd(int n,int m){\n\t\tif((n % m) ==... | import java.util.Scanner;
public class Main {
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a >= b){
gcd(a,b);
}else{
gcd(b,a);
}
}
static void gcd(int n,int m){
if((n % m) == 0) {
System.out.println(m);
}else if(... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong x = scan.nextLong();\n\t\tlong y = scan.nextLong();\n\t\tscan.close();\n\t\tlong smaller = Math.min(x, y);\n\t\tlong bigger = Math.max(x, y);\n\t\tSystem.out.println(Gr... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long x = scan.nextLong();
long y = scan.nextLong();
scan.close();
long smaller = Math.min(x, y);
long bigger = Math.max(x, y);
System.out.println(GreatestCommonDivisor(bigger, sm... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
30,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
4,
13,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\tint gcd = 1, n;\n\t\tscan.close();\n\t\t\n\t\tif ( x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tif (x > y) {\n... | import java.util.Scanner;
public class Main {
public static void main (String [] args) {
Scanner scan = new Scanner (System.in);
int x = scan.nextInt();
int y = scan.nextInt();
int gcd = 1, n;
scan.close();
if ( x == y) {
gcd = x;
} else {
if (x > y) {
n = x % y;
gcd = Gcd(y,n);
}els... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
13,
13,
30,
14,
2,
2,
13,
13,
17,
30,
3,
41,
13,
13,
0,
13,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n int x = in.nextInt();\n int y = in.nextInt();\n \n if (y > x) {\n \tint tmp = x;\n \tx = y;\n \ty = tmp;\n }\n \n... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int x = in.nextInt();
int y = in.nextInt();
if (y > x) {
int tmp = x;
x = y;
y = tmp;
}
while (x >= y) {
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
17,
0,
18,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
120,
5
],
[
120,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
... | [
"import java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tlong a = Long.parseLo... | import java.io.*;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] str = br.readLine().split(" ");
long a = Long.parseLong(str[0]);
long b = Long.p... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
90,
11
],
[
90,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] lines = br.readLine().split(" ");
l... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
0,
13,
13,
41,
13,
11,
1,
2,
0,
13,
2,
13,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint num1 = scan.nextInt();\n \tint num2 = scan.nextInt();\n \tint x;\n \tint y;\n \t\n \tif(num1 > num2){\n \t\tx = num1;\n \t\ty = num2;\n \t}else{\n ... | import java.util.Scanner;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int num1 = scan.nextInt();
int num2 = scan.nextInt();
int x;
int y;
if(num1 > num2){
x = num1;
y = num2;
}else{
x = num2;
y = num1;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint M = Integer.parseInt(sc.next());\n\t\t\tint c =gcd(N,M);\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}\n\tp... | import java.util.Scanner;
class Main {
public static void main(String[] args){
final int Number=100;
try(Scanner sc = new Scanner(System.in)){
int N = Integer.parseInt(sc.next());
int M = Integer.parseInt(sc.next());
int c =gcd(N,M);
System.out.println(c);
}
}
public static int gcd(int N, int M){
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n private static int gcd(int a, int b){\n if(b == 0) return a;\n else return gcd(b, a%b);\n }\n\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt();\n int b = in... | import java.util.Scanner;
public class Main {
private static int gcd(int a, int b){
if(b == 0) return a;
else return gcd(b, a%b);
}
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
13,
13,
30... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\n\nclass Main {\n static int gcd (int x, int y) {\n int temp;\n while((temp = x%y)!=0) {\n x = y;\n y = temp;\n }\n return y;\n }\n\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n \n ... | import java.util.Scanner;
class Main {
static int gcd (int x, int y) {
int temp;
while((temp = x%y)!=0) {
x = y;
y = temp;
}
return y;
}
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextI... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String[] input = sc.nextLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n \n System.out.println(gcd... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] input = sc.nextLine().split(" ");
int a = Integer.parseInt(input[0]);
int b = Integer.parseInt(input[1]);
System.out.println(gcd(a,b));
}
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
42,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int x = Integer.parseInt(scanner.next());\n int y = Integer.parseInt(scanner.next());\n\n if (x == y) {\n System.out.println(x);\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = Integer.parseInt(scanner.next());
int y = Integer.parseInt(scanner.next());
if (x == y) {
System.out.println(x);
return;... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
17,
42,
17,
30,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\n\t\t// a > b ??¨????????¢????????????\n\t\tif (a < b) {\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
// a > b ??¨????????¢????????????
if (a < b) {
long temp = a;
a = b;
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(S... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) thro... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
0,
13,
13,
41,
13,
2,
13,
13,
42,
2,
13,
17,
30,
0,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int lower;\n int bigger;\n if (a > b) {\n lower = b;\n bigger = a;\n } else {\n lower = a;\n bigge... | import java.util.Scanner;
class Main {
public static void main(String... args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int lower;
int bigger;
if (a > b) {
lower = b;
bigger = a;
} else {
lower = a;
bigger = b;
}
in... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\n/**\n * Created by shoya on 2017/04/11.\n */\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n System.out.println(GCJ(sc.nextInt(), sc.nextInt()));\n }\n\n static int GCJ(int a, int b){\n if (a < b){\n ... | import java.util.Scanner;
/**
* Created by shoya on 2017/04/11.
*/
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println(GCJ(sc.nextInt(), sc.nextInt()));
}
static int GCJ(int a, int b){
if (a < b){
int tmp... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
42,
2,
2,
13,
13,
17,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int x = Integer.parseInt(line[0]);\n int y = Integer.parse... | import java.io.*;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] line = br.readLine().split(" ");
int x = Integer.parseInt(line[0]);
int y = Integer.parseInt(line[1]);
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner... | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner scanner = new Scanner(System.in);
long... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
4,
13,
13,
13,
30,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
74,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n int x = sc.nextInt();\n int y = sc.nextInt();\n int result = 0;\n if(x > y){\n result = gcd(x, y);\n } else {\n ... |
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int x = sc.nextInt();
int y = sc.nextInt();
int result = 0;
if(x > y){
result = gcd(x, y);
} else {
result = gcd(y,... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tSystem.out.println(euclid(Math.max(a, b), Math.min(a, b)));\n\t}\n\tpublic static int euclid(int a, int b){\n\t\tint c;\n\t\tw... | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
System.out.println(euclid(Math.max(a, b), Math.min(a, b)));
}
public static int euclid(int a, int b){
int c;
while((c = a % b) != 0){
a =... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
13,
17,
30,
41,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\n\n/**\n * B\n */\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if(a<b) {\n int tmp = a;\n a = b;\n b = tmp;\n... | import java.util.*;
/**
* B
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a<b) {
int tmp = a;
a = b;
b = tmp;
}
whi... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
14,
2,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
98,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n \npublic class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWrite... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class Main {
public void exec() throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(System.out);... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
13,
0,
13,
4,
18,
13,
0,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
... | [
"import java.util.*;\nimport java.io.*;\n\nclass Main{\n public static void main(String[] args){\n int count;\n int[] array = new int[2];\n int key = 0;\n\n try{\n Scanner scan = new Scanner(System.in);\n\n String str = scan.next();\n array[0] = Intege... | import java.util.*;
import java.io.*;
class Main{
public static void main(String[] args){
int count;
int[] array = new int[2];
int key = 0;
try{
Scanner scan = new Scanner(System.in);
String str = scan.next();
array[0] = Integer.parseInt(str);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
42,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x, y, z, GCD, GCD_n;\n x = sc.nextInt();\n y = sc.nextInt();\n if (x < y) { //swap\n z = x;\n x = y;\n y = z;\n }\n GCD = y;\n GCD_n = x %... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x, y, z, GCD, GCD_n;
x = sc.nextInt();
y = sc.nextInt();
if (x < y) { //swap
z = x;
x = y;
y = z;
}
GCD = y;
GCD_n = x % GCD;
while(GCD... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
4,
18,
13,
17,
14,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[... | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n\tint x,y,temp;\n\t\n\tScanner scan = new Scanner(System.in);\n\tx = scan.nextInt();\n\ty = scan.nextInt();\n\t\n \tif(1>x || x>1000000000){System.exit(0);}\n\tif(1>y || y>1000000000){System.exit(0);}\n\t\n\tif(x>=y){\n\t ... | import java.util.Scanner;
class Main{
public static void main(String[] args){
int x,y,temp;
Scanner scan = new Scanner(System.in);
x = scan.nextInt();
y = scan.nextInt();
if(1>x || x>1000000000){System.exit(0);}
if(1>y || y>1000000000){System.exit(0);}
if(x>=y){
while((temp = x%y) != 0){
x... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
42,
2,
13,
17,
30,
0,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n int a,b,c,r;\n Scanner sc =new Scanner(System.in);\n a=sc.nextInt();\n b=sc.nextInt();\n if (a<b) {\n c=a;\n a=b;\n b=c;\n } \n r=a%b;\nwhile(r!=0){\na=b;... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a,b,c,r;
Scanner sc =new Scanner(System.in);
a=sc.nextInt();
b=sc.nextInt();
if (a<b) {
c=a;
a=b;
b=c;
}
r=a%b;
while(r!=0){
a=b;
b=r;
r=a%b;
}
Syste... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\n\n\npublic class Main{\n\n\tpublic static void main(String args[]){\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint num1 = s.nextInt();\n\t\tint num2 = s.nextInt();\n\t\tint surplus = 0;\n\t\tint i = 0;\n\n\n\t\twhile( i < 100000000){\n\t\t\tif(num1>=num2){\n\t\t\t\tsurplus = num1%num2;\n\... | import java.util.*;
public class Main{
public static void main(String args[]){
Scanner s = new Scanner(System.in);
int num1 = s.nextInt();
int num2 = s.nextInt();
int surplus = 0;
int i = 0;
while( i < 100000000){
if(num1>=num2){
surplus = num1%num2;
num1 = num2;
num2 = surplus;
if... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
30,
29,
13,
30,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(getGCD(sc.nextInt(), sc.nextInt()));\n }\n \n static int getGCD(int x, int y) {\n if (x % y == 0) {\n return y;\n } el... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(getGCD(sc.nextInt(), sc.nextInt()));
}
static int getGCD(int x, int y) {
if (x % y == 0) {
return y;
} else {
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
93,
8
],
[
93,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
St... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
13,
13,
30,
41,
13,
2,
13,
13,
14,
2,
13,
17,
3,
0,
13,
13,
0,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\tif (y > x) {\n\t\t\tint swap = x;\n\t\t\tx = y;\n\t\t\ty = swap;\n\t\t}\n\t\twhile (x > y) {\n\t\t\tint n = x % y;\n\t\t\tif (n == 0) break;\n\... | import java.util.Scanner;
public class Main {
void run() {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
if (y > x) {
int swap = x;
x = y;
y = swap;
}
while (x > y) {
int n = x % y;
if (n == 0) break;
x = y;
y = n;
}
System.out.println(y);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
0,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n String[] str=buf.readLine().split(\" \");\n \n int x=Integer.parseInt(str[0]);\n int y=Integer.parse... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
String[] str=buf.readLine().split(" ");
int x=Integer.parseInt(str[0]);
int y=Integer.parseInt(str[1]);
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
97,
11
],
[
97,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String[] str = br.readLine().spl... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String[] str = br.readLine().split(" ");
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n do {\n int c = a % b;\n a = b;\n b = c;\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)) {
int a = sc.nextInt();
int b = sc.nextInt();
do {
int c = a % b;
a = b;
b = c;
} w... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\t// 入力\n\t\tScanner scan = new Scanner(System.in);\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tint mod;\n\t\tdo {\n\t\t\tmod = a%b;\n\t\t\ta = b;\n\t\t\tb = mod;\n\t\t} while(mod != 0);\n\t\t// 出力\n\t\tSystem.out.println(... | import java.util.Scanner;
public class Main {
void run() {
// 入力
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int mod;
do {
mod = a%b;
a = b;
b = mod;
} while(mod != 0);
// 出力
System.out.println(a);
}
public static void main(String[] args) {
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
40,
17,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
13,
17,
0,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static int euclidean(int x, int y) {\n\t\tint result = -1, z = 1;\n\t\twhile (z > 0) {\n\t\t\tz = x % y;\n\t\t\tif (z == 0) result = y;\n\t\t\tx = y; y = z;\n\t\t}\n\t\treturn result;\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = n... | import java.util.Scanner;
public class Main {
public static int euclidean(int x, int y) {
int result = -1, z = 1;
while (z > 0) {
z = x % y;
if (z == 0) result = y;
x = y; y = z;
}
return result;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextIn... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
17,
30,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
29,
13,
0,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(euclideanAlgorithm(x, y));\n\t}\n\n\tpublic static int euclideanAlgorithm(int x, int y) {\n\t\... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println(euclideanAlgorithm(x, y));
}
public static int euclideanAlgorithm(int x, int y) {
int tmp;
while (true) {
tmp... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
42,
2,
13,
17,
30,
41,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
]... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tstatic int bmp(int x,int y){\n\t\twhile(y > 0){\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString[] gcd = in.nextLine().split(\" \");\... | import java.util.Scanner;
public class Main {
static int bmp(int x,int y){
while(y > 0){
int r = x % y;
x = y;
y = r;
}
return x;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String[] gcd = in.nextLine().split(" ");
int x = Integer.parseInt(gcd[0]);
int y ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
42,
40,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n int a = Math.max(x,y);\n int b = Math.min(x,y);\n while(!(a ==0 || b == 0)){\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int a = Math.max(x,y);
int b = Math.min(x,y);
while(!(a ==0 || b == 0)){
a = a%b;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
17,
0,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n\n if(y<x) {\n int t=0;\n t=y; y=x; x=t;\n }\n int z = 0;\n... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(y<x) {
int t=0;
t=y; y=x; x=t;
}
int z = 0;
for(int i=0;... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
13,
4,
13,
13,
41,
13,
41,
13,
14,
2,
18,
13,
17,
18,
13,
17,
30,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
30,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
138,
11
],
[
138,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n i... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int[] numArray ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
12,
13,
30,
41,
13,
41,
13,
14,
2,
2,
13,
17,
2,
13,
17,
29,
17,
14,
2,
13,
13,
30,
0,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
119,
5
],
[
119,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\tSystem.out.println(gcd(x, y));\n\t}\n\t\n\tint gcd(int x, int y) {\n\t\tint rem;\n\t\tint largenum;\n\t\tif (x == 1 || y == 1) return 1;\n\t\... | import java.util.Scanner;
public class Main {
void run() {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
System.out.println(gcd(x, y));
}
int gcd(int x, int y) {
int rem;
int largenum;
if (x == 1 || y == 1) return 1;
if (x > y) {
rem = x % y;
largenu... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
42,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
13,
30,
0,
13,
4,
13,
13,
13,
30,
0,
13,
4,
13,
13,
13,
14,
2,
13,
17,
30,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n // System.out.println(calc(2,3));\n \n while(x != 0 && y != 0){\n if(x >= y){\n x =... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
// System.out.println(calc(2,3));
while(x != 0 && y != 0){
if(x >= y){
x = calc(x, y);
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
113,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReade... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Ar... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
42,
17,
30,
14,
2,
13,
17,
29,
13,
41,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
23,
13,
23,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main{\n\n\n\tpublic static int gcd(int a, int b){\n\n\t\tif(b==0)return a;\n\t\treturn gcd(b, a%b);\n\t}\n\n\tpublic static int gcd_roop(int a, int b){\n\n\t\twhile(true){\n\t\t\tif(b==0)return a;\n\t\t\tint t;\n\t\t\tt=a;\n\t\t\ta=b;\n\t\t\tb=t%b;\n\t\t}\n\n\t}\n\n\n\n\tp... | import java.util.Scanner;
public class Main{
public static int gcd(int a, int b){
if(b==0)return a;
return gcd(b, a%b);
}
public static int gcd_roop(int a, int b){
while(true){
if(b==0)return a;
int t;
t=a;
a=b;
b=t%b;
}
}
public static void main(String[] args){
int a, b;
Sca... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
13,
4,
18,
13,
17,
41,
13,
14,
2,
18,
13,
17,
18,
13,
17,
30,
0,
13,
4,
13,
18,
13,
17,
18,
13,
17,
30,
0,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
136,
11
],
[
136,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tString str = br.readLine();\n \tint[] numAr... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int[] numArray = strToInt(s... |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
13,
13,
13,
30,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
0,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
76,
8
],
[
8,
9
],
[
76,
10
],
[
10,
11
],
[
76,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static int x;\n\tpublic static int y;\n\tpublic static int z;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tx= sc.nextInt();\n\t\ty = sc.nextInt();\n\t\tif(x > y){\n\t\t\tsolve(x,y);\n\t\t}\n\t\telse{\n\t\t\tso... | import java.util.Scanner;
public class Main{
public static int x;
public static int y;
public static int z;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
x= sc.nextInt();
y = sc.nextInt();
if(x > y){
solve(x,y);
}
else{
solve(y,x);
}
System.out.println(z);
}... |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
3... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
70,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n \npublic class Main {\n \n public static final int BIG_NUM = 2000000000;\n public static final int MOD = 1000000007;\n \n public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n int x = scanner.nextInt();\n int y = scanne... | import java.util.Scanner;
public class Main {
public static final int BIG_NUM = 2000000000;
public static final int MOD = 1000000007;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
2,
13,
13,
42,
2,
13,
17,
3... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
163,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
private static FastScanner sc = new FastScanner();
public static void main(String[] args) {
int a = sc.nextInt();
int b = sc.nextInt();
if(b > a) {
int temp =... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\nclass Main {\n public static void main(String...args) {\n Scanner scan = new Scanner(System.in);\n int x = scan.nextInt();\n int y = scan.nextInt();\n int divisor = 0;\n\n while((divisor = x % y) != 0) {\n x = y;\n y = divisor... | import java.util.*;
class Main {
public static void main(String...args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
int divisor = 0;
while((divisor = x % y) != 0) {
x = y;
y = divisor;
}
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
41,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint ans = gcd(x, y);\n\t\tSystem.out.println(ans);\n\t}\n\n\tpublic static int gcd(int x, int y) {\n\t\tint temp;\n\t\tin... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int ans = gcd(x, y);
System.out.println(ans);
}
public static int gcd(int x, int y) {
int temp;
int r;
if (y > x) {
temp = x;
... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
17,
4,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
74,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\t\tSystem.out.printf(\"%d\\n\", gcd(x, y));\n\t}\n\n\tpublic static int gcd(int x, int y){\n\t\tif(x < ... | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int x = scan.nextInt();
int y = scan.nextInt();
System.out.printf("%d\n", gcd(x, y));
}
public static int gcd(int x, int y){
if(x < y){
int work = y;
y = x;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner s=new Scanner(System.in);\n\t\tint x=s.nextInt();\n\t\tint y=s.nextInt();\n\t\tint z=1;\n\t\twhile(z!=0){\n\t\t\tz=x%y;\n\t\t\tx=y;\n\t\t\ty=z;\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}",
"import java.util.Scan... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner s=new Scanner(System.in);
int x=s.nextInt();
int y=s.nextInt();
int z=1;
while(z!=0){
z=x%y;
x=y;
y=z;
}
System.out.println(x);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n// InputStreamReader isr = new InputStreamReader(System.in);\n// ... | import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] input = br.readLine().split(" ");
// InputStreamReader isr = new InputStreamReader(System.in);
// Buffered... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
2,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x, y;\n\t\tint max, min, mod;\n\t\t\n\t\tx = sc.nextInt();\n\t\ty = sc.nextInt();\n\t\t\n\t\twhile(y > 0){\n\t\t\tmax = Math.max(x, y);\n\t\t\tmin = Math.min(x, y);\n\t\t\tmod = m... | import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int x, y;
int max, min, mod;
x = sc.nextInt();
y = sc.nextInt();
while(y > 0){
max = Math.max(x, y);
min = Math.min(x, y);
mod = max % min;
x = min;
y = mod;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.