node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 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,
13,
30,
14,
2,
13,
13,
29,
13,
14,
2,
13,
13,
30,
29,
4,
13,
13,
2,
13,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
12,
51
],
[
51,
52
],
[
86,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
62,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
53,
81
],
[
81,
82
],
[
53,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"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(\" \");\n\t\tint a = Integer.parseInt(strArray[0]);\n\t\tint b = Integer.parseInt(strArray[1]);\n\t\tSystem.out.println(getGCD(a, b));\n\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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(\" \");\n\t\tint a = Integer.parseInt(strArray[0]);\n\t\tint b = Integer.parseInt(strArray[1]);\n\t\tSystem.out.println(getGCD(a, b));\n\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArray = br.readLine().split(\" \");\n\t\tint a = Integer.parseInt(strArray[0]);\n\t\tint b = Integer.parseInt(strArray[1]);\n\t\tSystem.out.println(getGCD(a, b));\n\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArray = br.readLine().split(\" \");\n\t\tint a = Integer.parseInt(strArray[0]);\n\t\tint b = Integer.parseInt(strArray[1]);\n\t\tSystem.out.println(getGCD(a, b));\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] strArray = br.readLine().split(\" \");",
"strArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a = Integer.parseInt(strArray[0]);",
"a",
"Integer.parseInt(strArray[0])",
"Integer.parseInt",
"Integer",
"strArray[0]",
"strArray",
"0",
"int b = Integer.parseInt(strArray[1]);",
"b",
"Integer.parseInt(strArray[1])",
"Integer.parseInt",
"Integer",
"strArray[1]",
"strArray",
"1",
"System.out.println(getGCD(a, b))",
"System.out.println",
"System.out",
"System",
"System.out",
"getGCD(a, b)",
"getGCD",
"a",
"b",
"String[] args",
"args",
"public static int getGCD(int a, int b) {\n\t\tif (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);\n\t}",
"getGCD",
"{\n\t\tif (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);\n\t}",
"if (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);",
"a == b",
"a",
"b",
"return a;",
"a",
"if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);",
"a < b",
"a",
"b",
"{\n\t\t\treturn getGCD(a, b - a);\n\t\t}",
"return getGCD(a, b - a);",
"getGCD(a, b - a)",
"getGCD",
"a",
"b - a",
"b",
"a",
"return getGCD(a - b, a);",
"getGCD(a - b, a)",
"getGCD",
"a - b",
"a",
"b",
"a",
"int a",
"a",
"int b",
"b",
"public 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(\" \");\n\t\tint a = Integer.parseInt(strArray[0]);\n\t\tint b = Integer.parseInt(strArray[1]);\n\t\tSystem.out.println(getGCD(a, b));\n\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);\n\t}\n}",
"public 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(\" \");\n\t\tint a = Integer.parseInt(strArray[0]);\n\t\tint b = Integer.parseInt(strArray[1]);\n\t\tSystem.out.println(getGCD(a, b));\n\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b) return a;\n\t\telse if (a < b) {\n\t\t\treturn getGCD(a, b - a);\n\t\t}\n\t\telse return getGCD(a - b, a);\n\t}\n}",
"Main"
] | 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.parseInt(strArray[0]);
int b = Integer.parseInt(strArray[1]);
System.out.println(getGCD(a, b));
}
public static int getGCD(int a, int b) {
if (a == b) return a;
else if (a < b) {
return getGCD(a, b - a);
}
else return getGCD(a - b, a);
}
} |
[
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,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
]
] | [
"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 = temp;\n }\n\n while((r = x % y) != 0) {\n x = y;\n y = r;\n }\n System.out.println(y);\n }\n}\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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 = temp;\n }\n\n while((r = x % y) != 0) {\n x = y;\n y = r;\n }\n System.out.println(y);\n }\n}",
"Main",
"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 = temp;\n }\n\n while((r = x % y) != 0) {\n x = y;\n y = r;\n }\n System.out.println(y);\n }",
"main",
"{\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 = temp;\n }\n\n while((r = x % y) != 0) {\n x = y;\n y = r;\n }\n System.out.println(y);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"long x",
"x",
"y",
"y",
"r",
"r",
"temp;",
"temp",
"x = stdIn.nextLong()",
"x",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"y = stdIn.nextLong()",
"y",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"if (x < y) {\n temp = x;\n x = y;\n y = temp;\n }",
"x < y",
"x",
"y",
"{\n temp = x;\n x = y;\n y = temp;\n }",
"temp = x",
"temp",
"x",
"x = y",
"x",
"y",
"y = temp",
"y",
"temp",
"while((r = x % y) != 0) {\n x = y;\n y = r;\n }",
"(r = x % y) != 0",
"(r = x % y)",
"r",
"x % y",
"x",
"y",
"0",
"{\n x = y;\n y = r;\n }",
"x = y",
"x",
"y",
"y = r",
"y",
"r",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args"
] | 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;
}
while((r = x % y) != 0) {
x = y;
y = r;
}
System.out.println(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,
41,
13,
17,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
0,
13,
17,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
4,
18,
13,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
13,
3,
14,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
43,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
59,
71
],
[
71,
72
],
[
72,
73
],
[
59,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
8,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"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);\n equal = false;\n }\n x %= y;\n int max = 0;\n for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }\n if(equal) {\n System.out.println(max);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public 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);\n equal = false;\n }\n x %= y;\n int max = 0;\n for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }\n if(equal) {\n System.out.println(max);\n }\n }\n}",
"Main",
"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);\n equal = false;\n }\n x %= y;\n int max = 0;\n for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }\n if(equal) {\n System.out.println(max);\n }\n }",
"main",
"{\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);\n equal = false;\n }\n x %= y;\n int max = 0;\n for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }\n if(equal) {\n System.out.println(max);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = Math.max(a, b);",
"x",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"int y = Math.min(a, b);",
"y",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"boolean equal = true;",
"equal",
"true",
"if(x == y) {\n System.out.println(x);\n equal = false;\n }",
"x == y",
"x",
"y",
"{\n System.out.println(x);\n equal = false;\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"equal = false",
"equal",
"false",
"x %= y",
"x",
"y",
"int max = 0;",
"max",
"0",
"for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }",
"int i = Math.min(x, y);",
"int i = Math.min(x, y);",
"i",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"i > 0",
"i",
"0",
"i--",
"i--",
"i",
"{\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }",
"{\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }",
"if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }",
"x % i == 0 && y % i == 0",
"x % i == 0",
"x % i",
"x",
"i",
"0",
"y % i == 0",
"y % i",
"y",
"i",
"0",
"{\n max = i;\n break;\n }",
"max = i",
"max",
"i",
"break;",
"if(equal) {\n System.out.println(max);\n }",
"equal",
"{\n System.out.println(max);\n }",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public 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);\n equal = false;\n }\n x %= y;\n int max = 0;\n for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }\n if(equal) {\n System.out.println(max);\n }\n }\n}",
"public 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);\n equal = false;\n }\n x %= y;\n int max = 0;\n for(int i = Math.min(x, y); i > 0; i--) {\n if(x % i == 0 && y % i == 0) {\n max = i;\n break;\n }\n }\n if(equal) {\n System.out.println(max);\n }\n }\n}",
"Main"
] | 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 = false;
}
x %= y;
int max = 0;
for(int i = Math.min(x, y); i > 0; i--) {
if(x % i == 0 && y % i == 0) {
max = i;
break;
}
}
if(equal) {
System.out.println(max);
}
}
}
|
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
36,
43
],
[
26,
44
],
[
44,
45
],
[
44,
46
],
[
26,
47
],
[
47,
48
],
[
47,
49
],
[
6,
50
],
[
50,
51
]
] | [
"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.println(y);\n break;\n }\n x = y;\n y = rest;\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class 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.println(y);\n break;\n }\n x = y;\n y = rest;\n }\n \n }\n}",
"Main",
"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.println(y);\n break;\n }\n x = y;\n y = rest;\n }\n \n }",
"main",
"{\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.println(y);\n break;\n }\n x = y;\n y = rest;\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int rest;",
"rest",
"while(true){\n rest = x % y;\n if(rest == 0){\n System.out.println(y);\n break;\n }\n x = y;\n y = rest;\n }",
"true",
"{\n rest = x % y;\n if(rest == 0){\n System.out.println(y);\n break;\n }\n x = y;\n y = rest;\n }",
"rest = x % y",
"rest",
"x % y",
"x",
"y",
"if(rest == 0){\n System.out.println(y);\n break;\n }",
"rest == 0",
"rest",
"0",
"{\n System.out.println(y);\n break;\n }",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"break;",
"x = y",
"x",
"y",
"y = rest",
"y",
"rest",
"String[] args",
"args"
] | 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);
break;
}
x = y;
y = rest;
}
}
}
|
[
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,
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
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] | [
"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=p%q;\n p=q;\n q=tmp;\n }\n System.out.println(q);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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=p%q;\n p=q;\n q=tmp;\n }\n System.out.println(q);\n }\n}",
"Main",
"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=p%q;\n p=q;\n q=tmp;\n }\n System.out.println(q);\n }",
"main",
"{\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=p%q;\n p=q;\n q=tmp;\n }\n System.out.println(q);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x",
"x",
"y",
"y",
"p",
"p",
"q",
"q",
"tmp;",
"tmp",
"x=scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y=scan.nextInt()",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"p=Math.max(x,y)",
"p",
"Math.max(x,y)",
"Math.max",
"Math",
"x",
"y",
"q=Math.min(x,y)",
"q",
"Math.min(x,y)",
"Math.min",
"Math",
"x",
"y",
"while(p%q!=0){\n tmp=p%q;\n p=q;\n q=tmp;\n }",
"p%q!=0",
"p%q",
"p",
"q",
"0",
"{\n tmp=p%q;\n p=q;\n q=tmp;\n }",
"tmp=p%q",
"tmp",
"p%q",
"p",
"q",
"p=q",
"p",
"q",
"q=tmp",
"q",
"tmp",
"System.out.println(q)",
"System.out.println",
"System.out",
"System",
"System.out",
"q",
"String[] args",
"args",
"public 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=p%q;\n p=q;\n q=tmp;\n }\n System.out.println(q);\n }\n}",
"public 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=p%q;\n p=q;\n q=tmp;\n }\n System.out.println(q);\n }\n}",
"Main"
] | 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;
p=q;
q=tmp;
}
System.out.println(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,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
17,
30,
3,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
68,
70
],
[
53,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
53,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"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 x=t;\n }\n\n num = x%y;\n while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }\n System.out.println(y);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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 x=t;\n }\n\n num = x%y;\n while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }\n System.out.println(y);\n }\n}",
"Main",
"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 x=t;\n }\n\n num = x%y;\n while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }\n System.out.println(y);\n }",
"main",
"{\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 x=t;\n }\n\n num = x%y;\n while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }\n System.out.println(y);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int x",
"x",
"y;",
"y",
"int t;",
"t",
"int num;",
"num",
"x = stdIn.nextInt()",
"x",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"y = stdIn.nextInt()",
"y",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if(x>y){\n t=y;\n y=x;\n x=t;\n }",
"x>y",
"x",
"y",
"{\n t=y;\n y=x;\n x=t;\n }",
"t=y",
"t",
"y",
"y=x",
"y",
"x",
"x=t",
"x",
"t",
"num = x%y",
"num",
"x%y",
"x",
"y",
"while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }",
"num!=0",
"num",
"0",
"{\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }",
"x = num",
"x",
"num",
"if(y>x){\n t=x;\n x=y;\n y=t;\n }",
"y>x",
"y",
"x",
"{\n t=x;\n x=y;\n y=t;\n }",
"t=x",
"t",
"x",
"x=y",
"x",
"y",
"y=t",
"y",
"t",
"if(x%y==0){\n break;\n }",
"x%y==0",
"x%y",
"x",
"y",
"0",
"{\n break;\n }",
"break;",
"num = x%y",
"num",
"x%y",
"x",
"y",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args",
"public 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 x=t;\n }\n\n num = x%y;\n while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }\n System.out.println(y);\n }\n}",
"public 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 x=t;\n }\n\n num = x%y;\n while(num!=0){\n x = num;\n if(y>x){\n t=x;\n x=y;\n y=t;\n }\n if(x%y==0){\n break;\n }\n num = x%y;\n }\n System.out.println(y);\n }\n}",
"Main"
] | 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;
}
num = x%y;
while(num!=0){
x = num;
if(y>x){
t=x;
x=y;
y=t;
}
if(x%y==0){
break;
}
num = x%y;
}
System.out.println(y);
}
}
|
[
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,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
13,
0,
13,
17,
14,
2,
13,
13,
30,
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
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
9,
16
],
[
16,
17
],
[
17,
18
],
[
6,
19
],
[
19,
20
],
[
6,
21
],
[
21,
22
],
[
4,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
39,
51
],
[
51,
52
],
[
51,
53
],
[
54,
55
],
[
54,
56
],
[
39,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
39,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
39,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
39,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
39,
106
],
[
106,
107
],
[
106,
108
],
[
39,
109
],
[
109,
110
],
[
109,
111
],
[
39,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
112,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
126,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
126,
151
],
[
151,
152
],
[
151,
153
],
[
39,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
39,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
23,
168
],
[
168,
169
]
] | [
"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 InputStreamReader(System.in));\n try { \n String line = reader.readLine();\n String[] strAry = line.split(\" \");\n\n int[] a = new int[strAry.length];\n\n for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }\n int x = a[0];\n int y = a[1];\n\n if(y > x){\n int k = y;\n y = x;\n x = k;\n }\n\n int yaku = 0, k = 1;\n for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }\n\n if(x == y){\n yaku = x;\n }\n\n System.out.println(yaku);\n \n \n } catch (IOException e) {\n //TODO: handle exception\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class 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 InputStreamReader(System.in));\n try { \n String line = reader.readLine();\n String[] strAry = line.split(\" \");\n\n int[] a = new int[strAry.length];\n\n for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }\n int x = a[0];\n int y = a[1];\n\n if(y > x){\n int k = y;\n y = x;\n x = k;\n }\n\n int yaku = 0, k = 1;\n for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }\n\n if(x == y){\n yaku = x;\n }\n\n System.out.println(yaku);\n \n \n } catch (IOException e) {\n //TODO: handle exception\n System.out.println(e);\n }\n }\n}",
"Main",
"public static int max(int i, int k){\n if(k < i){\n return i;\n }else{\n return k;\n }\n\n }",
"max",
"{\n if(k < i){\n return i;\n }else{\n return k;\n }\n\n }",
"if(k < i){\n return i;\n }else{\n return k;\n }",
"k < i",
"k",
"i",
"{\n return i;\n }",
"return i;",
"i",
"{\n return k;\n }",
"return k;",
"k",
"int i",
"i",
"int k",
"k",
"public static void main(String[] args){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try { \n String line = reader.readLine();\n String[] strAry = line.split(\" \");\n\n int[] a = new int[strAry.length];\n\n for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }\n int x = a[0];\n int y = a[1];\n\n if(y > x){\n int k = y;\n y = x;\n x = k;\n }\n\n int yaku = 0, k = 1;\n for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }\n\n if(x == y){\n yaku = x;\n }\n\n System.out.println(yaku);\n \n \n } catch (IOException e) {\n //TODO: handle exception\n System.out.println(e);\n }\n }",
"main",
"{\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try { \n String line = reader.readLine();\n String[] strAry = line.split(\" \");\n\n int[] a = new int[strAry.length];\n\n for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }\n int x = a[0];\n int y = a[1];\n\n if(y > x){\n int k = y;\n y = x;\n x = k;\n }\n\n int yaku = 0, k = 1;\n for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }\n\n if(x == y){\n yaku = x;\n }\n\n System.out.println(yaku);\n \n \n } catch (IOException e) {\n //TODO: handle exception\n System.out.println(e);\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try { \n String line = reader.readLine();\n String[] strAry = line.split(\" \");\n\n int[] a = new int[strAry.length];\n\n for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }\n int x = a[0];\n int y = a[1];\n\n if(y > x){\n int k = y;\n y = x;\n x = k;\n }\n\n int yaku = 0, k = 1;\n for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }\n\n if(x == y){\n yaku = x;\n }\n\n System.out.println(yaku);\n \n \n } catch (IOException e) {\n //TODO: handle exception\n System.out.println(e);\n }",
"catch (IOException e) {\n //TODO: handle exception\n System.out.println(e);\n }",
"IOException e",
"{\n //TODO: handle exception\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{ \n String line = reader.readLine();\n String[] strAry = line.split(\" \");\n\n int[] a = new int[strAry.length];\n\n for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }\n int x = a[0];\n int y = a[1];\n\n if(y > x){\n int k = y;\n y = x;\n x = k;\n }\n\n int yaku = 0, k = 1;\n for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }\n\n if(x == y){\n yaku = x;\n }\n\n System.out.println(yaku);\n \n \n }",
"String line = reader.readLine();",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] strAry = line.split(\" \");",
"strAry",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int[] a = new int[strAry.length];",
"a",
"new int[strAry.length]",
"strAry.length",
"strAry",
"strAry.length",
"for(int i = 0; i < strAry.length; i ++){\n a[i] = Integer.parseInt(strAry[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strAry.length",
"i",
"strAry.length",
"strAry",
"strAry.length",
"i ++",
"i ++",
"i",
"{\n a[i] = Integer.parseInt(strAry[i]);\n }",
"{\n a[i] = Integer.parseInt(strAry[i]);\n }",
"a[i] = Integer.parseInt(strAry[i])",
"a[i]",
"a",
"i",
"Integer.parseInt(strAry[i])",
"Integer.parseInt",
"Integer",
"strAry[i]",
"strAry",
"i",
"int x = a[0];",
"x",
"a[0]",
"a",
"0",
"int y = a[1];",
"y",
"a[1]",
"a",
"1",
"if(y > x){\n int k = y;\n y = x;\n x = k;\n }",
"y > x",
"y",
"x",
"{\n int k = y;\n y = x;\n x = k;\n }",
"int k = y;",
"k",
"y",
"y = x",
"y",
"x",
"x = k",
"x",
"k",
"int yaku = 0",
"yaku",
"0",
"k = 1;",
"k",
"1",
"for(int i = 0; i <= (x % y); i++){\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= (x % y)",
"i",
"(x % y)",
"x",
"y",
"i++",
"i++",
"i",
"{\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }",
"{\n\n int m = x % k;\n int n = (x % y) % k;\n if((m == 0) && (n == 0)){\n yaku = k;\n }\n k += 1;\n }",
"int m = x % k;",
"m",
"x % k",
"x",
"k",
"int n = (x % y) % k;",
"n",
"(x % y) % k",
"(x % y)",
"x",
"y",
"k",
"if((m == 0) && (n == 0)){\n yaku = k;\n }",
"(m == 0) && (n == 0)",
"(m == 0)",
"m",
"0",
"(n == 0)",
"n",
"0",
"{\n yaku = k;\n }",
"yaku = k",
"yaku",
"k",
"k += 1",
"k",
"1",
"if(x == y){\n yaku = x;\n }",
"x == y",
"x",
"y",
"{\n yaku = x;\n }",
"yaku = x",
"yaku",
"x",
"System.out.println(yaku)",
"System.out.println",
"System.out",
"System",
"System.out",
"yaku",
"String[] args",
"args"
] | 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(System.in));
try {
String line = reader.readLine();
String[] strAry = line.split(" ");
int[] a = new int[strAry.length];
for(int i = 0; i < strAry.length; i ++){
a[i] = Integer.parseInt(strAry[i]);
}
int x = a[0];
int y = a[1];
if(y > x){
int k = y;
y = x;
x = k;
}
int yaku = 0, k = 1;
for(int i = 0; i <= (x % y); i++){
int m = x % k;
int n = (x % y) % k;
if((m == 0) && (n == 0)){
yaku = k;
}
k += 1;
}
if(x == y){
yaku = x;
}
System.out.println(yaku);
} catch (IOException e) {
//TODO: handle exception
System.out.println(e);
}
}
} |
[
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,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
60,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
39,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
35,
53
],
[
53,
54
],
[
33,
55
],
[
55,
56
],
[
33,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] | [
"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 while((num = a%b)!=0) {\n a = b;\n b = num;\n }\n return b;\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 while((num = a%b)!=0) {\n a = b;\n b = num;\n }\n return b;\n }\n\n}",
"Main",
"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 }",
"main",
"{\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 }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(gcd(a, b))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(a, b)",
"gcd",
"a",
"b",
"String[] args",
"args",
"static int gcd (int a, int b) {\n int num;\n while((num = a%b)!=0) {\n a = b;\n b = num;\n }\n return b;\n }",
"gcd",
"{\n int num;\n while((num = a%b)!=0) {\n a = b;\n b = num;\n }\n return b;\n }",
"int num;",
"num",
"while((num = a%b)!=0) {\n a = b;\n b = num;\n }",
"(num = a%b)!=0",
"(num = a%b)",
"num",
"a%b",
"a",
"b",
"0",
"{\n a = b;\n b = num;\n }",
"a = b",
"a",
"b",
"b = num",
"b",
"num",
"return b;",
"b",
"int a",
"a",
"int b",
"b",
"public 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 while((num = a%b)!=0) {\n a = b;\n b = num;\n }\n return b;\n }\n\n}",
"public 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 while((num = a%b)!=0) {\n a = b;\n b = num;\n }\n return b;\n }\n\n}",
"Main"
] | 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)!=0) {
a = b;
b = num;
}
return 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,
13,
23,
13,
12,
13,
30,
41,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
77,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
69,
70
],
[
69,
71
],
[
58,
72
],
[
72,
73
],
[
58,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] | [
"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 }\n System.out.println(a);\n }\n private static void swap(int x, int y){\n int z;\n z = x;\n x = y;\n y = z;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 }\n System.out.println(a);\n }\n private static void swap(int x, int y){\n int z;\n z = x;\n x = y;\n y = z;\n }\n}",
"Main",
"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 }\n System.out.println(a);\n }",
"main",
"{\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 }\n System.out.println(a);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = 0;",
"r",
"0",
"if(a<=b){\n swap(a, b);\n }",
"a<=b",
"a",
"b",
"{\n swap(a, b);\n }",
"swap(a, b)",
"swap",
"a",
"b",
"while(b > 0){\n r = a % b;\n a = b;\n b = r;\n }",
"b > 0",
"b",
"0",
"{\n r = a % b;\n a = b;\n b = r;\n }",
"r = a % b",
"r",
"a % b",
"a",
"b",
"a = b",
"a",
"b",
"b = r",
"b",
"r",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"private static void swap(int x, int y){\n int z;\n z = x;\n x = y;\n y = z;\n }",
"swap",
"{\n int z;\n z = x;\n x = y;\n y = z;\n }",
"int z;",
"z",
"z = x",
"z",
"x",
"x = y",
"x",
"y",
"y = z",
"y",
"z",
"int x",
"x",
"int y",
"y",
"public 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 }\n System.out.println(a);\n }\n private static void swap(int x, int y){\n int z;\n z = x;\n x = y;\n y = z;\n }\n}",
"public 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 }\n System.out.println(a);\n }\n private static void swap(int x, int y){\n int z;\n z = x;\n x = y;\n y = z;\n }\n}",
"Main"
] | 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.println(a);
}
private static void swap(int x, int y){
int z;
z = x;
x = y;
y = z;
}
}
|
[
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,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
13,
13,
42,
2,
2,
2,
18,
13,
17,
17,
2,
18,
13,
17,
17,
2,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
30,
41,
13,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
2,
13,
18,
13,
17,
4,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
23,
13
] | [
[
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
],
[
14,
15
],
[
14,
16
],
[
9,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
17,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
17,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
6,
35
],
[
35,
36
],
[
4,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
45,
50
],
[
39,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
39,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
39,
78
],
[
78,
79
],
[
78,
80
],
[
39,
81
],
[
81,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
83,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
81,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
105,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
105,
127
],
[
127,
128
],
[
127,
129
],
[
39,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
37,
138
],
[
138,
139
]
] | [
"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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s[] = br.readLine().split(\" \");\n int A[] = {0, 0};\n\n for(int i=0; i<2; i++)\n A[i] = Integer.parseInt(s[i]);\n sort(A);\n while((A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])){\n int t = A[0];\n A[0] = A[1];\n A[1] = t%A[1];\n sort(A);\n }\n System.out.println(A[0]);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class 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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s[] = br.readLine().split(\" \");\n int A[] = {0, 0};\n\n for(int i=0; i<2; i++)\n A[i] = Integer.parseInt(s[i]);\n sort(A);\n while((A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])){\n int t = A[0];\n A[0] = A[1];\n A[1] = t%A[1];\n sort(A);\n }\n System.out.println(A[0]);\n }\n}",
"Main",
"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 }",
"sort",
"{\n if(A[0]<A[1]){\n int t = A[0];\n A[0] = A[1];\n A[1] = t;\n }\n }",
"if(A[0]<A[1]){\n int t = A[0];\n A[0] = A[1];\n A[1] = t;\n }",
"A[0]<A[1]",
"A[0]",
"A",
"0",
"A[1]",
"A",
"1",
"{\n int t = A[0];\n A[0] = A[1];\n A[1] = t;\n }",
"int t = A[0];",
"t",
"A[0]",
"A",
"0",
"A[0] = A[1]",
"A[0]",
"A",
"0",
"A[1]",
"A",
"1",
"A[1] = t",
"A[1]",
"A",
"1",
"t",
"int[] A",
"A",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s[] = br.readLine().split(\" \");\n int A[] = {0, 0};\n\n for(int i=0; i<2; i++)\n A[i] = Integer.parseInt(s[i]);\n sort(A);\n while((A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])){\n int t = A[0];\n A[0] = A[1];\n A[1] = t%A[1];\n sort(A);\n }\n System.out.println(A[0]);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s[] = br.readLine().split(\" \");\n int A[] = {0, 0};\n\n for(int i=0; i<2; i++)\n A[i] = Integer.parseInt(s[i]);\n sort(A);\n while((A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])){\n int t = A[0];\n A[0] = A[1];\n A[1] = t%A[1];\n sort(A);\n }\n System.out.println(A[0]);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String s[] = br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int A[] = {0, 0};",
"A",
"{0, 0}",
"0",
"0",
"for(int i=0; i<2; i++)\n A[i] = Integer.parseInt(s[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<2",
"i",
"2",
"i++",
"i++",
"i",
"A[i] = Integer.parseInt(s[i]);",
"A[i] = Integer.parseInt(s[i])",
"A[i]",
"A",
"i",
"Integer.parseInt(s[i])",
"Integer.parseInt",
"Integer",
"s[i]",
"s",
"i",
"sort(A)",
"sort",
"A",
"while((A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])){\n int t = A[0];\n A[0] = A[1];\n A[1] = t%A[1];\n sort(A);\n }",
"(A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])",
"(A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])",
"(A[0]>1)",
"A[0]",
"A",
"0",
"1",
"A[1]!=0",
"A[1]",
"A",
"1",
"0",
"(A[0]!=A[0]%A[1])",
"A[0]",
"A",
"0",
"A[0]%A[1]",
"A[0]",
"A",
"0",
"A[1]",
"A",
"1",
"{\n int t = A[0];\n A[0] = A[1];\n A[1] = t%A[1];\n sort(A);\n }",
"int t = A[0];",
"t",
"A[0]",
"A",
"0",
"A[0] = A[1]",
"A[0]",
"A",
"0",
"A[1]",
"A",
"1",
"A[1] = t%A[1]",
"A[1]",
"A",
"1",
"t%A[1]",
"t",
"A[1]",
"A",
"1",
"sort(A)",
"sort",
"A",
"System.out.println(A[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"A[0]",
"A",
"0",
"String[] args",
"args"
] | 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{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s[] = br.readLine().split(" ");
int A[] = {0, 0};
for(int i=0; i<2; i++)
A[i] = Integer.parseInt(s[i]);
sort(A);
while((A[0]>1)&&A[1]!=0&&(A[0]!=A[0]%A[1])){
int t = A[0];
A[0] = A[1];
A[1] = t%A[1];
sort(A);
}
System.out.println(A[0]);
}
} |
[
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,
17,
14,
2,
13,
13,
30,
0,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
77,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"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 y = Integer.parseInt(n[1]);\n\n\t\tint z = Math.max(x, y) % Math.min(x, y);\n\n\t\tint gcd = 1;\n\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(gcd);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 y = Integer.parseInt(n[1]);\n\n\t\tint z = Math.max(x, y) % Math.min(x, y);\n\n\t\tint gcd = 1;\n\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(gcd);\n\n\t}\n\n}",
"Main",
"public 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 y = Integer.parseInt(n[1]);\n\n\t\tint z = Math.max(x, y) % Math.min(x, y);\n\n\t\tint gcd = 1;\n\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(gcd);\n\n\t}",
"main",
"{\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 y = Integer.parseInt(n[1]);\n\n\t\tint z = Math.max(x, y) % Math.min(x, y);\n\n\t\tint gcd = 1;\n\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(gcd);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] n = line.split(\" \");",
"n",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int x = Integer.parseInt(n[0]);",
"x",
"Integer.parseInt(n[0])",
"Integer.parseInt",
"Integer",
"n[0]",
"n",
"0",
"int y = Integer.parseInt(n[1]);",
"y",
"Integer.parseInt(n[1])",
"Integer.parseInt",
"Integer",
"n[1]",
"n",
"1",
"int z = Math.max(x, y) % Math.min(x, y);",
"z",
"Math.max(x, y) % Math.min(x, y)",
"Math.max(x, y)",
"Math.max",
"Math",
"x",
"y",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"int gcd = 1;",
"gcd",
"1",
"if (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"x == y",
"x",
"y",
"{\n\t\t\tgcd = x;\n\t\t}",
"gcd = x",
"gcd",
"x",
"{\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= z",
"i",
"z",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}",
"if (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}",
"x % i == 0 && y % i == 0",
"x % i == 0",
"x % i",
"x",
"i",
"0",
"y % i == 0",
"y % i",
"y",
"i",
"0",
"{\n\t\t\t\t\tgcd = i;\n\t\t\t\t}",
"gcd = i",
"gcd",
"i",
"System.out.println(gcd)",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd",
"String[] args",
"args",
"public 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 y = Integer.parseInt(n[1]);\n\n\t\tint z = Math.max(x, y) % Math.min(x, y);\n\n\t\tint gcd = 1;\n\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(gcd);\n\n\t}\n\n}",
"public 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 y = Integer.parseInt(n[1]);\n\n\t\tint z = Math.max(x, y) % Math.min(x, y);\n\n\t\tint gcd = 1;\n\n\t\tif (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tfor (int i = 1; i <= z; i++) {\n\t\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\t\tgcd = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(gcd);\n\n\t}\n\n}",
"Main"
] | 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]);
int z = Math.max(x, y) % Math.min(x, y);
int gcd = 1;
if (x == y) {
gcd = x;
} else {
for (int i = 1; i <= z; i++) {
if (x % i == 0 && y % i == 0) {
gcd = i;
}
}
}
System.out.println(gcd);
}
} |
[
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,
13,
14,
2,
13,
17,
30,
0,
13,
13,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
28,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] | [
"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 = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);\n\t\tSystem.out.println(b);\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);\n\t\tSystem.out.println(b);\n\t}\n}",
"Main",
"public 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 = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);\n\t\tSystem.out.println(b);\n\t}",
"main",
"{\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 = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);\n\t\tSystem.out.println(b);\n\t}",
"Scanner number = new Scanner(System.in);",
"number",
"new Scanner(System.in)",
"int a = number.nextInt();",
"a",
"number.nextInt()",
"number.nextInt",
"number",
"int b = number.nextInt();",
"b",
"number.nextInt()",
"number.nextInt",
"number",
"int c;",
"c",
"if(a < b) {\n\t\t\tc = a;\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}",
"a < b",
"a",
"b",
"{\n\t\t\tc = a;\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}",
"c = a",
"c",
"a",
"a = b",
"a",
"b",
"b = c",
"b",
"c",
"do {\n\t\t\tc = b;\n\t\t\tb = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);",
"a % b != 0",
"a % b",
"a",
"b",
"0",
"{\n\t\t\tc = b;\n\t\t\tb = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"c = b",
"c",
"b",
"b = a % b",
"b",
"a % b",
"a",
"b",
"a = c",
"a",
"c",
"if(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}",
"b == 0",
"b",
"0",
"{\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}",
"b = a",
"b",
"a",
"break;",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public 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 = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);\n\t\tSystem.out.println(b);\n\t}\n}",
"public 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 = a % b;\n\t\t\ta = c;\n\t\t\tif(b == 0) {\n\t\t\t\tb = a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(a % b != 0);\n\t\tSystem.out.println(b);\n\t}\n}",
"Main"
] | 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;
break;
}
}while(a % b != 0);
System.out.println(b);
}
}
|
[
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,
13,
0,
13,
13,
0,
13,
2,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
45,
52
],
[
38,
53
],
[
53,
54
],
[
53,
55
],
[
38,
56
],
[
56,
57
],
[
56,
58
],
[
38,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] | [
"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(\" \");\n \n int x = Integer.parseInt(a[0]);\n int y = Integer.parseInt(a[1]);\n\n while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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(\" \");\n \n int x = Integer.parseInt(a[0]);\n int y = Integer.parseInt(a[1]);\n\n while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }\n }\n}",
"Main",
"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(\" \");\n \n int x = Integer.parseInt(a[0]);\n int y = Integer.parseInt(a[1]);\n\n while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }\n }",
"main",
"{\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(\" \");\n \n int x = Integer.parseInt(a[0]);\n int y = Integer.parseInt(a[1]);\n\n while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] a = sc.nextLine().split(\" \");",
"a",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int x = Integer.parseInt(a[0]);",
"x",
"Integer.parseInt(a[0])",
"Integer.parseInt",
"Integer",
"a[0]",
"a",
"0",
"int y = Integer.parseInt(a[1]);",
"y",
"Integer.parseInt(a[1])",
"Integer.parseInt",
"Integer",
"a[1]",
"a",
"1",
"while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }",
"true",
"{\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }",
"if (x % y == 0) {\n System.out.println(y);\n break;\n }",
"x % y == 0",
"x % y",
"x",
"y",
"0",
"{\n System.out.println(y);\n break;\n }",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"break;",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp % y",
"y",
"tmp % y",
"tmp",
"y",
"String[] args",
"args",
"public 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(\" \");\n \n int x = Integer.parseInt(a[0]);\n int y = Integer.parseInt(a[1]);\n\n while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }\n }\n}",
"public 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(\" \");\n \n int x = Integer.parseInt(a[0]);\n int y = Integer.parseInt(a[1]);\n\n while (true) {\n if (x % y == 0) {\n System.out.println(y);\n break;\n }\n int tmp = x;\n x = y;\n y = tmp % y;\n }\n }\n}",
"Main"
] | 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(" ");
int x = Integer.parseInt(a[0]);
int y = Integer.parseInt(a[1]);
while (true) {
if (x % y == 0) {
System.out.println(y);
break;
}
int tmp = x;
x = y;
y = tmp % y;
}
}
}
|
[
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,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
48,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
]
] | [
"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\ta=tmp;\n\t\t\n\t\t\n\t }\n\tSystem.out.println(b);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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\ta=tmp;\n\t\t\n\t\t\n\t }\n\tSystem.out.println(b);\n }\n}",
"Main",
"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\ta=tmp;\n\t\t\n\t\t\n\t }\n\tSystem.out.println(b);\n }",
"main",
"{\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\ta=tmp;\n\t\t\n\t\t\n\t }\n\tSystem.out.println(b);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a",
"a",
"b",
"b",
"temp;",
"temp",
"a=scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b=scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(b>a)\n\t {\n\t\ttemp=a;\n\t\ta=b;\n\t\tb=temp;\n\t }",
"b>a",
"b",
"a",
"{\n\t\ttemp=a;\n\t\ta=b;\n\t\tb=temp;\n\t }",
"temp=a",
"temp",
"a",
"a=b",
"a",
"b",
"b=temp",
"b",
"temp",
"while(a%b!=0)\n\t {\n\t\tint tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t\t\n\t\t\n\t }",
"a%b!=0",
"a%b",
"a",
"b",
"0",
"{\n\t\tint tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t\t\n\t\t\n\t }",
"int tmp=b;",
"tmp",
"b",
"b=a%b",
"b",
"a%b",
"a",
"b",
"a=tmp",
"a",
"tmp",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String args[]",
"args"
] | 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,
13,
0,
13,
13,
0,
13,
2,
13,
13,
23,
13,
10,
6,
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
44,
51
],
[
34,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
9,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] | [
"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 (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }\n }\n}",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"import java.util.*;",
"util.*",
"java",
"public 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 (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }\n }\n}",
"Main",
"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 (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }\n }",
"main",
"{\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 (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"int tmp = 0;",
"tmp",
"0",
"while (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }",
"true",
"{\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }",
"if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }",
"a%b==0||b==1",
"a%b==0",
"a%b",
"a",
"b",
"0",
"b==1",
"b",
"1",
"{\n System.out.println(b);\n break;\n }",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"break;",
"{\n tmp = a;\n a = b;\n b = tmp%b;\n }",
"tmp = a",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp%b",
"b",
"tmp%b",
"tmp",
"b",
"String[] args",
"args",
"public 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 (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }\n }\n}",
"public 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 (true){\n if(a%b==0||b==1){\n System.out.println(b);\n break;\n }else{\n tmp = a;\n a = b;\n b = tmp%b;\n }\n }\n }\n}",
"Main"
] | 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){
if(a%b==0||b==1){
System.out.println(b);
break;
}else{
tmp = a;
a = b;
b = tmp%b;
}
}
}
} |
[
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,
23,
13,
12,
13,
30,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
12,
54
],
[
54,
55
],
[
87,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
58,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
56,
82
],
[
82,
83
],
[
56,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"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 ??????????????¨?????? 0 ??¨?????? d ??????????????§???????????????x ??¨ y ????????§??¬?´???°???Greatest Common Divisor?????¨?¨?????????????\n/????????°???35 ??¨14 ????????§??¬?´???° gcd (35, 14) ??? 7 ??¨???????????????????????????35 ????´???°{1, 5, 7, 35}???14 ????´???° {1, 2, 7, 14} ?????¬?´???° {1, 7} ????????§?????¨??????????????? \n*/\n\n/*Input\n/x ??¨ y ?????????????????????????????§?????????????????????????????? \n*/\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint x = Integer.parseInt(st[0]);\n\t\tint y = Integer.parseInt(st[1]);\n\t\tGCD(Math.max(x,y),Math.min(x,y));\n\t}\n\n\t/*GCD????????????\n\t/?????°??????????????§??¬?´???°?????¢???????????????\n\t/x % y???o??§?????????????????????\n\t/?????????x % y????¨??????????????????\\??????y % t?????°?????????\n\t*/\n\n\tpublic static void GCD(int x,int y) {\n\t\t//????????????x % y???????´???????????????????\n\t\tint t;\n\t\twhile ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint x = Integer.parseInt(st[0]);\n\t\tint y = Integer.parseInt(st[1]);\n\t\tGCD(Math.max(x,y),Math.min(x,y));\n\t}\n\n\t/*GCD????????????\n\t/?????°??????????????§??¬?´???°?????¢???????????????\n\t/x % y???o??§?????????????????????\n\t/?????????x % y????¨??????????????????\\??????y % t?????°?????????\n\t*/\n\n\tpublic static void GCD(int x,int y) {\n\t\t//????????????x % y???????´???????????????????\n\t\tint t;\n\t\twhile ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint x = Integer.parseInt(st[0]);\n\t\tint y = Integer.parseInt(st[1]);\n\t\tGCD(Math.max(x,y),Math.min(x,y));\n\t}",
"main",
"{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint x = Integer.parseInt(st[0]);\n\t\tint y = Integer.parseInt(st[1]);\n\t\tGCD(Math.max(x,y),Math.min(x,y));\n\t}",
"BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));",
"sc",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] st = sc.readLine().split(\" \");",
"st",
"sc.readLine().split(\" \")",
"sc.readLine().split",
"sc.readLine()",
"sc.readLine",
"sc",
"\" \"",
"int x = Integer.parseInt(st[0]);",
"x",
"Integer.parseInt(st[0])",
"Integer.parseInt",
"Integer",
"st[0]",
"st",
"0",
"int y = Integer.parseInt(st[1]);",
"y",
"Integer.parseInt(st[1])",
"Integer.parseInt",
"Integer",
"st[1]",
"st",
"1",
"GCD(Math.max(x,y),Math.min(x,y))",
"GCD",
"Math.max(x,y)",
"Math.max",
"Math",
"x",
"y",
"Math.min(x,y)",
"Math.min",
"Math",
"x",
"y",
"String[] args",
"args",
"public static void GCD(int x,int y) {\n\t\t//????????????x % y???????´???????????????????\n\t\tint t;\n\t\twhile ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}\n\t\tSystem.out.println(y);\n\t}",
"GCD",
"{\n\t\t//????????????x % y???????´???????????????????\n\t\tint t;\n\t\twhile ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}\n\t\tSystem.out.println(y);\n\t}",
"int t;",
"t",
"while ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}",
"(t = x % y) != 0",
"(t = x % y)",
"t",
"x % y",
"x",
"y",
"0",
"{\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}",
"x = y",
"x",
"y",
"y = t",
"y",
"t",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"int x",
"x",
"int y",
"y",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint x = Integer.parseInt(st[0]);\n\t\tint y = Integer.parseInt(st[1]);\n\t\tGCD(Math.max(x,y),Math.min(x,y));\n\t}\n\n\t/*GCD????????????\n\t/?????°??????????????§??¬?´???°?????¢???????????????\n\t/x % y???o??§?????????????????????\n\t/?????????x % y????¨??????????????????\\??????y % t?????°?????????\n\t*/\n\n\tpublic static void GCD(int x,int y) {\n\t\t//????????????x % y???????´???????????????????\n\t\tint t;\n\t\twhile ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint x = Integer.parseInt(st[0]);\n\t\tint y = Integer.parseInt(st[1]);\n\t\tGCD(Math.max(x,y),Math.min(x,y));\n\t}\n\n\t/*GCD????????????\n\t/?????°??????????????§??¬?´???°?????¢???????????????\n\t/x % y???o??§?????????????????????\n\t/?????????x % y????¨??????????????????\\??????y % t?????°?????????\n\t*/\n\n\tpublic static void GCD(int x,int y) {\n\t\t//????????????x % y???????´???????????????????\n\t\tint t;\n\t\twhile ((t = x % y) != 0) {\n\t\t\tx = y;\n\t\t\ty = t;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;
/*Question
/??????????????¶??° x, y ?????\?????¨???????????????????????§??¬?´???°????±???????????????°????????????????????????????????????
/???????????´??° x ??¨ y ???????????????x ?? d ??¨ y ?? d ??????????????¨?????? 0 ??¨?????? d ??????????????§???????????????x ??¨ y ????????§??¬?´???°???Greatest Common Divisor?????¨?¨?????????????
/????????°???35 ??¨14 ????????§??¬?´???° gcd (35, 14) ??? 7 ??¨???????????????????????????35 ????´???°{1, 5, 7, 35}???14 ????´???° {1, 2, 7, 14} ?????¬?´???° {1, 7} ????????§?????¨???????????????
*/
/*Input
/x ??¨ y ?????????????????????????????§??????????????????????????????
*/
public class Main {
public static void main(String[] args) throws Exception{
BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
/*??\???
/??????????´???°?????\???????¬??????°????????\???
*/
String[] st = sc.readLine().split(" ");
int x = Integer.parseInt(st[0]);
int y = Integer.parseInt(st[1]);
GCD(Math.max(x,y),Math.min(x,y));
}
/*GCD????????????
/?????°??????????????§??¬?´???°?????¢???????????????
/x % y???o??§?????????????????????
/?????????x % y????¨??????????????????\??????y % t?????°?????????
*/
public static void GCD(int x,int y) {
//????????????x % y???????´???????????????????
int t;
while ((t = x % y) != 0) {
x = y;
y = t;
}
System.out.println(y);
}
} |
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
30,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
6,
50
],
[
50,
51
]
] | [
"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 a = c;\n }\n\n System.out.println(a + b);\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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 a = c;\n }\n\n System.out.println(a + b);\n\n\n }\n}",
"Main",
"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 a = c;\n }\n\n System.out.println(a + b);\n\n\n }",
"main",
"{\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 a = c;\n }\n\n System.out.println(a + b);\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(a!=0 && b!=0) // until either one of them is 0\n {\n int c = b;\n b = a%b;\n a = c;\n }",
"a!=0 && b!=0",
"a!=0",
"a",
"0",
"b!=0",
"b",
"0",
"{\n int c = b;\n b = a%b;\n a = c;\n }",
"int c = b;",
"c",
"b",
"b = a%b",
"b",
"a%b",
"a",
"b",
"a = c",
"a",
"c",
"System.out.println(a + b)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + b",
"a",
"b",
"String[] args",
"args"
] | 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;
}
System.out.println(a + b);
}
}
|
[
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,
13,
13,
23,
13,
23,
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,
10,
6,
13
] | [
[
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
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
15,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
45,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
],
[
6,
59
],
[
59,
60
],
[
89,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
63,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
61,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] | [
"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 % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }\n }\n\n public static void main(String[] args)\n {\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",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }\n }\n\n public static void main(String[] args)\n {\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}",
"Main",
"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 % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }\n }",
"gcd",
"{\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 % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }\n }",
"int max",
"max",
"min",
"min",
"temp;",
"temp",
"if(x > y){\n max = x;\n min = y;\n } else {\n max = y;\n min = x;\n }",
"x > y",
"x",
"y",
"{\n max = x;\n min = y;\n }",
"max = x",
"max",
"x",
"min = y",
"min",
"y",
"{\n max = y;\n min = x;\n }",
"max = y",
"max",
"y",
"min = x",
"min",
"x",
"while(true){\n if(max % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }",
"true",
"{\n if(max % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }",
"if(max % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }",
"max % min == 0",
"max % min",
"max",
"min",
"0",
"{\n return min;\n }",
"return min;",
"min",
"{\n temp = max % min;\n max = min;\n min = temp;\n }",
"temp = max % min",
"temp",
"max % min",
"max",
"min",
"max = min",
"max",
"min",
"min = temp",
"min",
"temp",
"int x",
"x",
"int y",
"y",
"public static void main(String[] args)\n {\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 }",
"main",
"{\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 }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(gcd(x, y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x, y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"public 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 % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }\n }\n\n public static void main(String[] args)\n {\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}",
"public 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 % min == 0){\n return min;\n } else {\n temp = max % min;\n max = min;\n min = temp;\n }\n }\n }\n\n public static void main(String[] args)\n {\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}",
"Main"
] | 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){
return min;
} else {
temp = max % min;
max = min;
min = temp;
}
}
}
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println(gcd(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,
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,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
76,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
55,
71
],
[
71,
72
],
[
55,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] | [
"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\tlong ans = gcd(x, y);\n\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate static long gcd(long x, long y) {\n\n\t\tif(y == 0) return x;\n\n\t\treturn gcd(y, x%y);\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tlong ans = gcd(x, y);\n\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate static long gcd(long x, long y) {\n\n\t\tif(y == 0) return x;\n\n\t\treturn gcd(y, x%y);\n\n\t}\n}",
"Main",
"public 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\tlong ans = gcd(x, y);\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\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\tlong ans = gcd(x, y);\n\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long x = sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long y = sc.nextLong();",
"y",
"sc.nextLong()",
"sc.nextLong",
"sc",
"sc.close()",
"sc.close",
"sc",
"if(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}",
"y > x",
"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}",
"long tmp;",
"tmp",
"tmp = x",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"long ans = gcd(x, y);",
"ans",
"gcd(x, y)",
"gcd",
"x",
"y",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"private static long gcd(long x, long y) {\n\n\t\tif(y == 0) return x;\n\n\t\treturn gcd(y, x%y);\n\n\t}",
"gcd",
"{\n\n\t\tif(y == 0) return x;\n\n\t\treturn gcd(y, x%y);\n\n\t}",
"if(y == 0) return x;",
"y == 0",
"y",
"0",
"return x;",
"x",
"return gcd(y, x%y);",
"gcd(y, x%y)",
"gcd",
"y",
"x%y",
"x",
"y",
"long x",
"x",
"long y",
"y",
"public 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\tlong ans = gcd(x, y);\n\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate static long gcd(long x, long y) {\n\n\t\tif(y == 0) return x;\n\n\t\treturn gcd(y, x%y);\n\n\t}\n}",
"public 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\tlong ans = gcd(x, y);\n\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate static long gcd(long x, long y) {\n\n\t\tif(y == 0) return x;\n\n\t\treturn gcd(y, x%y);\n\n\t}\n}",
"Main"
] | 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);
}
private static long gcd(long x, long y) {
if(y == 0) return x;
return gcd(y, x%y);
}
} |
[
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,
13,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
38,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
12,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] | [
"\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 int x,y,temp;\n x = scan.nextInt();\n y = scan.nextInt();\n if(y>x){\n temp = x;\n x=y;\n y=temp;\n }\n while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n };\n System.out.println(x);\n\n\n }\n}",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args){\n // write your code here\n \n Scanner scan = new Scanner(System.in);\n int x,y,temp;\n x = scan.nextInt();\n y = scan.nextInt();\n if(y>x){\n temp = x;\n x=y;\n y=temp;\n }\n while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n };\n System.out.println(x);\n\n\n }\n}",
"Main",
"public static void main(String[] args){\n // write your code here\n \n Scanner scan = new Scanner(System.in);\n int x,y,temp;\n x = scan.nextInt();\n y = scan.nextInt();\n if(y>x){\n temp = x;\n x=y;\n y=temp;\n }\n while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n };\n System.out.println(x);\n\n\n }",
"main",
"{\n // write your code here\n \n Scanner scan = new Scanner(System.in);\n int x,y,temp;\n x = scan.nextInt();\n y = scan.nextInt();\n if(y>x){\n temp = x;\n x=y;\n y=temp;\n }\n while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n };\n System.out.println(x);\n\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x",
"x",
"y",
"y",
"temp;",
"temp",
"x = scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y = scan.nextInt()",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(y>x){\n temp = x;\n x=y;\n y=temp;\n }",
"y>x",
"y",
"x",
"{\n temp = x;\n x=y;\n y=temp;\n }",
"temp = x",
"temp",
"x",
"x=y",
"x",
"y",
"y=temp",
"y",
"temp",
"while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n }",
"y!=0",
"y",
"0",
"{\n temp = y;\n y = x%y;\n x = temp;\n }",
"temp = y",
"temp",
"y",
"y = x%y",
"y",
"x%y",
"x",
"y",
"x = temp",
"x",
"temp",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n // write your code here\n \n Scanner scan = new Scanner(System.in);\n int x,y,temp;\n x = scan.nextInt();\n y = scan.nextInt();\n if(y>x){\n temp = x;\n x=y;\n y=temp;\n }\n while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n };\n System.out.println(x);\n\n\n }\n}",
"public class Main {\n\n public static void main(String[] args){\n // write your code here\n \n Scanner scan = new Scanner(System.in);\n int x,y,temp;\n x = scan.nextInt();\n y = scan.nextInt();\n if(y>x){\n temp = x;\n x=y;\n y=temp;\n }\n while(y!=0){\n temp = y;\n y = x%y;\n x = temp;\n };\n System.out.println(x);\n\n\n }\n}",
"Main"
] |
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;
x = scan.nextInt();
y = scan.nextInt();
if(y>x){
temp = x;
x=y;
y=temp;
}
while(y!=0){
temp = y;
y = x%y;
x = temp;
};
System.out.println(x);
}
} |
[
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,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
29,
13,
29,
17,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
42,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
59,
62
],
[
6,
63
],
[
63,
64
],
[
103,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
81,
93
],
[
93,
94
],
[
94,
95
],
[
67,
96
],
[
96,
97
],
[
65,
98
],
[
98,
99
],
[
65,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"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 % y;\n\t x = tmp;\n\t}\n\tSystem.out.println(gcd(x, y));\n }\n static int gcd (int x, int y) {\n\tfor (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}\n\treturn 1;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 % y;\n\t x = tmp;\n\t}\n\tSystem.out.println(gcd(x, y));\n }\n static int gcd (int x, int y) {\n\tfor (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}\n\treturn 1;\n }\n}",
"Main",
"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 % y;\n\t x = tmp;\n\t}\n\tSystem.out.println(gcd(x, y));\n }",
"main",
"{\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 % y;\n\t x = tmp;\n\t}\n\tSystem.out.println(gcd(x, y));\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (x < y) {\n\t int tmp = y;\n\t y = x;\n\t x = tmp;\n\t}",
"x < y",
"x",
"y",
"{\n\t int tmp = y;\n\t y = x;\n\t x = tmp;\n\t}",
"int tmp = y;",
"tmp",
"y",
"y = x",
"y",
"x",
"x = tmp",
"x",
"tmp",
"while (x % y != 0) {\n\t int tmp = y;\n\t y = x % y;\n\t x = tmp;\n\t}",
"x % y != 0",
"x % y",
"x",
"y",
"0",
"{\n\t int tmp = y;\n\t y = x % y;\n\t x = tmp;\n\t}",
"int tmp = y;",
"tmp",
"y",
"y = x % y",
"y",
"x % y",
"x",
"y",
"x = tmp",
"x",
"tmp",
"System.out.println(gcd(x, y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x, y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"static int gcd (int x, int y) {\n\tfor (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}\n\treturn 1;\n }",
"gcd",
"{\n\tfor (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}\n\treturn 1;\n }",
"for (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}",
"int i = x;",
"int i = x;",
"i",
"x",
"i > 0",
"i",
"0",
"i--",
"i--",
"i",
"{\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}",
"{\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}",
"if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }",
"y % i == 0 && x % i == 0",
"y % i == 0",
"y % i",
"y",
"i",
"0",
"x % i == 0",
"x % i",
"x",
"i",
"0",
"{\n\t\treturn i;\n\t }",
"return i;",
"i",
"return 1;",
"1",
"int x",
"x",
"int y",
"y",
"public 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 % y;\n\t x = tmp;\n\t}\n\tSystem.out.println(gcd(x, y));\n }\n static int gcd (int x, int y) {\n\tfor (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}\n\treturn 1;\n }\n}",
"public 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 % y;\n\t x = tmp;\n\t}\n\tSystem.out.println(gcd(x, y));\n }\n static int gcd (int x, int y) {\n\tfor (int i = x; i > 0; i--) {\n\t if (y % i == 0 && x % i == 0) {\n\t\treturn i;\n\t }\n\t}\n\treturn 1;\n }\n}",
"Main"
] | 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.out.println(gcd(x, y));
}
static int gcd (int x, int y) {
for (int i = x; i > 0; i--) {
if (y % i == 0 && x % i == 0) {
return i;
}
}
return 1;
}
} |
[
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,
13,
30,
41,
13,
2,
13,
13,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
12,
51
],
[
51,
52
],
[
79,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
53,
74
],
[
74,
75
],
[
53,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"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\tlong a = Long.valueOf(strArr[0]);\n\t\tlong b = Long.valueOf(strArr[1]);\n\t\tSystem.out.println(gcd(a, b));\n \t}\n\t\n\tprivate static long gcd(long a, long b){\n\t\tlong r = a % b;\n\t\tif(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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\tlong a = Long.valueOf(strArr[0]);\n\t\tlong b = Long.valueOf(strArr[1]);\n\t\tSystem.out.println(gcd(a, b));\n \t}\n\t\n\tprivate static long gcd(long a, long b){\n\t\tlong r = a % b;\n\t\tif(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);\n\t}\n}",
"Main",
"public 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\tlong a = Long.valueOf(strArr[0]);\n\t\tlong b = Long.valueOf(strArr[1]);\n\t\tSystem.out.println(gcd(a, b));\n \t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tlong a = Long.valueOf(strArr[0]);\n\t\tlong b = Long.valueOf(strArr[1]);\n\t\tSystem.out.println(gcd(a, b));\n \t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] strArr = br.readLine().split(\" \");",
"strArr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long a = Long.valueOf(strArr[0]);",
"a",
"Long.valueOf(strArr[0])",
"Long.valueOf",
"Long",
"strArr[0]",
"strArr",
"0",
"long b = Long.valueOf(strArr[1]);",
"b",
"Long.valueOf(strArr[1])",
"Long.valueOf",
"Long",
"strArr[1]",
"strArr",
"1",
"System.out.println(gcd(a, b))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(a, b)",
"gcd",
"a",
"b",
"String[] args",
"args",
"private static long gcd(long a, long b){\n\t\tlong r = a % b;\n\t\tif(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);\n\t}",
"gcd",
"{\n\t\tlong r = a % b;\n\t\tif(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);\n\t}",
"long r = a % b;",
"r",
"a % b",
"a",
"b",
"if(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);",
"r == 0",
"r",
"0",
"return b;",
"b",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public 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\tlong a = Long.valueOf(strArr[0]);\n\t\tlong b = Long.valueOf(strArr[1]);\n\t\tSystem.out.println(gcd(a, b));\n \t}\n\t\n\tprivate static long gcd(long a, long b){\n\t\tlong r = a % b;\n\t\tif(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);\n\t}\n}",
"public 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\tlong a = Long.valueOf(strArr[0]);\n\t\tlong b = Long.valueOf(strArr[1]);\n\t\tSystem.out.println(gcd(a, b));\n \t}\n\t\n\tprivate static long gcd(long a, long b){\n\t\tlong r = a % b;\n\t\tif(r == 0)\n\t\t\treturn b;\n\t\telse\n\t\t\treturn gcd(b, a % b);\n\t}\n}",
"Main"
] | 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(strArr[0]);
long b = Long.valueOf(strArr[1]);
System.out.println(gcd(a, b));
}
private static long gcd(long a, long b){
long r = a % b;
if(r == 0)
return b;
else
return gcd(b, a % b);
}
} |
[
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,
18,
36,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
17,
17,
17,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
29,
13,
13,
6,
13,
41,
13,
20,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
2,
18,
13,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
41,
13,
2,
13,
17,
42,
2,
2,
13,
17,
2,
18,
13,
13,
13,
30,
0,
18,
13,
2,
13,
17,
18,
13,
13,
40,
13,
0,
18,
13,
2,
13,
17,
13,
4,
18,
20,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
30,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
20,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
12,
30
],
[
30,
31
],
[
12,
32
],
[
32,
33
],
[
12,
34
],
[
34,
35
],
[
4,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
4,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
4,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
57,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
66,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
63,
81
],
[
81,
82
],
[
63,
83
],
[
83,
84
],
[
57,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
57,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
57,
95
],
[
0,
96
],
[
267,
97
],
[
267,
98
],
[
98,
99
],
[
98,
100
],
[
267,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
104,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
103,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
101,
143
],
[
143,
144
],
[
267,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
148,
158
],
[
158,
159
],
[
159,
160
],
[
148,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
162,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
162,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
173,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
187,
189
],
[
184,
190
],
[
190,
191
],
[
190,
192
],
[
183,
193
],
[
193,
194
],
[
162,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
195,
201
],
[
162,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
147,
206
],
[
206,
207
],
[
145,
208
],
[
208,
209
],
[
267,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
217,
218
],
[
218,
219
],
[
213,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
222,
225
],
[
225,
226
],
[
225,
227
],
[
210,
228
],
[
228,
229
],
[
210,
230
],
[
230,
231
],
[
267,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
234,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
234,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
247,
251
],
[
234,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
252,
257
],
[
267,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
258,
264
],
[
264,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
] | [
"\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.region;\n }\n\n public String getGenus()\n {\n return this.genus;\n }\n\n public String getName()\n {\n return this.name;\n }\n}\n\nclass Human extends Animal\n{\n String sex;\n String bloodGroup;\n\n public Human(String sex, String bloodGroup)\n {\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }\n\n public String getSex()\n {\n return sex;\n }\n\n public String getBloodGroup()\n {\n return bloodGroup;\n }\n}\n\npublic class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int a = in.nextInt();\n int b = in.nextInt();\n\n int value = new Main().gcd(a, b);\n\n System.out.println(value);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class 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.region;\n }\n\n public String getGenus()\n {\n return this.genus;\n }\n\n public String getName()\n {\n return this.name;\n }\n}",
"Animal",
"String name;",
"name",
"String genus;",
"genus",
"int region;",
"region",
"public Animal(String name, String genus, int region)\n {\n this.name = name;\n this.genus = genus;\n this.region = region;\n }",
"Animal",
"{\n this.name = name;\n this.genus = genus;\n this.region = region;\n }",
"this.name = name",
"this.name",
"this",
"this.name",
"name",
"this.genus = genus",
"this.genus",
"this",
"this.genus",
"genus",
"this.region = region",
"this.region",
"this",
"this.region",
"region",
"String name",
"name",
"String genus",
"genus",
"int region",
"region",
"public int getRegion()\n {\n return this.region;\n }",
"getRegion",
"{\n return this.region;\n }",
"return this.region;",
"this.region",
"this",
"this.region",
"public String getGenus()\n {\n return this.genus;\n }",
"getGenus",
"{\n return this.genus;\n }",
"return this.genus;",
"this.genus",
"this",
"this.genus",
"public String getName()\n {\n return this.name;\n }",
"getName",
"{\n return this.name;\n }",
"return this.name;",
"this.name",
"this",
"this.name",
"class Human extends Animal\n{\n String sex;\n String bloodGroup;\n\n public Human(String sex, String bloodGroup)\n {\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }\n\n public String getSex()\n {\n return sex;\n }\n\n public String getBloodGroup()\n {\n return bloodGroup;\n }\n}",
"Human",
"String sex;",
"sex",
"String bloodGroup;",
"bloodGroup",
"public Human(String sex, String bloodGroup)\n {\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }",
"Human",
"{\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }",
"super(\"HS\", \"homo\", 1)",
"super",
"\"HS\"",
"\"homo\"",
"1",
"this.sex = sex",
"this.sex",
"this",
"this.sex",
"sex",
"this.bloodGroup = bloodGroup",
"this.bloodGroup",
"this",
"this.bloodGroup",
"bloodGroup",
"String sex",
"sex",
"String bloodGroup",
"bloodGroup",
"public String getSex()\n {\n return sex;\n }",
"getSex",
"{\n return sex;\n }",
"return sex;",
"sex",
"public String getBloodGroup()\n {\n return bloodGroup;\n }",
"getBloodGroup",
"{\n return bloodGroup;\n }",
"return bloodGroup;",
"bloodGroup",
"Animal",
"public class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int a = in.nextInt();\n int b = in.nextInt();\n\n int value = new Main().gcd(a, b);\n\n System.out.println(value);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}",
"Main",
"public static Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }",
"print",
"{\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }",
"for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <a.length-1",
"i",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"i++",
"i++",
"i",
"{\n System.out.print(a[i]+\" \");\n }",
"{\n System.out.print(a[i]+\" \");\n }",
"System.out.print(a[i]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"a[i]+\" \"",
"a[i]",
"a",
"i",
"\" \"",
"System.out.println(a[a.length-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"a[a.length-1]",
"a",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"int[] a",
"a",
"public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }",
"insert",
"{\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }",
"for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }",
"{\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }",
"int key=a[i];",
"key",
"a[i]",
"a",
"i",
"int j=i-1;",
"j",
"i-1",
"i",
"1",
"while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }",
"j>=0 && a[j]>key",
"j>=0",
"j",
"0",
"a[j]>key",
"a[j]",
"a",
"j",
"key",
"{\n a[j+1] = a[j];\n j--;\n }",
"a[j+1] = a[j]",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"a[j]",
"a",
"j",
"j--",
"j",
"a[j+1] = key",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"key",
"new Main().print(a)",
"new Main().print",
"new Main()",
"a",
"return a;",
"a",
"int[] a",
"a",
"public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }",
"gcd",
"{\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }",
"if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"{\n return gcd(b, a%b);\n }",
"return gcd(b, a%b);",
"gcd(b, a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public void go()\n {\n int a = in.nextInt();\n int b = in.nextInt();\n\n int value = new Main().gcd(a, b);\n\n System.out.println(value);\n\n }",
"go",
"{\n int a = in.nextInt();\n int b = in.nextInt();\n\n int value = new Main().gcd(a, b);\n\n System.out.println(value);\n\n }",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"int b = in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"int value = new Main().gcd(a, b);",
"value",
"new Main().gcd(a, b)",
"new Main().gcd",
"new Main()",
"a",
"b",
"System.out.println(value)",
"System.out.println",
"System.out",
"System",
"System.out",
"value",
"public static void main(String[] args)\n {\n new Main().go();\n\n\n }",
"main",
"{\n new Main().go();\n\n\n }",
"new Main().go()",
"new Main().go",
"new Main()",
"String[] args",
"args",
"public class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int a = in.nextInt();\n int b = in.nextInt();\n\n int value = new Main().gcd(a, b);\n\n System.out.println(value);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}",
"public class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int a = in.nextInt();\n int b = in.nextInt();\n\n int value = new Main().gcd(a, b);\n\n System.out.println(value);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}",
"Main"
] |
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;
}
public String getGenus()
{
return this.genus;
}
public String getName()
{
return this.name;
}
}
class Human extends Animal
{
String sex;
String bloodGroup;
public Human(String sex, String bloodGroup)
{
super("HS", "homo", 1);
this.sex = sex;
this.bloodGroup = bloodGroup;
}
public String getSex()
{
return sex;
}
public String getBloodGroup()
{
return bloodGroup;
}
}
public class Main
{
public static Scanner in = new Scanner(System.in);
public void print(int[] a)
{
for (int i = 0; i <a.length-1 ; i++)
{
System.out.print(a[i]+" ");
}
System.out.println(a[a.length-1]);
}
public int[] insert(int[] a)
{
for (int i = 0; i <a.length ; i++)
{
int key=a[i];
int j=i-1;
while (j>=0 && a[j]>key)
{
a[j+1] = a[j];
j--;
}
a[j+1] = key;
new Main().print(a);
}
return a;
}
public int gcd(int a, int b)
{
if(b==0)
{
return a;
}
else
{
return gcd(b, a%b);
}
}
public void go()
{
int a = in.nextInt();
int b = in.nextInt();
int value = new Main().gcd(a, b);
System.out.println(value);
}
public static void main(String[] args)
{
new Main().go();
}
} |
[
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,
41,
13,
17,
0,
13,
4,
13,
8,
2,
13,
13,
13,
13,
0,
13,
4,
13,
13,
11,
1,
41,
13,
17,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
18,
13,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
41,
13,
17,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
18,
13,
40,
13,
13,
0,
13,
2,
13,
13,
0,
18,
13,
40,
13,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
2,
13,
13,
18,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
8,
2,
13,
13,
2,
13,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
17,
29,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
16,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
16,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
16,
50
],
[
50,
51
],
[
16,
52
],
[
52,
53
],
[
16,
54
],
[
54,
55
],
[
54,
56
],
[
16,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
61,
66
],
[
16,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
16,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
73,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
72,
85
],
[
85,
86
],
[
85,
87
],
[
72,
88
],
[
88,
89
],
[
89,
90
],
[
72,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
93,
105
],
[
105,
106
],
[
106,
107
],
[
93,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
16,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
12,
129
],
[
129,
130
],
[
285,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
142
],
[
142,
143
],
[
142,
144
],
[
133,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
150,
152
],
[
146,
153
],
[
153,
154
],
[
153,
155
],
[
145,
156
],
[
156,
157
],
[
156,
158
],
[
145,
159
],
[
159,
160
],
[
160,
161
],
[
145,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
171,
176
],
[
170,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
170,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
182,
187
],
[
133,
188
],
[
188,
189
],
[
188,
190
],
[
191,
192
],
[
191,
193
],
[
133,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
203,
204
],
[
194,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
214,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
133,
225
],
[
225,
226
],
[
131,
227
],
[
227,
228
],
[
285,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
238,
240
],
[
234,
241
],
[
241,
242
],
[
241,
243
],
[
231,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
249,
250
],
[
249,
251
],
[
244,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
252,
259
],
[
259,
260
],
[
260,
261
],
[
259,
262
],
[
244,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
268,
273
],
[
267,
274
],
[
274,
275
],
[
275,
276
],
[
274,
277
],
[
231,
278
],
[
278,
279
],
[
229,
280
],
[
280,
281
],
[
229,
282
],
[
282,
283
],
[
0,
284
],
[
284,
285
],
[
284,
286
]
] | [
"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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }\n }\n\n static int[] commonDivisor(int n) {\n int[] div = new int[5000];\n int[] buf = new int[5000];\n int counter = 0;\n\n for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }\n int[] ret = new int[(counter)*2];\n for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }\n\n return ret;\n }\n\n static int calcRemaider(int x, int y) {\n int z = x>y ? x%y : y%x;\n\n if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }\n\n return z;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }\n }\n\n static int[] commonDivisor(int n) {\n int[] div = new int[5000];\n int[] buf = new int[5000];\n int counter = 0;\n\n for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }\n int[] ret = new int[(counter)*2];\n for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }\n\n return ret;\n }\n\n static int calcRemaider(int x, int y) {\n int z = x>y ? x%y : y%x;\n\n if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }\n\n return z;\n }\n}",
"Main",
"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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }\n }",
"main",
"{\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }\n }",
"try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }",
"{\n\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int x = Integer.parseInt( str[0] );",
"x",
"Integer.parseInt( str[0] )",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int y = Integer.parseInt( str[1] );",
"y",
"Integer.parseInt( str[1] )",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int z = calcRemaider(x, y);",
"z",
"calcRemaider(x, y)",
"calcRemaider",
"x",
"y",
"int[] aDiv",
"aDiv",
"az;",
"az",
"int result=0;",
"result",
"0",
"aDiv = commonDivisor( x>y ? y : x )",
"aDiv",
"commonDivisor( x>y ? y : x )",
"commonDivisor",
"x>y ? y : x",
"x>y",
"x",
"y",
"y",
"x",
"az = commonDivisor(z)",
"az",
"commonDivisor(z)",
"commonDivisor",
"z",
"for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }",
"int i=0, j=0, max = az.length;",
"int i=0",
"i",
"0",
"j=0",
"j",
"0",
"max = az.length;",
"max",
"az.length",
"az",
"az.length",
"i<max",
"i",
"max",
"i++",
"i++",
"i",
"{\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }",
"{\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }",
"for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }",
"j=0;",
"j=0",
"j",
"0",
"aDiv[j] <= az[i]",
"aDiv[j]",
"aDiv",
"j",
"az[i]",
"az",
"i",
"j++",
"j++",
"j",
"{\n if(aDiv[j] == az[i]) result = aDiv[j];\n }",
"{\n if(aDiv[j] == az[i]) result = aDiv[j];\n }",
"if(aDiv[j] == az[i]) result = aDiv[j];",
"aDiv[j] == az[i]",
"aDiv[j]",
"aDiv",
"j",
"az[i]",
"az",
"i",
"result = aDiv[j]",
"result",
"aDiv[j]",
"aDiv",
"j",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"static int[] commonDivisor(int n) {\n int[] div = new int[5000];\n int[] buf = new int[5000];\n int counter = 0;\n\n for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }\n int[] ret = new int[(counter)*2];\n for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }\n\n return ret;\n }",
"commonDivisor",
"{\n int[] div = new int[5000];\n int[] buf = new int[5000];\n int counter = 0;\n\n for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }\n int[] ret = new int[(counter)*2];\n for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }\n\n return ret;\n }",
"int[] div = new int[5000];",
"div",
"new int[5000]",
"5000",
"int[] buf = new int[5000];",
"buf",
"new int[5000]",
"5000",
"int counter = 0;",
"counter",
"0",
"for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }",
"int i=1, j=0, max=n;",
"int i=1",
"i",
"1",
"j=0",
"j",
"0",
"max=n;",
"max",
"n",
"i<max",
"i",
"max",
"i++",
"i++",
"i",
"{\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }",
"{\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }",
"if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }",
"n%i == 0",
"n%i",
"n",
"i",
"0",
"{\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }",
"div[j++] = i",
"div[j++]",
"div",
"j++",
"j",
"i",
"max = n/i",
"max",
"n/i",
"n",
"i",
"buf[++counter] = max",
"buf[++counter]",
"buf",
"++counter",
"counter",
"max",
"int[] ret = new int[(counter)*2];",
"ret",
"new int[(counter)*2]",
"(counter)*2",
"(counter)",
"2",
"for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i != counter",
"i",
"counter",
"i++",
"i++",
"i",
"{\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }",
"{\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }",
"ret[i] = div[i]",
"ret[i]",
"ret",
"i",
"div[i]",
"div",
"i",
"ret[counter + i] = buf[counter-i]",
"ret[counter + i]",
"ret",
"counter + i",
"counter",
"i",
"buf[counter-i]",
"buf",
"counter-i",
"counter",
"i",
"return ret;",
"ret",
"int n",
"n",
"static int calcRemaider(int x, int y) {\n int z = x>y ? x%y : y%x;\n\n if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }\n\n return z;\n }",
"calcRemaider",
"{\n int z = x>y ? x%y : y%x;\n\n if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }\n\n return z;\n }",
"int z = x>y ? x%y : y%x;",
"z",
"x>y ? x%y : y%x",
"x>y",
"x",
"y",
"x%y",
"x",
"y",
"y%x",
"y",
"x",
"if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }",
"x > y && z == 0",
"x > y",
"x",
"y",
"z == 0",
"z",
"0",
"{\n System.out.println(y);\n System.exit(0);\n\n }",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"System.exit(0)",
"System.exit",
"System",
"0",
"if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }",
"z == 0",
"z",
"0",
"{\n System.out.println(x);\n System.exit(0);\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"System.exit(0)",
"System.exit",
"System",
"0",
"return z;",
"z",
"int x",
"x",
"int y",
"y",
"public 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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }\n }\n\n static int[] commonDivisor(int n) {\n int[] div = new int[5000];\n int[] buf = new int[5000];\n int counter = 0;\n\n for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }\n int[] ret = new int[(counter)*2];\n for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }\n\n return ret;\n }\n\n static int calcRemaider(int x, int y) {\n int z = x>y ? x%y : y%x;\n\n if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }\n\n return z;\n }\n}",
"public 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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n int z = calcRemaider(x, y);\n\n int[] aDiv,az;\n int result=0;\n\n aDiv = commonDivisor( x>y ? y : x );\n az = commonDivisor(z);\n for( int i=0, j=0, max = az.length; i<max; i++ ) {\n for( j=0; aDiv[j] <= az[i]; j++){\n if(aDiv[j] == az[i]) result = aDiv[j];\n }\n }\n\n System.out.println(result);\n }\n }\n\n static int[] commonDivisor(int n) {\n int[] div = new int[5000];\n int[] buf = new int[5000];\n int counter = 0;\n\n for(int i=1, j=0, max=n; i<max; i++){\n if( n%i == 0) {\n div[j++] = i;\n max = n/i;\n buf[++counter] = max;\n }\n }\n int[] ret = new int[(counter)*2];\n for(int i=0 ; i != counter; i++){\n ret[i] = div[i];\n ret[counter + i] = buf[counter-i];\n }\n\n return ret;\n }\n\n static int calcRemaider(int x, int y) {\n int z = x>y ? x%y : y%x;\n\n if( x > y && z == 0 ) {\n System.out.println(y);\n System.exit(0);\n\n } else if( z == 0 ) {\n System.out.println(x);\n System.exit(0);\n }\n\n return z;\n }\n}",
"Main"
] | 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(" ");
int x = Integer.parseInt( str[0] );
int y = Integer.parseInt( str[1] );
int z = calcRemaider(x, y);
int[] aDiv,az;
int result=0;
aDiv = commonDivisor( x>y ? y : x );
az = commonDivisor(z);
for( int i=0, j=0, max = az.length; i<max; i++ ) {
for( j=0; aDiv[j] <= az[i]; j++){
if(aDiv[j] == az[i]) result = aDiv[j];
}
}
System.out.println(result);
}
}
static int[] commonDivisor(int n) {
int[] div = new int[5000];
int[] buf = new int[5000];
int counter = 0;
for(int i=1, j=0, max=n; i<max; i++){
if( n%i == 0) {
div[j++] = i;
max = n/i;
buf[++counter] = max;
}
}
int[] ret = new int[(counter)*2];
for(int i=0 ; i != counter; i++){
ret[i] = div[i];
ret[counter + i] = buf[counter-i];
}
return ret;
}
static int calcRemaider(int x, int y) {
int z = x>y ? x%y : y%x;
if( x > y && z == 0 ) {
System.out.println(y);
System.exit(0);
} else if( z == 0 ) {
System.out.println(x);
System.exit(0);
}
return z;
}
}
|
[
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,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
36,
38
],
[
24,
39
],
[
39,
40
],
[
39,
41
],
[
24,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
24,
47
],
[
47,
48
],
[
47,
49
],
[
24,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] | [
"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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(x);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(x);\n\n\t}\n\n}",
"Main",
"public 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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(x);\n\n\t}",
"main",
"{\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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(x);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}",
"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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}",
"if (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}",
"x < y",
"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}",
"int tmp1 = x;",
"tmp1",
"x",
"x = y",
"x",
"y",
"y = tmp1",
"y",
"tmp1",
"int tmp2 = y;",
"tmp2",
"y",
"y = x % y",
"y",
"x % y",
"x",
"y",
"x = tmp2",
"x",
"tmp2",
"if (y == 0)\n\t\t\t\tbreak;",
"y == 0",
"y",
"0",
"break;",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public 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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(x);\n\n\t}\n\n}",
"public 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 tmp2 = y;\n\t\t\ty = x % y;\n\t\t\tx = tmp2;\n\t\t\tif (y == 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(x);\n\n\t}\n\n}",
"Main"
] | 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)
break;
}
System.out.println(x);
}
}
|
[
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,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
13,
14,
2,
13,
13,
30,
29,
4,
13,
13,
13,
30,
29,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
53,
56
],
[
49,
57
],
[
6,
58
],
[
58,
59
],
[
102,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
62,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
77,
83
],
[
62,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
90,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
60,
97
],
[
97,
98
],
[
60,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"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\tnum1 = sub;\n\t\t}\n\t\t\n\t\tSystem.out.println(num1 != num2 ? gcd(num1, num2) : num1);\n\t}\n\t\n\tpublic static int gcd(int num1, int num2){\n\t\tint sub = num1;\n\t\tnum1 = Math.max(num1 - num2, num2);\n\t\tnum2 = Math.min(sub - num2, num2);\n\t\tif(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tnum1 = sub;\n\t\t}\n\t\t\n\t\tSystem.out.println(num1 != num2 ? gcd(num1, num2) : num1);\n\t}\n\t\n\tpublic static int gcd(int num1, int num2){\n\t\tint sub = num1;\n\t\tnum1 = Math.max(num1 - num2, num2);\n\t\tnum2 = Math.min(sub - num2, num2);\n\t\tif(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}\n\t}\n\n}",
"Main",
"public 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\tnum1 = sub;\n\t\t}\n\t\t\n\t\tSystem.out.println(num1 != num2 ? gcd(num1, num2) : num1);\n\t}",
"main",
"{\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\tnum1 = sub;\n\t\t}\n\t\t\n\t\tSystem.out.println(num1 != num2 ? gcd(num1, num2) : num1);\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int num1 = Integer.parseInt(s.next());",
"num1",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"int num2 = Integer.parseInt(s.next());",
"num2",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"int sub;",
"sub",
"if(num2 > num1){\n\t\t\tsub = num2;\n\t\t\tnum2 = num1;\n\t\t\tnum1 = sub;\n\t\t}",
"num2 > num1",
"num2",
"num1",
"{\n\t\t\tsub = num2;\n\t\t\tnum2 = num1;\n\t\t\tnum1 = sub;\n\t\t}",
"sub = num2",
"sub",
"num2",
"num2 = num1",
"num2",
"num1",
"num1 = sub",
"num1",
"sub",
"System.out.println(num1 != num2 ? gcd(num1, num2) : num1)",
"System.out.println",
"System.out",
"System",
"System.out",
"num1 != num2 ? gcd(num1, num2) : num1",
"num1 != num2",
"num1",
"num2",
"gcd(num1, num2)",
"gcd",
"num1",
"num2",
"num1",
"String[] args",
"args",
"public static int gcd(int num1, int num2){\n\t\tint sub = num1;\n\t\tnum1 = Math.max(num1 - num2, num2);\n\t\tnum2 = Math.min(sub - num2, num2);\n\t\tif(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}\n\t}",
"gcd",
"{\n\t\tint sub = num1;\n\t\tnum1 = Math.max(num1 - num2, num2);\n\t\tnum2 = Math.min(sub - num2, num2);\n\t\tif(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}\n\t}",
"int sub = num1;",
"sub",
"num1",
"num1 = Math.max(num1 - num2, num2)",
"num1",
"Math.max(num1 - num2, num2)",
"Math.max",
"Math",
"num1 - num2",
"num1",
"num2",
"num2",
"num2 = Math.min(sub - num2, num2)",
"num2",
"Math.min(sub - num2, num2)",
"Math.min",
"Math",
"sub - num2",
"sub",
"num2",
"num2",
"if(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}",
"num1 != num2",
"num1",
"num2",
"{\n\t\t\treturn gcd(num1, num2);\n\t\t}",
"return gcd(num1, num2);",
"gcd(num1, num2)",
"gcd",
"num1",
"num2",
"{\n\t\t\treturn num2;\n\t\t}",
"return num2;",
"num2",
"int num1",
"num1",
"int num2",
"num2",
"public 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\tnum1 = sub;\n\t\t}\n\t\t\n\t\tSystem.out.println(num1 != num2 ? gcd(num1, num2) : num1);\n\t}\n\t\n\tpublic static int gcd(int num1, int num2){\n\t\tint sub = num1;\n\t\tnum1 = Math.max(num1 - num2, num2);\n\t\tnum2 = Math.min(sub - num2, num2);\n\t\tif(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}\n\t}\n\n}",
"public 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\tnum1 = sub;\n\t\t}\n\t\t\n\t\tSystem.out.println(num1 != num2 ? gcd(num1, num2) : num1);\n\t}\n\t\n\tpublic static int gcd(int num1, int num2){\n\t\tint sub = num1;\n\t\tnum1 = Math.max(num1 - num2, num2);\n\t\tnum2 = Math.min(sub - num2, num2);\n\t\tif(num1 != num2){\n\t\t\treturn gcd(num1, num2);\n\t\t}else{\n\t\t\treturn num2;\n\t\t}\n\t}\n\n}",
"Main"
] | 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(num1 != num2 ? gcd(num1, num2) : num1);
}
public static int gcd(int num1, int num2){
int sub = num1;
num1 = Math.max(num1 - num2, num2);
num2 = Math.min(sub - num2, num2);
if(num1 != num2){
return gcd(num1, num2);
}else{
return num2;
}
}
} |
[
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,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
4,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
36,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
33,
51
],
[
51,
52
],
[
33,
53
],
[
53,
54
]
] | [
"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, x % y);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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, x % y);\n\t\t}\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(gcd(x,y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x,y)",
"gcd",
"x",
"y",
"String[]agrs",
"agrs",
"static 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, x % y);\n\t\t}\n\t}",
"gcd",
"{\n\t\tif(y == 0){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn gcd(y, x % y);\n\t\t}\n\t}",
"if(y == 0){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn gcd(y, x % y);\n\t\t}",
"y == 0",
"y",
"0",
"{\n\t\t\treturn x;\n\t\t}",
"return x;",
"x",
"{\n\t\t\treturn gcd(y, x % y);\n\t\t}",
"return gcd(y, x % y);",
"gcd(y, x % y)",
"gcd",
"y",
"x % y",
"x",
"y",
"int x",
"x",
"int y",
"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,
13,
14,
2,
13,
17,
30,
29,
13,
30,
29,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
73,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
35,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
35,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
55,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
33,
68
],
[
68,
69
],
[
33,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] | [
"\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 long gcd(long x,long y){\n long minXY=Math.min(x,y);\n long maxXY=Math.max(x,y);\n long z=maxXY%minXY;\n if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }\n }\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 long gcd(long x,long y){\n long minXY=Math.min(x,y);\n long maxXY=Math.max(x,y);\n long z=maxXY%minXY;\n if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }\n }\n\n}",
"Main",
"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 }",
"main",
"{\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 }",
"Scanner scanner =new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long x=scanner.nextLong();",
"x",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long y=scanner.nextLong();",
"y",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"System.out.println(gcd(x,y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x,y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"public static long gcd(long x,long y){\n long minXY=Math.min(x,y);\n long maxXY=Math.max(x,y);\n long z=maxXY%minXY;\n if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }\n }",
"gcd",
"{\n long minXY=Math.min(x,y);\n long maxXY=Math.max(x,y);\n long z=maxXY%minXY;\n if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }\n }",
"long minXY=Math.min(x,y);",
"minXY",
"Math.min(x,y)",
"Math.min",
"Math",
"x",
"y",
"long maxXY=Math.max(x,y);",
"maxXY",
"Math.max(x,y)",
"Math.max",
"Math",
"x",
"y",
"long z=maxXY%minXY;",
"z",
"maxXY%minXY",
"maxXY",
"minXY",
"if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }",
"z==0",
"z",
"0",
"{\n return minXY;\n }",
"return minXY;",
"minXY",
"{\n return gcd(minXY,z);\n }",
"return gcd(minXY,z);",
"gcd(minXY,z)",
"gcd",
"minXY",
"z",
"long x",
"x",
"long y",
"y",
"public 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 long gcd(long x,long y){\n long minXY=Math.min(x,y);\n long maxXY=Math.max(x,y);\n long z=maxXY%minXY;\n if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }\n }\n\n}",
"public 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 long gcd(long x,long y){\n long minXY=Math.min(x,y);\n long maxXY=Math.max(x,y);\n long z=maxXY%minXY;\n if(z==0){\n return minXY;\n }else{\n return gcd(minXY,z);\n }\n }\n\n}",
"Main"
] |
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 y){
long minXY=Math.min(x,y);
long maxXY=Math.max(x,y);
long z=maxXY%minXY;
if(z==0){
return minXY;
}else{
return gcd(minXY,z);
}
}
}
|
[
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,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
] | [
[
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
],
[
95,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
15,
21
],
[
21,
22
],
[
95,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
95,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
68,
70
],
[
53,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
53,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
53,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] | [
"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\tsolve();\n\t}\n }\n\n void solve(){\n\tif(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}\n\t/*\n\t a < b ??即???????????????\n\t a*b == GCD*LCM ??則?????????\n\t */\n\tlong lcm = b;\t\n\twhile(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}\n\tans = a*b/lcm;\n\n\tSystem.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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\tsolve();\n\t}\n }\n\n void solve(){\n\tif(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}\n\t/*\n\t a < b ??即???????????????\n\t a*b == GCD*LCM ??則?????????\n\t */\n\tlong lcm = b;\t\n\twhile(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}\n\tans = a*b/lcm;\n\n\tSystem.out.println(ans);\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a",
"a",
"b;",
"b",
"long ans;",
"ans",
"public static void main(String[] args){\n\tnew Main().run();\n }",
"main",
"{\n\tnew Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"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\tsolve();\n\t}\n }",
"run",
"{\n\twhile(sc.hasNext()){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t if(a!=0 && b!=0)\n\t\tsolve();\n\t}\n }",
"while(sc.hasNext()){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t if(a!=0 && b!=0)\n\t\tsolve();\n\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t if(a!=0 && b!=0)\n\t\tsolve();\n\t}",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a!=0 && b!=0)\n\t\tsolve();",
"a!=0 && b!=0",
"a!=0",
"a",
"0",
"b!=0",
"b",
"0",
"solve()",
"solve",
"void solve(){\n\tif(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}\n\t/*\n\t a < b ??即???????????????\n\t a*b == GCD*LCM ??則?????????\n\t */\n\tlong lcm = b;\t\n\twhile(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}\n\tans = a*b/lcm;\n\n\tSystem.out.println(ans);\n }",
"solve",
"{\n\tif(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}\n\t/*\n\t a < b ??即???????????????\n\t a*b == GCD*LCM ??則?????????\n\t */\n\tlong lcm = b;\t\n\twhile(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}\n\tans = a*b/lcm;\n\n\tSystem.out.println(ans);\n }",
"if(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}",
"a>b",
"a",
"b",
"{\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}",
"long tmp = a;",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"long lcm = b;",
"lcm",
"b",
"while(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}",
"lcm%a!=0",
"lcm%a",
"lcm",
"a",
"0",
"{\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}",
"lcm+=b",
"lcm",
"b",
"ans = a*b/lcm",
"ans",
"a*b/lcm",
"a*b",
"a",
"b",
"lcm",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"public 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\tsolve();\n\t}\n }\n\n void solve(){\n\tif(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}\n\t/*\n\t a < b ??即???????????????\n\t a*b == GCD*LCM ??則?????????\n\t */\n\tlong lcm = b;\t\n\twhile(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}\n\tans = a*b/lcm;\n\n\tSystem.out.println(ans);\n }\n}",
"public 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\tsolve();\n\t}\n }\n\n void solve(){\n\tif(a>b){\n\t long tmp = a;\n\t a = b;\n\t b = tmp;\n\t}\n\t/*\n\t a < b ??即???????????????\n\t a*b == GCD*LCM ??則?????????\n\t */\n\tlong lcm = b;\t\n\twhile(lcm%a!=0) {\n\t lcm+=b;\n\t //System.out.println(a+\" \"+b+\" \"+lcm);\n\t}\n\tans = a*b/lcm;\n\n\tSystem.out.println(ans);\n }\n}",
"Main"
] | 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 solve(){
if(a>b){
long tmp = a;
a = b;
b = tmp;
}
/*
a < b ??即???????????????
a*b == GCD*LCM ??則?????????
*/
long lcm = b;
while(lcm%a!=0) {
lcm+=b;
//System.out.println(a+" "+b+" "+lcm);
}
ans = a*b/lcm;
System.out.println(ans);
}
} |
[
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,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] | [
"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.println(a);\n}\n}\n",
"import java.util.*;",
"util.*",
"java",
"public 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.println(a);\n}\n}",
"Main",
"public 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.println(a);\n}",
"main",
"{\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.println(a);\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c;",
"c",
"while(!(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}",
"!(a==b)",
"(a==b)",
"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}",
"if(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}",
"a<b",
"a",
"b",
"{\n\t\t\tc=b-a;\n\t\t\tb=c;\n\t\t}",
"c=b-a",
"c",
"b-a",
"b",
"a",
"b=c",
"b",
"c",
"{\n\t\t\tc=a-b;\n\t\t\ta=c;\n\t\t}",
"c=a-b",
"c",
"a-b",
"a",
"b",
"a=c",
"a",
"c",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public 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.println(a);\n}\n}",
"public 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.println(a);\n}\n}",
"Main"
] | 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,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
4,
13,
13,
13,
23,
13,
23,
13,
23,
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,
10,
6,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
106,
17
],
[
106,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
106,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
70,
73
],
[
53,
74
],
[
74,
75
],
[
53,
76
],
[
76,
77
],
[
53,
78
],
[
78,
79
],
[
51,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
87,
96
],
[
96,
97
],
[
96,
98
],
[
82,
99
],
[
99,
100
],
[
80,
101
],
[
101,
102
],
[
80,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"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 inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AizuGCD solver = new AizuGCD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AizuGCD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }\n\n private int gcd(int x, int y) {\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }\n\n }\n}\n\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AizuGCD solver = new AizuGCD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AizuGCD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }\n\n private int gcd(int x, int y) {\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AizuGCD solver = new AizuGCD();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AizuGCD solver = new AizuGCD();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"AizuGCD solver = new AizuGCD();",
"solver",
"new AizuGCD()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AizuGCD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }\n\n private int gcd(int x, int y) {\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }\n\n }",
"AizuGCD",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }",
"solve",
"{\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"out.printf(\"%d\\n\", gcd(x, y))",
"out.printf",
"out",
"\"%d\\n\"",
"gcd(x, y)",
"gcd",
"x",
"y",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"private int gcd(int x, int y) {\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }",
"gcd",
"{\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }",
"while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }",
"y != 0",
"y",
"0",
"{\n int t = x % y;\n x = y;\n y = t;\n }",
"int t = x % y;",
"t",
"x % y",
"x",
"y",
"x = y",
"x",
"y",
"y = t",
"y",
"t",
"return x;",
"x",
"int x",
"x",
"int y",
"y",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AizuGCD solver = new AizuGCD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AizuGCD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }\n\n private int gcd(int x, int y) {\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AizuGCD solver = new AizuGCD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AizuGCD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n out.printf(\"%d\\n\", gcd(x, y));\n }\n\n private int gcd(int x, int y) {\n while (y != 0) {\n int t = x % y;\n x = y;\n y = t;\n }\n\n return x;\n }\n\n }\n}",
"Main"
] | 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;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
AizuGCD solver = new AizuGCD();
solver.solve(1, in, out);
out.close();
}
static class AizuGCD {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int x = in.nextInt();
int y = in.nextInt();
out.printf("%d\n", gcd(x, y));
}
private int gcd(int x, int y) {
while (y != 0) {
int t = x % y;
x = y;
y = t;
}
return x;
}
}
}
|
[
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,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
22,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
6,
50
],
[
50,
51
],
[
79,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
54,
72
],
[
72,
73
],
[
52,
74
],
[
74,
75
],
[
52,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"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(calculate(y, x));\n\t\t}\n\t}\n\n\tprivate static int calculate(int a, int b) {\n\t\tint tempt;\n\t\twhile ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}\n\t\treturn b;\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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(calculate(y, x));\n\t\t}\n\t}\n\n\tprivate static int calculate(int a, int b) {\n\t\tint tempt;\n\t\twhile ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}\n\t\treturn b;\n\t}\n}",
"Main",
"public 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(calculate(y, x));\n\t\t}\n\t}",
"main",
"{\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(calculate(y, x));\n\t\t}\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int x = scn.nextInt();",
"x",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int y = scn.nextInt();",
"y",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if (x >= y) {\n\t\t\tSystem.out.println(calculate(x, y));\n\t\t} else if (x < y) {\n\t\t\tSystem.out.println(calculate(y, x));\n\t\t}",
"x >= y",
"x",
"y",
"{\n\t\t\tSystem.out.println(calculate(x, y));\n\t\t}",
"System.out.println(calculate(x, y))",
"System.out.println",
"System.out",
"System",
"System.out",
"calculate(x, y)",
"calculate",
"x",
"y",
"if (x < y) {\n\t\t\tSystem.out.println(calculate(y, x));\n\t\t}",
"x < y",
"x",
"y",
"{\n\t\t\tSystem.out.println(calculate(y, x));\n\t\t}",
"System.out.println(calculate(y, x))",
"System.out.println",
"System.out",
"System",
"System.out",
"calculate(y, x)",
"calculate",
"y",
"x",
"String[] args",
"args",
"private static int calculate(int a, int b) {\n\t\tint tempt;\n\t\twhile ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}\n\t\treturn b;\n\t}",
"calculate",
"{\n\t\tint tempt;\n\t\twhile ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}\n\t\treturn b;\n\t}",
"int tempt;",
"tempt",
"while ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}",
"(tempt = a % b) != 0",
"(tempt = a % b)",
"tempt",
"a % b",
"a",
"b",
"0",
"{\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}",
"a = b",
"a",
"b",
"b = tempt",
"b",
"tempt",
"return b;",
"b",
"int a",
"a",
"int b",
"b",
"public 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(calculate(y, x));\n\t\t}\n\t}\n\n\tprivate static int calculate(int a, int b) {\n\t\tint tempt;\n\t\twhile ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}\n\t\treturn b;\n\t}\n}",
"public 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(calculate(y, x));\n\t\t}\n\t}\n\n\tprivate static int calculate(int a, int b) {\n\t\tint tempt;\n\t\twhile ((tempt = a % b) != 0) {\n\t\t\ta = b;\n\t\t\tb = tempt;\n\t\t}\n\t\treturn b;\n\t}\n}",
"Main"
] | 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 static int calculate(int a, int b) {
int tempt;
while ((tempt = a % b) != 0) {
a = b;
b = tempt;
}
return b;
}
}
|
[
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,
13,
13,
42,
2,
13,
17,
30,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
13,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
13,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
13,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
13,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
13,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
69,
70
],
[
69,
71
],
[
13,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public 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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }\n }\n}",
"Main",
"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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }\n }",
"main",
"{\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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }\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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }",
"catch( IOException e ) {\n }",
"IOException e",
"{\n }",
"{\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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String input = new String(in.readLine());",
"input",
"new String(in.readLine())",
"String[] inputArr = input.split(\" \");",
"inputArr",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int x = Integer.parseInt(inputArr[0]);",
"x",
"Integer.parseInt(inputArr[0])",
"Integer.parseInt",
"Integer",
"inputArr[0]",
"inputArr",
"0",
"int y = Integer.parseInt(inputArr[1]);",
"y",
"Integer.parseInt(inputArr[1])",
"Integer.parseInt",
"Integer",
"inputArr[1]",
"inputArr",
"1",
"if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }",
"x > y",
"x",
"y",
"{\n int tmp = x;\n x = y;\n y = tmp;\n }",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }",
"x > 0",
"x",
"0",
"{\n int tmp = x;\n x = y % x;\n y = tmp;\n }",
"int tmp = x;",
"tmp",
"x",
"x = y % x",
"x",
"y % x",
"y",
"x",
"y = tmp",
"y",
"tmp",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args",
"public 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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }\n }\n}",
"public 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]);\n int y = Integer.parseInt(inputArr[1]);\n if ( x > y ) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n while ( x > 0 ) {\n int tmp = x;\n x = y % x;\n y = tmp;\n }\n System.out.println(y);\n } catch( IOException e ) {\n }\n }\n}",
"Main"
] | 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 = Integer.parseInt(inputArr[1]);
if ( x > y ) {
int tmp = x;
x = y;
y = tmp;
}
while ( x > 0 ) {
int tmp = x;
x = y % x;
y = tmp;
}
System.out.println(y);
} catch( IOException e ) {
}
}
} |
[
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,
13,
2,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
85,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
17,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
73,
74
],
[
73,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
9,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"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\tint x = Integer.parseInt(natural[0]);\n\t\tint y = Integer.parseInt(natural[1]);\n\t\tif (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}\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\tSystem.out.println(x);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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\tint x = Integer.parseInt(natural[0]);\n\t\tint y = Integer.parseInt(natural[1]);\n\t\tif (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}\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\tSystem.out.println(x);\n\t}\n}",
"Main",
"public 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\tint x = Integer.parseInt(natural[0]);\n\t\tint y = Integer.parseInt(natural[1]);\n\t\tif (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}\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\tSystem.out.println(x);\n\t}",
"main",
"{\n\t\tBufferedReader stdReader =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tString natural[] = stdReader.readLine().split(\" \",0);\n\t\tint x = Integer.parseInt(natural[0]);\n\t\tint y = Integer.parseInt(natural[1]);\n\t\tif (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}\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\tSystem.out.println(x);\n\t}",
"BufferedReader stdReader =\n\t\tnew BufferedReader(new InputStreamReader(System.in));",
"stdReader",
"new BufferedReader(new InputStreamReader(System.in))",
"String natural[] = stdReader.readLine().split(\" \",0);",
"natural",
"stdReader.readLine().split(\" \",0)",
"stdReader.readLine().split",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"\" \"",
"0",
"int x = Integer.parseInt(natural[0]);",
"x",
"Integer.parseInt(natural[0])",
"Integer.parseInt",
"Integer",
"natural[0]",
"natural",
"0",
"int y = Integer.parseInt(natural[1]);",
"y",
"Integer.parseInt(natural[1])",
"Integer.parseInt",
"Integer",
"natural[1]",
"natural",
"1",
"if (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}",
"x < y",
"x",
"y",
"{\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}",
"x = x^y",
"x",
"x^y",
"x",
"y",
"y = x^y",
"y",
"x^y",
"x",
"y",
"x = x^y",
"x",
"x^y",
"x",
"y",
"while (y > 0) {\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"y > 0",
"y",
"0",
"{\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"int r = x % y;",
"r",
"x % y",
"x",
"y",
"x = y",
"x",
"y",
"y = r",
"y",
"r",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public 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\tint x = Integer.parseInt(natural[0]);\n\t\tint y = Integer.parseInt(natural[1]);\n\t\tif (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}\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\tSystem.out.println(x);\n\t}\n}",
"public 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\tint x = Integer.parseInt(natural[0]);\n\t\tint y = Integer.parseInt(natural[1]);\n\t\tif (x < y) {\n\t\t\tx = x^y;\n\t\t\ty = x^y;\n\t\t\tx = x^y;\n\t\t}\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\tSystem.out.println(x);\n\t}\n}",
"Main"
] | 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(natural[0]);
int y = Integer.parseInt(natural[1]);
if (x < y) {
x = x^y;
y = x^y;
x = x^y;
}
while (y > 0) {
int r = x % y;
x = y;
y = r;
}
System.out.println(x);
}
} |
[
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,
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
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
35,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
45,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
9,
69
],
[
69,
70
]
] | [
"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// input1 = Integer.parseInt(inputArray[0]);\n\t\t// input2 = Integer.parseInt(inputArray[1]);\n\n\t\tinput1 = sc.nextInt();\n\t\tinput2 = sc.nextInt();\n\t\t\n\t\tint swap;\n\t\tif (input1 > input2) {\n\t\t\t\n\t\t\tswap = input2;\n\t\t\tinput2 = input1;\n\t\t\tinput1 = swap;\n\t\t}\n\t\t\n\t\t// ユークリッドの互除法を用いた最大公約数を\n\t\tswap = 0;\n\t\twhile ((swap = input1 % input2) != 0) {\n\t\t\tinput1 = input2;\n\t\t\tinput2 = swap;\n\t\t}\n\t\t\n\t\tSystem.out.println(input2);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class 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// input1 = Integer.parseInt(inputArray[0]);\n\t\t// input2 = Integer.parseInt(inputArray[1]);\n\n\t\tinput1 = sc.nextInt();\n\t\tinput2 = sc.nextInt();\n\t\t\n\t\tint swap;\n\t\tif (input1 > input2) {\n\t\t\t\n\t\t\tswap = input2;\n\t\t\tinput2 = input1;\n\t\t\tinput1 = swap;\n\t\t}\n\t\t\n\t\t// ユークリッドの互除法を用いた最大公約数を\n\t\tswap = 0;\n\t\twhile ((swap = input1 % input2) != 0) {\n\t\t\tinput1 = input2;\n\t\t\tinput2 = swap;\n\t\t}\n\t\t\n\t\tSystem.out.println(input2);\n\t}\n}",
"Main",
"public 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// input1 = Integer.parseInt(inputArray[0]);\n\t\t// input2 = Integer.parseInt(inputArray[1]);\n\n\t\tinput1 = sc.nextInt();\n\t\tinput2 = sc.nextInt();\n\t\t\n\t\tint swap;\n\t\tif (input1 > input2) {\n\t\t\t\n\t\t\tswap = input2;\n\t\t\tinput2 = input1;\n\t\t\tinput1 = swap;\n\t\t}\n\t\t\n\t\t// ユークリッドの互除法を用いた最大公約数を\n\t\tswap = 0;\n\t\twhile ((swap = input1 % input2) != 0) {\n\t\t\tinput1 = input2;\n\t\t\tinput2 = swap;\n\t\t}\n\t\t\n\t\tSystem.out.println(input2);\n\t}",
"main",
"{\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// input1 = Integer.parseInt(inputArray[0]);\n\t\t// input2 = Integer.parseInt(inputArray[1]);\n\n\t\tinput1 = sc.nextInt();\n\t\tinput2 = sc.nextInt();\n\t\t\n\t\tint swap;\n\t\tif (input1 > input2) {\n\t\t\t\n\t\t\tswap = input2;\n\t\t\tinput2 = input1;\n\t\t\tinput1 = swap;\n\t\t}\n\t\t\n\t\t// ユークリッドの互除法を用いた最大公約数を\n\t\tswap = 0;\n\t\twhile ((swap = input1 % input2) != 0) {\n\t\t\tinput1 = input2;\n\t\t\tinput2 = swap;\n\t\t}\n\t\t\n\t\tSystem.out.println(input2);\n\t}",
"int input1;",
"input1",
"int input2;",
"input2",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"input1 = sc.nextInt()",
"input1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"input2 = sc.nextInt()",
"input2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int swap;",
"swap",
"if (input1 > input2) {\n\t\t\t\n\t\t\tswap = input2;\n\t\t\tinput2 = input1;\n\t\t\tinput1 = swap;\n\t\t}",
"input1 > input2",
"input1",
"input2",
"{\n\t\t\t\n\t\t\tswap = input2;\n\t\t\tinput2 = input1;\n\t\t\tinput1 = swap;\n\t\t}",
"swap = input2",
"swap",
"input2",
"input2 = input1",
"input2",
"input1",
"input1 = swap",
"input1",
"swap",
"swap = 0",
"swap",
"0",
"while ((swap = input1 % input2) != 0) {\n\t\t\tinput1 = input2;\n\t\t\tinput2 = swap;\n\t\t}",
"(swap = input1 % input2) != 0",
"(swap = input1 % input2)",
"swap",
"input1 % input2",
"input1",
"input2",
"0",
"{\n\t\t\tinput1 = input2;\n\t\t\tinput2 = swap;\n\t\t}",
"input1 = input2",
"input1",
"input2",
"input2 = swap",
"input2",
"swap",
"System.out.println(input2)",
"System.out.println",
"System.out",
"System",
"System.out",
"input2",
"String[] args",
"args"
] | 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[0]);
// input2 = Integer.parseInt(inputArray[1]);
input1 = sc.nextInt();
input2 = sc.nextInt();
int swap;
if (input1 > input2) {
swap = input2;
input2 = input1;
input1 = swap;
}
// ユークリッドの互除法を用いた最大公約数を
swap = 0;
while ((swap = input1 % input2) != 0) {
input1 = input2;
input2 = swap;
}
System.out.println(input2);
}
}
|
[
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,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
11,
1,
41,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
13,
3,
29,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
36,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
],
[
109,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
66,
67
],
[
66,
68
],
[
54,
69
],
[
69,
70
],
[
69,
71
],
[
54,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
72,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
83,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
54,
100
],
[
100,
101
],
[
52,
102
],
[
102,
103
],
[
52,
104
],
[
104,
105
],
[
52,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"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.out.println(gcd);\n\t\tsc.close();\n\t}\n\n\tpublic static int calculation(int x, int y, int gcd) {\n\t\tif (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t\tx %= y;\n\t\tfor (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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.out.println(gcd);\n\t\tsc.close();\n\t}\n\n\tpublic static int calculation(int x, int y, int gcd) {\n\t\tif (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t\tx %= y;\n\t\tfor (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n}",
"Main",
"public 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.out.println(gcd);\n\t\tsc.close();\n\t}",
"main",
"{\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.out.println(gcd);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int gcd = 0;",
"gcd",
"0",
"if (x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tgcd = calculation(x, y, gcd);\n\t\t}",
"x == y",
"x",
"y",
"{\n\t\t\tgcd = x;\n\t\t}",
"gcd = x",
"gcd",
"x",
"{\n\t\t\tgcd = calculation(x, y, gcd);\n\t\t}",
"gcd = calculation(x, y, gcd)",
"gcd",
"calculation(x, y, gcd)",
"calculation",
"x",
"y",
"gcd",
"System.out.println(gcd)",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd",
"sc.close()",
"sc.close",
"sc",
"String[] atgs",
"atgs",
"public static int calculation(int x, int y, int gcd) {\n\t\tif (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t\tx %= y;\n\t\tfor (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}",
"calculation",
"{\n\t\tif (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t\tx %= y;\n\t\tfor (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}",
"if (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}",
"x < y",
"x",
"y",
"{\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"x %= y",
"x",
"y",
"for (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = x;",
"int i = x;",
"i",
"x",
"true",
"i--",
"i--",
"i",
"{\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}",
"x % i == 0 && y % i == 0",
"x % i == 0",
"x % i",
"x",
"i",
"0",
"y % i == 0",
"y % i",
"y",
"i",
"0",
"{\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}",
"gcd = i",
"gcd",
"i",
"break;",
"return gcd;",
"gcd",
"int x",
"x",
"int y",
"y",
"int gcd",
"gcd",
"public 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.out.println(gcd);\n\t\tsc.close();\n\t}\n\n\tpublic static int calculation(int x, int y, int gcd) {\n\t\tif (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t\tx %= y;\n\t\tfor (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n}",
"public 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.out.println(gcd);\n\t\tsc.close();\n\t}\n\n\tpublic static int calculation(int x, int y, int gcd) {\n\t\tif (x < y) {\n\t\t\tint tmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t\tx %= y;\n\t\tfor (int i = x; true; i--) {\n\t\t\tif (x % i == 0 && y % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n}",
"Main"
] | 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 static int calculation(int x, int y, int gcd) {
if (x < y) {
int tmp = x;
x = y;
y = tmp;
}
x %= y;
for (int i = x; true; i--) {
if (x % i == 0 && y % i == 0) {
gcd = i;
break;
}
}
return gcd;
}
}
|
[
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,
13,
30,
41,
13,
17,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
12,
51
],
[
51,
52
],
[
93,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
55,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
53,
88
],
[
88,
89
],
[
53,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"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().split(\" \");\n int a = Integer.valueOf(input[0]);\n int b = Integer.parseInt(input[1]);\n\n System.out.println(gcd(a,b));\n\n }\n\n private static int gcd(int a , int b){\n int result = 1;\n\n if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }\n\n if((a % b) == 0) return b;\n else return gcd(b , a%b);\n \n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"public 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().split(\" \");\n int a = Integer.valueOf(input[0]);\n int b = Integer.parseInt(input[1]);\n\n System.out.println(gcd(a,b));\n\n }\n\n private static int gcd(int a , int b){\n int result = 1;\n\n if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }\n\n if((a % b) == 0) return b;\n else return gcd(b , a%b);\n \n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] input = br.readLine().split(\" \");\n int a = Integer.valueOf(input[0]);\n int b = Integer.parseInt(input[1]);\n\n System.out.println(gcd(a,b));\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] input = br.readLine().split(\" \");\n int a = Integer.valueOf(input[0]);\n int b = Integer.parseInt(input[1]);\n\n System.out.println(gcd(a,b));\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a = Integer.valueOf(input[0]);",
"a",
"Integer.valueOf(input[0])",
"Integer.valueOf",
"Integer",
"input[0]",
"input",
"0",
"int b = Integer.parseInt(input[1]);",
"b",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"System.out.println(gcd(a,b))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(a,b)",
"gcd",
"a",
"b",
"String[] args",
"args",
"private static int gcd(int a , int b){\n int result = 1;\n\n if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }\n\n if((a % b) == 0) return b;\n else return gcd(b , a%b);\n \n }",
"gcd",
"{\n int result = 1;\n\n if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }\n\n if((a % b) == 0) return b;\n else return gcd(b , a%b);\n \n }",
"int result = 1;",
"result",
"1",
"if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }",
"b > a",
"b",
"a",
"{\n int tmp = b;\n b = a;\n a = tmp;\n }",
"int tmp = b;",
"tmp",
"b",
"b = a",
"b",
"a",
"a = tmp",
"a",
"tmp",
"if((a % b) == 0) return b;\n else return gcd(b , a%b);",
"(a % b) == 0",
"(a % b)",
"a",
"b",
"0",
"return b;",
"b",
"return gcd(b , a%b);",
"gcd(b , a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public 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().split(\" \");\n int a = Integer.valueOf(input[0]);\n int b = Integer.parseInt(input[1]);\n\n System.out.println(gcd(a,b));\n\n }\n\n private static int gcd(int a , int b){\n int result = 1;\n\n if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }\n\n if((a % b) == 0) return b;\n else return gcd(b , a%b);\n \n }\n}",
"public 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().split(\" \");\n int a = Integer.valueOf(input[0]);\n int b = Integer.parseInt(input[1]);\n\n System.out.println(gcd(a,b));\n\n }\n\n private static int gcd(int a , int b){\n int result = 1;\n\n if(b > a){\n int tmp = b;\n b = a;\n a = tmp;\n }\n\n if((a % b) == 0) return b;\n else return gcd(b , a%b);\n \n }\n}",
"Main"
] | 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(" ");
int a = Integer.valueOf(input[0]);
int b = Integer.parseInt(input[1]);
System.out.println(gcd(a,b));
}
private static int gcd(int a , int b){
int result = 1;
if(b > a){
int tmp = b;
b = a;
a = tmp;
}
if((a % b) == 0) return b;
else return gcd(b , a%b);
}
} |
[
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,
4,
18,
13,
4,
18,
13,
41,
13,
20,
0,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
42,
17,
30,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
30,
3,
14,
2,
2,
13,
13,
17,
30,
0,
13,
13,
30,
4,
13,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
28,
33
],
[
33,
34
],
[
28,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
28,
40
],
[
40,
41
],
[
28,
42
],
[
42,
43
],
[
42,
44
],
[
28,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
28,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
28,
61
],
[
61,
62
],
[
61,
63
],
[
28,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
28,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
89,
99
],
[
99,
100
],
[
85,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
85,
116
],
[
116,
117
],
[
83,
118
],
[
118,
119
],
[
83,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"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 String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n}\n\nclass Test{\n long r;\n long gcd(long a, long b){\n while(true){\n if(a>b){\n a=a-b;\n }else{\n break;\n }\n }\n if(b%a==0){\n r=a;\n }else{\n gcd(b,a);\n }\n return r;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public 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 String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n}",
"Main",
"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 String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n long a,b,gcd;\n String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n long a,b,gcd;\n String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }",
"catch (Exception e) {\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n long a,b,gcd;\n String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n }",
"long a",
"a",
"b",
"b",
"gcd;",
"gcd",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"StringTokenizer st;",
"st",
"st=new StringTokenizer(line)",
"st",
"new StringTokenizer(line)",
"a=Long.parseLong(st.nextToken())",
"a",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"b=Long.parseLong(st.nextToken())",
"b",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"Test t = new Test();",
"t",
"new Test()",
"gcd=t.gcd(a,b)",
"gcd",
"t.gcd(a,b)",
"t.gcd",
"t",
"a",
"b",
"System.out.println(gcd)",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd",
"String[] args",
"args",
"class Test{\n long r;\n long gcd(long a, long b){\n while(true){\n if(a>b){\n a=a-b;\n }else{\n break;\n }\n }\n if(b%a==0){\n r=a;\n }else{\n gcd(b,a);\n }\n return r;\n }\n}",
"Test",
"long r;",
"r",
"long gcd(long a, long b){\n while(true){\n if(a>b){\n a=a-b;\n }else{\n break;\n }\n }\n if(b%a==0){\n r=a;\n }else{\n gcd(b,a);\n }\n return r;\n }",
"gcd",
"{\n while(true){\n if(a>b){\n a=a-b;\n }else{\n break;\n }\n }\n if(b%a==0){\n r=a;\n }else{\n gcd(b,a);\n }\n return r;\n }",
"while(true){\n if(a>b){\n a=a-b;\n }else{\n break;\n }\n }",
"true",
"{\n if(a>b){\n a=a-b;\n }else{\n break;\n }\n }",
"if(a>b){\n a=a-b;\n }else{\n break;\n }",
"a>b",
"a",
"b",
"{\n a=a-b;\n }",
"a=a-b",
"a",
"a-b",
"a",
"b",
"{\n break;\n }",
"break;",
"if(b%a==0){\n r=a;\n }else{\n gcd(b,a);\n }",
"b%a==0",
"b%a",
"b",
"a",
"0",
"{\n r=a;\n }",
"r=a",
"r",
"a",
"{\n gcd(b,a);\n }",
"gcd(b,a)",
"gcd",
"b",
"a",
"return r;",
"r",
"long a",
"a",
"long b",
"b",
"public 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 String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n}",
"public 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 String line = br.readLine();\n StringTokenizer st;\n st=new StringTokenizer(line);\n a=Long.parseLong(st.nextToken());\n b=Long.parseLong(st.nextToken());\n Test t = new Test();\n gcd=t.gcd(a,b);\n System.out.println(gcd);\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n}",
"Main"
] | 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;
String line = br.readLine();
StringTokenizer st;
st=new StringTokenizer(line);
a=Long.parseLong(st.nextToken());
b=Long.parseLong(st.nextToken());
Test t = new Test();
gcd=t.gcd(a,b);
System.out.println(gcd);
} catch (Exception e) {
System.out.println(e);
}
}
}
class Test{
long r;
long gcd(long a, long b){
while(true){
if(a>b){
a=a-b;
}else{
break;
}
}
if(b%a==0){
r=a;
}else{
gcd(b,a);
}
return r;
}
} |
[
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,
18,
13,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
17,
13,
30,
29,
13,
30,
29,
4,
13,
13,
2,
13,
13,
23,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
22,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
22,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
22,
64
],
[
64,
65
],
[
65,
66
],
[
6,
67
],
[
67,
68
],
[
4,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
69,
87
],
[
87,
88
],
[
69,
89
],
[
89,
90
]
] | [
"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 = Integer.parseInt( nums[1] );\n \n System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }\n \n\tpublic static int gcd( int x, int y )\n\t{\n\t\tif( 0 == y ) {\n\t\t\treturn x;\n\t\t} else {\n\t\t\treturn gcd( y, x%y );\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class 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 = Integer.parseInt( nums[1] );\n \n System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }\n \n\tpublic static int gcd( int x, int y )\n\t{\n\t\tif( 0 == y ) {\n\t\t\treturn x;\n\t\t} else {\n\t\t\treturn gcd( y, x%y );\n\t\t}\n\t}\n}",
"Main",
"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 = Integer.parseInt( nums[1] );\n \n System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }",
"main",
"{\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 = Integer.parseInt( nums[1] );\n \n System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }",
"BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );",
"kb",
"new BufferedReader( new InputStreamReader( System.in ) )",
"try {\n String[] nums = kb.readLine().split( \" \" );\n int a = Integer.parseInt( nums[0] );\n int b = Integer.parseInt( nums[1] );\n \n System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }",
"catch( IOException e ) {\n System.err.println( e );\n }",
"IOException e",
"{\n System.err.println( e );\n }",
"System.err.println( e )",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n String[] nums = kb.readLine().split( \" \" );\n int a = Integer.parseInt( nums[0] );\n int b = Integer.parseInt( nums[1] );\n \n System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );\n \n kb.close();\n }",
"String[] nums = kb.readLine().split( \" \" );",
"nums",
"kb.readLine().split( \" \" )",
"kb.readLine().split",
"kb.readLine()",
"kb.readLine",
"kb",
"\" \"",
"int a = Integer.parseInt( nums[0] );",
"a",
"Integer.parseInt( nums[0] )",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"int b = Integer.parseInt( nums[1] );",
"b",
"Integer.parseInt( nums[1] )",
"Integer.parseInt",
"Integer",
"nums[1]",
"nums",
"1",
"System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) )",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd( Math.max( a, b ), Math.min( a, b ) )",
"gcd",
"Math.max( a, b )",
"Math.max",
"Math",
"a",
"b",
"Math.min( a, b )",
"Math.min",
"Math",
"a",
"b",
"kb.close()",
"kb.close",
"kb",
"String[] args",
"args",
"public static int gcd( int x, int y )\n\t{\n\t\tif( 0 == y ) {\n\t\t\treturn x;\n\t\t} else {\n\t\t\treturn gcd( y, x%y );\n\t\t}\n\t}",
"gcd",
"{\n\t\tif( 0 == y ) {\n\t\t\treturn x;\n\t\t} else {\n\t\t\treturn gcd( y, x%y );\n\t\t}\n\t}",
"if( 0 == y ) {\n\t\t\treturn x;\n\t\t} else {\n\t\t\treturn gcd( y, x%y );\n\t\t}",
"0 == y",
"0",
"y",
"{\n\t\t\treturn x;\n\t\t}",
"return x;",
"x",
"{\n\t\t\treturn gcd( y, x%y );\n\t\t}",
"return gcd( y, x%y );",
"gcd( y, x%y )",
"gcd",
"y",
"x%y",
"x",
"y",
"int x",
"x",
"int y",
"y"
] | 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( nums[1] );
System.out.println( gcd( Math.max( a, b ), Math.min( a, b ) ) );
kb.close();
} catch( IOException e ) {
System.err.println( e );
}
}
public static int gcd( int x, int y )
{
if( 0 == y ) {
return x;
} else {
return gcd( y, x%y );
}
}
} |
[
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,
18,
13,
41,
13,
20,
14,
2,
13,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
41,
13,
2,
13,
13,
4,
18,
13,
4,
13,
13,
13,
30,
41,
13,
2,
13,
13,
4,
18,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
13,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
29,
13,
29,
17,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
23,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
21,
39
],
[
39,
40
],
[
19,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
67,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
45,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
43,
103
],
[
103,
104
],
[
41,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
110,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
127,
139
],
[
139,
140
],
[
107,
141
],
[
141,
142
],
[
105,
143
],
[
143,
144
],
[
105,
145
],
[
145,
146
],
[
19,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
147,
151
],
[
151,
152
],
[
147,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
156,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
162,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
155,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
147,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
147,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
191,
193
],
[
185,
194
],
[
194,
195
]
] | [
"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) {\n\t\t\t\n\t\t\t//2つの自然数入力\n\t\t\tint x = ir.nextInt();\n\t\t\tint y = ir.nextInt();\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder ();\t\t\n\t\t\t\n\t\t\tif ( x == y) sb.append(x); \n\t\t\telse if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t\t//最大公約数を求める\n\t\tstatic int Gcd(int x, int y) {\n\t\t\t\n\t\t\tint n = Math.min(x, y);\n\t\t\t\n\t\t\tfor (int i = n; i >= 1; i--) \n\t\t\t\tif (x % i == 0 && y % i == 0) return i;\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t}\n\t\t\n\tstatic class InputReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\t\t\t\t\t\n\t\tpublic InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static void main (String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tGreatestCommonDivisor obj = new GreatestCommonDivisor ();\n\t\tobj.greatestcommondivisor (in);\n\t}\n\t\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"class Main {\n\tstatic class GreatestCommonDivisor {\n\t\tpublic void greatestcommondivisor (InputReader ir) {\n\t\t\t\n\t\t\t//2つの自然数入力\n\t\t\tint x = ir.nextInt();\n\t\t\tint y = ir.nextInt();\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder ();\t\t\n\t\t\t\n\t\t\tif ( x == y) sb.append(x); \n\t\t\telse if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t\t//最大公約数を求める\n\t\tstatic int Gcd(int x, int y) {\n\t\t\t\n\t\t\tint n = Math.min(x, y);\n\t\t\t\n\t\t\tfor (int i = n; i >= 1; i--) \n\t\t\t\tif (x % i == 0 && y % i == 0) return i;\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t}\n\t\t\n\tstatic class InputReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\t\t\t\t\t\n\t\tpublic InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static void main (String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tGreatestCommonDivisor obj = new GreatestCommonDivisor ();\n\t\tobj.greatestcommondivisor (in);\n\t}\n\t\n}",
"Main",
"public static void main (String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tGreatestCommonDivisor obj = new GreatestCommonDivisor ();\n\t\tobj.greatestcommondivisor (in);\n\t}",
"main",
"{\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tGreatestCommonDivisor obj = new GreatestCommonDivisor ();\n\t\tobj.greatestcommondivisor (in);\n\t}",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"InputReader in = new InputReader (inputStream);",
"in",
"new InputReader (inputStream)",
"GreatestCommonDivisor obj = new GreatestCommonDivisor ();",
"obj",
"new GreatestCommonDivisor ()",
"obj.greatestcommondivisor (in)",
"obj.greatestcommondivisor",
"obj",
"in",
"String[] args",
"args",
"static class GreatestCommonDivisor {\n\t\tpublic void greatestcommondivisor (InputReader ir) {\n\t\t\t\n\t\t\t//2つの自然数入力\n\t\t\tint x = ir.nextInt();\n\t\t\tint y = ir.nextInt();\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder ();\t\t\n\t\t\t\n\t\t\tif ( x == y) sb.append(x); \n\t\t\telse if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t\t//最大公約数を求める\n\t\tstatic int Gcd(int x, int y) {\n\t\t\t\n\t\t\tint n = Math.min(x, y);\n\t\t\t\n\t\t\tfor (int i = n; i >= 1; i--) \n\t\t\t\tif (x % i == 0 && y % i == 0) return i;\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t}",
"GreatestCommonDivisor",
"public void greatestcommondivisor (InputReader ir) {\n\t\t\t\n\t\t\t//2つの自然数入力\n\t\t\tint x = ir.nextInt();\n\t\t\tint y = ir.nextInt();\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder ();\t\t\n\t\t\t\n\t\t\tif ( x == y) sb.append(x); \n\t\t\telse if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t}",
"greatestcommondivisor",
"{\n\t\t\t\n\t\t\t//2つの自然数入力\n\t\t\tint x = ir.nextInt();\n\t\t\tint y = ir.nextInt();\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder ();\t\t\n\t\t\t\n\t\t\tif ( x == y) sb.append(x); \n\t\t\telse if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t}",
"int x = ir.nextInt();",
"x",
"ir.nextInt()",
"ir.nextInt",
"ir",
"int y = ir.nextInt();",
"y",
"ir.nextInt()",
"ir.nextInt",
"ir",
"StringBuilder sb = new StringBuilder ();",
"sb",
"new StringBuilder ()",
"if ( x == y) sb.append(x); \n\t\t\telse if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}",
"x == y",
"x",
"y",
"sb.append(x)",
"sb.append",
"sb",
"x",
"if (x > y) {\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t} else {\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}",
"x > y",
"x",
"y",
"{\n\t\t\t\tint n = x % y;\n\t\t\t\tsb.append(Gcd(y,n));\n\t\t\t}",
"int n = x % y;",
"n",
"x % y",
"x",
"y",
"sb.append(Gcd(y,n))",
"sb.append",
"sb",
"Gcd(y,n)",
"Gcd",
"y",
"n",
"{\n\t\t\t\tint n = y % x;\n\t\t\t\tsb.append(Gcd(x,n));\n\t\t\t}",
"int n = y % x;",
"n",
"y % x",
"y",
"x",
"sb.append(Gcd(x,n))",
"sb.append",
"sb",
"Gcd(x,n)",
"Gcd",
"x",
"n",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"InputReader ir",
"ir",
"//最大公約数を求める\n\t\tstatic int Gcd(int x, int y) {\n\t\t\t\n\t\t\tint n = Math.min(x, y);\n\t\t\t\n\t\t\tfor (int i = n; i >= 1; i--) \n\t\t\t\tif (x % i == 0 && y % i == 0) return i;\n\t\t\t\n\t\t\treturn 1;\n\t\t}",
"Gcd",
"{\n\t\t\t\n\t\t\tint n = Math.min(x, y);\n\t\t\t\n\t\t\tfor (int i = n; i >= 1; i--) \n\t\t\t\tif (x % i == 0 && y % i == 0) return i;\n\t\t\t\n\t\t\treturn 1;\n\t\t}",
"int n = Math.min(x, y);",
"n",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"for (int i = n; i >= 1; i--) \n\t\t\t\tif (x % i == 0 && y % i == 0) return i;",
"int i = n;",
"int i = n;",
"i",
"n",
"i >= 1",
"i",
"1",
"i--",
"i--",
"i",
"if (x % i == 0 && y % i == 0) return i;",
"if (x % i == 0 && y % i == 0) return i;",
"x % i == 0 && y % i == 0",
"x % i == 0",
"x % i",
"x",
"i",
"0",
"y % i == 0",
"y % i",
"y",
"i",
"0",
"return i;",
"i",
"return 1;",
"1",
"int x",
"x",
"int y",
"y",
"static class InputReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\t\t\t\t\t\n\t\tpublic InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}\n\t\t\n\t}",
"InputReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}",
"nextString",
"{\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }",
"try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }",
"catch (IOException e) {\n\t throw new InputMismatchException();\n\t }",
"IOException e",
"{\n\t throw new InputMismatchException();\n\t }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t }",
"st = new StringTokenizer(br.readLine(), \" \")",
"st",
"new StringTokenizer(br.readLine(), \" \")",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}",
"return Integer.parseInt(nextString());",
"Integer.parseInt(nextString())",
"Integer.parseInt",
"Integer",
"nextString()",
"nextString",
"public InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}",
"InputReader",
"{\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}",
"br = new BufferedReader (new InputStreamReader (inputStream))",
"br",
"new BufferedReader (new InputStreamReader (inputStream))",
"st = new StringTokenizer (\"\")",
"st",
"new StringTokenizer (\"\")",
"InputStream inputStream",
"inputStream"
] | 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つの自然数入力
int x = ir.nextInt();
int y = ir.nextInt();
StringBuilder sb = new StringBuilder ();
if ( x == y) sb.append(x);
else if (x > y) {
int n = x % y;
sb.append(Gcd(y,n));
} else {
int n = y % x;
sb.append(Gcd(x,n));
}
System.out.println(sb);
}
//最大公約数を求める
static int Gcd(int x, int y) {
int n = Math.min(x, y);
for (int i = n; i >= 1; i--)
if (x % i == 0 && y % i == 0) return i;
return 1;
}
}
static class InputReader {
BufferedReader br;
StringTokenizer st;
public String nextString() {
while (!st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine(), " ");
} catch (IOException e) {
throw new InputMismatchException();
}
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextString());
}
public InputReader (InputStream inputStream) {
br = new BufferedReader (new InputStreamReader (inputStream));
st = new StringTokenizer ("");
}
}
public static void main (String[] args) {
InputStream inputStream = System.in;
InputReader in = new InputReader (inputStream);
GreatestCommonDivisor obj = new GreatestCommonDivisor ();
obj.greatestcommondivisor (in);
}
}
|
[
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,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
33,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] | [
"\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) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}",
"Main",
"public 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) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}\n\t\tSystem.out.println(b);\n\t}",
"main",
"{\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) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}\n\t\tSystem.out.println(b);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a",
"a",
"b;",
"b",
"a = sc.nextLong()",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"b = sc.nextLong()",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long tmp = 0;",
"tmp",
"0",
"if (a < b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}",
"a < b",
"a",
"b",
"{\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}",
"tmp = a",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"while (a % b != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}",
"a % b != 0",
"a % b",
"a",
"b",
"0",
"{\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}",
"tmp = a",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp % b",
"b",
"tmp % b",
"tmp",
"b",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public 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) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}",
"public 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) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp % b;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}",
"Main"
] |
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;
}
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,
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,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
9,
29
],
[
29,
30
],
[
79,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
44,
53
],
[
33,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
33,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
31,
74
],
[
74,
75
],
[
31,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"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 == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}\n\t\tif(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\t\n\t\teuclid(y,x % y);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public 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 == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}\n\t\tif(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\t\n\t\teuclid(y,x % y);\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"euclid(x,y)",
"euclid",
"x",
"y",
"String[] args",
"args",
"public static void euclid(int x , int y)\n\t{\n\t\tint temp;\n\t\tif (x == 0 || y == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}\n\t\tif(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\t\n\t\teuclid(y,x % y);\n\t}",
"euclid",
"{\n\t\tint temp;\n\t\tif (x == 0 || y == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}\n\t\tif(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\t\n\t\teuclid(y,x % y);\n\t}",
"int temp;",
"temp",
"if (x == 0 || y == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}",
"x == 0 || y == 0",
"x == 0",
"x",
"0",
"y == 0",
"y",
"0",
"{\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}",
"System.out.println((x+y))",
"System.out.println",
"System.out",
"System",
"System.out",
"(x+y)",
"x",
"y",
"return ;",
"if(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}",
"x < y",
"x",
"y",
"{\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}",
"temp = x",
"temp",
"x",
"x = y",
"x",
"y",
"y = temp",
"y",
"temp",
"euclid(y,x % y)",
"euclid",
"y",
"x % y",
"x",
"y",
"int x",
"x",
"int y",
"y",
"public 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 == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}\n\t\tif(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\t\n\t\teuclid(y,x % y);\n\t}\n}",
"public 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 == 0) {\n\t\t\tSystem.out.println((x+y));\n\t\t\treturn ;\n\t\t}\n\t\tif(x < y){\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\t\n\t\teuclid(y,x % y);\n\t}\n}",
"Main"
] | 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));
return ;
}
if(x < y){
temp = x;
x = y;
y = temp;
}
euclid(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,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
34,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] | [
"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.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }\n }\n}",
"Main",
"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.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }\n }",
"main",
"{\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.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(true){\n int result = a % b;\n if(result == 0){\n System.out.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }",
"true",
"{\n int result = a % b;\n if(result == 0){\n System.out.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }",
"int result = a % b;",
"result",
"a % b",
"a",
"b",
"if(result == 0){\n System.out.println(b);\n break;\n }else{\n a = b;\n b = result;\n }",
"result == 0",
"result",
"0",
"{\n System.out.println(b);\n break;\n }",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"break;",
"{\n a = b;\n b = result;\n }",
"a = b",
"a",
"b",
"b = result",
"b",
"result",
"String[] args",
"args",
"public 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.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }\n }\n}",
"public 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.println(b);\n break;\n }else{\n a = b;\n b = result;\n }\n }\n }\n}",
"Main"
] | 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);
break;
}else{
a = b;
b = result;
}
}
}
}
|
[
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,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
45,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] | [
"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 int t = x;\n x = y;\n y = t;\n x = x % y;\n }\n\n System.out.println(y);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 int t = x;\n x = y;\n y = t;\n x = x % y;\n }\n\n System.out.println(y);\n }\n}",
"Main",
"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 int t = x;\n x = y;\n y = t;\n x = x % y;\n }\n\n System.out.println(y);\n }",
"main",
"{\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 int t = x;\n x = y;\n y = t;\n x = x % y;\n }\n\n System.out.println(y);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int x = stdIn.nextInt();",
"x",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int y = stdIn.nextInt();",
"y",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if (x < y) {\n int t = x;\n x = y;\n y = t;\n }",
"x < y",
"x",
"y",
"{\n int t = x;\n x = y;\n y = t;\n }",
"int t = x;",
"t",
"x",
"x = y",
"x",
"y",
"y = t",
"y",
"t",
"x = x % y",
"x",
"x % y",
"x",
"y",
"while (x != 0) {\n int t = x;\n x = y;\n y = t;\n x = x % y;\n }",
"x != 0",
"x",
"0",
"{\n int t = x;\n x = y;\n y = t;\n x = x % y;\n }",
"int t = x;",
"t",
"x",
"x = y",
"x",
"y",
"y = t",
"y",
"t",
"x = x % y",
"x",
"x % y",
"x",
"y",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args",
"public 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 int t = x;\n x = y;\n y = t;\n x = x % y;\n }\n\n System.out.println(y);\n }\n}",
"public 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 int t = x;\n x = y;\n y = t;\n x = x % y;\n }\n\n System.out.println(y);\n }\n}",
"Main"
] | 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;
x = y;
y = t;
x = x % y;
}
System.out.println(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,
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,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] | [
"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",
"import java.util.*;",
"util.*",
"java",
"public 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}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner cin=new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int x=cin.nextInt()",
"x",
"cin.nextInt()",
"cin.nextInt",
"cin",
"y=cin.nextInt();",
"y",
"cin.nextInt()",
"cin.nextInt",
"cin",
"int m=x",
"m",
"x",
"n=y",
"n",
"y",
"k=x*y;",
"k",
"x*y",
"x",
"y",
"while(k!=0) {\n\t\t\t k=m%n;\n\t\t\t m=n;n=k;\n\t\t}",
"k!=0",
"k",
"0",
"{\n\t\t\t k=m%n;\n\t\t\t m=n;n=k;\n\t\t}",
"k=m%n",
"k",
"m%n",
"m",
"n",
"m=n",
"m",
"n",
"n=k",
"n",
"k",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"String[] args",
"args",
"public 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}",
"public 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}",
"Main"
] | 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,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
58,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
33,
53
],
[
53,
54
],
[
33,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] | [
"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, int y) {\n int tmp = x % y;\n if (tmp == 0) {\n return y;\n }\n return gcd(y, tmp);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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, int y) {\n int tmp = x % y;\n if (tmp == 0) {\n return y;\n }\n return gcd(y, tmp);\n }\n}",
"Main",
"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 }",
"main",
"{\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 }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(gcd(x,y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x,y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"public static int gcd(int x, int y) {\n int tmp = x % y;\n if (tmp == 0) {\n return y;\n }\n return gcd(y, tmp);\n }",
"gcd",
"{\n int tmp = x % y;\n if (tmp == 0) {\n return y;\n }\n return gcd(y, tmp);\n }",
"int tmp = x % y;",
"tmp",
"x % y",
"x",
"y",
"if (tmp == 0) {\n return y;\n }",
"tmp == 0",
"tmp",
"0",
"{\n return y;\n }",
"return y;",
"y",
"return gcd(y, tmp);",
"gcd(y, tmp)",
"gcd",
"y",
"tmp",
"int x",
"x",
"int y",
"y",
"public 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, int y) {\n int tmp = x % y;\n if (tmp == 0) {\n return y;\n }\n return gcd(y, tmp);\n }\n}",
"public 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, int y) {\n int tmp = x % y;\n if (tmp == 0) {\n return y;\n }\n return gcd(y, tmp);\n }\n}",
"Main"
] | 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) {
int tmp = x % y;
if (tmp == 0) {
return y;
}
return gcd(y, tmp);
}
} |
[
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,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
22,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
6,
36
],
[
36,
37
],
[
80,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
38,
75
],
[
75,
76
],
[
38,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] | [
"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) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a >= b){\n\t\t\tgcd(a,b);\n\t\t}else{\n\t\t\tgcd(b,a);\n\t\t}",
"a >= b",
"a",
"b",
"{\n\t\t\tgcd(a,b);\n\t\t}",
"gcd(a,b)",
"gcd",
"a",
"b",
"{\n\t\t\tgcd(b,a);\n\t\t}",
"gcd(b,a)",
"gcd",
"b",
"a",
"String[] arg",
"arg",
"static void gcd(int n,int m){\n\t\tif((n % m) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}\n\t}",
"gcd",
"{\n\t\tif((n % m) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}\n\t}",
"if((n % m) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}",
"(n % m) == 0",
"(n % m)",
"n",
"m",
"0",
"{\n\t\t\tSystem.out.println(m);\n\t\t}",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}",
"m == 1",
"m",
"1",
"{\n\t\t\tSystem.out.println(1);\n\t\t}",
"System.out.println(1)",
"System.out.println",
"System.out",
"System",
"System.out",
"1",
"{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}",
"int m1 = (n % m);",
"m1",
"(n % m)",
"n",
"m",
"gcd(m,m1)",
"gcd",
"m",
"m1",
"int n",
"n",
"int m",
"m",
"public 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) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}\n\t}\n}",
"public 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) == 0) {\n\t\t\tSystem.out.println(m);\n\t\t}else if(m == 1){\n\t\t\tSystem.out.println(1);\n\t\t}else{\n\t\t\tint m1 = (n % m);\n\t\t\tgcd(m,m1);\n\t\t}\n\t}\n}",
"Main"
] | 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(m == 1){
System.out.println(1);
}else{
int m1 = (n % m);
gcd(m,m1);
}
}
} |
[
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,
13,
4,
18,
13,
13,
13,
14,
2,
13,
17,
30,
29,
13,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
29,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
6,
48
],
[
48,
49
],
[
92,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
67,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
67,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
50,
87
],
[
87,
88
],
[
50,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"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(GreatestCommonDivisor(bigger, smaller));\n\t}\n\n\tstatic long GreatestCommonDivisor(long x, long y){\n\t\tlong mod = Math.floorMod(x, y);\n\t\tif(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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(GreatestCommonDivisor(bigger, smaller));\n\t}\n\n\tstatic long GreatestCommonDivisor(long x, long y){\n\t\tlong mod = Math.floorMod(x, y);\n\t\tif(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}\n\t}\n}",
"Main",
"public 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(GreatestCommonDivisor(bigger, smaller));\n\t}",
"main",
"{\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(GreatestCommonDivisor(bigger, smaller));\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long x = scan.nextLong();",
"x",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long y = scan.nextLong();",
"y",
"scan.nextLong()",
"scan.nextLong",
"scan",
"scan.close()",
"scan.close",
"scan",
"long smaller = Math.min(x, y);",
"smaller",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"long bigger = Math.max(x, y);",
"bigger",
"Math.max(x, y)",
"Math.max",
"Math",
"x",
"y",
"System.out.println(GreatestCommonDivisor(bigger, smaller))",
"System.out.println",
"System.out",
"System",
"System.out",
"GreatestCommonDivisor(bigger, smaller)",
"GreatestCommonDivisor",
"bigger",
"smaller",
"String[] args",
"args",
"static long GreatestCommonDivisor(long x, long y){\n\t\tlong mod = Math.floorMod(x, y);\n\t\tif(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}\n\t}",
"GreatestCommonDivisor",
"{\n\t\tlong mod = Math.floorMod(x, y);\n\t\tif(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}\n\t}",
"long mod = Math.floorMod(x, y);",
"mod",
"Math.floorMod(x, y)",
"Math.floorMod",
"Math",
"x",
"y",
"if(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}",
"mod == 0",
"mod",
"0",
"{\n\t\t\treturn y;\n\t\t}",
"return y;",
"y",
"{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}",
"x = Math.max(y, mod)",
"x",
"Math.max(y, mod)",
"Math.max",
"Math",
"y",
"mod",
"y = Math.min(y, mod)",
"y",
"Math.min(y, mod)",
"Math.min",
"Math",
"y",
"mod",
"return GreatestCommonDivisor(x, y);",
"GreatestCommonDivisor(x, y)",
"GreatestCommonDivisor",
"x",
"y",
"long x",
"x",
"long y",
"y",
"public 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(GreatestCommonDivisor(bigger, smaller));\n\t}\n\n\tstatic long GreatestCommonDivisor(long x, long y){\n\t\tlong mod = Math.floorMod(x, y);\n\t\tif(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}\n\t}\n}",
"public 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(GreatestCommonDivisor(bigger, smaller));\n\t}\n\n\tstatic long GreatestCommonDivisor(long x, long y){\n\t\tlong mod = Math.floorMod(x, y);\n\t\tif(mod == 0){\n\t\t\treturn y;\n\t\t}else{\n\t\t\tx = Math.max(y, mod);\n\t\t\ty = Math.min(y, mod);\n\t\t\treturn GreatestCommonDivisor(x, y);\n\t\t}\n\t}\n}",
"Main"
] | 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, smaller));
}
static long GreatestCommonDivisor(long x, long y){
long mod = Math.floorMod(x, y);
if(mod == 0){
return y;
}else{
x = Math.max(y, mod);
y = Math.min(y, mod);
return GreatestCommonDivisor(x, 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,
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,
30,
0,
13,
2,
13,
13,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
0,
13,
4,
18,
13,
13,
13,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
13,
3,
29,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
39,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
127,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
77,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
77,
120
],
[
120,
121
],
[
75,
122
],
[
122,
123
],
[
75,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"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\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(gcd);\n\t\t\n\t}\n\t\n\tpublic static int Gcd(int a, int b) {\n\t\tint gcd = 1;\n\t\tint n;\n\t\t\n\t\tn = Math.min(a, b);\n\t\t\n\t\tfor (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(gcd);\n\t\t\n\t}\n\t\n\tpublic static int Gcd(int a, int b) {\n\t\tint gcd = 1;\n\t\tint n;\n\t\t\n\t\tn = Math.min(a, b);\n\t\t\n\t\tfor (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}\n}",
"Main",
"public 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\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(gcd);\n\t\t\n\t}",
"main",
"{\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\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(gcd);\n\t\t\n\t}",
"Scanner scan = new Scanner (System.in);",
"scan",
"new Scanner (System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int gcd = 1",
"gcd",
"1",
"n;",
"n",
"scan.close()",
"scan.close",
"scan",
"if ( x == y) {\n\t\t\tgcd = x;\n\t\t} else {\n\t\t\tif (x > y) {\n\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}",
"x == y",
"x",
"y",
"{\n\t\t\tgcd = x;\n\t\t}",
"gcd = x",
"gcd",
"x",
"{\n\t\t\tif (x > y) {\n\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}",
"if (x > y) {\n\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}",
"x > y",
"x",
"y",
"{\n\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}",
"n = x % y",
"n",
"x % y",
"x",
"y",
"gcd = Gcd(y,n)",
"gcd",
"Gcd(y,n)",
"Gcd",
"y",
"n",
"{\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}",
"n = y % x",
"n",
"y % x",
"y",
"x",
"gcd = Gcd(x,n)",
"gcd",
"Gcd(x,n)",
"Gcd",
"x",
"n",
"System.out.println(gcd)",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd",
"String [] args",
"args",
"public static int Gcd(int a, int b) {\n\t\tint gcd = 1;\n\t\tint n;\n\t\t\n\t\tn = Math.min(a, b);\n\t\t\n\t\tfor (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}",
"Gcd",
"{\n\t\tint gcd = 1;\n\t\tint n;\n\t\t\n\t\tn = Math.min(a, b);\n\t\t\n\t\tfor (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}",
"int gcd = 1;",
"gcd",
"1",
"int n;",
"n",
"n = Math.min(a, b)",
"n",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"for (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}",
"int i = n;",
"int i = n;",
"i",
"n",
"i >= 1",
"i",
"1",
"i--",
"i--",
"i",
"{\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}",
"if (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}",
"a % i == 0 && b % i == 0",
"a % i == 0",
"a % i",
"a",
"i",
"0",
"b % i == 0",
"b % i",
"b",
"i",
"0",
"{\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}",
"gcd = i",
"gcd",
"i",
"break;",
"return gcd;",
"gcd",
"int a",
"a",
"int b",
"b",
"public 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\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(gcd);\n\t\t\n\t}\n\t\n\tpublic static int Gcd(int a, int b) {\n\t\tint gcd = 1;\n\t\tint n;\n\t\t\n\t\tn = Math.min(a, b);\n\t\t\n\t\tfor (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}\n}",
"public 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\t\t\t\tn = x % y;\n\t\t\t\tgcd = Gcd(y,n);\n\t\t\t}else {\n\t\t\t\tn = y % x;\n\t\t\t\tgcd = Gcd(x,n);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(gcd);\n\t\t\n\t}\n\t\n\tpublic static int Gcd(int a, int b) {\n\t\tint gcd = 1;\n\t\tint n;\n\t\t\n\t\tn = Math.min(a, b);\n\t\t\n\t\tfor (int i = n; i >= 1; i--) {\n\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\tgcd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}\n}",
"Main"
] | 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);
}else {
n = y % x;
gcd = Gcd(x,n);
}
}
System.out.println(gcd);
}
public static int Gcd(int a, int b) {
int gcd = 1;
int n;
n = Math.min(a, b);
for (int i = n; i >= 1; i--) {
if (a % i == 0 && b % i == 0) {
gcd = i;
break;
}
}
return gcd;
}
}
|
[
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,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
40,
49
],
[
49,
50
],
[
49,
51
],
[
40,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
40,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] | [
"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 while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }\n \n System.out.println(y);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }\n \n System.out.println(y);\n\t}\n\n}",
"Main",
"public 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 while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }\n \n System.out.println(y);\n\t}",
"main",
"{\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 while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }\n \n System.out.println(y);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"if (y > x) {\n \tint tmp = x;\n \tx = y;\n \ty = tmp;\n }",
"y > x",
"y",
"x",
"{\n \tint tmp = x;\n \tx = y;\n \ty = tmp;\n }",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }",
"x >= y",
"x",
"y",
"{\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }",
"if (x % y == 0) {\n \t\tbreak;\n \t}",
"x % y == 0",
"x % y",
"x",
"y",
"0",
"{\n \t\tbreak;\n \t}",
"break;",
"int temp = y;",
"temp",
"y",
"y = x % temp",
"y",
"x % temp",
"x",
"temp",
"x = temp",
"x",
"temp",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args",
"public 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 while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }\n \n System.out.println(y);\n\t}\n\n}",
"public 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 while (x >= y) {\n \tif (x % y == 0) {\n \t\tbreak;\n \t}\n \tint temp = y;\n \ty = x % temp;\n \tx = temp;\n }\n \n System.out.println(y);\n\t}\n\n}",
"Main"
] | 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) {
if (x % y == 0) {
break;
}
int temp = y;
y = x % temp;
x = temp;
}
System.out.println(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,
17,
4,
18,
13,
13,
13,
0,
18,
13,
17,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
17,
30,
0,
13,
2,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
29,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
9,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
19,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
19,
47
],
[
47,
48
],
[
47,
49
],
[
19,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
19,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
19,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
6,
77
],
[
77,
78
],
[
120,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
86,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
86,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
79,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
] | [
"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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}\n\t\n\tstatic long GCD(long[] ab){\n\t\tlong k;\n\t\twhile(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"public 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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}\n\t\n\tstatic long GCD(long[] ab){\n\t\tlong k;\n\t\twhile(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}\n\t}\n\n}",
"Main",
"public 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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}",
"main",
"{\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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}",
"try{\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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}",
"System.out.println(\"IOException\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"IOException\"",
"{\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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long a = Long.parseLong(str[0]);",
"a",
"Long.parseLong(str[0])",
"Long.parseLong",
"Long",
"str[0]",
"str",
"0",
"long b = Long.parseLong(str[1]);",
"b",
"Long.parseLong(str[1])",
"Long.parseLong",
"Long",
"str[1]",
"str",
"1",
"long[] ab = new long[2];",
"ab",
"new long[2]",
"2",
"ab[0] = Math.min(a, b)",
"ab[0]",
"ab",
"0",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"ab[1] = Math.max(a, b)",
"ab[1]",
"ab",
"1",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"System.out.println(GCD(ab))",
"System.out.println",
"System.out",
"System",
"System.out",
"GCD(ab)",
"GCD",
"ab",
"String[] args",
"args",
"static long GCD(long[] ab){\n\t\tlong k;\n\t\twhile(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}\n\t}",
"GCD",
"{\n\t\tlong k;\n\t\twhile(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}\n\t}",
"long k;",
"k",
"while(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}",
"true",
"{\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}",
"k = ab[1]%ab[0]",
"k",
"ab[1]%ab[0]",
"ab[1]",
"ab",
"1",
"ab[0]",
"ab",
"0",
"if (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}",
"k==0",
"k",
"0",
"{\n\t\t\t\treturn ab[0];\n\t\t\t}",
"return ab[0];",
"ab[0]",
"ab",
"0",
"ab[1] = ab[0]",
"ab[1]",
"ab",
"1",
"ab[0]",
"ab",
"0",
"ab[0] = k",
"ab[0]",
"ab",
"0",
"k",
"long[] ab",
"ab",
"public 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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}\n\t\n\tstatic long GCD(long[] ab){\n\t\tlong k;\n\t\twhile(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}\n\t}\n\n}",
"public 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.parseLong(str[0]);\n\t\t\tlong b = Long.parseLong(str[1]);\n\t\t\t\n\t\t\tlong[] ab = new long[2];\n\t\t\tab[0] = Math.min(a, b);\n\t\t\tab[1] = Math.max(a, b);\n\t\t\tSystem.out.println(GCD(ab));\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}\n\t\n\tstatic long GCD(long[] ab){\n\t\tlong k;\n\t\twhile(true){\n\t\t\tk = ab[1]%ab[0];\n\t\t\tif (k==0){\n\t\t\t\treturn ab[0];\n\t\t\t}\n\t\t\tab[1] = ab[0];\n\t\t\tab[0] = k;\n\t\t}\n\t}\n\n}",
"Main"
] | 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.parseLong(str[1]);
long[] ab = new long[2];
ab[0] = Math.min(a, b);
ab[1] = Math.max(a, b);
System.out.println(GCD(ab));
}catch(IOException e){
System.out.println("IOException");
}
}
static long GCD(long[] ab){
long k;
while(true){
k = ab[1]%ab[0];
if (k==0){
return ab[0];
}
ab[1] = ab[0];
ab[0] = k;
}
}
} |
[
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,
13,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
29,
4,
13,
13,
2,
13,
13,
30,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
12,
51
],
[
51,
52
],
[
90,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
70,
82
],
[
82,
83
],
[
83,
84
],
[
53,
85
],
[
85,
86
],
[
53,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"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(\" \");\n long a=Long.parseLong(lines[0]);\n long b=Long.parseLong(lines[1]);\n System.out.println(gcd(a,b));\n }\n static long gcd(long x,long y){\n if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }\n if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }\n }\n}\n ",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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(\" \");\n long a=Long.parseLong(lines[0]);\n long b=Long.parseLong(lines[1]);\n System.out.println(gcd(a,b));\n }\n static long gcd(long x,long y){\n if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }\n if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n long a=Long.parseLong(lines[0]);\n long b=Long.parseLong(lines[1]);\n System.out.println(gcd(a,b));\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n long a=Long.parseLong(lines[0]);\n long b=Long.parseLong(lines[1]);\n System.out.println(gcd(a,b));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] lines = br.readLine().split(\" \");",
"lines",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long a=Long.parseLong(lines[0]);",
"a",
"Long.parseLong(lines[0])",
"Long.parseLong",
"Long",
"lines[0]",
"lines",
"0",
"long b=Long.parseLong(lines[1]);",
"b",
"Long.parseLong(lines[1])",
"Long.parseLong",
"Long",
"lines[1]",
"lines",
"1",
"System.out.println(gcd(a,b))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(a,b)",
"gcd",
"a",
"b",
"String[] args",
"args",
"static long gcd(long x,long y){\n if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }\n if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }\n }",
"gcd",
"{\n if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }\n if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }\n }",
"if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }",
"x<y",
"x",
"y",
"{\n long temp=x;\n x=y;\n y=temp;\n }",
"long temp=x;",
"temp",
"x",
"x=y",
"x",
"y",
"y=temp",
"y",
"temp",
"if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }",
"y >0",
"y",
"0",
"{\n return gcd(y,x%y);\n }",
"return gcd(y,x%y);",
"gcd(y,x%y)",
"gcd",
"y",
"x%y",
"x",
"y",
"{\n return x;\n }",
"return x;",
"x",
"long x",
"x",
"long y",
"y",
"public 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(\" \");\n long a=Long.parseLong(lines[0]);\n long b=Long.parseLong(lines[1]);\n System.out.println(gcd(a,b));\n }\n static long gcd(long x,long y){\n if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }\n if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }\n }\n}",
"public 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(\" \");\n long a=Long.parseLong(lines[0]);\n long b=Long.parseLong(lines[1]);\n System.out.println(gcd(a,b));\n }\n static long gcd(long x,long y){\n if(x<y){\n long temp=x;\n x=y;\n y=temp;\n }\n if(y >0){\n return gcd(y,x%y);\n }else{\n return x;\n }\n }\n}",
"Main"
] | 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(" ");
long a=Long.parseLong(lines[0]);
long b=Long.parseLong(lines[1]);
System.out.println(gcd(a,b));
}
static long gcd(long x,long y){
if(x<y){
long temp=x;
x=y;
y=temp;
}
if(y >0){
return gcd(y,x%y);
}else{
return 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,
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,
30,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
46,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
]
] | [
"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 \t\tx = num2;\n \t\ty = num1;\n \t}\n \t\n \tint tmp;\n \tfor( ;(tmp = x % y) != 0; ){\n \t\tx = y;\n \t\ty = tmp;\n \t}\n \t\n \tSystem.out.println(y);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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 \t\tx = num2;\n \t\ty = num1;\n \t}\n \t\n \tint tmp;\n \tfor( ;(tmp = x % y) != 0; ){\n \t\tx = y;\n \t\ty = tmp;\n \t}\n \t\n \tSystem.out.println(y);\n }\n}",
"Main",
"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 \t\tx = num2;\n \t\ty = num1;\n \t}\n \t\n \tint tmp;\n \tfor( ;(tmp = x % y) != 0; ){\n \t\tx = y;\n \t\ty = tmp;\n \t}\n \t\n \tSystem.out.println(y);\n }",
"main",
"{\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 \t\tx = num2;\n \t\ty = num1;\n \t}\n \t\n \tint tmp;\n \tfor( ;(tmp = x % y) != 0; ){\n \t\tx = y;\n \t\ty = tmp;\n \t}\n \t\n \tSystem.out.println(y);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num1 = scan.nextInt();",
"num1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int num2 = scan.nextInt();",
"num2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x;",
"x",
"int y;",
"y",
"if(num1 > num2){\n \t\tx = num1;\n \t\ty = num2;\n \t}else{\n \t\tx = num2;\n \t\ty = num1;\n \t}",
"num1 > num2",
"num1",
"num2",
"{\n \t\tx = num1;\n \t\ty = num2;\n \t}",
"x = num1",
"x",
"num1",
"y = num2",
"y",
"num2",
"{\n \t\tx = num2;\n \t\ty = num1;\n \t}",
"x = num2",
"x",
"num2",
"y = num1",
"y",
"num1",
"int tmp;",
"tmp",
"for( ;(tmp = x % y) != 0; ){\n \t\tx = y;\n \t\ty = tmp;\n \t}",
";",
"(tmp = x % y) != 0",
"(tmp = x % y)",
"tmp",
"x % y",
"x",
"y",
"0",
"{\n \t\tx = y;\n \t\ty = tmp;\n \t}",
"{\n \t\tx = y;\n \t\ty = tmp;\n \t}",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args"
] | 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;
}
int tmp;
for( ;(tmp = x % y) != 0; ){
x = y;
y = tmp;
}
System.out.println(y);
}
} |
[
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,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
14,
2,
2,
13,
13,
17,
30,
29,
13,
30,
29,
4,
13,
2,
13,
13,
13,
23,
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
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
13,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
13,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
6,
45
],
[
45,
46
],
[
4,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
49,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
47,
81
],
[
81,
82
],
[
47,
83
],
[
83,
84
]
] | [
"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\tpublic static int gcd(int N, int M){\n\t\tint max=Math.max(N, M);\n\t\tint min=Math.min(N, M);\n\t\t\n\t\tif(max%min==0){\n\t\t\treturn min;\n\t\t}else{\n\t\t\treturn gcd(max%min,min);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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\tpublic static int gcd(int N, int M){\n\t\tint max=Math.max(N, M);\n\t\tint min=Math.min(N, M);\n\t\t\n\t\tif(max%min==0){\n\t\t\treturn min;\n\t\t}else{\n\t\t\treturn gcd(max%min,min);\n\t\t}\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"final int Number=100;",
"Number",
"100",
"try(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\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}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int N = Integer.parseInt(sc.next());",
"N",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int M = Integer.parseInt(sc.next());",
"M",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int c =gcd(N,M);",
"c",
"gcd(N,M)",
"gcd",
"N",
"M",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public static int gcd(int N, int M){\n\t\tint max=Math.max(N, M);\n\t\tint min=Math.min(N, M);\n\t\t\n\t\tif(max%min==0){\n\t\t\treturn min;\n\t\t}else{\n\t\t\treturn gcd(max%min,min);\n\t\t}\n\t}",
"gcd",
"{\n\t\tint max=Math.max(N, M);\n\t\tint min=Math.min(N, M);\n\t\t\n\t\tif(max%min==0){\n\t\t\treturn min;\n\t\t}else{\n\t\t\treturn gcd(max%min,min);\n\t\t}\n\t}",
"int max=Math.max(N, M);",
"max",
"Math.max(N, M)",
"Math.max",
"Math",
"N",
"M",
"int min=Math.min(N, M);",
"min",
"Math.min(N, M)",
"Math.min",
"Math",
"N",
"M",
"if(max%min==0){\n\t\t\treturn min;\n\t\t}else{\n\t\t\treturn gcd(max%min,min);\n\t\t}",
"max%min==0",
"max%min",
"max",
"min",
"0",
"{\n\t\t\treturn min;\n\t\t}",
"return min;",
"min",
"{\n\t\t\treturn gcd(max%min,min);\n\t\t}",
"return gcd(max%min,min);",
"gcd(max%min,min)",
"gcd",
"max%min",
"max",
"min",
"min",
"int N",
"N",
"int M",
"M"
] | 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){
int max=Math.max(N, M);
int min=Math.min(N, M);
if(max%min==0){
return min;
}else{
return gcd(max%min,min);
}
}
} |
[
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,
23,
13,
10,
6,
13
] | [
[
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
],
[
9,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
16,
19
],
[
19,
20
],
[
19,
21
],
[
6,
22
],
[
22,
23
],
[
6,
24
],
[
24,
25
],
[
57,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
28,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
28,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
26,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] | [
"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 = input.nextInt();\n int ans = gcd(a, b);\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 = input.nextInt();\n int ans = gcd(a, b);\n System.out.println(ans);\n }\n}",
"Main",
"private static int gcd(int a, int b){\n if(b == 0) return a;\n else return gcd(b, a%b);\n }",
"gcd",
"{\n if(b == 0) return a;\n else return gcd(b, a%b);\n }",
"if(b == 0) return a;\n else return gcd(b, a%b);",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a%b);",
"gcd(b, a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt();\n int b = input.nextInt();\n int ans = gcd(a, b);\n System.out.println(ans);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int a = input.nextInt();\n int b = input.nextInt();\n int ans = gcd(a, b);\n System.out.println(ans);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int a = input.nextInt();",
"a",
"input.nextInt()",
"input.nextInt",
"input",
"int b = input.nextInt();",
"b",
"input.nextInt()",
"input.nextInt",
"input",
"int ans = gcd(a, b);",
"ans",
"gcd(a, b)",
"gcd",
"a",
"b",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public 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 = input.nextInt();\n int ans = gcd(a, b);\n System.out.println(ans);\n }\n}",
"public 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 = input.nextInt();\n int ans = gcd(a, b);\n System.out.println(ans);\n }\n}",
"Main"
] | 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();
int ans = gcd(a, b);
System.out.println(ans);
}
}
|
[
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,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
4,
18,
13,
23,
13
] | [
[
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
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
12,
18
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
6,
28
],
[
28,
29
],
[
6,
30
],
[
30,
31
],
[
4,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
34,
48
],
[
48,
49
],
[
34,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
34,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
69,
72
],
[
34,
73
],
[
73,
74
],
[
74,
75
],
[
32,
76
],
[
76,
77
]
] | [
"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 int x = stdIn.nextInt();\n int y = stdIn.nextInt();\n int z;\n if(x<y){\n z = x;\n x = y;\n y = z;\n }\n\n System.out.println(gcd(x,y));\n\n stdIn.close();\n }\n\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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 int x = stdIn.nextInt();\n int y = stdIn.nextInt();\n int z;\n if(x<y){\n z = x;\n x = y;\n y = z;\n }\n\n System.out.println(gcd(x,y));\n\n stdIn.close();\n }\n\n\n}",
"Main",
"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 }",
"gcd",
"{\n int temp;\n while((temp = x%y)!=0) {\n x = y;\n y = temp;\n }\n return y;\n }",
"int temp;",
"temp",
"while((temp = x%y)!=0) {\n x = y;\n y = temp;\n }",
"(temp = x%y)!=0",
"(temp = x%y)",
"temp",
"x%y",
"x",
"y",
"0",
"{\n x = y;\n y = temp;\n }",
"x = y",
"x",
"y",
"y = temp",
"y",
"temp",
"return y;",
"y",
"int x",
"x",
"int y",
"y",
"public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n \n int x = stdIn.nextInt();\n int y = stdIn.nextInt();\n int z;\n if(x<y){\n z = x;\n x = y;\n y = z;\n }\n\n System.out.println(gcd(x,y));\n\n stdIn.close();\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n \n int x = stdIn.nextInt();\n int y = stdIn.nextInt();\n int z;\n if(x<y){\n z = x;\n x = y;\n y = z;\n }\n\n System.out.println(gcd(x,y));\n\n stdIn.close();\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int x = stdIn.nextInt();",
"x",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int y = stdIn.nextInt();",
"y",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int z;",
"z",
"if(x<y){\n z = x;\n x = y;\n y = z;\n }",
"x<y",
"x",
"y",
"{\n z = x;\n x = y;\n y = z;\n }",
"z = x",
"z",
"x",
"x = y",
"x",
"y",
"y = z",
"y",
"z",
"System.out.println(gcd(x,y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x,y)",
"gcd",
"x",
"y",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args"
] | 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.nextInt();
int y = stdIn.nextInt();
int z;
if(x<y){
z = x;
x = y;
y = z;
}
System.out.println(gcd(x,y));
stdIn.close();
}
}
|
[
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,
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
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
6,
45
],
[
45,
46
],
[
72,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
50,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
47,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] | [
"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(a,b));\n }\n \n \n public static int gcd(int a, int b) {\n if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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(a,b));\n }\n \n \n public static int gcd(int a, int b) {\n if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }\n }\n}",
"Main",
"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(a,b));\n }",
"main",
"{\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(a,b));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] input = sc.nextLine().split(\" \");",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int a = Integer.parseInt(input[0]);",
"a",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int b = Integer.parseInt(input[1]);",
"b",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"System.out.println(gcd(a,b))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(a,b)",
"gcd",
"a",
"b",
"String[] args",
"args",
"public static int gcd(int a, int b) {\n if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }\n }",
"gcd",
"{\n if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }\n }",
"if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }",
"a % b == 0",
"a % b",
"a",
"b",
"0",
"{\n return b;\n }",
"return b;",
"b",
"{\n return gcd(b, a % b);\n }",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public 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(a,b));\n }\n \n \n public static int gcd(int a, int b) {\n if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }\n }\n}",
"public 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(a,b));\n }\n \n \n public static int gcd(int a, int b) {\n if (a % b == 0) {\n return b;\n } else {\n return gcd(b, a % b);\n }\n }\n}",
"Main"
] | 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));
}
public static int gcd(int a, int b) {
if (a % b == 0) {
return b;
} else {
return gcd(b, 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,
17,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
0,
13,
13,
0,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
32,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
44,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
62,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
74,
81
],
[
56,
82
],
[
82,
83
],
[
82,
84
],
[
56,
85
],
[
85,
86
],
[
85,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"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 return;\n }\n\n if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n\n while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 return;\n }\n\n if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n\n while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }\n }\n}",
"Main",
"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 return;\n }\n\n if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n\n while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }\n }",
"main",
"{\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 return;\n }\n\n if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n\n while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int x = Integer.parseInt(scanner.next());",
"x",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int y = Integer.parseInt(scanner.next());",
"y",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"if (x == y) {\n System.out.println(x);\n return;\n }",
"x == y",
"x",
"y",
"{\n System.out.println(x);\n return;\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"return;",
"if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }",
"x < y",
"x",
"y",
"{\n int tmp = x;\n x = y;\n y = tmp;\n }",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }",
"true",
"{\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }",
"int z = x % y;",
"z",
"x % y",
"x",
"y",
"if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }",
"x % z == 0 && y % z == 0",
"x % z == 0",
"x % z",
"x",
"z",
"0",
"y % z == 0",
"y % z",
"y",
"z",
"0",
"{\n System.out.println(z);\n break;\n }",
"System.out.println(z)",
"System.out.println",
"System.out",
"System",
"System.out",
"z",
"break;",
"x = y",
"x",
"y",
"y = z",
"y",
"z",
"String[] args",
"args",
"public 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 return;\n }\n\n if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n\n while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }\n }\n}",
"public 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 return;\n }\n\n if (x < y) {\n int tmp = x;\n x = y;\n y = tmp;\n }\n\n while (true) {\n int z = x % y;\n if (x % z == 0 && y % z == 0) {\n System.out.println(z);\n break;\n }\n x = y;\n y = z;\n }\n }\n}",
"Main"
] | 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;
}
if (x < y) {
int tmp = x;
x = y;
y = tmp;
}
while (true) {
int z = x % y;
if (x % z == 0 && y % z == 0) {
System.out.println(z);
break;
}
x = y;
y = z;
}
}
} |
[
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,
3,
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
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
41,
56
],
[
56,
57
],
[
56,
58
],
[
41,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] | [
"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) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\n\t\tlong d = 0; // d : gcd(a,b)\n\t\twhile (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}\n\n\t\tSystem.out.println(d);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\n\t\tlong d = 0; // d : gcd(a,b)\n\t\twhile (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}\n\n\t\tSystem.out.println(d);\n\t}\n\n}",
"Main",
"public 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) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\n\t\tlong d = 0; // d : gcd(a,b)\n\t\twhile (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}\n\n\t\tSystem.out.println(d);\n\t}",
"main",
"{\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) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\n\t\tlong d = 0; // d : gcd(a,b)\n\t\twhile (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}\n\n\t\tSystem.out.println(d);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if (a < b) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}",
"a < b",
"a",
"b",
"{\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}",
"long temp = a;",
"temp",
"a",
"a = b",
"a",
"b",
"b = temp",
"b",
"temp",
"long d = 0;",
"d",
"0",
"while (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}",
"true",
"{\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}",
"long r = a % b;",
"r",
"a % b",
"a",
"b",
"if (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}",
"r == 0",
"r",
"0",
"{\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}",
"d = b",
"d",
"b",
"break;",
"a = b",
"a",
"b",
"b = r",
"b",
"r",
"System.out.println(d)",
"System.out.println",
"System.out",
"System",
"System.out",
"d",
"String[] args",
"args",
"public 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) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\n\t\tlong d = 0; // d : gcd(a,b)\n\t\twhile (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}\n\n\t\tSystem.out.println(d);\n\t}\n\n}",
"public 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) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\n\t\tlong d = 0; // d : gcd(a,b)\n\t\twhile (true) {\n\t\t\tlong r = a % b; // a == n*b + r ( r < b )\n\n\t\t\tif (r == 0) {\n\t\t\t\td = b;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ta = b;\n\t\t\tb = r;\n\t\t}\n\n\t\tSystem.out.println(d);\n\t}\n\n}",
"Main"
] | 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;
b = temp;
}
long d = 0; // d : gcd(a,b)
while (true) {
long r = a % b; // a == n*b + r ( r < b )
if (r == 0) {
d = b;
break;
}
a = b;
b = r;
}
System.out.println(d);
}
} |
[
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,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
10,
6,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
256,
26
],
[
256,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
256,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
34,
48
],
[
48,
49
],
[
48,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
34,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
54,
59
],
[
34,
60
],
[
60,
61
],
[
61,
62
],
[
32,
63
],
[
63,
64
],
[
256,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
65,
80
],
[
80,
81
],
[
65,
82
],
[
82,
83
],
[
256,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
92,
95
],
[
84,
96
],
[
96,
97
],
[
84,
98
],
[
98,
99
],
[
256,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
104,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
118,
121
],
[
102,
122
],
[
122,
123
],
[
102,
124
],
[
124,
125
],
[
102,
126
],
[
126,
127
],
[
256,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
128,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
137,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
136,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
128,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
128,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
128,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
182,
183
],
[
128,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
186,
210
],
[
210,
211
],
[
184,
212
],
[
212,
213
],
[
128,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
221,
226
],
[
226,
227
],
[
226,
228
],
[
221,
229
],
[
229,
230
],
[
230,
231
],
[
221,
232
],
[
233,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
216,
240
],
[
240,
241
],
[
214,
242
],
[
242,
243
],
[
128,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
250,
252
],
[
244,
253
],
[
253,
254
],
[
0,
255
],
[
255,
256
],
[
255,
257
]
] | [
"\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(String[] args) throws IOException {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tTaskX solver = new TaskX();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic int INF = 1 << 30;\n\n\tstatic class TaskX {\n\t\tpublic void solve(int testNumber, InputReader in, PrintWriter out) {\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tpublic static long lcm(long a, long b) {\n\t\treturn a * b / gcd(a, b);\n\t}\n\n\tstatic class InputReader {\n\t\tBufferedReader in;\n\t\tStringTokenizer tok;\n\n\t\tpublic String nextString() {\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(nextString());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic InputReader(InputStream inputStream) {\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}\n\n\t}\n\t\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tTaskX solver = new TaskX();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic int INF = 1 << 30;\n\n\tstatic class TaskX {\n\t\tpublic void solve(int testNumber, InputReader in, PrintWriter out) {\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tpublic static long lcm(long a, long b) {\n\t\treturn a * b / gcd(a, b);\n\t}\n\n\tstatic class InputReader {\n\t\tBufferedReader in;\n\t\tStringTokenizer tok;\n\n\t\tpublic String nextString() {\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(nextString());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic InputReader(InputStream inputStream) {\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}\n\n\t}\n\t\n}",
"Main",
"static int INF = 1 << 30;",
"INF",
"1 << 30",
"1",
"30",
"public static void main(String[] args) throws IOException {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tTaskX solver = new TaskX();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}",
"main",
"{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tTaskX solver = new TaskX();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskX solver = new TaskX();",
"solver",
"new TaskX()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}",
"gcd",
"{\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}",
"return (b == 0) ? a : gcd(b, a % b);",
"(b == 0) ? a : gcd(b, a % b)",
"(b == 0)",
"b",
"0",
"a",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public static long lcm(long a, long b) {\n\t\treturn a * b / gcd(a, b);\n\t}",
"lcm",
"{\n\t\treturn a * b / gcd(a, b);\n\t}",
"return a * b / gcd(a, b);",
"a * b / gcd(a, b)",
"a * b",
"a",
"b",
"gcd(a, b)",
"gcd",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static class TaskX {\n\t\tpublic void solve(int testNumber, InputReader in, PrintWriter out) {\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}\n\t}",
"TaskX",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}",
"solve",
"{\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"out.println(gcd(x, y))",
"out.println",
"out",
"gcd(x, y)",
"gcd",
"x",
"y",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n\t\tBufferedReader in;\n\t\tStringTokenizer tok;\n\n\t\tpublic String nextString() {\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(nextString());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic InputReader(InputStream inputStream) {\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}\n\n\t}",
"InputReader",
"BufferedReader in;",
"in",
"StringTokenizer tok;",
"tok",
"public String nextString() {\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}",
"nextString",
"{\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}",
"while (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}",
"!tok.hasMoreTokens()",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"{\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t}",
"tok = new StringTokenizer(in.readLine(), \" \")",
"tok",
"new StringTokenizer(in.readLine(), \" \")",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}",
"return Integer.parseInt(nextString());",
"Integer.parseInt(nextString())",
"Integer.parseInt",
"Integer",
"nextString()",
"nextString",
"public long nextLong() {\n\t\t\treturn Long.parseLong(nextString());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(nextString());\n\t\t}",
"return Long.parseLong(nextString());",
"Long.parseLong(nextString())",
"Long.parseLong",
"Long",
"nextString()",
"nextString",
"public double nextDouble() {\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}",
"return Double.parseDouble(nextString());",
"Double.parseDouble(nextString())",
"Double.parseDouble",
"Double",
"nextString()",
"nextString",
"public int[] nextIntArray(int n) {\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}",
"nextIntArray",
"{\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tres[i] = nextInt();\n\t\t\t}",
"{\n\t\t\t\tres[i] = nextInt();\n\t\t\t}",
"res[i] = nextInt()",
"res[i]",
"res",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray(int n) {\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}",
"nextLongArray",
"{\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tres[i] = nextLong();\n\t\t\t}",
"{\n\t\t\t\tres[i] = nextLong();\n\t\t\t}",
"res[i] = nextLong()",
"res[i]",
"res",
"i",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public InputReader(InputStream inputStream) {\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}",
"InputReader",
"{\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}",
"in = new BufferedReader(new InputStreamReader(inputStream))",
"in",
"new BufferedReader(new InputStreamReader(inputStream))",
"tok = new StringTokenizer(\"\")",
"tok",
"new StringTokenizer(\"\")",
"InputStream inputStream",
"inputStream",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tTaskX solver = new TaskX();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic int INF = 1 << 30;\n\n\tstatic class TaskX {\n\t\tpublic void solve(int testNumber, InputReader in, PrintWriter out) {\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tpublic static long lcm(long a, long b) {\n\t\treturn a * b / gcd(a, b);\n\t}\n\n\tstatic class InputReader {\n\t\tBufferedReader in;\n\t\tStringTokenizer tok;\n\n\t\tpublic String nextString() {\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(nextString());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic InputReader(InputStream inputStream) {\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}\n\n\t}\n\t\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tTaskX solver = new TaskX();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic int INF = 1 << 30;\n\n\tstatic class TaskX {\n\t\tpublic void solve(int testNumber, InputReader in, PrintWriter out) {\n\n\t\t\tint x = in.nextInt();\n\t\t\tint y = in.nextInt();\n\t\t\t\n\t\t\tout.println(gcd(x, y));\n\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a, long b) {\n\t\treturn (b == 0) ? a : gcd(b, a % b);\n\t}\n\n\tpublic static long lcm(long a, long b) {\n\t\treturn a * b / gcd(a, b);\n\t}\n\n\tstatic class InputReader {\n\t\tBufferedReader in;\n\t\tStringTokenizer tok;\n\n\t\tpublic String nextString() {\n\t\t\twhile (!tok.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttok = new StringTokenizer(in.readLine(), \" \");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tok.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(nextString());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(nextString());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] res = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextInt();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] res = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = nextLong();\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tpublic InputReader(InputStream inputStream) {\n\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\ttok = new StringTokenizer(\"\");\n\t\t}\n\n\t}\n\t\n}",
"Main"
] |
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) throws IOException {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskX solver = new TaskX();
solver.solve(1, in, out);
out.close();
}
static int INF = 1 << 30;
static class TaskX {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int x = in.nextInt();
int y = in.nextInt();
out.println(gcd(x, y));
}
}
public static long gcd(long a, long b) {
return (b == 0) ? a : gcd(b, a % b);
}
public static long lcm(long a, long b) {
return a * b / gcd(a, b);
}
static class InputReader {
BufferedReader in;
StringTokenizer tok;
public String nextString() {
while (!tok.hasMoreTokens()) {
try {
tok = new StringTokenizer(in.readLine(), " ");
} catch (IOException e) {
throw new InputMismatchException();
}
}
return tok.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextString());
}
public long nextLong() {
return Long.parseLong(nextString());
}
public double nextDouble() {
return Double.parseDouble(nextString());
}
public int[] nextIntArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt();
}
return res;
}
public long[] nextLongArray(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong();
}
return res;
}
public InputReader(InputStream inputStream) {
in = new BufferedReader(new InputStreamReader(inputStream));
tok = new StringTokenizer("");
}
}
}
|
[
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,
13,
2,
13,
13,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
53,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
]
] | [
"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 bigger = b;\n }\n int tmp = bigger % lower;\n while(lower != 0) {\n tmp = bigger % lower;\n bigger = lower;\n lower = tmp;\n }\n System.out.println(bigger);\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"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 lower;\n int bigger;\n if (a > b) {\n lower = b;\n bigger = a;\n } else {\n lower = a;\n bigger = b;\n }\n int tmp = bigger % lower;\n while(lower != 0) {\n tmp = bigger % lower;\n bigger = lower;\n lower = tmp;\n }\n System.out.println(bigger);\n }\n}",
"Main",
"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 bigger = b;\n }\n int tmp = bigger % lower;\n while(lower != 0) {\n tmp = bigger % lower;\n bigger = lower;\n lower = tmp;\n }\n System.out.println(bigger);\n }",
"main",
"{\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 bigger = b;\n }\n int tmp = bigger % lower;\n while(lower != 0) {\n tmp = bigger % lower;\n bigger = lower;\n lower = tmp;\n }\n System.out.println(bigger);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int lower;",
"lower",
"int bigger;",
"bigger",
"if (a > b) {\n lower = b;\n bigger = a;\n } else {\n lower = a;\n bigger = b;\n }",
"a > b",
"a",
"b",
"{\n lower = b;\n bigger = a;\n }",
"lower = b",
"lower",
"b",
"bigger = a",
"bigger",
"a",
"{\n lower = a;\n bigger = b;\n }",
"lower = a",
"lower",
"a",
"bigger = b",
"bigger",
"b",
"int tmp = bigger % lower;",
"tmp",
"bigger % lower",
"bigger",
"lower",
"while(lower != 0) {\n tmp = bigger % lower;\n bigger = lower;\n lower = tmp;\n }",
"lower != 0",
"lower",
"0",
"{\n tmp = bigger % lower;\n bigger = lower;\n lower = tmp;\n }",
"tmp = bigger % lower",
"tmp",
"bigger % lower",
"bigger",
"lower",
"bigger = lower",
"bigger",
"lower",
"lower = tmp",
"lower",
"tmp",
"System.out.println(bigger)",
"System.out.println",
"System.out",
"System",
"System.out",
"bigger",
"String... args",
"args"
] | 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;
}
int tmp = bigger % lower;
while(lower != 0) {
tmp = bigger % lower;
bigger = lower;
lower = tmp;
}
System.out.println(bigger);
}
}
|
[
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,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
6,
25
],
[
25,
26
],
[
62,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
29,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
54,
55
],
[
54,
56
],
[
27,
57
],
[
57,
58
],
[
27,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] | [
"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 int tmp = a;\n a = b;\n b = tmp;\n }\n if (b == 0)\n return a;\n else\n return GCJ(b, a % b);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 int tmp = a;\n a = b;\n b = tmp;\n }\n if (b == 0)\n return a;\n else\n return GCJ(b, a % b);\n }\n\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n System.out.println(GCJ(sc.nextInt(), sc.nextInt()));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n System.out.println(GCJ(sc.nextInt(), sc.nextInt()));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"System.out.println(GCJ(sc.nextInt(), sc.nextInt()))",
"System.out.println",
"System.out",
"System",
"System.out",
"GCJ(sc.nextInt(), sc.nextInt())",
"GCJ",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] args",
"args",
"static int GCJ(int a, int b){\n if (a < b){\n int tmp = a;\n a = b;\n b = tmp;\n }\n if (b == 0)\n return a;\n else\n return GCJ(b, a % b);\n }",
"GCJ",
"{\n if (a < b){\n int tmp = a;\n a = b;\n b = tmp;\n }\n if (b == 0)\n return a;\n else\n return GCJ(b, a % b);\n }",
"if (a < b){\n int tmp = a;\n a = b;\n b = tmp;\n }",
"a < b",
"a",
"b",
"{\n int tmp = a;\n a = b;\n b = tmp;\n }",
"int tmp = a;",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"if (b == 0)\n return a;\n else\n return GCJ(b, a % b);",
"b == 0",
"b",
"0",
"return a;",
"a",
"return GCJ(b, a % b);",
"GCJ(b, a % b)",
"GCJ",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public 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 int tmp = a;\n a = b;\n b = tmp;\n }\n if (b == 0)\n return a;\n else\n return GCJ(b, a % b);\n }\n\n}",
"public 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 int tmp = a;\n a = b;\n b = tmp;\n }\n if (b == 0)\n return a;\n else\n return GCJ(b, a % b);\n }\n\n}",
"Main"
] | 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 = a;
a = b;
b = tmp;
}
if (b == 0)
return a;
else
return GCJ(b, a % b);
}
} |
[
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,
13,
2,
13,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
30,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
47,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
43,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
59,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"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.parseInt(line[1]);\n\n do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);\n\n System.out.println(y);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public 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.parseInt(line[1]);\n\n do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);\n\n System.out.println(y);\n }\n}",
"Main",
"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.parseInt(line[1]);\n\n do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);\n\n System.out.println(y);\n }",
"main",
"{\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.parseInt(line[1]);\n\n do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);\n\n System.out.println(y);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int x = Integer.parseInt(line[0]);",
"x",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"int y = Integer.parseInt(line[1]);",
"y",
"Integer.parseInt(line[1])",
"Integer.parseInt",
"Integer",
"line[1]",
"line",
"1",
"do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);",
"x % y != 0",
"x % y",
"x",
"y",
"0",
"{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }",
"if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }",
"x > y",
"x",
"y",
"{\n int tmp = x;\n x = y;\n y = tmp % y;\n }",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp % y",
"y",
"tmp % y",
"tmp",
"y",
"if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }",
"x < y",
"x",
"y",
"{\n int tmp = y;\n y = x;\n x = tmp;\n }",
"int tmp = y;",
"tmp",
"y",
"y = x",
"y",
"x",
"x = tmp",
"x",
"tmp",
"{\n break;\n }",
"break;",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args",
"public 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.parseInt(line[1]);\n\n do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);\n\n System.out.println(y);\n }\n}",
"public 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.parseInt(line[1]);\n\n do{\n if(x > y){\n int tmp = x;\n x = y;\n y = tmp % y;\n }else if(x < y){\n int tmp = y;\n y = x;\n x = tmp;\n }else{\n break;\n }\n }while(x % y != 0);\n\n System.out.println(y);\n }\n}",
"Main"
] | 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]);
do{
if(x > y){
int tmp = x;
x = y;
y = tmp % y;
}else if(x < y){
int tmp = y;
y = x;
x = tmp;
}else{
break;
}
}while(x % y != 0);
System.out.println(y);
}
} |
[
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,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
12,
54
],
[
54,
55
]
] | [
"/* 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(System.in);\n\t\t\n\t\tlong x = scanner.nextInt();\n\t\tlong y = scanner.nextInt();\n\t\t\n\t\tlong a;\n\t\twhile (x % y != 0) {\n\t\t\ta = x;\n\t\t\tx = y;\n\t\t\ty = a % y;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(y);\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tlong x = scanner.nextInt();\n\t\tlong y = scanner.nextInt();\n\t\t\n\t\tlong a;\n\t\twhile (x % y != 0) {\n\t\t\ta = x;\n\t\t\tx = y;\n\t\t\ty = a % y;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(y);\n\t\t\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tlong x = scanner.nextInt();\n\t\tlong y = scanner.nextInt();\n\t\t\n\t\tlong a;\n\t\twhile (x % y != 0) {\n\t\t\ta = x;\n\t\t\tx = y;\n\t\t\ty = a % y;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(y);\n\t\t\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tlong x = scanner.nextInt();\n\t\tlong y = scanner.nextInt();\n\t\t\n\t\tlong a;\n\t\twhile (x % y != 0) {\n\t\t\ta = x;\n\t\t\tx = y;\n\t\t\ty = a % y;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(y);\n\t\t\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long y = scanner.nextInt();",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long a;",
"a",
"while (x % y != 0) {\n\t\t\ta = x;\n\t\t\tx = y;\n\t\t\ty = a % y;\n\t\t\t\n\t\t}",
"x % y != 0",
"x % y",
"x",
"y",
"0",
"{\n\t\t\ta = x;\n\t\t\tx = y;\n\t\t\ty = a % y;\n\t\t\t\n\t\t}",
"a = x",
"a",
"x",
"x = y",
"x",
"y",
"y = a % y",
"y",
"a % y",
"a",
"y",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args"
] | /* 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 x = scanner.nextInt();
long y = scanner.nextInt();
long a;
while (x % y != 0) {
a = x;
x = y;
y = a % y;
}
System.out.println(y);
}
}
|
[
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,
2,
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
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
74,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
25,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
39,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
9,
49
],
[
49,
50
],
[
74,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
51,
69
],
[
69,
70
],
[
51,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] | [
"\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 result = gcd(y, x);\n }\n System.out.println(result);\n }\n\n static int gcd(int x, int y){\n if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n } \n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 result = gcd(y, x);\n }\n System.out.println(result);\n }\n\n static int gcd(int x, int y){\n if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n } \n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"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 result = gcd(y, x);\n }\n System.out.println(result);\n }",
"main",
"{\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 result = gcd(y, x);\n }\n System.out.println(result);\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = 0;",
"result",
"0",
"if(x > y){\n result = gcd(x, y);\n } else {\n result = gcd(y, x);\n }",
"x > y",
"x",
"y",
"{\n result = gcd(x, y);\n }",
"result = gcd(x, y)",
"result",
"gcd(x, y)",
"gcd",
"x",
"y",
"{\n result = gcd(y, x);\n }",
"result = gcd(y, x)",
"result",
"gcd(y, x)",
"gcd",
"y",
"x",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"static int gcd(int x, int y){\n if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n } \n }",
"gcd",
"{\n if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n } \n }",
"if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n }",
"y == 0",
"y",
"0",
"{\n return x;\n }",
"return x;",
"x",
"{\n return gcd(y, x % y);\n }",
"return gcd(y, x % y);",
"gcd(y, x % y)",
"gcd",
"y",
"x % y",
"x",
"y",
"int x",
"x",
"int y",
"y",
"public 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 result = gcd(y, x);\n }\n System.out.println(result);\n }\n\n static int gcd(int x, int y){\n if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n } \n }\n}",
"public 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 result = gcd(y, x);\n }\n System.out.println(result);\n }\n\n static int gcd(int x, int y){\n if(y == 0){\n return x;\n } else {\n return gcd(y, x % y);\n } \n }\n}",
"Main"
] |
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, x);
}
System.out.println(result);
}
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,
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,
13,
13,
0,
13,
13,
29,
13,
23,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
27,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
6,
39
],
[
39,
40
],
[
4,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
43,
61
],
[
61,
62
],
[
41,
63
],
[
63,
64
],
[
41,
65
],
[
65,
66
]
] | [
"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\twhile((c = a % b) != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}\n\t\treturn b;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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\twhile((c = a % b) != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}\n\t\treturn b;\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.println(euclid(Math.max(a, b), Math.min(a, b)))",
"System.out.println",
"System.out",
"System",
"System.out",
"euclid(Math.max(a, b), Math.min(a, b))",
"euclid",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"String[] args",
"args",
"public static int euclid(int a, int b){\n\t\tint c;\n\t\twhile((c = a % b) != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}\n\t\treturn b;\n\t}",
"euclid",
"{\n\t\tint c;\n\t\twhile((c = a % b) != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}\n\t\treturn b;\n\t}",
"int c;",
"c",
"while((c = a % b) != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}",
"(c = a % b) != 0",
"(c = a % b)",
"c",
"a % b",
"a",
"b",
"0",
"{\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t}",
"a = b",
"a",
"b",
"b = c",
"b",
"c",
"return b;",
"b",
"int a",
"a",
"int b",
"b"
] | 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 = b;
b = c;
}
return 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,
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
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
40,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] | [
"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 }\n\n while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }\n\n System.out.println(a);\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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 }\n\n while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }\n\n System.out.println(a);\n\n }\n}",
"Main",
"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 }\n\n while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }\n\n System.out.println(a);\n\n }",
"main",
"{\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 }\n\n while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }\n\n System.out.println(a);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a<b) {\n int tmp = a;\n a = b;\n b = tmp;\n }",
"a<b",
"a",
"b",
"{\n int tmp = a;\n a = b;\n b = tmp;\n }",
"int tmp = a;",
"tmp",
"a",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }",
"b != 0",
"b",
"0",
"{\n \n int c = a%b;\n a = b;\n b = c;\n\n }",
"int c = a%b;",
"c",
"a%b",
"a",
"b",
"a = b",
"a",
"b",
"b = c",
"b",
"c",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public 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 }\n\n while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }\n\n System.out.println(a);\n\n }\n}",
"public 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 }\n\n while(b != 0) {\n \n int c = a%b;\n a = b;\n b = c;\n\n }\n\n System.out.println(a);\n\n }\n}",
"Main"
] | 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;
}
while(b != 0) {
int c = a%b;
a = b;
b = c;
}
System.out.println(a);
}
}
|
[
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,
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,
13,
4,
18,
13,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
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
],
[
98,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
26,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
17,
48
],
[
48,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
17,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
70,
79
],
[
79,
80
],
[
79,
81
],
[
17,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
17,
86
],
[
86,
87
],
[
87,
88
],
[
98,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"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 PrintWriter(System.out);\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt(str[0]);\n int y = Integer.parseInt(str[1]);\n int tmp;\n if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }\n while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }\n out.println(y);\n out.flush();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt(str[0]);\n int y = Integer.parseInt(str[1]);\n int tmp;\n if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }\n while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }\n out.println(y);\n out.flush();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"Main",
"public void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt(str[0]);\n int y = Integer.parseInt(str[1]);\n int tmp;\n if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }\n while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }\n out.println(y);\n out.flush();\n }",
"exec",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt(str[0]);\n int y = Integer.parseInt(str[1]);\n int tmp;\n if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }\n while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }\n out.println(y);\n out.flush();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int x = Integer.parseInt(str[0]);",
"x",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int y = Integer.parseInt(str[1]);",
"y",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int tmp;",
"tmp",
"if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }",
"x<y",
"x",
"y",
"{\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }",
"tmp=x",
"tmp",
"x",
"x=y",
"x",
"y",
"y=tmp",
"y",
"tmp",
"while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }",
"x%y>0",
"x%y",
"x",
"y",
"0",
"{\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }",
"tmp=y",
"tmp",
"y",
"y=x%y",
"y",
"x%y",
"x",
"y",
"x=tmp",
"x",
"tmp",
"out.println(y)",
"out.println",
"out",
"y",
"out.flush()",
"out.flush",
"out",
"public static void main(String[] args) throws IOException {\n new Main().exec();\n }",
"main",
"{\n new Main().exec();\n }",
"new Main().exec()",
"new Main().exec",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt(str[0]);\n int y = Integer.parseInt(str[1]);\n int tmp;\n if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }\n while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }\n out.println(y);\n out.flush();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"public class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt(str[0]);\n int y = Integer.parseInt(str[1]);\n int tmp;\n if(x<y){\n \ttmp=x;\n \tx=y;\n \ty=tmp;\n }\n while(x%y>0) {\n \ttmp=y;\n \ty=x%y;\n \tx=tmp;\n }\n out.println(y);\n out.flush();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"Main"
] | 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);
String[] str = br.readLine().split(" ");
int x = Integer.parseInt(str[0]);
int y = Integer.parseInt(str[1]);
int tmp;
if(x<y){
tmp=x;
x=y;
y=tmp;
}
while(x%y>0) {
tmp=y;
y=x%y;
x=tmp;
}
out.println(y);
out.flush();
}
public static void main(String[] args) throws IOException {
new Main().exec();
}
} |
[
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,
13,
17,
4,
18,
13,
13,
14,
2,
18,
13,
17,
18,
13,
17,
30,
0,
13,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
13,
0,
13,
2,
18,
13,
17,
18,
13,
17,
42,
17,
30,
14,
2,
13,
17,
30,
3,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
13,
0,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
18,
13,
13,
18,
13,
17,
23,
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
],
[
14,
15
],
[
14,
16
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
31,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
31,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
31,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
31,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
69,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
31,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
31,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
98,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
98,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
31,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
9,
134
],
[
134,
135
]
] | [
"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] = Integer.parseInt(str);\n\n str = scan.next();\n array[1] = Integer.parseInt(str);\n\n //System.out.println(array[0] + \" \" + array[1]);\n\n\n if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }\n\n\n key = array[0] % array[1];\n while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }\n // for(int i = 0; i < array[0]; i++){\n // if(i == 0){\n // continue;\n // }else{\n // if(array[0] % i == 0 && array[1] % i == 0){\n // key = i;\n // }\n // }\n // }\n\n System.out.println(array[1]);\n\n }catch(Exception e){\n System.out.println(\"ERROR\");\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class 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] = Integer.parseInt(str);\n\n str = scan.next();\n array[1] = Integer.parseInt(str);\n\n //System.out.println(array[0] + \" \" + array[1]);\n\n\n if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }\n\n\n key = array[0] % array[1];\n while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }\n // for(int i = 0; i < array[0]; i++){\n // if(i == 0){\n // continue;\n // }else{\n // if(array[0] % i == 0 && array[1] % i == 0){\n // key = i;\n // }\n // }\n // }\n\n System.out.println(array[1]);\n\n }catch(Exception e){\n System.out.println(\"ERROR\");\n }\n\n }\n}",
"Main",
"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] = Integer.parseInt(str);\n\n str = scan.next();\n array[1] = Integer.parseInt(str);\n\n //System.out.println(array[0] + \" \" + array[1]);\n\n\n if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }\n\n\n key = array[0] % array[1];\n while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }\n // for(int i = 0; i < array[0]; i++){\n // if(i == 0){\n // continue;\n // }else{\n // if(array[0] % i == 0 && array[1] % i == 0){\n // key = i;\n // }\n // }\n // }\n\n System.out.println(array[1]);\n\n }catch(Exception e){\n System.out.println(\"ERROR\");\n }\n\n }",
"main",
"{\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] = Integer.parseInt(str);\n\n str = scan.next();\n array[1] = Integer.parseInt(str);\n\n //System.out.println(array[0] + \" \" + array[1]);\n\n\n if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }\n\n\n key = array[0] % array[1];\n while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }\n // for(int i = 0; i < array[0]; i++){\n // if(i == 0){\n // continue;\n // }else{\n // if(array[0] % i == 0 && array[1] % i == 0){\n // key = i;\n // }\n // }\n // }\n\n System.out.println(array[1]);\n\n }catch(Exception e){\n System.out.println(\"ERROR\");\n }\n\n }",
"int count;",
"count",
"int[] array = new int[2];",
"array",
"new int[2]",
"2",
"int key = 0;",
"key",
"0",
"try{\n Scanner scan = new Scanner(System.in);\n\n String str = scan.next();\n array[0] = Integer.parseInt(str);\n\n str = scan.next();\n array[1] = Integer.parseInt(str);\n\n //System.out.println(array[0] + \" \" + array[1]);\n\n\n if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }\n\n\n key = array[0] % array[1];\n while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }\n // for(int i = 0; i < array[0]; i++){\n // if(i == 0){\n // continue;\n // }else{\n // if(array[0] % i == 0 && array[1] % i == 0){\n // key = i;\n // }\n // }\n // }\n\n System.out.println(array[1]);\n\n }catch(Exception e){\n System.out.println(\"ERROR\");\n }",
"catch(Exception e){\n System.out.println(\"ERROR\");\n }",
"Exception e",
"{\n System.out.println(\"ERROR\");\n }",
"System.out.println(\"ERROR\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"ERROR\"",
"{\n Scanner scan = new Scanner(System.in);\n\n String str = scan.next();\n array[0] = Integer.parseInt(str);\n\n str = scan.next();\n array[1] = Integer.parseInt(str);\n\n //System.out.println(array[0] + \" \" + array[1]);\n\n\n if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }\n\n\n key = array[0] % array[1];\n while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }\n // for(int i = 0; i < array[0]; i++){\n // if(i == 0){\n // continue;\n // }else{\n // if(array[0] % i == 0 && array[1] % i == 0){\n // key = i;\n // }\n // }\n // }\n\n System.out.println(array[1]);\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"array[0] = Integer.parseInt(str)",
"array[0]",
"array",
"0",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"scan",
"array[1] = Integer.parseInt(str)",
"array[1]",
"array",
"1",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"if(array[0] < array[1]){\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }",
"array[0] < array[1]",
"array[0]",
"array",
"0",
"array[1]",
"array",
"1",
"{\n key = array[0];\n array[0] = array[1];\n array[1] = key;\n }",
"key = array[0]",
"key",
"array[0]",
"array",
"0",
"array[0] = array[1]",
"array[0]",
"array",
"0",
"array[1]",
"array",
"1",
"array[1] = key",
"array[1]",
"array",
"1",
"key",
"key = array[0] % array[1]",
"key",
"array[0] % array[1]",
"array[0]",
"array",
"0",
"array[1]",
"array",
"1",
"while(true){\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }",
"true",
"{\n if(key == 0){\n break;\n }\n array[0] = array[1];\n array[1] = key;\n key = array[0] % array[1];\n }",
"if(key == 0){\n break;\n }",
"key == 0",
"key",
"0",
"{\n break;\n }",
"break;",
"array[0] = array[1]",
"array[0]",
"array",
"0",
"array[1]",
"array",
"1",
"array[1] = key",
"array[1]",
"array",
"1",
"key",
"key = array[0] % array[1]",
"key",
"array[0] % array[1]",
"array[0]",
"array",
"0",
"array[1]",
"array",
"1",
"System.out.println(array[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"array[1]",
"array",
"1",
"String[] args",
"args"
] | 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);
str = scan.next();
array[1] = Integer.parseInt(str);
//System.out.println(array[0] + " " + array[1]);
if(array[0] < array[1]){
key = array[0];
array[0] = array[1];
array[1] = key;
}
key = array[0] % array[1];
while(true){
if(key == 0){
break;
}
array[0] = array[1];
array[1] = key;
key = array[0] % array[1];
}
// for(int i = 0; i < array[0]; i++){
// if(i == 0){
// continue;
// }else{
// if(array[0] % i == 0 && array[1] % i == 0){
// key = i;
// }
// }
// }
System.out.println(array[1]);
}catch(Exception e){
System.out.println("ERROR");
}
}
}
|
[
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,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] | [
"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 % GCD;\n while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }\n System.out.println(GCD);\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 % GCD;\n while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }\n System.out.println(GCD);\n sc.close();\n }\n}",
"Main",
"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 % GCD;\n while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }\n System.out.println(GCD);\n sc.close();\n }",
"main",
"{\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 % GCD;\n while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }\n System.out.println(GCD);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x",
"x",
"y",
"y",
"z",
"z",
"GCD",
"GCD",
"GCD_n;",
"GCD_n",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (x < y) { //swap\n z = x;\n x = y;\n y = z;\n }",
"x < y",
"x",
"y",
"{ //swap\n z = x;\n x = y;\n y = z;\n }",
"z = x",
"z",
"x",
"x = y",
"x",
"y",
"y = z",
"y",
"z",
"GCD = y",
"GCD",
"y",
"GCD_n = x % GCD",
"GCD_n",
"x % GCD",
"x",
"GCD",
"while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }",
"GCD_n != 0",
"GCD_n",
"0",
"{\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }",
"x = GCD",
"x",
"GCD",
"GCD = GCD_n",
"GCD",
"GCD_n",
"GCD_n = x % GCD",
"GCD_n",
"x % GCD",
"x",
"GCD",
"System.out.println(GCD)",
"System.out.println",
"System.out",
"System",
"System.out",
"GCD",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public 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 % GCD;\n while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }\n System.out.println(GCD);\n sc.close();\n }\n}",
"public 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 % GCD;\n while(GCD_n != 0) {\n x = GCD;\n GCD = GCD_n;\n GCD_n = x % GCD;\n }\n System.out.println(GCD);\n sc.close();\n }\n}",
"Main"
] | 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_n != 0) {
x = GCD;
GCD = GCD_n;
GCD_n = x % GCD;
}
System.out.println(GCD);
sc.close();
}
}
|
[
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,
2,
13,
13,
30,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
30,
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
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
58,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
54,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
80,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
]
] | [
"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 while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }\n\t System.out.println(y);\n\t}\n\telse {\n\t while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }\n\t System.out.println(x);\n\t}\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class 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 while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }\n\t System.out.println(y);\n\t}\n\telse {\n\t while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }\n\t System.out.println(x);\n\t}\n }\n}",
"Main",
"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 while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }\n\t System.out.println(y);\n\t}\n\telse {\n\t while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }\n\t System.out.println(x);\n\t}\n }",
"main",
"{\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 while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }\n\t System.out.println(y);\n\t}\n\telse {\n\t while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }\n\t System.out.println(x);\n\t}\n }",
"int x",
"x",
"y",
"y",
"temp;",
"temp",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"x = scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y = scan.nextInt()",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(1>x || x>1000000000){System.exit(0);}",
"1>x || x>1000000000",
"1>x",
"1",
"x",
"x>1000000000",
"x",
"1000000000",
"{System.exit(0);}",
"System.exit(0)",
"System.exit",
"System",
"0",
"if(1>y || y>1000000000){System.exit(0);}",
"1>y || y>1000000000",
"1>y",
"1",
"y",
"y>1000000000",
"y",
"1000000000",
"{System.exit(0);}",
"System.exit(0)",
"System.exit",
"System",
"0",
"if(x>=y){\n\t while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }\n\t System.out.println(y);\n\t}\n\telse {\n\t while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }\n\t System.out.println(x);\n\t}",
"x>=y",
"x",
"y",
"{\n\t while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }\n\t System.out.println(y);\n\t}",
"while((temp = x%y) != 0){\n\t\tx = y;\n\t\ty = temp;\n\t }",
"(temp = x%y) != 0",
"(temp = x%y)",
"temp",
"x%y",
"x",
"y",
"0",
"{\n\t\tx = y;\n\t\ty = temp;\n\t }",
"x = y",
"x",
"y",
"y = temp",
"y",
"temp",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"{\n\t while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }\n\t System.out.println(x);\n\t}",
"while((temp = y%x)!=0){\n\t\ty = x;\n\t\tx = temp;\n\t }",
"(temp = y%x)!=0",
"(temp = y%x)",
"temp",
"y%x",
"y",
"x",
"0",
"{\n\t\ty = x;\n\t\tx = temp;\n\t }",
"y = x",
"y",
"x",
"x = temp",
"x",
"temp",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args"
] | 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 = y;
y = temp;
}
System.out.println(y);
}
else {
while((temp = y%x)!=0){
y = x;
x = temp;
}
System.out.println(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,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] | [
"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;\nb=r;\nr=a%b;\n}\nSystem.out.println(b);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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;\nb=r;\nr=a%b;\n}\nSystem.out.println(b);\n }\n}",
"Main",
"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;\nb=r;\nr=a%b;\n}\nSystem.out.println(b);\n }",
"main",
"{\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;\nb=r;\nr=a%b;\n}\nSystem.out.println(b);\n }",
"int a",
"a",
"b",
"b",
"c",
"c",
"r;",
"r",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b=sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (a<b) {\n c=a;\n a=b;\n b=c;\n }",
"a<b",
"a",
"b",
"{\n c=a;\n a=b;\n b=c;\n }",
"c=a",
"c",
"a",
"a=b",
"a",
"b",
"b=c",
"b",
"c",
"r=a%b",
"r",
"a%b",
"a",
"b",
"while(r!=0){\na=b;\nb=r;\nr=a%b;\n}",
"r!=0",
"r",
"0",
"{\na=b;\nb=r;\nr=a%b;\n}",
"a=b",
"a",
"b",
"b=r",
"b",
"r",
"r=a%b",
"r",
"a%b",
"a",
"b",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public 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;\nb=r;\nr=a%b;\n}\nSystem.out.println(b);\n }\n}",
"public 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;\nb=r;\nr=a%b;\n}\nSystem.out.println(b);\n }\n}",
"Main"
] | 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;
}
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,
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,
18,
18,
13,
13,
13,
3,
30,
40,
13,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
30,
40,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
49,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
68,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
84,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"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\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public 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\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public 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\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\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\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int num1 = s.nextInt();",
"num1",
"s.nextInt()",
"s.nextInt",
"s",
"int num2 = s.nextInt();",
"num2",
"s.nextInt()",
"s.nextInt",
"s",
"int surplus = 0;",
"surplus",
"0",
"int i = 0;",
"i",
"0",
"while( i < 100000000){\n\t\t\tif(num1>=num2){\n\t\t\t\tsurplus = num1%num2;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"i < 100000000",
"i",
"100000000",
"{\n\t\t\tif(num1>=num2){\n\t\t\t\tsurplus = num1%num2;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(num1>=num2){\n\t\t\t\tsurplus = num1%num2;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}",
"num1>=num2",
"num1",
"num2",
"{\n\t\t\t\tsurplus = num1%num2;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}",
"surplus = num1%num2",
"surplus",
"num1%num2",
"num1",
"num2",
"num1 = num2",
"num1",
"num2",
"num2 = surplus",
"num2",
"surplus",
"if(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}",
"surplus == 0",
"surplus",
"0",
"{\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.println(num1)",
"System.out.println",
"System.out",
"System",
"System.out",
"num1",
"break;",
"{\n\t\t\t\t\ti++;\n\t\t\t\t}",
"i++",
"i",
"if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}",
"num2>=num1",
"num2",
"num1",
"{\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}",
"surplus = num2%num1",
"surplus",
"num2%num1",
"num2",
"num1",
"num1 = num2",
"num1",
"num2",
"num2 = surplus",
"num2",
"surplus",
"if(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}",
"surplus == 0",
"surplus",
"0",
"{\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.println(num2)",
"System.out.println",
"System.out",
"System",
"System.out",
"num2",
"break;",
"{\n\t\t\t\t\ti++;\n\t\t\t\t}",
"i++",
"i",
"String args[]",
"args",
"public 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\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"public 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\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num1);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t}else if(num2>=num1){\n\t\t\t\tsurplus = num2%num1;\n\t\t\t\tnum1 = num2;\n\t\t\t\tnum2 = surplus;\n\t\t\t\tif(surplus == 0){\n\t\t\t\t\tSystem.out.println(num2);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | 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(surplus == 0){
System.out.println(num1);
break;
}else{
i++;
}
}else if(num2>=num1){
surplus = num2%num1;
num1 = num2;
num2 = surplus;
if(surplus == 0){
System.out.println(num2);
break;
}else{
i++;
}
}
}
}
}
|
[
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
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
6,
25
],
[
25,
26
],
[
52,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
30,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
27,
47
],
[
47,
48
],
[
27,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] | [
"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 } else {\n return getGCD(y, x % y);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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 } else {\n return getGCD(y, x % y);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(getGCD(sc.nextInt(), sc.nextInt()));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n System.out.println(getGCD(sc.nextInt(), sc.nextInt()));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"System.out.println(getGCD(sc.nextInt(), sc.nextInt()))",
"System.out.println",
"System.out",
"System",
"System.out",
"getGCD(sc.nextInt(), sc.nextInt())",
"getGCD",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] args",
"args",
"static int getGCD(int x, int y) {\n if (x % y == 0) {\n return y;\n } else {\n return getGCD(y, x % y);\n }\n }",
"getGCD",
"{\n if (x % y == 0) {\n return y;\n } else {\n return getGCD(y, x % y);\n }\n }",
"if (x % y == 0) {\n return y;\n } else {\n return getGCD(y, x % y);\n }",
"x % y == 0",
"x % y",
"x",
"y",
"0",
"{\n return y;\n }",
"return y;",
"y",
"{\n return getGCD(y, x % y);\n }",
"return getGCD(y, x % y);",
"getGCD(y, x % y)",
"getGCD",
"y",
"x % y",
"x",
"y",
"int x",
"x",
"int y",
"y",
"public 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 } else {\n return getGCD(y, x % y);\n }\n }\n}",
"public 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 } else {\n return getGCD(y, x % y);\n }\n }\n}",
"Main"
] | 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 {
return getGCD(y, x % y);
}
}
}
|
[
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,
2,
13,
2,
4,
18,
13,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
13,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
13,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
13,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
35,
37
],
[
13,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
13,
46
],
[
46,
47
],
[
46,
48
],
[
13,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
56,
62
],
[
49,
63
],
[
63,
64
],
[
64,
65
],
[
49,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
68,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
13,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
9,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"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))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }\n\t}",
"main",
"{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }\n\t}",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }",
"{\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"line=br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] x=line.split(\" \");",
"x",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int a=Integer.parseInt(x[0]);",
"a",
"Integer.parseInt(x[0])",
"Integer.parseInt",
"Integer",
"x[0]",
"x",
"0",
"int b=Integer.parseInt(x[1]);",
"b",
"Integer.parseInt(x[1])",
"Integer.parseInt",
"Integer",
"x[1]",
"x",
"1",
"int store=0;",
"store",
"0",
"for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<Integer.min(a, b)+1",
"i",
"Integer.min(a, b)+1",
"Integer.min(a, b)",
"Integer.min",
"Integer",
"a",
"b",
"1",
"i++",
"i++",
"i",
"{\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }",
"{\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }",
"if(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}",
"a%i==0&&b%i==0",
"a%i==0",
"a%i",
"a",
"i",
"0",
"b%i==0",
"b%i",
"b",
"i",
"0",
"{\n \t\tstore=i;\n \t}",
"store=i",
"store",
"i",
"System.out.println(store)",
"System.out.println",
"System.out",
"System",
"System.out",
"store",
"String[] args",
"args",
"public 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))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }\n\t}\n\n}",
"public 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))) {\n String line;\n line=br.readLine();\n String[] x=line.split(\" \");\n int a=Integer.parseInt(x[0]);\n int b=Integer.parseInt(x[1]);\n int store=0;\n for(int i=1;i<Integer.min(a, b)+1;i++){\n \tif(a%i==0&&b%i==0){\n \t\tstore=i;\n \t}\n }\n System.out.println(store);\n }\n\t}\n\n}",
"Main"
] | 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))) {
String line;
line=br.readLine();
String[] x=line.split(" ");
int a=Integer.parseInt(x[0]);
int b=Integer.parseInt(x[1]);
int store=0;
for(int i=1;i<Integer.min(a, b)+1;i++){
if(a%i==0&&b%i==0){
store=i;
}
}
System.out.println(store);
}
}
} |
[
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,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
40,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
72,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] | [
"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\t\t\tx = y;\n\t\t\ty = n;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\t\t\tx = y;\n\t\t\ty = n;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void 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\t\t\tx = y;\n\t\t\ty = n;\n\t\t}\n\t\tSystem.out.println(y);\n\t}",
"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\t\t\tx = y;\n\t\t\ty = n;\n\t\t}\n\t\tSystem.out.println(y);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (y > x) {\n\t\t\tint swap = x;\n\t\t\tx = y;\n\t\t\ty = swap;\n\t\t}",
"y > x",
"y",
"x",
"{\n\t\t\tint swap = x;\n\t\t\tx = y;\n\t\t\ty = swap;\n\t\t}",
"int swap = x;",
"swap",
"x",
"x = y",
"x",
"y",
"y = swap",
"y",
"swap",
"while (x > y) {\n\t\t\tint n = x % y;\n\t\t\tif (n == 0) break;\n\t\t\tx = y;\n\t\t\ty = n;\n\t\t}",
"x > y",
"x",
"y",
"{\n\t\t\tint n = x % y;\n\t\t\tif (n == 0) break;\n\t\t\tx = y;\n\t\t\ty = n;\n\t\t}",
"int n = x % y;",
"n",
"x % y",
"x",
"y",
"if (n == 0) break;",
"n == 0",
"n",
"0",
"break;",
"x = y",
"x",
"y",
"y = n",
"y",
"n",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public 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\t\t\tx = y;\n\t\t\ty = n;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public 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\t\t\tx = y;\n\t\t\ty = n;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | 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);
}
public static void main(String[] args) {
new Main().run();
}
}
|
[
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,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
69,
70
],
[
69,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
78,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] | [
"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.parseInt(str[1]);\n int ans=0,flg=1;\n if(x==y){\n System.out.println(x);\n flg=0;\n }\n while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public 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.parseInt(str[1]);\n int ans=0,flg=1;\n if(x==y){\n System.out.println(x);\n flg=0;\n }\n while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }\n }\n}",
"Main",
"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.parseInt(str[1]);\n int ans=0,flg=1;\n if(x==y){\n System.out.println(x);\n flg=0;\n }\n while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }\n }",
"main",
"{\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.parseInt(str[1]);\n int ans=0,flg=1;\n if(x==y){\n System.out.println(x);\n flg=0;\n }\n while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }\n }",
"BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str=buf.readLine().split(\" \");",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"int x=Integer.parseInt(str[0]);",
"x",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int y=Integer.parseInt(str[1]);",
"y",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int ans=0",
"ans",
"0",
"flg=1;",
"flg",
"1",
"if(x==y){\n System.out.println(x);\n flg=0;\n }",
"x==y",
"x",
"y",
"{\n System.out.println(x);\n flg=0;\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"flg=0",
"flg",
"0",
"while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }",
"flg==1",
"flg",
"1",
"{\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }",
"ans=x%y",
"ans",
"x%y",
"x",
"y",
"x=y",
"x",
"y",
"y=ans",
"y",
"ans",
"if(x%y==0){\n System.out.println(ans);break;\n }",
"x%y==0",
"x%y",
"x",
"y",
"0",
"{\n System.out.println(ans);break;\n }",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"break;",
"String[] args",
"args",
"public 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.parseInt(str[1]);\n int ans=0,flg=1;\n if(x==y){\n System.out.println(x);\n flg=0;\n }\n while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }\n }\n}",
"public 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.parseInt(str[1]);\n int ans=0,flg=1;\n if(x==y){\n System.out.println(x);\n flg=0;\n }\n while(flg==1){\n ans=x%y;\n x=y;\n y=ans;\n if(x%y==0){\n System.out.println(ans);break;\n }\n }\n }\n}",
"Main"
] | 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]);
int ans=0,flg=1;
if(x==y){
System.out.println(x);
flg=0;
}
while(flg==1){
ans=x%y;
x=y;
y=ans;
if(x%y==0){
System.out.println(ans);break;
}
}
}
} |
[
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,
13,
12,
13,
30,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
16,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
16,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
12,
53
],
[
53,
54
],
[
97,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
69,
70
],
[
69,
71
],
[
57,
72
],
[
72,
73
],
[
57,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
78,
87
],
[
87,
88
],
[
87,
89
],
[
57,
90
],
[
90,
91
],
[
55,
92
],
[
92,
93
],
[
55,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }\n }\n\n static int gcd(int x, int y) {\n if( x<y ){\n int tmp = x; x = y; y = tmp;\n }\n\n int r;\n while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }\n\n return x;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }\n }\n\n static int gcd(int x, int y) {\n if( x<y ){\n int tmp = x; x = y; y = tmp;\n }\n\n int r;\n while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }\n\n return x;\n }\n}",
"Main",
"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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }\n }",
"main",
"{\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }\n }",
"try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }",
"{\n\n String[] str = br.readLine().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int x = Integer.parseInt( str[0] );",
"x",
"Integer.parseInt( str[0] )",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int y = Integer.parseInt( str[1] );",
"y",
"Integer.parseInt( str[1] )",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"System.out.println( gcd(x,y) )",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x,y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"static int gcd(int x, int y) {\n if( x<y ){\n int tmp = x; x = y; y = tmp;\n }\n\n int r;\n while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }\n\n return x;\n }",
"gcd",
"{\n if( x<y ){\n int tmp = x; x = y; y = tmp;\n }\n\n int r;\n while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }\n\n return x;\n }",
"if( x<y ){\n int tmp = x; x = y; y = tmp;\n }",
"x<y",
"x",
"y",
"{\n int tmp = x; x = y; y = tmp;\n }",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"int r;",
"r",
"while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }",
"y>0",
"y",
"0",
"{\n r = x%y;\n x = y; y = r;\n }",
"r = x%y",
"r",
"x%y",
"x",
"y",
"x = y",
"x",
"y",
"y = r",
"y",
"r",
"return x;",
"x",
"int x",
"x",
"int y",
"y",
"public 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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }\n }\n\n static int gcd(int x, int y) {\n if( x<y ){\n int tmp = x; x = y; y = tmp;\n }\n\n int r;\n while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }\n\n return x;\n }\n}",
"public 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().split(\" \");\n int x = Integer.parseInt( str[0] );\n int y = Integer.parseInt( str[1] );\n\n System.out.println( gcd(x,y) );\n }\n }\n\n static int gcd(int x, int y) {\n if( x<y ){\n int tmp = x; x = y; y = tmp;\n }\n\n int r;\n while( y>0 ) {\n r = x%y;\n x = y; y = r;\n }\n\n return x;\n }\n}",
"Main"
] | 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(" ");
int x = Integer.parseInt( str[0] );
int y = Integer.parseInt( str[1] );
System.out.println( gcd(x,y) );
}
}
static int gcd(int x, int y) {
if( x<y ){
int tmp = x; x = y; y = tmp;
}
int r;
while( y>0 ) {
r = x%y;
x = y; y = r;
}
return x;
}
}
|
[
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
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
10,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
6,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
] | [
"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;\n } while(b != 0);\n System.out.println(a);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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;\n } while(b != 0);\n System.out.println(a);\n }\n }\n}",
"Main",
"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;\n } while(b != 0);\n System.out.println(a);\n }\n }",
"main",
"{\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;\n } while(b != 0);\n System.out.println(a);\n }\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;\n } while(b != 0);\n System.out.println(a);\n }",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n do {\n int c = a % b;\n a = b;\n b = c;\n } while(b != 0);\n System.out.println(a);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"do {\n int c = a % b;\n a = b;\n b = c;\n } while(b != 0);",
"b != 0",
"b",
"0",
"{\n int c = a % b;\n a = b;\n b = c;\n }",
"int c = a % b;",
"c",
"a % b",
"a",
"b",
"a = b",
"a",
"b",
"b = c",
"b",
"c",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public 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;\n } while(b != 0);\n System.out.println(a);\n }\n }\n}",
"public 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;\n } while(b != 0);\n System.out.println(a);\n }\n }\n}",
"Main"
] | 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;
} while(b != 0);
System.out.println(a);
}
}
}
|
[
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,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
55,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] | [
"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(a);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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(a);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void 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(a);\n\t}",
"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(a);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int mod;",
"mod",
"do {\n\t\t\tmod = a%b;\n\t\t\ta = b;\n\t\t\tb = mod;\n\t\t} while(mod != 0);",
"mod != 0",
"mod",
"0",
"{\n\t\t\tmod = a%b;\n\t\t\ta = b;\n\t\t\tb = mod;\n\t\t}",
"mod = a%b",
"mod",
"a%b",
"a",
"b",
"a = b",
"a",
"b",
"b = mod",
"b",
"mod",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public 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(a);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public 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(a);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | 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) {
new Main().run();
}
}
|
[
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,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
4,
13,
13,
13,
14,
2,
13,
40,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
20,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
6,
41
],
[
41,
42
],
[
6,
43
],
[
43,
44
],
[
106,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
47,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
47,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
72,
73
],
[
72,
74
],
[
47,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
47,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
81,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
81,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
99,
102
],
[
45,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"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 = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}\n\t\tint factor = euclidean(x, y);\n\t\tif (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}\n\t\tint factor = euclidean(x, y);\n\t\tif (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}\n\t}\n}",
"Main",
"public 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}",
"euclidean",
"{\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}",
"int result = -1",
"result",
"-1",
"1",
"z = 1;",
"z",
"1",
"while (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}",
"z > 0",
"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}",
"z = x % y",
"z",
"x % y",
"x",
"y",
"if (z == 0) result = y;",
"z == 0",
"z",
"0",
"result = y",
"result",
"y",
"x = y",
"x",
"y",
"y = z",
"y",
"z",
"return result;",
"result",
"int x",
"x",
"int y",
"y",
"public 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\tif (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}\n\t\tint factor = euclidean(x, y);\n\t\tif (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}\n\t\tint factor = euclidean(x, y);\n\t\tif (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}",
"y > x",
"y",
"x",
"{\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}",
"int tmp = x;",
"tmp",
"x",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"int factor = euclidean(x, y);",
"factor",
"euclidean(x, y)",
"euclidean",
"x",
"y",
"if (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}",
"factor == -1",
"factor",
"-1",
"1",
"{\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t}",
"System.out.println(\"not exist Greatest common factor\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"not exist Greatest common factor\"",
"{\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}",
"System.out.println(euclidean(x, y))",
"System.out.println",
"System.out",
"System",
"System.out",
"euclidean(x, y)",
"euclidean",
"x",
"y",
"String[] args",
"args",
"public 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 = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}\n\t\tint factor = euclidean(x, y);\n\t\tif (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}\n\t}\n}",
"public 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 = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif (y > x ) {\n\t\t\tint tmp = x; x = y; y = tmp;\n\t\t}\n\t\tint factor = euclidean(x, y);\n\t\tif (factor == -1) {\n\t\t\tSystem.out.println(\"not exist Greatest common factor\");\n\t\t} else {\n\t\t\tSystem.out.println(euclidean(x, y));\n\t\t}\n\t}\n}",
"Main"
] | 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.nextInt();
int y = sc.nextInt();
if (y > x ) {
int tmp = x; x = y; y = tmp;
}
int factor = euclidean(x, y);
if (factor == -1) {
System.out.println("not exist Greatest common factor");
} else {
System.out.println(euclidean(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,
42,
17,
30,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
29,
13,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
64,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
53,
54
],
[
53,
55
],
[
40,
56
],
[
56,
57
],
[
56,
58
],
[
33,
59
],
[
59,
60
],
[
33,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] | [
"\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\tint tmp;\n\t\twhile (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tint tmp;\n\t\twhile (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(euclideanAlgorithm(x, y))",
"System.out.println",
"System.out",
"System",
"System.out",
"euclideanAlgorithm(x, y)",
"euclideanAlgorithm",
"x",
"y",
"String[] args",
"args",
"public static int euclideanAlgorithm(int x, int y) {\n\t\tint tmp;\n\t\twhile (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t}",
"euclideanAlgorithm",
"{\n\t\tint tmp;\n\t\twhile (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t}",
"int tmp;",
"tmp",
"while (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}",
"true",
"{\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}",
"tmp = x % y",
"tmp",
"x % y",
"x",
"y",
"if (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}",
"tmp == 0",
"tmp",
"0",
"{\n\t\t\t\treturn y;\n\t\t\t}",
"return y;",
"y",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"int x",
"x",
"int y",
"y",
"public 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\tint tmp;\n\t\twhile (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t}\n}",
"public 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\tint tmp;\n\t\twhile (true) {\n\t\t\ttmp = x % y;\n\t\t\tif (tmp == 0) {\n\t\t\t\treturn y;\n\t\t\t}\n\t\t\tx = y;\n\t\t\ty = tmp;\n\t\t}\n\t}\n}",
"Main"
] |
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 = x % y;
if (tmp == 0) {
return y;
}
x = y;
y = 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,
13,
4,
18,
13,
18,
13,
17,
14,
2,
13,
13,
30,
41,
13,
13,
41,
13,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
30,
41,
13,
13,
41,
13,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
16,
18
],
[
13,
19
],
[
19,
20
],
[
19,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
6,
27
],
[
27,
28
],
[
6,
29
],
[
29,
30
],
[
100,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
33,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
33,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
61,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
81,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
31,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"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(\" \");\n\t\tint x = Integer.parseInt(gcd[0]);\n\t\tint y = Integer.parseInt(gcd[1]);\n\t\t\tif(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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(\" \");\n\t\tint x = Integer.parseInt(gcd[0]);\n\t\tint y = Integer.parseInt(gcd[1]);\n\t\t\tif(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t}\n}",
"Main",
"static 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}",
"bmp",
"{\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}",
"while(y > 0){\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"y > 0",
"y",
"0",
"{\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"int r = x % y;",
"r",
"x % y",
"x",
"y",
"x = y",
"x",
"y",
"y = r",
"y",
"r",
"return x;",
"x",
"int x",
"x",
"int y",
"y",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString[] gcd = in.nextLine().split(\" \");\n\t\tint x = Integer.parseInt(gcd[0]);\n\t\tint y = Integer.parseInt(gcd[1]);\n\t\t\tif(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tString[] gcd = in.nextLine().split(\" \");\n\t\tint x = Integer.parseInt(gcd[0]);\n\t\tint y = Integer.parseInt(gcd[1]);\n\t\t\tif(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String[] gcd = in.nextLine().split(\" \");",
"gcd",
"in.nextLine().split(\" \")",
"in.nextLine().split",
"in.nextLine()",
"in.nextLine",
"in",
"\" \"",
"int x = Integer.parseInt(gcd[0]);",
"x",
"Integer.parseInt(gcd[0])",
"Integer.parseInt",
"Integer",
"gcd[0]",
"gcd",
"0",
"int y = Integer.parseInt(gcd[1]);",
"y",
"Integer.parseInt(gcd[1])",
"Integer.parseInt",
"Integer",
"gcd[1]",
"gcd",
"1",
"if(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}",
"x<y",
"x",
"y",
"{\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}",
"int big = y;",
"big",
"y",
"int small = x;",
"small",
"x",
"System.out.println(bmp(big,small))",
"System.out.println",
"System.out",
"System",
"System.out",
"bmp(big,small)",
"bmp",
"big",
"small",
"{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}",
"int big = x;",
"big",
"x",
"int small = y;",
"small",
"y",
"System.out.println(bmp(big,small))",
"System.out.println",
"System.out",
"System",
"System.out",
"bmp(big,small)",
"bmp",
"big",
"small",
"String[] args",
"args",
"public 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(\" \");\n\t\tint x = Integer.parseInt(gcd[0]);\n\t\tint y = Integer.parseInt(gcd[1]);\n\t\t\tif(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t}\n}",
"public 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(\" \");\n\t\tint x = Integer.parseInt(gcd[0]);\n\t\tint y = Integer.parseInt(gcd[1]);\n\t\t\tif(x<y){\n\t\t\t\tint big = y;\n\t\t\t\tint small = x;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint big = x;\n\t\t\t\tint small = y;\n\t\t\t\tSystem.out.println(bmp(big,small));\n\t\t\t}\n\t\t}\n}",
"Main"
] | 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 = Integer.parseInt(gcd[1]);
if(x<y){
int big = y;
int small = x;
System.out.println(bmp(big,small));
}
else{
int big = x;
int small = y;
System.out.println(bmp(big,small));
}
}
} |
[
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,
30,
3,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
45,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] | [
"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 a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }\n System.out.println(Math.max(a,b));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }\n System.out.println(Math.max(a,b));\n }\n}",
"Main",
"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 a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }\n System.out.println(Math.max(a,b));\n }",
"main",
"{\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 a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }\n System.out.println(Math.max(a,b));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = Math.max(x,y);",
"a",
"Math.max(x,y)",
"Math.max",
"Math",
"x",
"y",
"int b = Math.min(x,y);",
"b",
"Math.min(x,y)",
"Math.min",
"Math",
"x",
"y",
"while(!(a ==0 || b == 0)){\n a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }",
"!(a ==0 || b == 0)",
"(a ==0 || b == 0)",
"a ==0",
"a",
"0",
"b == 0",
"b",
"0",
"{\n a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }",
"a = a%b",
"a",
"a%b",
"a",
"b",
"if(a == 0){\n break;\n }",
"a == 0",
"a",
"0",
"{\n break;\n }",
"break;",
"b = b%a",
"b",
"b%a",
"b",
"a",
"System.out.println(Math.max(a,b))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(a,b)",
"Math.max",
"Math",
"a",
"b",
"String[] args",
"args",
"public 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 a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }\n System.out.println(Math.max(a,b));\n }\n}",
"public 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 a = a%b;\n if(a == 0){\n break;\n }\n b = b%a;\n }\n System.out.println(Math.max(a,b));\n }\n}",
"Main"
] | 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;
if(a == 0){
break;
}
b = b%a;
}
System.out.println(Math.max(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,
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
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
26,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
61,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"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 for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }\n \n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }\n \n \n }\n}",
"Main",
"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 for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }\n \n \n }",
"main",
"{\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 for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }\n \n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(y<x) {\n int t=0;\n t=y; y=x; x=t;\n }",
"y<x",
"y",
"x",
"{\n int t=0;\n t=y; y=x; x=t;\n }",
"int t=0;",
"t",
"0",
"t=y",
"t",
"y",
"y=x",
"y",
"x",
"x=t",
"x",
"t",
"int z = 0;",
"z",
"0",
"for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i++",
"i++",
"i",
"{\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }",
"{\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }",
"z = y % x",
"z",
"y % x",
"y",
"x",
"if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }",
"z==0",
"z",
"0",
"{\n System.out.println(x);\n break;\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"break;",
"{\n y = x; x = z;\n }",
"y = x",
"y",
"x",
"x = z",
"x",
"z",
"String[] args",
"args",
"public 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 for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }\n \n \n }\n}",
"public 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 for(int i=0;;i++){\n z = y % x;\n if(z==0){\n System.out.println(x);\n break;\n }else{\n y = x; x = z;\n }\n\n }\n \n \n }\n}",
"Main"
] | 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;;i++){
z = y % x;
if(z==0){
System.out.println(x);
break;
}else{
y = x; x = z;
}
}
}
}
|
[
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,
13,
18,
13,
17,
0,
13,
18,
13,
17,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
34,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
14,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
14,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
12,
87
],
[
87,
88
],
[
138,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
89,
97
],
[
97,
98
],
[
138,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
105,
106
],
[
105,
107
],
[
101,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
108,
118
],
[
118,
119
],
[
119,
120
],
[
108,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
130,
132
],
[
101,
133
],
[
133,
134
],
[
99,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"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 int[] numArray = parseInt(getSplitLine(line));\n\n int x;\n int y;\n if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }\n\n//計算\n int tmp;\n while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }\n\n System.out.println(y);\n }\n\n private static String[] getSplitLine(String line) {\n return line.split(\"\\\\s\");\n }\n\n private static int[] parseInt(String[] line) {\n int[] numArray = new int[line.length];\n for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }\n return numArray;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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 int[] numArray = parseInt(getSplitLine(line));\n\n int x;\n int y;\n if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }\n\n//計算\n int tmp;\n while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }\n\n System.out.println(y);\n }\n\n private static String[] getSplitLine(String line) {\n return line.split(\"\\\\s\");\n }\n\n private static int[] parseInt(String[] line) {\n int[] numArray = new int[line.length];\n for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }\n return numArray;\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int[] numArray = parseInt(getSplitLine(line));\n\n int x;\n int y;\n if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }\n\n//計算\n int tmp;\n while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }\n\n System.out.println(y);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int[] numArray = parseInt(getSplitLine(line));\n\n int x;\n int y;\n if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }\n\n//計算\n int tmp;\n while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }\n\n System.out.println(y);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int[] numArray = parseInt(getSplitLine(line));",
"numArray",
"parseInt(getSplitLine(line))",
"parseInt",
"getSplitLine(line)",
"getSplitLine",
"line",
"int x;",
"x",
"int y;",
"y",
"if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }",
"numArray[0] > numArray[1]",
"numArray[0]",
"numArray",
"0",
"numArray[1]",
"numArray",
"1",
"{\n x = numArray[0];\n y = numArray[1];\n }",
"x = numArray[0]",
"x",
"numArray[0]",
"numArray",
"0",
"y = numArray[1]",
"y",
"numArray[1]",
"numArray",
"1",
"{\n x = numArray[1];\n y = numArray[0];\n }",
"x = numArray[1]",
"x",
"numArray[1]",
"numArray",
"1",
"y = numArray[0]",
"y",
"numArray[0]",
"numArray",
"0",
"int tmp;",
"tmp",
"while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }",
"(tmp = x % y) != 0",
"(tmp = x % y)",
"tmp",
"x % y",
"x",
"y",
"0",
"{\n x = y;\n y = tmp;\n }",
"x = y",
"x",
"y",
"y = tmp",
"y",
"tmp",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String args[]",
"args",
"private static String[] getSplitLine(String line) {\n return line.split(\"\\\\s\");\n }",
"getSplitLine",
"{\n return line.split(\"\\\\s\");\n }",
"return line.split(\"\\\\s\");",
"line.split(\"\\\\s\")",
"line.split",
"line",
"\"\\\\s\"",
"String line",
"line",
"private static int[] parseInt(String[] line) {\n int[] numArray = new int[line.length];\n for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }\n return numArray;\n }",
"parseInt",
"{\n int[] numArray = new int[line.length];\n for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }\n return numArray;\n }",
"int[] numArray = new int[line.length];",
"numArray",
"new int[line.length]",
"line.length",
"line",
"line.length",
"for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length",
"i",
"line.length",
"line",
"line.length",
"i++",
"i++",
"i",
"{\n numArray[i] = Integer.parseInt(line[i]);\n }",
"{\n numArray[i] = Integer.parseInt(line[i]);\n }",
"numArray[i] = Integer.parseInt(line[i])",
"numArray[i]",
"numArray",
"i",
"Integer.parseInt(line[i])",
"Integer.parseInt",
"Integer",
"line[i]",
"line",
"i",
"return numArray;",
"numArray",
"String[] line",
"line",
"public 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 int[] numArray = parseInt(getSplitLine(line));\n\n int x;\n int y;\n if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }\n\n//計算\n int tmp;\n while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }\n\n System.out.println(y);\n }\n\n private static String[] getSplitLine(String line) {\n return line.split(\"\\\\s\");\n }\n\n private static int[] parseInt(String[] line) {\n int[] numArray = new int[line.length];\n for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }\n return numArray;\n }\n}",
"public 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 int[] numArray = parseInt(getSplitLine(line));\n\n int x;\n int y;\n if (numArray[0] > numArray[1]) {\n x = numArray[0];\n y = numArray[1];\n } else {\n x = numArray[1];\n y = numArray[0];\n }\n\n//計算\n int tmp;\n while ((tmp = x % y) != 0) {\n x = y;\n y = tmp;\n }\n\n System.out.println(y);\n }\n\n private static String[] getSplitLine(String line) {\n return line.split(\"\\\\s\");\n }\n\n private static int[] parseInt(String[] line) {\n int[] numArray = new int[line.length];\n for (int i = 0; i < line.length; i++) {\n numArray[i] = Integer.parseInt(line[i]);\n }\n return numArray;\n }\n}",
"Main"
] | 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 = parseInt(getSplitLine(line));
int x;
int y;
if (numArray[0] > numArray[1]) {
x = numArray[0];
y = numArray[1];
} else {
x = numArray[1];
y = numArray[0];
}
//計算
int tmp;
while ((tmp = x % y) != 0) {
x = y;
y = tmp;
}
System.out.println(y);
}
private static String[] getSplitLine(String line) {
return line.split("\\s");
}
private static int[] parseInt(String[] line) {
int[] numArray = new int[line.length];
for (int i = 0; i < line.length; i++) {
numArray[i] = Integer.parseInt(line[i]);
}
return 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,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
13,
29,
13,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
29,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
119,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
61,
74
],
[
74,
75
],
[
33,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
76,
83
],
[
83,
84
],
[
83,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
76,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
90,
102
],
[
102,
103
],
[
33,
104
],
[
104,
105
],
[
31,
106
],
[
106,
107
],
[
31,
108
],
[
108,
109
],
[
119,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
110,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"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\tif (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;\n\t\tfor (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;\n\t\treturn rem;\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tif (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;\n\t\tfor (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;\n\t\treturn rem;\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void 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}",
"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}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.println(gcd(x, y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x, y)",
"gcd",
"x",
"y",
"int gcd(int x, int y) {\n\t\tint rem;\n\t\tint largenum;\n\t\tif (x == 1 || y == 1) return 1;\n\t\tif (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;\n\t\tfor (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;\n\t\treturn rem;\n\t}",
"gcd",
"{\n\t\tint rem;\n\t\tint largenum;\n\t\tif (x == 1 || y == 1) return 1;\n\t\tif (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;\n\t\tfor (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;\n\t\treturn rem;\n\t}",
"int rem;",
"rem",
"int largenum;",
"largenum",
"if (x == 1 || y == 1) return 1;",
"x == 1 || y == 1",
"x == 1",
"x",
"1",
"y == 1",
"y",
"1",
"return 1;",
"1",
"if (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;",
"x > y",
"x",
"y",
"{\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t}",
"rem = x % y",
"rem",
"x % y",
"x",
"y",
"largenum = x",
"largenum",
"x",
"if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;",
"y > x",
"y",
"x",
"{\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t}",
"rem = y % x",
"rem",
"y % x",
"y",
"x",
"largenum = x",
"largenum",
"x",
"return x;",
"x",
"for (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;",
"int i = rem - 1;",
"int i = rem - 1;",
"i",
"rem - 1",
"rem",
"1",
"i > 0",
"i",
"0",
"i--",
"i--",
"i",
"if (rem % i == 0 && largenum % i == 0) return i;",
"if (rem % i == 0 && largenum % i == 0) return i;",
"rem % i == 0 && largenum % i == 0",
"rem % i == 0",
"rem % i",
"rem",
"i",
"0",
"largenum % i == 0",
"largenum % i",
"largenum",
"i",
"0",
"return i;",
"i",
"return rem;",
"rem",
"int x",
"x",
"int y",
"y",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public 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\tif (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;\n\t\tfor (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;\n\t\treturn rem;\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public 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\tif (x > y) {\n\t\t\trem = x % y;\n\t\t\tlargenum = x;\n\t\t} else if (y > x) {\n\t\t\trem = y % x;\n\t\t\tlargenum = x;\n\t\t} else return x;\n\t\tfor (int i = rem - 1; i > 0; i--)\n\t\t\tif (rem % i == 0 && largenum % i == 0) return i;\n\t\treturn rem;\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | 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;
largenum = x;
} else if (y > x) {
rem = y % x;
largenum = x;
} else return x;
for (int i = rem - 1; i > 0; i--)
if (rem % i == 0 && largenum % i == 0) return i;
return rem;
}
public static void main(String[] args) {
new Main().run();
}
} |
[
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,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
38,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
81,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
76,
77
],
[
69,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"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 = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }\n //System.out.println(x + \" \" + y);\n if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }\n \n }\n \n public static int calc(int a, int b){\n return a % b;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public 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 = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }\n //System.out.println(x + \" \" + y);\n if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }\n \n }\n \n public static int calc(int a, int b){\n return a % b;\n }\n}",
"Main",
"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 = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }\n //System.out.println(x + \" \" + y);\n if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }\n \n }",
"main",
"{\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 = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }\n //System.out.println(x + \" \" + y);\n if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(x != 0 && y != 0){\n if(x >= y){\n x = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }",
"x != 0 && y != 0",
"x != 0",
"x",
"0",
"y != 0",
"y",
"0",
"{\n if(x >= y){\n x = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }",
"if(x >= y){\n x = calc(x, y);\n }else{\n y = calc(y, x);\n }",
"x >= y",
"x",
"y",
"{\n x = calc(x, y);\n }",
"x = calc(x, y)",
"x",
"calc(x, y)",
"calc",
"x",
"y",
"{\n y = calc(y, x);\n }",
"y = calc(y, x)",
"y",
"calc(y, x)",
"calc",
"y",
"x",
"if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }",
"x == 0",
"x",
"0",
"{\n System.out.println(y);\n }",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"{\n System.out.println(x);\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public static int calc(int a, int b){\n return a % b;\n }",
"calc",
"{\n return a % b;\n }",
"return a % b;",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public 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 = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }\n //System.out.println(x + \" \" + y);\n if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }\n \n }\n \n public static int calc(int a, int b){\n return a % b;\n }\n}",
"public 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 = calc(x, y);\n }else{\n y = calc(y, x);\n }\n }\n //System.out.println(x + \" \" + y);\n if(x == 0){\n System.out.println(y);\n }else{\n System.out.println(x);\n }\n \n }\n \n public static int calc(int a, int b){\n return a % b;\n }\n}",
"Main"
] | 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);
}else{
y = calc(y, x);
}
}
//System.out.println(x + " " + y);
if(x == 0){
System.out.println(y);
}else{
System.out.println(x);
}
}
public static int calc(int a, int b){
return a % b;
}
}
|
[
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,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
13,
18,
13,
17,
18,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
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
],
[
113,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
17,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
37,
43
],
[
17,
44
],
[
44,
45
],
[
44,
46
],
[
47,
48
],
[
47,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
17,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
15,
88
],
[
88,
89
],
[
113,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
92,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
90,
108
],
[
108,
109
],
[
90,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"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 InputStreamReader(System.in));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\twhile (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}\n\t\tString[] tmp = lines.get(0).split(\" \");\n\t\tint[] num = new int[tmp.length];\n\t\tfor(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\tSystem.out.println(gcd(num[0],num[1]));\n\n\t}\n\tstatic int gcd(int x, int y){\n\t\tif (x%y ==0)\n\t\t\treturn y;\n\t\treturn gcd(y, x%y);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public 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 InputStreamReader(System.in));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\twhile (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}\n\t\tString[] tmp = lines.get(0).split(\" \");\n\t\tint[] num = new int[tmp.length];\n\t\tfor(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\tSystem.out.println(gcd(num[0],num[1]));\n\n\t}\n\tstatic int gcd(int x, int y){\n\t\tif (x%y ==0)\n\t\t\treturn y;\n\t\treturn gcd(y, x%y);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\twhile (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}\n\t\tString[] tmp = lines.get(0).split(\" \");\n\t\tint[] num = new int[tmp.length];\n\t\tfor(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\tSystem.out.println(gcd(num[0],num[1]));\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\twhile (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}\n\t\tString[] tmp = lines.get(0).split(\" \");\n\t\tint[] num = new int[tmp.length];\n\t\tfor(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\tSystem.out.println(gcd(num[0],num[1]));\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"ArrayList<String> lines = new ArrayList<String>();",
"lines",
"new ArrayList<String>()",
"while (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}",
"br.ready()",
"br.ready",
"br",
"{\n\t\t\tlines.add(br.readLine());\n\t\t}",
"lines.add(br.readLine())",
"lines.add",
"lines",
"br.readLine()",
"br.readLine",
"br",
"String[] tmp = lines.get(0).split(\" \");",
"tmp",
"lines.get(0).split(\" \")",
"lines.get(0).split",
"lines.get(0)",
"lines.get",
"lines",
"0",
"\" \"",
"int[] num = new int[tmp.length];",
"num",
"new int[tmp.length]",
"tmp.length",
"tmp",
"tmp.length",
"for(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<tmp.length",
"i",
"tmp.length",
"tmp",
"tmp.length",
"i++",
"i++",
"i",
"{\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}",
"{\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}",
"num[i] = Integer.parseInt(tmp[i])",
"num[i]",
"num",
"i",
"Integer.parseInt(tmp[i])",
"Integer.parseInt",
"Integer",
"tmp[i]",
"tmp",
"i",
"System.out.println(gcd(num[0],num[1]))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(num[0],num[1])",
"gcd",
"num[0]",
"num",
"0",
"num[1]",
"num",
"1",
"String[] args",
"args",
"static int gcd(int x, int y){\n\t\tif (x%y ==0)\n\t\t\treturn y;\n\t\treturn gcd(y, x%y);\n\t}",
"gcd",
"{\n\t\tif (x%y ==0)\n\t\t\treturn y;\n\t\treturn gcd(y, x%y);\n\t}",
"if (x%y ==0)\n\t\t\treturn y;",
"x%y ==0",
"x%y",
"x",
"y",
"0",
"return y;",
"y",
"return gcd(y, x%y);",
"gcd(y, x%y)",
"gcd",
"y",
"x%y",
"x",
"y",
"int x",
"x",
"int y",
"y",
"public 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 InputStreamReader(System.in));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\twhile (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}\n\t\tString[] tmp = lines.get(0).split(\" \");\n\t\tint[] num = new int[tmp.length];\n\t\tfor(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\tSystem.out.println(gcd(num[0],num[1]));\n\n\t}\n\tstatic int gcd(int x, int y){\n\t\tif (x%y ==0)\n\t\t\treturn y;\n\t\treturn gcd(y, x%y);\n\t}\n\n}",
"public 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 InputStreamReader(System.in));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\twhile (br.ready()){\n\t\t\tlines.add(br.readLine());\n\t\t}\n\t\tString[] tmp = lines.get(0).split(\" \");\n\t\tint[] num = new int[tmp.length];\n\t\tfor(int i=0; i<tmp.length; i++){\n\t\t\tnum[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\tSystem.out.println(gcd(num[0],num[1]));\n\n\t}\n\tstatic int gcd(int x, int y){\n\t\tif (x%y ==0)\n\t\t\treturn y;\n\t\treturn gcd(y, x%y);\n\t}\n\n}",
"Main"
] | 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));
ArrayList<String> lines = new ArrayList<String>();
while (br.ready()){
lines.add(br.readLine());
}
String[] tmp = lines.get(0).split(" ");
int[] num = new int[tmp.length];
for(int i=0; i<tmp.length; i++){
num[i] = Integer.parseInt(tmp[i]);
}
System.out.println(gcd(num[0],num[1]));
}
static int gcd(int x, int y){
if (x%y ==0)
return y;
return gcd(y, x%y);
}
} |
[
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,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
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
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
16,
19
],
[
19,
20
],
[
19,
21
],
[
6,
22
],
[
22,
23
],
[
6,
24
],
[
24,
25
],
[
90,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
31,
38
],
[
38,
39
],
[
31,
40
],
[
40,
41
],
[
40,
42
],
[
31,
43
],
[
43,
44
],
[
43,
45
],
[
31,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
26,
51
],
[
51,
52
],
[
26,
53
],
[
53,
54
],
[
90,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
57,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
57,
84
],
[
84,
85
],
[
85,
86
],
[
55,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"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\tpublic static void main(String[] args){\n\n\t\tint a, b;\n\n\t\tScanner scan=new Scanner(System.in);\n\t\ta=scan.nextInt();\n\t\tb=scan.nextInt();\n\n\t\tSystem.out.println(gcd_roop(a, b));\n\t\tscan.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tpublic static void main(String[] args){\n\n\t\tint a, b;\n\n\t\tScanner scan=new Scanner(System.in);\n\t\ta=scan.nextInt();\n\t\tb=scan.nextInt();\n\n\t\tSystem.out.println(gcd_roop(a, b));\n\t\tscan.close();\n\n\t}\n\n}",
"Main",
"public static int gcd(int a, int b){\n\n\t\tif(b==0)return a;\n\t\treturn gcd(b, a%b);\n\t}",
"gcd",
"{\n\n\t\tif(b==0)return a;\n\t\treturn gcd(b, a%b);\n\t}",
"if(b==0)return a;",
"b==0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a%b);",
"gcd(b, a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public 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}",
"gcd_roop",
"{\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}",
"while(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}",
"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}",
"if(b==0)return a;",
"b==0",
"b",
"0",
"return a;",
"a",
"int t;",
"t",
"t=a",
"t",
"a",
"a=b",
"a",
"b",
"b=t%b",
"b",
"t%b",
"t",
"b",
"int a",
"a",
"int b",
"b",
"public static void main(String[] args){\n\n\t\tint a, b;\n\n\t\tScanner scan=new Scanner(System.in);\n\t\ta=scan.nextInt();\n\t\tb=scan.nextInt();\n\n\t\tSystem.out.println(gcd_roop(a, b));\n\t\tscan.close();\n\n\t}",
"main",
"{\n\n\t\tint a, b;\n\n\t\tScanner scan=new Scanner(System.in);\n\t\ta=scan.nextInt();\n\t\tb=scan.nextInt();\n\n\t\tSystem.out.println(gcd_roop(a, b));\n\t\tscan.close();\n\n\t}",
"int a",
"a",
"b;",
"b",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"a=scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b=scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.println(gcd_roop(a, b))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd_roop(a, b)",
"gcd_roop",
"a",
"b",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public 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\tpublic static void main(String[] args){\n\n\t\tint a, b;\n\n\t\tScanner scan=new Scanner(System.in);\n\t\ta=scan.nextInt();\n\t\tb=scan.nextInt();\n\n\t\tSystem.out.println(gcd_roop(a, b));\n\t\tscan.close();\n\n\t}\n\n}",
"public 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\tpublic static void main(String[] args){\n\n\t\tint a, b;\n\n\t\tScanner scan=new Scanner(System.in);\n\t\ta=scan.nextInt();\n\t\tb=scan.nextInt();\n\n\t\tSystem.out.println(gcd_roop(a, b));\n\t\tscan.close();\n\n\t}\n\n}",
"Main"
] | 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;
Scanner scan=new Scanner(System.in);
a=scan.nextInt();
b=scan.nextInt();
System.out.println(gcd_roop(a, b));
scan.close();
}
} |
[
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,
13,
4,
13,
18,
13,
17,
18,
13,
17,
4,
18,
18,
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,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
14,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
33,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
12,
69
],
[
69,
70
],
[
136,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
77,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
73,
91
],
[
91,
92
],
[
71,
93
],
[
93,
94
],
[
71,
95
],
[
95,
96
],
[
136,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
103,
104
],
[
103,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
106,
116
],
[
116,
117
],
[
117,
118
],
[
106,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
128,
130
],
[
99,
131
],
[
131,
132
],
[
97,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
] | [
"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[] numArray = strToInt(str.split(\"\\\\s\"));\n \tint result;\n\n \tif(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}\n\n System.out.println(result);\n }\n public static int getGCD(int x,int y){\n \tint temp;\n \twhile((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}\n \treturn y;\n }\n public static int[] strToInt(String[] strArray){\n \tint[] numArray = new int[strArray.length];\n \tfor(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}\n \treturn numArray;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public 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[] numArray = strToInt(str.split(\"\\\\s\"));\n \tint result;\n\n \tif(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}\n\n System.out.println(result);\n }\n public static int getGCD(int x,int y){\n \tint temp;\n \twhile((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}\n \treturn y;\n }\n public static int[] strToInt(String[] strArray){\n \tint[] numArray = new int[strArray.length];\n \tfor(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}\n \treturn numArray;\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tString str = br.readLine();\n \tint[] numArray = strToInt(str.split(\"\\\\s\"));\n \tint result;\n\n \tif(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}\n\n System.out.println(result);\n }",
"main",
"{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tString str = br.readLine();\n \tint[] numArray = strToInt(str.split(\"\\\\s\"));\n \tint result;\n\n \tif(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}\n\n System.out.println(result);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int[] numArray = strToInt(str.split(\"\\\\s\"));",
"numArray",
"strToInt(str.split(\"\\\\s\"))",
"strToInt",
"str.split(\"\\\\s\")",
"str.split",
"str",
"\"\\\\s\"",
"int result;",
"result",
"if(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}",
"numArray[0] > numArray[1]",
"numArray[0]",
"numArray",
"0",
"numArray[1]",
"numArray",
"1",
"{\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}",
"result = getGCD(numArray[0],numArray[1])",
"result",
"getGCD(numArray[0],numArray[1])",
"getGCD",
"numArray[0]",
"numArray",
"0",
"numArray[1]",
"numArray",
"1",
"{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}",
"result = getGCD(numArray[1],numArray[0])",
"result",
"getGCD(numArray[1],numArray[0])",
"getGCD",
"numArray[1]",
"numArray",
"1",
"numArray[0]",
"numArray",
"0",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public static int getGCD(int x,int y){\n \tint temp;\n \twhile((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}\n \treturn y;\n }",
"getGCD",
"{\n \tint temp;\n \twhile((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}\n \treturn y;\n }",
"int temp;",
"temp",
"while((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}",
"(temp = x % y) != 0",
"(temp = x % y)",
"temp",
"x % y",
"x",
"y",
"0",
"{\n \t\tx = y;\n \t\ty = temp;\n \t}",
"x = y",
"x",
"y",
"y = temp",
"y",
"temp",
"return y;",
"y",
"int x",
"x",
"int y",
"y",
"public static int[] strToInt(String[] strArray){\n \tint[] numArray = new int[strArray.length];\n \tfor(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}\n \treturn numArray;\n }",
"strToInt",
"{\n \tint[] numArray = new int[strArray.length];\n \tfor(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}\n \treturn numArray;\n }",
"int[] numArray = new int[strArray.length];",
"numArray",
"new int[strArray.length]",
"strArray.length",
"strArray",
"strArray.length",
"for(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<strArray.length",
"i",
"strArray.length",
"strArray",
"strArray.length",
"i++",
"i++",
"i",
"{\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}",
"{\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}",
"numArray[i] = Integer.parseInt(strArray[i])",
"numArray[i]",
"numArray",
"i",
"Integer.parseInt(strArray[i])",
"Integer.parseInt",
"Integer",
"strArray[i]",
"strArray",
"i",
"return numArray;",
"numArray",
"String[] strArray",
"strArray",
"public 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[] numArray = strToInt(str.split(\"\\\\s\"));\n \tint result;\n\n \tif(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}\n\n System.out.println(result);\n }\n public static int getGCD(int x,int y){\n \tint temp;\n \twhile((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}\n \treturn y;\n }\n public static int[] strToInt(String[] strArray){\n \tint[] numArray = new int[strArray.length];\n \tfor(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}\n \treturn numArray;\n }\n}",
"public 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[] numArray = strToInt(str.split(\"\\\\s\"));\n \tint result;\n\n \tif(numArray[0] > numArray[1]){\n\t\t\tresult = getGCD(numArray[0],numArray[1]);\n \t}else{\n\t\t\tresult = getGCD(numArray[1],numArray[0]);\n \t}\n\n System.out.println(result);\n }\n public static int getGCD(int x,int y){\n \tint temp;\n \twhile((temp = x % y) != 0){\n \t\tx = y;\n \t\ty = temp;\n \t}\n \treturn y;\n }\n public static int[] strToInt(String[] strArray){\n \tint[] numArray = new int[strArray.length];\n \tfor(int i=0; i<strArray.length; i++){\n \t\tnumArray[i] = Integer.parseInt(strArray[i]);\n \t}\n \treturn numArray;\n }\n}",
"Main"
] | 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(str.split("\\s"));
int result;
if(numArray[0] > numArray[1]){
result = getGCD(numArray[0],numArray[1]);
}else{
result = getGCD(numArray[1],numArray[0]);
}
System.out.println(result);
}
public static int getGCD(int x,int y){
int temp;
while((temp = x % y) != 0){
x = y;
y = temp;
}
return y;
}
public static int[] strToInt(String[] strArray){
int[] numArray = new int[strArray.length];
for(int i=0; i<strArray.length; i++){
numArray[i] = Integer.parseInt(strArray[i]);
}
return numArray;
}
} |
[
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,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
13,
30,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
38,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
12,
48
],
[
48,
49
],
[
76,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
67,
70
],
[
50,
71
],
[
71,
72
],
[
50,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] | [
"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\tsolve(y,x);\n\t\t}\n\t\tSystem.out.println(z);\n\n\t}\n\n\tpublic static void solve(int big,int small){\n\t\tz = big % small;\n\t\tif (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tsolve(y,x);\n\t\t}\n\t\tSystem.out.println(z);\n\n\t}\n\n\tpublic static void solve(int big,int small){\n\t\tz = big % small;\n\t\tif (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static int x;",
"x",
"public static int y;",
"y",
"public static int z;",
"z",
"public 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\tsolve(y,x);\n\t\t}\n\t\tSystem.out.println(z);\n\n\t}",
"main",
"{\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\tsolve(y,x);\n\t\t}\n\t\tSystem.out.println(z);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"x= sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(x > y){\n\t\t\tsolve(x,y);\n\t\t}\n\t\telse{\n\t\t\tsolve(y,x);\n\t\t}",
"x > y",
"x",
"y",
"{\n\t\t\tsolve(x,y);\n\t\t}",
"solve(x,y)",
"solve",
"x",
"y",
"{\n\t\t\tsolve(y,x);\n\t\t}",
"solve(y,x)",
"solve",
"y",
"x",
"System.out.println(z)",
"System.out.println",
"System.out",
"System",
"System.out",
"z",
"String[] args",
"args",
"public static void solve(int big,int small){\n\t\tz = big % small;\n\t\tif (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}\n\n\t}",
"solve",
"{\n\t\tz = big % small;\n\t\tif (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}\n\n\t}",
"z = big % small",
"z",
"big % small",
"big",
"small",
"if (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}",
"z == 0",
"z",
"0",
"{\n\t\t\tz = small;\n\t\t}",
"z = small",
"z",
"small",
"{\n\t\t\tsolve(small,z);\n\t\t}",
"solve(small,z)",
"solve",
"small",
"z",
"int big",
"big",
"int small",
"small",
"public 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\tsolve(y,x);\n\t\t}\n\t\tSystem.out.println(z);\n\n\t}\n\n\tpublic static void solve(int big,int small){\n\t\tz = big % small;\n\t\tif (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}\n\n\t}\n\n}",
"public 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\tsolve(y,x);\n\t\t}\n\t\tSystem.out.println(z);\n\n\t}\n\n\tpublic static void solve(int big,int small){\n\t\tz = big % small;\n\t\tif (z == 0){\n\t\t\tz = small;\n\t\t}\n\t\telse{\n\t\t\tsolve(small,z);\n\t\t}\n\n\t}\n\n}",
"Main"
] | 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);
}
public static void solve(int big,int small){
z = big % small;
if (z == 0){
z = small;
}
else{
solve(small,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,
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
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
70,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
33,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
12,
45
],
[
45,
46
],
[
70,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
47,
65
],
[
65,
66
],
[
47,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] | [
"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 = scanner.nextInt();\n \n System.out.println(gcd(Math.max(x, y),Math.min(x, y)));\n }\n \n public static int gcd(int a,int b){\n \n if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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 = scanner.nextInt();\n \n System.out.println(gcd(Math.max(x, y),Math.min(x, y)));\n }\n \n public static int gcd(int a,int b){\n \n if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n}",
"Main",
"public static final int BIG_NUM = 2000000000;",
"BIG_NUM",
"2000000000",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n \n System.out.println(gcd(Math.max(x, y),Math.min(x, y)));\n }",
"main",
"{\n \n Scanner scanner = new Scanner(System.in);\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n \n System.out.println(gcd(Math.max(x, y),Math.min(x, y)));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int y = scanner.nextInt();",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println(gcd(Math.max(x, y),Math.min(x, y)))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(Math.max(x, y),Math.min(x, y))",
"gcd",
"Math.max(x, y)",
"Math.max",
"Math",
"x",
"y",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"String[] args",
"args",
"public static int gcd(int a,int b){\n \n if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }",
"gcd",
"{\n \n if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }",
"if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }",
"b == 0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"{\n return gcd(b,a%b);\n }",
"return gcd(b,a%b);",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public 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 = scanner.nextInt();\n \n System.out.println(gcd(Math.max(x, y),Math.min(x, y)));\n }\n \n public static int gcd(int a,int b){\n \n if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n}",
"public 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 = scanner.nextInt();\n \n System.out.println(gcd(Math.max(x, y),Math.min(x, y)));\n }\n \n public static int gcd(int a,int b){\n \n if(b == 0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n}",
"Main"
] | 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();
System.out.println(gcd(Math.max(x, y),Math.min(x, y)));
}
public static int gcd(int a,int b){
if(b == 0){
return a;
}else{
return gcd(b,a%b);
}
}
}
|
[
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,
30,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
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
],
[
163,
14
],
[
163,
15
],
[
15,
16
],
[
15,
17
],
[
163,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
35,
42
],
[
42,
43
],
[
42,
44
],
[
20,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
20,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
20,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
18,
72
],
[
72,
73
],
[
163,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
74,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
74,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
89,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
88,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
74,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
74,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
74,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
74,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
147,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
143,
160
],
[
160,
161
],
[
0,
162
],
[
162,
163
],
[
162,
164
]
] | [
"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\tif(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\n\t\tint c = a % b;\n\t\twhile(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}\n\n\t\tSystem.out.println(b);\n\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public 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\tif(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\n\t\tint c = a % b;\n\t\twhile(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}\n\n\t\tSystem.out.println(b);\n\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"private static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"public static void main(String[] args) {\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\n\t\tint c = a % b;\n\t\twhile(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}\n\n\t\tSystem.out.println(b);\n\n\t}",
"main",
"{\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\n\t\tint c = a % b;\n\t\twhile(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}\n\n\t\tSystem.out.println(b);\n\n\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}",
"b > a",
"b",
"a",
"{\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}",
"int temp = b;",
"temp",
"b",
"b = a",
"b",
"a",
"a = temp",
"a",
"temp",
"int c = a % b;",
"c",
"a % b",
"a",
"b",
"while(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}",
"c != 0",
"c",
"0",
"{\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}",
"a = b",
"a",
"b",
"b = c",
"b",
"c",
"c = a % b",
"c",
"a % b",
"a",
"b",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public 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\tif(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\n\t\tint c = a % b;\n\t\twhile(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}\n\n\t\tSystem.out.println(b);\n\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public 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\tif(b > a) {\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\n\t\tint c = a % b;\n\t\twhile(c != 0){\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\tc = a % b;\n\t\t}\n\n\t\tSystem.out.println(b);\n\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
] | 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 = b;
b = a;
a = temp;
}
int c = a % b;
while(c != 0){
a = b;
b = c;
c = a % b;
}
System.out.println(b);
}
static class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
6,
46
],
[
46,
47
]
] | [
"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;\n }\n System.out.println(y);\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"class 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;\n }\n System.out.println(y);\n }\n}",
"Main",
"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;\n }\n System.out.println(y);\n }",
"main",
"{\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;\n }\n System.out.println(y);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int divisor = 0;",
"divisor",
"0",
"while((divisor = x % y) != 0) {\n x = y;\n y = divisor;\n }",
"(divisor = x % y) != 0",
"(divisor = x % y)",
"divisor",
"x % y",
"x",
"y",
"0",
"{\n x = y;\n y = divisor;\n }",
"x = y",
"x",
"y",
"y = divisor",
"y",
"divisor",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String...args",
"args"
] | 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;
}
System.out.println(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,
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,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
6,
34
],
[
34,
35
],
[
80,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
47,
54
],
[
54,
55
],
[
54,
56
],
[
38,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
70,
72
],
[
38,
73
],
[
73,
74
],
[
36,
75
],
[
75,
76
],
[
36,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] | [
"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\tint r;\n\t\tif (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\twhile (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public 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\tint r;\n\t\tif (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\twhile (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}\n}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = gcd(x, y);",
"ans",
"gcd(x, y)",
"gcd",
"x",
"y",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public static int gcd(int x, int y) {\n\t\tint temp;\n\t\tint r;\n\t\tif (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\twhile (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}",
"gcd",
"{\n\t\tint temp;\n\t\tint r;\n\t\tif (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\twhile (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}",
"int temp;",
"temp",
"int r;",
"r",
"if (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}",
"y > x",
"y",
"x",
"{\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}",
"temp = x",
"temp",
"x",
"x = y",
"x",
"y",
"y = temp",
"y",
"temp",
"while (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"y > 0",
"y",
"0",
"{\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"r = x % y",
"r",
"x % y",
"x",
"y",
"x = y",
"x",
"y",
"y = r",
"y",
"r",
"return x;",
"x",
"int x",
"x",
"int y",
"y",
"public 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\tint r;\n\t\tif (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\twhile (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}\n}",
"public 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\tint r;\n\t\tif (y > x) {\n\t\t\ttemp = x;\n\t\t\tx = y;\n\t\t\ty = temp;\n\t\t}\n\t\twhile (y > 0) {\n\t\t\tr = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}\n\t\treturn x;\n\t}\n}",
"Main"
] | 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;
x = y;
y = temp;
}
while (y > 0) {
r = x % y;
x = y;
y = r;
}
return 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,
30,
41,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
9,
32
],
[
32,
33
],
[
74,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
36,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
36,
67
],
[
67,
68
],
[
34,
69
],
[
69,
70
],
[
34,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] | [
"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 < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}\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}",
"import java.util.*;",
"util.*",
"java",
"public 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 < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}\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}",
"Main",
"private static final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public 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}",
"main",
"{\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}",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.printf(\"%d\\n\", gcd(x, y))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"gcd(x, y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"public static int gcd(int x, int y){\n\t\tif(x < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}\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}",
"gcd",
"{\n\t\tif(x < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}\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}",
"if(x < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}",
"x < y",
"x",
"y",
"{\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}",
"int work = y;",
"work",
"y",
"y = x",
"y",
"x",
"x = work",
"x",
"work",
"while(y > 0){\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"y > 0",
"y",
"0",
"{\n\t\t\tint r = x % y;\n\t\t\tx = y;\n\t\t\ty = r;\n\t\t}",
"int r = x % y;",
"r",
"x % y",
"x",
"y",
"x = y",
"x",
"y",
"y = r",
"y",
"r",
"return x;",
"x",
"int x",
"x",
"int y",
"y",
"public 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 < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}\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}",
"public 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 < y){\n\t\t\tint work = y;\n\t\t\ty = x;\n\t\t\tx = work;\n\t\t}\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}",
"Main"
] | 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;
x = work;
}
while(y > 0){
int r = x % y;
x = y;
y = r;
}
return 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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
] | [
"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.Scanner;",
"Scanner",
"java.util",
"public 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}",
"Main",
"public 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}",
"main",
"{\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}",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int x=s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"int y=s.nextInt();",
"y",
"s.nextInt()",
"s.nextInt",
"s",
"int z=1;",
"z",
"1",
"while(z!=0){\n\t\t\tz=x%y;\n\t\t\tx=y;\n\t\t\ty=z;\n\t\t}",
"z!=0",
"z",
"0",
"{\n\t\t\tz=x%y;\n\t\t\tx=y;\n\t\t\ty=z;\n\t\t}",
"z=x%y",
"z",
"x%y",
"x",
"y",
"x=y",
"x",
"y",
"y=z",
"y",
"z",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public 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}",
"public 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}",
"Main"
] | 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,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
42,
2,
13,
17,
30,
41,
13,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
6,
45
],
[
45,
46
],
[
87,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
49,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
49,
80
],
[
80,
81
],
[
47,
82
],
[
82,
83
],
[
47,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"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// BufferedReader br = new BufferedReader(isr);\n// String buf = br.readLine();\n// int x = Integer.parseInt(buf);\n int x = Integer.parseInt(input[0]);\n int y = Integer.parseInt(input[1]);\n System.out.println(gcd(x,y));\n }\n \n static int gcd(int x, int y){\n int a = Math.max(x, y);\n int b = Math.min(x, y);\n \n while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }\n return a;\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"public 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// BufferedReader br = new BufferedReader(isr);\n// String buf = br.readLine();\n// int x = Integer.parseInt(buf);\n int x = Integer.parseInt(input[0]);\n int y = Integer.parseInt(input[1]);\n System.out.println(gcd(x,y));\n }\n \n static int gcd(int x, int y){\n int a = Math.max(x, y);\n int b = Math.min(x, y);\n \n while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }\n return a;\n }\n\n}",
"Main",
"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// BufferedReader br = new BufferedReader(isr);\n// String buf = br.readLine();\n// int x = Integer.parseInt(buf);\n int x = Integer.parseInt(input[0]);\n int y = Integer.parseInt(input[1]);\n System.out.println(gcd(x,y));\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n// InputStreamReader isr = new InputStreamReader(System.in);\n// BufferedReader br = new BufferedReader(isr);\n// String buf = br.readLine();\n// int x = Integer.parseInt(buf);\n int x = Integer.parseInt(input[0]);\n int y = Integer.parseInt(input[1]);\n System.out.println(gcd(x,y));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int x = Integer.parseInt(input[0]);",
"x",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int y = Integer.parseInt(input[1]);",
"y",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"System.out.println(gcd(x,y))",
"System.out.println",
"System.out",
"System",
"System.out",
"gcd(x,y)",
"gcd",
"x",
"y",
"String[] args",
"args",
"static int gcd(int x, int y){\n int a = Math.max(x, y);\n int b = Math.min(x, y);\n \n while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }\n return a;\n }",
"gcd",
"{\n int a = Math.max(x, y);\n int b = Math.min(x, y);\n \n while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }\n return a;\n }",
"int a = Math.max(x, y);",
"a",
"Math.max(x, y)",
"Math.max",
"Math",
"x",
"y",
"int b = Math.min(x, y);",
"b",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }",
"b > 0",
"b",
"0",
"{\n int c = a % b;\n a = b;\n b = c;\n }",
"int c = a % b;",
"c",
"a % b",
"a",
"b",
"a = b",
"a",
"b",
"b = c",
"b",
"c",
"return a;",
"a",
"int x",
"x",
"int y",
"y",
"public 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// BufferedReader br = new BufferedReader(isr);\n// String buf = br.readLine();\n// int x = Integer.parseInt(buf);\n int x = Integer.parseInt(input[0]);\n int y = Integer.parseInt(input[1]);\n System.out.println(gcd(x,y));\n }\n \n static int gcd(int x, int y){\n int a = Math.max(x, y);\n int b = Math.min(x, y);\n \n while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }\n return a;\n }\n\n}",
"public 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// BufferedReader br = new BufferedReader(isr);\n// String buf = br.readLine();\n// int x = Integer.parseInt(buf);\n int x = Integer.parseInt(input[0]);\n int y = Integer.parseInt(input[1]);\n System.out.println(gcd(x,y));\n }\n \n static int gcd(int x, int y){\n int a = Math.max(x, y);\n int b = Math.min(x, y);\n \n while(b > 0){\n int c = a % b;\n a = b;\n b = c;\n }\n return a;\n }\n\n}",
"Main"
] | 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);
// BufferedReader br = new BufferedReader(isr);
// String buf = br.readLine();
// int x = Integer.parseInt(buf);
int x = Integer.parseInt(input[0]);
int y = Integer.parseInt(input[1]);
System.out.println(gcd(x,y));
}
static int gcd(int x, int y){
int a = Math.max(x, y);
int b = Math.min(x, y);
while(b > 0){
int c = a % b;
a = b;
b = c;
}
return a;
}
} |
[
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,
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
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
36,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
36,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
36,
56
],
[
56,
57
],
[
56,
58
],
[
36,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] | [
"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 = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}\n\t\t\n\t\tSystem.out.println(x);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public 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 = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}\n\t\t\n\t\tSystem.out.println(x);\n\t}\n}",
"Main",
"public 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 = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}\n\t\t\n\t\tSystem.out.println(x);\n\t}",
"main",
"{\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 = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}\n\t\t\n\t\tSystem.out.println(x);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x",
"x",
"y;",
"y",
"int max",
"max",
"min",
"min",
"mod;",
"mod",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(y > 0){\n\t\t\tmax = Math.max(x, y);\n\t\t\tmin = Math.min(x, y);\n\t\t\tmod = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}",
"y > 0",
"y",
"0",
"{\n\t\t\tmax = Math.max(x, y);\n\t\t\tmin = Math.min(x, y);\n\t\t\tmod = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}",
"max = Math.max(x, y)",
"max",
"Math.max(x, y)",
"Math.max",
"Math",
"x",
"y",
"min = Math.min(x, y)",
"min",
"Math.min(x, y)",
"Math.min",
"Math",
"x",
"y",
"mod = max % min",
"mod",
"max % min",
"max",
"min",
"x = min",
"x",
"min",
"y = mod",
"y",
"mod",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String args[]",
"args",
"public 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 = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}\n\t\t\n\t\tSystem.out.println(x);\n\t}\n}",
"public 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 = max % min;\n\t\t\t\n\t\t\tx = min;\n\t\t\ty = mod;\n\t\t}\n\t\t\n\t\tSystem.out.println(x);\n\t}\n}",
"Main"
] | 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;
}
System.out.println(x);
}
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.