node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
2,
13,
13,
2,
13,
13,
17,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
32,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
6,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\t// 結果の出力\n\t\tSystem.out.println(B % K > B - A? \"NG\" : \"OK\");\n\n\t\tsc.close();\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\n\t\t// 入力値の取得\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\t// 結果の出力\n\t\tSystem.out.println(B % K > B - A? \"NG\" : \"OK\");\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\t// 結果の出力\n\t\tSystem.out.println(B % K > B - A? \"NG\" : \"OK\");\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\t// 結果の出力\n\t\tSystem.out.println(B % K > B - A? \"NG\" : \"OK\");\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(B % K > B - A? \"NG\" : \"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"B % K > B - A? \"NG\" : \"OK\"",
"B % K > B - A",
"B % K",
"B",
"K",
"B - A",
"B",
"A",
"\"NG\"",
"\"OK\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\t// 結果の出力\n\t\tSystem.out.println(B % K > B - A? \"NG\" : \"OK\");\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\t// 結果の出力\n\t\tSystem.out.println(B % K > B - A? \"NG\" : \"OK\");\n\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 入力値の取得
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
// 結果の出力
System.out.println(B % K > B - A? "NG" : "OK");
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
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,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
100,
11
],
[
100,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
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
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
50,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
50,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
77,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
12,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
" import java.io.BufferedReader;\n import java.io.IOException;\n import java.io.InputStreamReader;\n\n public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(br.readLine());\n String [] l = br.readLine().split(\" \");\n int A = Integer.parseInt(l[0]);\n int B = Integer.parseInt(l[1]);\n\n if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\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\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(br.readLine());\n String [] l = br.readLine().split(\" \");\n int A = Integer.parseInt(l[0]);\n int B = Integer.parseInt(l[1]);\n\n if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\n }\n }\n }",
"Main",
"public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(br.readLine());\n String [] l = br.readLine().split(\" \");\n int A = Integer.parseInt(l[0]);\n int B = Integer.parseInt(l[1]);\n\n if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\n }\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(br.readLine());\n String [] l = br.readLine().split(\" \");\n int A = Integer.parseInt(l[0]);\n int B = Integer.parseInt(l[1]);\n\n if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int K = Integer.parseInt(br.readLine());",
"K",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String [] l = br.readLine().split(\" \");",
"l",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int A = Integer.parseInt(l[0]);",
"A",
"Integer.parseInt(l[0])",
"Integer.parseInt",
"Integer",
"l[0]",
"l",
"0",
"int B = Integer.parseInt(l[1]);",
"B",
"Integer.parseInt(l[1])",
"Integer.parseInt",
"Integer",
"l[1]",
"l",
"1",
"if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\n }",
"A%K == 0 || B%K == 0",
"A%K == 0",
"A%K",
"A",
"K",
"0",
"B%K == 0",
"B%K",
"B",
"K",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\n }",
"int x = A/K + 1;",
"x",
"A/K + 1",
"A/K",
"A",
"K",
"1",
"if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }",
"(x*K) > B",
"(x*K)",
"x",
"K",
"B",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(br.readLine());\n String [] l = br.readLine().split(\" \");\n int A = Integer.parseInt(l[0]);\n int B = Integer.parseInt(l[1]);\n\n if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\n }\n }\n }",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(br.readLine());\n String [] l = br.readLine().split(\" \");\n int A = Integer.parseInt(l[0]);\n int B = Integer.parseInt(l[1]);\n\n if(A%K == 0 || B%K == 0){\n System.out.println(\"OK\");\n }\n else {\n int x = A/K + 1;\n if((x*K) > B){\n System.out.println(\"NG\");\n }\n else {\n System.out.println(\"OK\");\n }\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));
int K = Integer.parseInt(br.readLine());
String [] l = br.readLine().split(" ");
int A = Integer.parseInt(l[0]);
int B = Integer.parseInt(l[1]);
if(A%K == 0 || B%K == 0){
System.out.println("OK");
}
else {
int x = A/K + 1;
if((x*K) > B){
System.out.println("NG");
}
else {
System.out.println("OK");
}
}
}
}
|
[
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,
41,
13,
17,
41,
13,
17,
4,
18,
13,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
8,
2,
2,
13,
13,
17,
17,
17,
14,
2,
13,
17,
30,
3,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
56,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
53,
70
],
[
70,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
72,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] |
[
"\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ad = 0;\n int ans = 0;\n sc.close();\n\n ad = a;\n for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }\n if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\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 int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ad = 0;\n int ans = 0;\n sc.close();\n\n ad = a;\n for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }\n if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ad = 0;\n int ans = 0;\n sc.close();\n\n ad = a;\n for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }\n if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ad = 0;\n int ans = 0;\n sc.close();\n\n ad = a;\n for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }\n if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ad = 0;",
"ad",
"0",
"int ans = 0;",
"ans",
"0",
"sc.close()",
"sc.close",
"sc",
"ad = a",
"ad",
"a",
"for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<=(b-ad)",
"i",
"(b-ad)",
"b",
"ad",
"i++",
"i++",
"i",
"{\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }",
"{\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }",
"ans = (a%k==0)?1:0",
"ans",
"(a%k==0)?1:0",
"(a%k==0)",
"a%k",
"a",
"k",
"0",
"1",
"0",
"if(ans == 1){break;}",
"ans == 1",
"ans",
"1",
"{break;}",
"break;",
"a++",
"a",
"if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\n }",
"ans == 1",
"ans",
"1",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{ \n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ad = 0;\n int ans = 0;\n sc.close();\n\n ad = a;\n for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }\n if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int ad = 0;\n int ans = 0;\n sc.close();\n\n ad = a;\n for(int i=0 ; i<=(b-ad) ; i++){\n ans = (a%k==0)?1:0;\n if(ans == 1){break;}\n a++;\n }\n if(ans == 1){\n System.out.println(\"OK\");\n }else{ \n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int ad = 0;
int ans = 0;
sc.close();
ad = a;
for(int i=0 ; i<=(b-ad) ; i++){
ans = (a%k==0)?1:0;
if(ans == 1){break;}
a++;
}
if(ans == 1){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
]
] |
[
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint c = sc.nextInt();\n\t\tfor(int i = b; i <= c; i++){\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"NG\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint c = sc.nextInt();\n\t\tfor(int i = b; i <= c; i++){\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"NG\");\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint c = sc.nextInt();\n\t\tfor(int i = b; i <= c; i++){\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"NG\");\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\tint c = sc.nextInt();\n\t\tfor(int i = b; i <= c; i++){\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"NG\");\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",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = b; i <= c; i++){\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"int i = b;",
"int i = b;",
"i",
"b",
"i <= c",
"i",
"c",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"if(i % a == 0){\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}",
"i % a == 0",
"i % a",
"i",
"a",
"0",
"{\n\t\t\t\tSystem.out.print(\"OK\");\n\t\t\t\treturn;\n\t\t\t}",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
for(int i = b; i <= c; i++){
if(i % a == 0){
System.out.print("OK");
return;
}
}
System.out.print("NG");
}
}
|
[
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,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
41,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
32,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int AmodK = A % K;\n if (((B - A) >= (K - AmodK)) || (AmodK == 0)) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\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 int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int AmodK = A % K;\n if (((B - A) >= (K - AmodK)) || (AmodK == 0)) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int AmodK = A % K;\n if (((B - A) >= (K - AmodK)) || (AmodK == 0)) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int AmodK = A % K;\n if (((B - A) >= (K - AmodK)) || (AmodK == 0)) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int AmodK = A % K;",
"AmodK",
"A % K",
"A",
"K",
"if (((B - A) >= (K - AmodK)) || (AmodK == 0)) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"((B - A) >= (K - AmodK)) || (AmodK == 0)",
"((B - A) >= (K - AmodK))",
"(B - A)",
"B",
"A",
"(K - AmodK)",
"K",
"AmodK",
"(AmodK == 0)",
"AmodK",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int AmodK = A % K;
if (((B - A) >= (K - AmodK)) || (AmodK == 0)) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
3,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
]
] |
[
"import java.util.Scanner;\nclass Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n int low = scan.nextInt();\n int high = scan.nextInt();\n int i;\n int a = 0;\n for( i = 1;i < 1000; i ++){\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }\n if(low <= a && a <= high){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n int low = scan.nextInt();\n int high = scan.nextInt();\n int i;\n int a = 0;\n for( i = 1;i < 1000; i ++){\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }\n if(low <= a && a <= high){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n\n}",
"Main",
"public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n int low = scan.nextInt();\n int high = scan.nextInt();\n int i;\n int a = 0;\n for( i = 1;i < 1000; i ++){\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }\n if(low <= a && a <= high){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n int low = scan.nextInt();\n int high = scan.nextInt();\n int i;\n int a = 0;\n for( i = 1;i < 1000; i ++){\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }\n if(low <= a && a <= high){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int low = scan.nextInt();",
"low",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int high = scan.nextInt();",
"high",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"int a = 0;",
"a",
"0",
"for( i = 1;i < 1000; i ++){\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }",
"i = 1;",
"i = 1",
"i",
"1",
"i < 1000",
"i",
"1000",
"i ++",
"i ++",
"i",
"{\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }",
"{\n a = num * i;\n if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }\n }",
"a = num * i",
"a",
"num * i",
"num",
"i",
"if(low <= a && a <= high ){\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }",
"low <= a && a <= high",
"low <= a",
"low",
"a",
"a <= high",
"a",
"high",
"{\n //System.out.println(\"OK\");\n //System.out.println(i);\n break;\n }",
"break;",
"if(low <= a && a <= high){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"low <= a && a <= high",
"low <= a",
"low",
"a",
"a <= high",
"a",
"high",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String args[]",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int low = scan.nextInt();
int high = scan.nextInt();
int i;
int a = 0;
for( i = 1;i < 1000; i ++){
a = num * i;
if(low <= a && a <= high ){
//System.out.println("OK");
//System.out.println(i);
break;
}
}
if(low <= a && a <= high){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
54,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"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 \n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean TF = false;\n \n for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }\n\n if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\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 \n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean TF = false;\n \n for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }\n\n if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean TF = false;\n \n for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }\n\n if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean TF = false;\n \n for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }\n\n if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean TF = false;",
"TF",
"false",
"for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if(i % K == 0) {\n TF = true;\n break;\n } \n }",
"{\n if(i % K == 0) {\n TF = true;\n break;\n } \n }",
"if(i % K == 0) {\n TF = true;\n break;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n TF = true;\n break;\n }",
"TF = true",
"TF",
"true",
"break;",
"if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"TF",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean TF = false;\n \n for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }\n\n if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean TF = false;\n \n for (int i = A; i <= B; i++) {\n if(i % K == 0) {\n TF = true;\n break;\n } \n }\n\n if (TF) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\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 K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
boolean TF = false;
for (int i = A; i <= B; i++) {
if(i % K == 0) {
TF = true;
break;
}
}
if (TF) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
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
],
[
85,
12
],
[
12,
13
],
[
12,
14
],
[
85,
15
],
[
15,
16
],
[
15,
17
],
[
85,
18
],
[
18,
19
],
[
18,
20
],
[
85,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
24,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
24,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
24,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
68,
75
],
[
24,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
22,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] |
[
"import java.util.*;\nimport java.math.*;\n\npublic class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n \n}",
"Main",
"static final int MOD = 1_000_000_007; // 10^9+7",
"MOD",
"1_000_000_007",
"// static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9",
"INF",
"1_000_000_000",
"static final int MAX = 10_000_000;",
"MAX",
"10_000_000",
"static long[] fact = new long[100];",
"fact",
"new long[100]",
"100",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }",
"{\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }",
"if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }",
"a<=k*i&&k*i<=b",
"a<=k*i",
"a",
"k*i",
"k",
"i",
"k*i<=b",
"k*i",
"k",
"i",
"b",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String args[]",
"args",
"public class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n \n}",
"public class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1;i < 1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n \n}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main {
static final int MOD = 1_000_000_007; // 10^9+7
// static final int MAX = 2_147_483_646; // intの最大値
static final int INF = 1_000_000_000; // 10^9
static final int MAX = 10_000_000;
static long[] fact = new long[100];
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for(int i = 1;i < 1000;i++){
if(a<=k*i&&k*i<=b){
System.out.println("OK");
return;
}
}
System.out.println("NG");
}
}
|
[
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,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
] |
[
[
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
59,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
10,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
79,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
79,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
94,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
104,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
93,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
79,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
79,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
79,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
79,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
152,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
148,
165
],
[
165,
166
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\nclass Main\n{\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n public static void main(String args[])\n {\n FastReader sc=new FastReader();\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int sum=0;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n sum=1;\n }\n }\n if(sum==1)\n {\n System.out.println(\"OK\");\n }\n else\n {\n System.out.println(\"NG\");\n }\n\n\n }\n} ",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main\n{\n\tstatic class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n public static void main(String args[])\n {\n FastReader sc=new FastReader();\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int sum=0;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n sum=1;\n }\n }\n if(sum==1)\n {\n System.out.println(\"OK\");\n }\n else\n {\n System.out.println(\"NG\");\n }\n\n\n }\n}",
"Main",
"public static void main(String args[])\n {\n FastReader sc=new FastReader();\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int sum=0;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n sum=1;\n }\n }\n if(sum==1)\n {\n System.out.println(\"OK\");\n }\n else\n {\n System.out.println(\"NG\");\n }\n\n\n }",
"main",
"{\n FastReader sc=new FastReader();\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int sum=0;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n sum=1;\n }\n }\n if(sum==1)\n {\n System.out.println(\"OK\");\n }\n else\n {\n System.out.println(\"NG\");\n }\n\n\n }",
"FastReader sc=new FastReader();",
"sc",
"new FastReader()",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum=0;",
"sum",
"0",
"for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n sum=1;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0)\n {\n sum=1;\n }\n }",
"{\n if(i%k==0)\n {\n sum=1;\n }\n }",
"if(i%k==0)\n {\n sum=1;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n sum=1;\n }",
"sum=1",
"sum",
"1",
"if(sum==1)\n {\n System.out.println(\"OK\");\n }\n else\n {\n System.out.println(\"NG\");\n }",
"sum==1",
"sum",
"1",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String args[]",
"args",
"static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \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 { \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 { \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 { \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 { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \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"
] |
import java.util.*;
import java.io.*;
import java.math.*;
class Main
{
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
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;
}
}
public static void main(String args[])
{
FastReader sc=new FastReader();
int k=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
int sum=0;
for(int i=a;i<=b;i++)
{
if(i%k==0)
{
sum=1;
}
}
if(sum==1)
{
System.out.println("OK");
}
else
{
System.out.println("NG");
}
}
}
|
[
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,
14,
2,
2,
2,
13,
2,
13,
13,
13,
2,
2,
13,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
36,
42
],
[
27,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
27,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\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 k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }",
"b-b%k > a || b-b%k == a",
"b-b%k > a",
"b-b%k",
"b",
"b%k",
"b",
"k",
"a",
"b-b%k == a",
"b-b%k",
"b",
"b%k",
"b",
"k",
"a",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n \n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(b-b%k > a || b-b%k == a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n \n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
if(b-b%k > a || b-b%k == a){
System.out.println("OK");
}
else{
System.out.println("NG");
}
}
}
|
[
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,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
80,
11
],
[
80,
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
59,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"\nimport java.util.*;\nimport java.io.*;\n\nimport static java.lang.Character.isUpperCase;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean x =false;\n for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }\n if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n }\n\n\n\n\n }\n\n\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean x =false;\n for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }\n if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n }\n\n\n\n\n }",
"Main",
"public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean x =false;\n for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }\n if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean x =false;\n for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }\n if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int K = in.nextInt();",
"K",
"in.nextInt()",
"in.nextInt",
"in",
"int A = in.nextInt();",
"A",
"in.nextInt()",
"in.nextInt",
"in",
"int B = in.nextInt();",
"B",
"in.nextInt()",
"in.nextInt",
"in",
"boolean x =false;",
"x",
"false",
"for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i ++",
"i ++",
"i",
"{\n if (i % K == 0) {\n x = true;\n }\n }",
"{\n if (i % K == 0) {\n x = true;\n }\n }",
"if (i % K == 0) {\n x = true;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n x = true;\n }",
"x = true",
"x",
"true",
"if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"x == true",
"x",
"true",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean x =false;\n for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }\n if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n }\n\n\n\n\n }",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean x =false;\n for(int i = A; i <= B; i ++) {\n if (i % K == 0) {\n x = true;\n }\n }\n if (x == true) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n }\n\n\n\n\n }",
"Main"
] |
import java.util.*;
import java.io.*;
import static java.lang.Character.isUpperCase;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int K = in.nextInt();
int A = in.nextInt();
int B = in.nextInt();
boolean x =false;
for(int i = A; i <= B; i ++) {
if (i % K == 0) {
x = true;
}
}
if (x == true) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
13,
30,
3,
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
],
[
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
51,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tint arg = 0;\n String ans = \"NG\";\n\n for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }\n\n System.out.println(ans);\n\n sc.close();\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 K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tint arg = 0;\n String ans = \"NG\";\n\n for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }\n\n System.out.println(ans);\n\n sc.close();\n } \n}",
"Main",
"public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tint arg = 0;\n String ans = \"NG\";\n\n for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }\n\n System.out.println(ans);\n\n sc.close();\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tint arg = 0;\n String ans = \"NG\";\n\n for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }\n\n System.out.println(ans);\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int arg = 0;",
"arg",
"0",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }",
"{\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }",
"arg = K*i",
"arg",
"K*i",
"K",
"i",
"if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}",
"A <= arg && arg <= B",
"A <= arg",
"A",
"arg",
"arg <= B",
"arg",
"B",
"{\n ans = \"OK\";\n\t\t\t\tbreak;\n }",
"ans = \"OK\"",
"ans",
"\"OK\"",
"break;",
"if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}",
"B < arg",
"B",
"arg",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tint arg = 0;\n String ans = \"NG\";\n\n for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }\n\n System.out.println(ans);\n\n sc.close();\n } \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tint arg = 0;\n String ans = \"NG\";\n\n for (int i = 0; i <= 1000; i++) {\n\t\targ = K*i;\n if (A <= arg && arg <= B) {\n ans = \"OK\";\n\t\t\t\tbreak;\n } else if (B < arg) {\n\t\t\t\tbreak;\n\t\t\t}\n }\n\n System.out.println(ans);\n\n sc.close();\n } \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int arg = 0;
String ans = "NG";
for (int i = 0; i <= 1000; i++) {
arg = K*i;
if (A <= arg && arg <= B) {
ans = "OK";
break;
} else if (B < arg) {
break;
}
}
System.out.println(ans);
sc.close();
}
}
|
[
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,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
34,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n boolean H=false;\n while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }\n if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\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 int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n boolean H=false;\n while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }\n if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n boolean H=false;\n while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }\n if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n boolean H=false;\n while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }\n if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K=sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A=sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B=sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean H=false;",
"H",
"false",
"while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }",
"B>=A",
"B",
"A",
"{\n if(B%K==0){\n H=true;\n }\n B--;\n }",
"if(B%K==0){\n H=true;\n }",
"B%K==0",
"B%K",
"B",
"K",
"0",
"{\n H=true;\n }",
"H=true",
"H",
"true",
"B--",
"B",
"if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"H==true",
"H",
"true",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n boolean H=false;\n while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }\n if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n boolean H=false;\n while(B>=A){\n if(B%K==0){\n H=true;\n }\n B--;\n }\n if(H==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K=sc.nextInt();
int A=sc.nextInt();
int B=sc.nextInt();
boolean H=false;
while(B>=A){
if(B%K==0){
H=true;
}
B--;
}
if(H==true){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
41,
13,
17,
41,
13,
13,
42,
2,
13,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
3,
0,
13,
17,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
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
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
40,
54
],
[
54,
55
],
[
54,
56
],
[
40,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
62,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.util.Scanner;\n\n/**\n * Main\n */\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int count = 1;\n int flag = 0; \n\n int Kbai = K;\n\n while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }\n\n if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\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\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int count = 1;\n int flag = 0; \n\n int Kbai = K;\n\n while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }\n\n if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int count = 1;\n int flag = 0; \n\n int Kbai = K;\n\n while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }\n\n if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int count = 1;\n int flag = 0; \n\n int Kbai = K;\n\n while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }\n\n if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 1;",
"count",
"1",
"int flag = 0;",
"flag",
"0",
"int Kbai = K;",
"Kbai",
"K",
"while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }",
"Kbai <= B",
"Kbai",
"B",
"{\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }",
"if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }",
"Kbai >= A && Kbai <= B",
"Kbai >= A",
"Kbai",
"A",
"Kbai <= B",
"Kbai",
"B",
"{\n flag = 1;\n break;\n }",
"flag = 1",
"flag",
"1",
"break;",
"count += 1",
"count",
"1",
"Kbai = K*count",
"Kbai",
"K*count",
"K",
"count",
"if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"flag == 1",
"flag",
"1",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int count = 1;\n int flag = 0; \n\n int Kbai = K;\n\n while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }\n\n if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int count = 1;\n int flag = 0; \n\n int Kbai = K;\n\n while (Kbai <= B) {\n if(Kbai >= A && Kbai <= B){\n flag = 1;\n break;\n }\n count += 1;\n Kbai = K*count;\n }\n\n if(flag == 1){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
/**
* Main
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int count = 1;
int flag = 0;
int Kbai = K;
while (Kbai <= B) {
if(Kbai >= A && Kbai <= B){
flag = 1;
break;
}
count += 1;
Kbai = K*count;
}
if(flag == 1){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
17,
0,
13,
17,
3,
14,
40,
13,
4,
18,
13,
17,
23,
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
],
[
119,
17
],
[
119,
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
],
[
119,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
55,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
55,
74
],
[
74,
75
],
[
74,
76
],
[
55,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
55,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
53,
112
],
[
112,
113
],
[
53,
114
],
[
114,
115
],
[
53,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] |
[
"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 TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\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 TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\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 TaskA solver = new TaskA();\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 TaskA solver = new TaskA();\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)",
"TaskA solver = new TaskA();",
"solver",
"new TaskA()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskA {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\n }\n\n }",
"TaskA",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\n }",
"solve",
"{\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\n }",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"int A = in.nextInt();",
"A",
"in.nextInt()",
"in.nextInt",
"in",
"int B = in.nextInt();",
"B",
"in.nextInt()",
"in.nextInt",
"in",
"boolean ok = false;",
"ok",
"false",
"for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }",
"{\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }",
"if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n out.println(\"OK\");\n ok = true;\n break;\n }",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"ok = true",
"ok",
"true",
"break;",
"if (!ok)\n out.println(\"NG\");",
"!ok",
"ok",
"out.println(\"NG\")",
"out.println",
"out",
"\"NG\"",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"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 TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\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 TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n\n boolean ok = false;\n for (int i = A; i <= B; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n ok = true;\n break;\n }\n }\n if (!ok)\n out.println(\"NG\");\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);
TaskA solver = new TaskA();
solver.solve(1, in, out);
out.close();
}
static class TaskA {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int k = in.nextInt();
in.nextLine();
int A = in.nextInt();
int B = in.nextInt();
boolean ok = false;
for (int i = A; i <= B; i++) {
if (i % k == 0) {
out.println("OK");
ok = true;
break;
}
}
if (!ok)
out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"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 a = sc.nextInt();\n int b = sc.nextInt();\n\t\tint c = sc.nextInt();\n int d = 0;\n for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }\n if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\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 a = sc.nextInt();\n int b = sc.nextInt();\n\t\tint c = sc.nextInt();\n int d = 0;\n for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }\n if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n int b = sc.nextInt();\n\t\tint c = sc.nextInt();\n int d = 0;\n for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }\n if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n int b = sc.nextInt();\n\t\tint c = sc.nextInt();\n int d = 0;\n for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }\n if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\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",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = 0;",
"d",
"0",
"for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }",
"int i= b;",
"int i= b;",
"i",
"b",
"i<= c",
"i",
"c",
"i++",
"i++",
"i",
"{\n if (i % a == 0) {\n \t\td = 1;\n }\n }",
"{\n if (i % a == 0) {\n \t\td = 1;\n }\n }",
"if (i % a == 0) {\n \t\td = 1;\n }",
"i % a == 0",
"i % a",
"i",
"a",
"0",
"{\n \t\td = 1;\n }",
"d = 1",
"d",
"1",
"if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }",
"d == 0",
"d",
"0",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n int b = sc.nextInt();\n\t\tint c = sc.nextInt();\n int d = 0;\n for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }\n if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n int b = sc.nextInt();\n\t\tint c = sc.nextInt();\n int d = 0;\n for (int i= b; i<= c; i++) {\n if (i % a == 0) {\n \t\td = 1;\n }\n }\n if (d == 0) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n\t}\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 = sc.nextInt();
int d = 0;
for (int i= b; i<= c; i++) {
if (i % a == 0) {
d = 1;
}
}
if (d == 0) {
System.out.println("NG");
} else {
System.out.println("OK");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
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
],
[
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n String ans = \"NG\";\n for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\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 K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n String ans = \"NG\";\n for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n String ans = \"NG\";\n for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n String ans = \"NG\";\n for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i<=B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if(i%K == 0){\n ans = \"OK\";\n }\n }",
"{\n if(i%K == 0){\n ans = \"OK\";\n }\n }",
"if(i%K == 0){\n ans = \"OK\";\n }",
"i%K == 0",
"i%K",
"i",
"K",
"0",
"{\n ans = \"OK\";\n }",
"ans = \"OK\"",
"ans",
"\"OK\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n String ans = \"NG\";\n for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n String ans = \"NG\";\n for(int i = A; i<=B; i++){\n if(i%K == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
String ans = "NG";
for(int i = A; i<=B; i++){
if(i%K == 0){
ans = "OK";
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
17,
0,
13,
17,
3,
14,
13,
30,
4,
18,
13,
17,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
30,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
13,
29,
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
],
[
278,
8
],
[
278,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
9,
34
],
[
34,
35
],
[
0,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
40,
56
],
[
56,
57
],
[
56,
58
],
[
40,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
40,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
38,
94
],
[
94,
95
],
[
38,
96
],
[
96,
97
],
[
36,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
101,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
116,
128
],
[
128,
129
],
[
129,
130
],
[
100,
131
],
[
131,
132
],
[
98,
133
],
[
133,
134
],
[
98,
135
],
[
135,
136
],
[
98,
137
],
[
137,
138
],
[
98,
139
],
[
139,
140
],
[
36,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
143,
150
],
[
150,
151
],
[
150,
152
],
[
143,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
153,
163
],
[
163,
164
],
[
164,
165
],
[
153,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
169,
174
],
[
168,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
175,
182
],
[
182,
183
],
[
182,
184
],
[
143,
185
],
[
185,
186
],
[
141,
187
],
[
187,
188
],
[
0,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
189,
193
],
[
193,
194
],
[
189,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
189,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
204,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
214,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
203,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
189,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
236,
237
],
[
189,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
242,
245
],
[
245,
246
],
[
189,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
251,
254
],
[
254,
255
],
[
189,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
262,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
258,
275
],
[
275,
276
],
[
0,
277
],
[
277,
278
],
[
277,
279
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n OutputStream outputStream = System.out;\n PrintWriter out = new PrintWriter(outputStream);\n FastReader in = new FastReader();\n test a=new test();\n a.solve(in,out);\n out.close();\n }\n}\nclass test{\n public void solve(FastReader in, PrintWriter out){\n int k=in.nextInt();\n int a=in.nextInt();\n int b=in.nextInt();\n boolean f =true;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }\n if(f){\n out.println(\"NG\");\n }\n }\n public boolean src(int a[],int b[],int k,int l){\n for(int i=0;i<a.length;i++){\n if(a[i]==k && b[i]==l){\n return true;\n }\n }\n return false;\n }\n public int search(ArrayList<Integer> my){\n int max=my.get(0);\n int k=0;\n for(int i=1;i<my.size();i++){\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }\n return k;\n }\n}\n\nclass FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader(){\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 }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n OutputStream outputStream = System.out;\n PrintWriter out = new PrintWriter(outputStream);\n FastReader in = new FastReader();\n test a=new test();\n a.solve(in,out);\n out.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n OutputStream outputStream = System.out;\n PrintWriter out = new PrintWriter(outputStream);\n FastReader in = new FastReader();\n test a=new test();\n a.solve(in,out);\n out.close();\n }",
"main",
"{\n OutputStream outputStream = System.out;\n PrintWriter out = new PrintWriter(outputStream);\n FastReader in = new FastReader();\n test a=new test();\n a.solve(in,out);\n out.close();\n }",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"test a=new test();",
"a",
"new test()",
"a.solve(in,out)",
"a.solve",
"a",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"class test{\n public void solve(FastReader in, PrintWriter out){\n int k=in.nextInt();\n int a=in.nextInt();\n int b=in.nextInt();\n boolean f =true;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }\n if(f){\n out.println(\"NG\");\n }\n }\n public boolean src(int a[],int b[],int k,int l){\n for(int i=0;i<a.length;i++){\n if(a[i]==k && b[i]==l){\n return true;\n }\n }\n return false;\n }\n public int search(ArrayList<Integer> my){\n int max=my.get(0);\n int k=0;\n for(int i=1;i<my.size();i++){\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }\n return k;\n }\n}",
"test",
"public void solve(FastReader in, PrintWriter out){\n int k=in.nextInt();\n int a=in.nextInt();\n int b=in.nextInt();\n boolean f =true;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }\n if(f){\n out.println(\"NG\");\n }\n }",
"solve",
"{\n int k=in.nextInt();\n int a=in.nextInt();\n int b=in.nextInt();\n boolean f =true;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }\n if(f){\n out.println(\"NG\");\n }\n }",
"int k=in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"int a=in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"int b=in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"boolean f =true;",
"f",
"true",
"for(int i=a;i<=b;i++){\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }",
"{\n if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }\n }",
"if(i%k==0){\n out.println(\"OK\");\n f=false;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n out.println(\"OK\");\n f=false;\n break;\n }",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"f=false",
"f",
"false",
"break;",
"if(f){\n out.println(\"NG\");\n }",
"f",
"{\n out.println(\"NG\");\n }",
"out.println(\"NG\")",
"out.println",
"out",
"\"NG\"",
"FastReader in",
"in",
"PrintWriter out",
"out",
"public boolean src(int a[],int b[],int k,int l){\n for(int i=0;i<a.length;i++){\n if(a[i]==k && b[i]==l){\n return true;\n }\n }\n return false;\n }",
"src",
"{\n for(int i=0;i<a.length;i++){\n if(a[i]==k && b[i]==l){\n return true;\n }\n }\n return false;\n }",
"for(int i=0;i<a.length;i++){\n if(a[i]==k && b[i]==l){\n return true;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n if(a[i]==k && b[i]==l){\n return true;\n }\n }",
"{\n if(a[i]==k && b[i]==l){\n return true;\n }\n }",
"if(a[i]==k && b[i]==l){\n return true;\n }",
"a[i]==k && b[i]==l",
"a[i]==k",
"a[i]",
"a",
"i",
"k",
"b[i]==l",
"b[i]",
"b",
"i",
"l",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"int a[]",
"a",
"int b[]",
"b",
"int k",
"k",
"int l",
"l",
"public int search(ArrayList<Integer> my){\n int max=my.get(0);\n int k=0;\n for(int i=1;i<my.size();i++){\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }\n return k;\n }",
"search",
"{\n int max=my.get(0);\n int k=0;\n for(int i=1;i<my.size();i++){\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }\n return k;\n }",
"int max=my.get(0);",
"max",
"my.get(0)",
"my.get",
"my",
"0",
"int k=0;",
"k",
"0",
"for(int i=1;i<my.size();i++){\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<my.size()",
"i",
"my.size()",
"my.size",
"my",
"i++",
"i++",
"i",
"{\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }",
"{\n if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }\n }",
"if(my.get(i)>max){\n max=my.get(i);\n k=i;\n }",
"my.get(i)>max",
"my.get(i)",
"my.get",
"my",
"i",
"max",
"{\n max=my.get(i);\n k=i;\n }",
"max=my.get(i)",
"max",
"my.get(i)",
"my.get",
"my",
"i",
"k=i",
"k",
"i",
"return k;",
"k",
"ArrayList<Integer> my",
"my",
"class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader(){\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 }\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 String nextLine(){\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }\n}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\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 }\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 }\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 }\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 }\n catch(IOException e){\n e.printStackTrace();\n }\n }",
"try{\n st=new StringTokenizer(br.readLine());\n }\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 }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str=\"\";\n try{\n str=br.readLine();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n return str;\n }",
"String str=\"\";",
"str",
"\"\"",
"try{\n str=br.readLine();\n }\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 public static void main(String[] args) throws IOException {\n OutputStream outputStream = System.out;\n PrintWriter out = new PrintWriter(outputStream);\n FastReader in = new FastReader();\n test a=new test();\n a.solve(in,out);\n out.close();\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n OutputStream outputStream = System.out;\n PrintWriter out = new PrintWriter(outputStream);\n FastReader in = new FastReader();\n test a=new test();\n a.solve(in,out);\n out.close();\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
OutputStream outputStream = System.out;
PrintWriter out = new PrintWriter(outputStream);
FastReader in = new FastReader();
test a=new test();
a.solve(in,out);
out.close();
}
}
class test{
public void solve(FastReader in, PrintWriter out){
int k=in.nextInt();
int a=in.nextInt();
int b=in.nextInt();
boolean f =true;
for(int i=a;i<=b;i++){
if(i%k==0){
out.println("OK");
f=false;
break;
}
}
if(f){
out.println("NG");
}
}
public boolean src(int a[],int b[],int k,int l){
for(int i=0;i<a.length;i++){
if(a[i]==k && b[i]==l){
return true;
}
}
return false;
}
public int search(ArrayList<Integer> my){
int max=my.get(0);
int k=0;
for(int i=1;i<my.size();i++){
if(my.get(i)>max){
max=my.get(i);
k=i;
}
}
return k;
}
}
class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){
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,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
52,
59
],
[
40,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}\n\t\tSystem.out.println(\"NG\");\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 k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}\n\t\tSystem.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}\n\t\tSystem.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}\n\t\tSystem.out.println(\"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}",
"{\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}",
"if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }",
"a <= (k * i) && (k * i) <= b",
"a <= (k * i)",
"a",
"(k * i)",
"k",
"i",
"(k * i) <= b",
"(k * i)",
"k",
"i",
"b",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }",
"b < (k * i)",
"b",
"(k * i)",
"k",
"i",
"{\n System.out.println(\"NG\");\n return;\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}\n\t\tSystem.out.println(\"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i = 1; i < 1000; i++) {\n if (a <= (k * i) && (k * i) <= b){\n System.out.println(\"OK\");\n return;\n }\n else if (b < (k * i)){\n System.out.println(\"NG\");\n return;\n }\n\t\t}\n\t\tSystem.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for(int i = 1; i < 1000; i++) {
if (a <= (k * i) && (k * i) <= b){
System.out.println("OK");
return;
}
else if (b < (k * i)){
System.out.println("NG");
return;
}
}
System.out.println("NG");
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
0,
13,
17,
14,
40,
13,
30,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
14,
2,
2,
13,
13,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
108,
8
],
[
108,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
51,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
62,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
11,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
9,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean ok = false;\n if(a %k ==0 || b%k == 0) ok = true;\n if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }\n if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean ok = false;\n if(a %k ==0 || b%k == 0) ok = true;\n if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }\n if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean ok = false;\n if(a %k ==0 || b%k == 0) ok = true;\n if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }\n if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc =new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean ok = false;\n if(a %k ==0 || b%k == 0) ok = true;\n if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }\n if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean ok = false;",
"ok",
"false",
"if(a %k ==0 || b%k == 0) ok = true;",
"a %k ==0 || b%k == 0",
"a %k ==0",
"a %k",
"a",
"k",
"0",
"b%k == 0",
"b%k",
"b",
"k",
"0",
"ok = true",
"ok",
"true",
"if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }",
"!ok",
"ok",
"{\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }",
"int r = a % k;",
"r",
"a % k",
"a",
"k",
"int temp = a- r;",
"temp",
"a- r",
"a",
"r",
"for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }",
"int i=temp;",
"int i=temp;",
"i",
"temp",
"i<b",
"i",
"b",
"i+=k",
"i+=k",
"i",
"k",
"{\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }",
"{\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }",
"if(i > a && i%k == 0){\n ok = true;\n break;\n }",
"i > a && i%k == 0",
"i > a",
"i",
"a",
"i%k == 0",
"i%k",
"i",
"k",
"0",
"{\n ok = true;\n break;\n }",
"ok = true",
"ok",
"true",
"break;",
"if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");",
"ok",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean ok = false;\n if(a %k ==0 || b%k == 0) ok = true;\n if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }\n if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean ok = false;\n if(a %k ==0 || b%k == 0) ok = true;\n if(!ok){\n int r = a % k;\n int temp = a- r;\n for(int i=temp; i<b; i+=k){\n if(i > a && i%k == 0){\n ok = true;\n break;\n }\n }\n\n }\n if(ok) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
boolean ok = false;
if(a %k ==0 || b%k == 0) ok = true;
if(!ok){
int r = a % k;
int temp = a- r;
for(int i=temp; i<b; i+=k){
if(i > a && i%k == 0){
ok = true;
break;
}
}
}
if(ok) System.out.println("OK");
else System.out.println("NG");
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
8,
2,
13,
17,
17,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
58,
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 Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean trueCount = false;\n for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }\n System.out.println(trueCount == true ? \"OK\" : \"NG\");\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\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean trueCount = false;\n for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }\n System.out.println(trueCount == true ? \"OK\" : \"NG\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean trueCount = false;\n for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }\n System.out.println(trueCount == true ? \"OK\" : \"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean trueCount = false;\n for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }\n System.out.println(trueCount == true ? \"OK\" : \"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean trueCount = false;",
"trueCount",
"false",
"for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i<=B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if(i % K == 0){\n trueCount = true;\n }\n }",
"{\n if(i % K == 0){\n trueCount = true;\n }\n }",
"if(i % K == 0){\n trueCount = true;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n trueCount = true;\n }",
"trueCount = true",
"trueCount",
"true",
"System.out.println(trueCount == true ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"trueCount == true ? \"OK\" : \"NG\"",
"trueCount == true",
"trueCount",
"true",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean trueCount = false;\n for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }\n System.out.println(trueCount == true ? \"OK\" : \"NG\");\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n boolean trueCount = false;\n for(int i = A; i<=B; i++){\n if(i % K == 0){\n trueCount = true;\n }\n }\n System.out.println(trueCount == true ? \"OK\" : \"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
boolean trueCount = false;
for(int i = A; i<=B; i++){
if(i % K == 0){
trueCount = true;
}
}
System.out.println(trueCount == true ? "OK" : "NG");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
3,
14,
40,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
78,
8
],
[
78,
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
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
55,
65
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
9,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n \n int K = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n \n\n boolean isDone = false;\n \n for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }\n \n if(!isDone) System.out.println(\"NG\");\n }\n \n\n \n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n \n int K = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n \n\n boolean isDone = false;\n \n for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }\n \n if(!isDone) System.out.println(\"NG\");\n }\n \n\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n \n int K = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n \n\n boolean isDone = false;\n \n for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }\n \n if(!isDone) System.out.println(\"NG\");\n }",
"main",
"{\n // Your code here!\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n \n int K = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n \n\n boolean isDone = false;\n \n for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }\n \n if(!isDone) System.out.println(\"NG\");\n }",
"Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));",
"in",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"int K = in.nextInt();",
"K",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"int A = in.nextInt();",
"A",
"in.nextInt()",
"in.nextInt",
"in",
"int B = in.nextInt();",
"B",
"in.nextInt()",
"in.nextInt",
"in",
"boolean isDone = false;",
"isDone",
"false",
"for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }",
"{\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }",
"if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }",
"i%K == 0",
"i%K",
"i",
"K",
"0",
"{\n isDone = true;\n System.out.println(\"OK\");\n break;\n }",
"isDone = true",
"isDone",
"true",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if(!isDone) System.out.println(\"NG\");",
"!isDone",
"isDone",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n \n int K = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n \n\n boolean isDone = false;\n \n for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }\n \n if(!isDone) System.out.println(\"NG\");\n }\n \n\n \n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n \n int K = in.nextInt();\n in.nextLine();\n int A = in.nextInt();\n int B = in.nextInt();\n \n\n boolean isDone = false;\n \n for(int i = A; i <= B; i++) {\n if(i%K == 0) {\n isDone = true;\n System.out.println(\"OK\");\n break;\n }\n }\n \n if(!isDone) System.out.println(\"NG\");\n }\n \n\n \n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int K = in.nextInt();
in.nextLine();
int A = in.nextInt();
int B = in.nextInt();
boolean isDone = false;
for(int i = A; i <= B; i++) {
if(i%K == 0) {
isDone = true;
System.out.println("OK");
break;
}
}
if(!isDone) System.out.println("NG");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
17,
41,
13,
39,
39,
17,
17,
39,
17,
40,
17,
39,
17,
17,
39,
40,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
13,
17,
4,
18,
13,
17,
4,
13,
17,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
42,
2,
13,
13,
30,
4,
13,
13,
13,
13,
40,
13,
40,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
18,
13,
13,
17,
30,
29,
17,
41,
13,
2,
18,
13,
13,
17,
42,
2,
13,
17,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
3,
40,
13,
14,
2,
13,
17,
30,
29,
17,
41,
13,
2,
18,
13,
13,
17,
11,
1,
41,
13,
2,
18,
13,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
13,
3,
4,
13,
13,
13,
13,
4,
13,
13,
2,
13,
17,
2,
18,
13,
13,
17,
29,
17,
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,
2,
13,
17,
29,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
13,
17,
23,
13,
12,
13,
30,
29,
2,
4,
18,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
4,
13,
13,
13,
14,
2,
2,
13,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
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
],
[
450,
14
],
[
450,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
17,
21
],
[
450,
22
],
[
22,
23
],
[
22,
24
],
[
450,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
27,
35
],
[
35,
36
],
[
35,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
450,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
44,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
44,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
44,
90
],
[
90,
91
],
[
90,
92
],
[
44,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
42,
97
],
[
97,
98
],
[
450,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
101,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
99,
119
],
[
119,
120
],
[
99,
121
],
[
121,
122
],
[
99,
123
],
[
123,
124
],
[
450,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
133,
137
],
[
132,
138
],
[
138,
139
],
[
132,
140
],
[
140,
141
],
[
125,
142
],
[
142,
143
],
[
125,
144
],
[
144,
145
],
[
125,
146
],
[
146,
147
],
[
450,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
150,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
150,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
172,
182
],
[
182,
183
],
[
171,
184
],
[
184,
185
],
[
150,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
150,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
150,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
200,
209
],
[
209,
210
],
[
209,
211
],
[
200,
212
],
[
212,
213
],
[
213,
214
],
[
200,
215
],
[
216,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
222,
224
],
[
217,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
150,
230
],
[
230,
231
],
[
230,
232
],
[
230,
233
],
[
230,
234
],
[
150,
235
],
[
235,
236
],
[
235,
237
],
[
235,
238
],
[
238,
239
],
[
238,
240
],
[
235,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
150,
246
],
[
246,
247
],
[
148,
248
],
[
248,
249
],
[
450,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
262,
263
],
[
262,
264
],
[
257,
265
],
[
265,
266
],
[
266,
267
],
[
257,
268
],
[
269,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
274,
276
],
[
252,
277
],
[
277,
278
],
[
250,
279
],
[
279,
280
],
[
450,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
284,
289
],
[
281,
290
],
[
290,
291
],
[
450,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
295,
298
],
[
299,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
300,
305
],
[
305,
306
],
[
305,
307
],
[
294,
308
],
[
308,
309
],
[
308,
310
],
[
292,
311
],
[
311,
312
],
[
450,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
318,
321
],
[
317,
322
],
[
322,
323
],
[
323,
324
],
[
322,
325
],
[
313,
326
],
[
326,
327
],
[
450,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
337,
340
],
[
330,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
342,
346
],
[
341,
347
],
[
347,
348
],
[
348,
349
],
[
330,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
351,
354
],
[
354,
355
],
[
354,
356
],
[
328,
357
],
[
357,
358
],
[
328,
359
],
[
359,
360
],
[
450,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
361,
365
],
[
365,
366
],
[
361,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
361,
373
],
[
373,
374
],
[
373,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
377,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
376,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
386,
393
],
[
393,
394
],
[
394,
395
],
[
394,
396
],
[
375,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
361,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
405,
408
],
[
408,
409
],
[
361,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
414,
417
],
[
417,
418
],
[
361,
419
],
[
419,
420
],
[
419,
421
],
[
421,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
423,
426
],
[
426,
427
],
[
361,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
434,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
430,
447
],
[
447,
448
],
[
0,
449
],
[
449,
450
],
[
449,
451
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final long EIGHT = (long) 1e18;\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }\n print(\"NG\");\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\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.*;",
"util.*",
"java",
"public class Main {\n private static final int MOD = (int) Math.pow(10, 9);\n private static final long EIGHT = (long) 1e18;\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }\n print(\"NG\");\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\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 final int MOD = (int) Math.pow(10, 9);",
"MOD",
"(int) Math.pow(10, 9)",
"Math.pow",
"Math",
"10",
"9",
"private static final long EIGHT = (long) 1e18;",
"EIGHT",
"(long) 1e18",
"private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};",
"DIRS",
"{{0, 1}, {0, -1}, {1, 0}, {-1, 0}}",
"{0, 1}",
"0",
"1",
"{0, -1}",
"0",
"-1",
"1",
"{1, 0}",
"1",
"0",
"{-1, 0}",
"-1",
"1",
"0",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }\n print(\"NG\");\n System.exit(0);\n }",
"main",
"{\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }\n print(\"NG\");\n System.exit(0);\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }",
"{\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }",
"if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n print(\"OK\");\n System.exit(0);\n }",
"print(\"OK\")",
"print",
"\"OK\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"print(\"NG\")",
"print",
"\"NG\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }",
"swap",
"{\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }",
"int tmp = nums[x];",
"tmp",
"nums[x]",
"nums",
"x",
"nums[x] = nums[y]",
"nums[x]",
"nums",
"x",
"nums[y]",
"nums",
"y",
"nums[y] = tmp",
"nums[y]",
"nums",
"y",
"tmp",
"int[] nums",
"nums",
"int x",
"x",
"int y",
"y",
"static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }",
"reverse",
"{\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }",
"while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }",
"left < right",
"left",
"right",
"{\n swap(nums, left, right);\n left++;\n right--;\n }",
"swap(nums, left, right)",
"swap",
"nums",
"left",
"right",
"left++",
"left",
"right--",
"right",
"int[] nums",
"nums",
"int left",
"left",
"int right",
"right",
"static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }",
"findNextPermutation",
"{\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }",
"if (nums.length <= 1) {\n return false;\n }",
"nums.length <= 1",
"nums.length",
"nums",
"nums.length",
"1",
"{\n return false;\n }",
"return false;",
"false",
"int last = nums.length - 2;",
"last",
"nums.length - 2",
"nums.length",
"nums",
"nums.length",
"2",
"while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }",
"last >= 0",
"last",
"0",
"{\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }",
"if (nums[last] < nums[last + 1]){\n break;\n }",
"nums[last] < nums[last + 1]",
"nums[last]",
"nums",
"last",
"nums[last + 1]",
"nums",
"last + 1",
"last",
"1",
"{\n break;\n }",
"break;",
"last--",
"last",
"if (last < 0) { return false; }",
"last < 0",
"last",
"0",
"{ return false; }",
"return false;",
"false",
"int nextGenerater = nums.length - 1;",
"nextGenerater",
"nums.length - 1",
"nums.length",
"nums",
"nums.length",
"1",
"for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }",
"int i = nums.length - 1;",
"int i = nums.length - 1;",
"i",
"nums.length - 1",
"nums.length",
"nums",
"nums.length",
"1",
"i > last",
"i",
"last",
"i--",
"i--",
"i",
"{\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }",
"{\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }",
"if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }",
"nums[i] > nums[last]",
"nums[i]",
"nums",
"i",
"nums[last]",
"nums",
"last",
"{\n nextGenerater = i;\n break;\n }",
"nextGenerater = i",
"nextGenerater",
"i",
"break;",
"swap(nums, nextGenerater, last)",
"swap",
"nums",
"nextGenerater",
"last",
"reverse(nums, last + 1, nums.length - 1)",
"reverse",
"nums",
"last + 1",
"last",
"1",
"nums.length - 1",
"nums.length",
"nums",
"nums.length",
"1",
"return true;",
"true",
"int[] nums",
"nums",
"static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }",
"generateNArray",
"{\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = i + 1;\n }",
"{\n res[i] = i + 1;\n }",
"res[i] = i + 1",
"res[i]",
"res",
"i",
"i + 1",
"i",
"1",
"return res;",
"res",
"int n",
"n",
"static private void print(String s) {\n System.out.println(s);\n }",
"print",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }",
"printArray",
"{\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }",
"for (int s: e) {\n System.out.print(s + \" \");\n }",
"int s",
"e",
"{\n System.out.print(s + \" \");\n }",
"{\n System.out.print(s + \" \");\n }",
"System.out.print(s + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"s + \" \"",
"s",
"\" \"",
"print(\"\")",
"print",
"\"\"",
"int[] e",
"e",
"static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }",
"log2",
"{\n return (int)(Math.log(x) / Math.log(2));\n }",
"return (int)(Math.log(x) / Math.log(2));",
"(int)(Math.log(x) / Math.log(2))",
"Math.log(x)",
"Math.log",
"Math",
"x",
"Math.log(2)",
"Math.log",
"Math",
"2",
"int x",
"x",
"static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }",
"gcd",
"{\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }",
"if (m < n) { return gcd(n, m); }",
"m < n",
"m",
"n",
"{ return gcd(n, m); }",
"return gcd(n, m);",
"gcd(n, m)",
"gcd",
"n",
"m",
"if (m % n == 0) { return n; }",
"m % n == 0",
"m % n",
"m",
"n",
"0",
"{ return n; }",
"return n;",
"n",
"return gcd(n, m%n);",
"gcd(n, m%n)",
"gcd",
"n",
"m%n",
"m",
"n",
"long m",
"m",
"long n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\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 }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\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 private static final int MOD = (int) Math.pow(10, 9);\n private static final long EIGHT = (long) 1e18;\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }\n print(\"NG\");\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\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 private static final int MOD = (int) Math.pow(10, 9);\n private static final long EIGHT = (long) 1e18;\n private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n print(\"OK\");\n System.exit(0);\n }\n }\n print(\"NG\");\n System.exit(0);\n }\n\n static private void swap(int[] nums, int x, int y) {\n int tmp = nums[x];\n nums[x] = nums[y];\n nums[y] = tmp;\n }\n\n static private void reverse(int[] nums, int left, int right) {\n while (left < right) {\n swap(nums, left, right);\n left++;\n right--;\n }\n }\n\n static private boolean findNextPermutation(int[] nums) {\n if (nums.length <= 1) {\n return false;\n }\n\n int last = nums.length - 2;\n\n while (last >= 0) {\n if (nums[last] < nums[last + 1]){\n break;\n }\n last--;\n }\n\n if (last < 0) { return false; }\n int nextGenerater = nums.length - 1;\n\n for (int i = nums.length - 1; i > last; i--) {\n if (nums[i] > nums[last]) {\n nextGenerater = i;\n break;\n }\n }\n\n swap(nums, nextGenerater, last);\n reverse(nums, last + 1, nums.length - 1);\n return true;\n }\n\n static private int[] generateNArray(int n) {\n int[] res = new int[n];\n\n for (int i = 0; i < n; i++) {\n res[i] = i + 1;\n }\n\n return res;\n }\n\n static private void print(String s) {\n System.out.println(s);\n }\n\n static private void printArray(int[] e) {\n for (int s: e) {\n System.out.print(s + \" \");\n }\n print(\"\");\n }\n\n static private int log2(int x) {\n return (int)(Math.log(x) / Math.log(2));\n }\n\n static private long gcd(long m, long n) {\n if (m < n) { return gcd(n, m); }\n if (m % n == 0) { return n; }\n return gcd(n, m%n);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\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.*;
public class Main {
private static final int MOD = (int) Math.pow(10, 9);
private static final long EIGHT = (long) 1e18;
private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
public static void main(String[] args) {
FastReader sc = new FastReader();
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for (int i = a; i <= b; i++) {
if (i % k == 0) {
print("OK");
System.exit(0);
}
}
print("NG");
System.exit(0);
}
static private void swap(int[] nums, int x, int y) {
int tmp = nums[x];
nums[x] = nums[y];
nums[y] = tmp;
}
static private void reverse(int[] nums, int left, int right) {
while (left < right) {
swap(nums, left, right);
left++;
right--;
}
}
static private boolean findNextPermutation(int[] nums) {
if (nums.length <= 1) {
return false;
}
int last = nums.length - 2;
while (last >= 0) {
if (nums[last] < nums[last + 1]){
break;
}
last--;
}
if (last < 0) { return false; }
int nextGenerater = nums.length - 1;
for (int i = nums.length - 1; i > last; i--) {
if (nums[i] > nums[last]) {
nextGenerater = i;
break;
}
}
swap(nums, nextGenerater, last);
reverse(nums, last + 1, nums.length - 1);
return true;
}
static private int[] generateNArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = i + 1;
}
return res;
}
static private void print(String s) {
System.out.println(s);
}
static private void printArray(int[] e) {
for (int s: e) {
System.out.print(s + " ");
}
print("");
}
static private int log2(int x) {
return (int)(Math.log(x) / Math.log(2));
}
static private long gcd(long m, long n) {
if (m < n) { return gcd(n, m); }
if (m % n == 0) { return n; }
return gcd(n, m%n);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
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,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
37,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int X = B % N;\n int goal = B - X;\n if (goal >= A && goal <= B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\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 int N = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int X = B % N;\n int goal = B - X;\n if (goal >= A && goal <= B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int X = B % N;\n int goal = B - X;\n if (goal >= A && goal <= B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int X = B % N;\n int goal = B - X;\n if (goal >= A && goal <= B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = B % N;",
"X",
"B % N",
"B",
"N",
"int goal = B - X;",
"goal",
"B - X",
"B",
"X",
"if (goal >= A && goal <= B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"goal >= A && goal <= B",
"goal >= A",
"goal",
"A",
"goal <= B",
"goal",
"B",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int X = B % N;
int goal = B - X;
if (goal >= A && goal <= B) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
53,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tboolean bool = false;\n\t\t\n\t\tfor(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\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\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tboolean bool = false;\n\t\t\n\t\tfor(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tboolean bool = false;\n\t\t\n\t\tfor(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tboolean bool = false;\n\t\t\n\t\tfor(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"boolean bool = false;",
"bool",
"false",
"for(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}",
"if(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n\t\t\t\tbool = true;\n\t\t\t}",
"bool = true",
"bool",
"true",
"if(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"bool",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tboolean bool = false;\n\t\t\n\t\tfor(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tboolean bool = false;\n\t\t\n\t\tfor(int i=a;i<=b;i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tbool = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(bool) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
boolean bool = false;
for(int i=a;i<=b;i++) {
if(i % k == 0) {
bool = true;
}
}
if(bool) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
40,
13,
3,
30,
9,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
77,
8
],
[
77,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
46,
56
],
[
56,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
9,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"\nimport java.util.*;\nimport java.io.*;\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 int c = sc.nextInt();\n int count = 0;\n for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }\n if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"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 int c = sc.nextInt();\n int count = 0;\n for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }\n if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 c = sc.nextInt();\n int count = 0;\n for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }\n if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int count = 0;\n for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }\n if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }",
"int i = b;",
"int i = b;",
"i",
"b",
"i<=c",
"i",
"c",
"i++",
"i++",
"i",
"{\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }",
"{\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }",
"if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }",
"i%a==0",
"i%a",
"i",
"a",
"0",
"{\n count++;\n break;\n }",
"count++",
"count",
"break;",
"{\n continue;\n }",
"continue;",
"if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");",
"count>0",
"count",
"0",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"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 int c = sc.nextInt();\n int count = 0;\n for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }\n if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 int c = sc.nextInt();\n int count = 0;\n for(int i = b; i<=c;i++){\n if(i%a==0){\n count++;\n break;\n }\n else{\n continue;\n }\n }\n if(count>0) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
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 = sc.nextInt();
int count = 0;
for(int i = b; i<=c;i++){
if(i%a==0){
count++;
break;
}
else{
continue;
}
}
if(count>0) System.out.println("OK");
else System.out.println("NG");
}
}
|
[
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,
14,
2,
2,
13,
13,
2,
13,
13,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
27,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\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\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"A / K == B / K",
"A / K",
"A",
"K",
"B / K",
"B",
"K",
"{\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}",
"if(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}",
"A % K == 0",
"A % K",
"A",
"K",
"0",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif(A / K == B / K) {\n\t\t\tif(A % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
if(A / K == B / K) {
if(A % K == 0) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}else {
System.out.println("OK");
}
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
2,
13,
17,
13,
14,
2,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
80,
8
],
[
80,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
11,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
42,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
9,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"import java.util.*;\nimport java.math.BigInteger;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int x = A / K;\n int X = (x+1)*K;\n \n if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int x = A / K;\n int X = (x+1)*K;\n \n if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int x = A / K;\n int X = (x+1)*K;\n \n if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int x = A / K;\n int X = (x+1)*K;\n \n if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = A / K;",
"x",
"A / K",
"A",
"K",
"int X = (x+1)*K;",
"X",
"(x+1)*K",
"(x+1)",
"x",
"1",
"K",
"if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"A == x*K",
"A",
"x*K",
"x",
"K",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"A<X && X<=B",
"A<X",
"A",
"X",
"X<=B",
"X",
"B",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int x = A / K;\n int X = (x+1)*K;\n \n if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int x = A / K;\n int X = (x+1)*K;\n \n if(A == x*K) {\n System.out.println(\"OK\");\n } else if(A<X && X<=B) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int x = A / K;
int X = (x+1)*K;
if(A == x*K) {
System.out.println("OK");
} else if(A<X && X<=B) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n \n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n int c = 0;\n boolean hit = false;\n for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }\n if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\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 k = sc.nextInt();\n \n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n int c = 0;\n boolean hit = false;\n for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }\n if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n \n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n int c = 0;\n boolean hit = false;\n for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }\n if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n \n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n int c = 0;\n boolean hit = false;\n for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }\n if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = 0;",
"c",
"0",
"boolean hit = false;",
"hit",
"false",
"for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n hit = true;\n }\n }",
"{\n if(i%k==0){\n hit = true;\n }\n }",
"if(i%k==0){\n hit = true;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n hit = true;\n }",
"hit = true",
"hit",
"true",
"if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"hit",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n \n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n int c = 0;\n boolean hit = false;\n for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }\n if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n \n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n int c = 0;\n boolean hit = false;\n for(int i = a;i<=b;i++){\n if(i%k==0){\n hit = true;\n }\n }\n if(hit){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int c = 0;
boolean hit = false;
for(int i = a;i<=b;i++){
if(i%k==0){
hit = true;
}
}
if(hit){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint num = 0;\n\n\t\tfor (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}\n\t\tif (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\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\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint num = 0;\n\n\t\tfor (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}\n\t\tif (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint num = 0;\n\n\t\tfor (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}\n\t\tif (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint num = 0;\n\n\t\tfor (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}\n\t\tif (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int num = 0;",
"num",
"0",
"for (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}",
"if (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n\t\t\t\tnum += 1;\n\t\t\t}",
"num += 1",
"num",
"1",
"if (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"num > 0",
"num",
"0",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"num == 0",
"num",
"0",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint num = 0;\n\n\t\tfor (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}\n\t\tif (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\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\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint num = 0;\n\n\t\tfor (int i = A; i <= B; i++){\n\t\t\tif (i % K == 0){\n\t\t\t\tnum += 1;\n\t\t\t}\n\t\t}\n\t\tif (num > 0){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else if (num == 0){\n\t\t\tSystem.out.println(\"NG\");\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);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
int num = 0;
for (int i = A; i <= B; i++){
if (i % K == 0){
num += 1;
}
}
if (num > 0){
System.out.println("OK");
}else if (num == 0){
System.out.println("NG");
}
}
}
|
[
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,
14,
2,
13,
13,
30,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
2,
13,
13,
40,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
51,
58
],
[
44,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
59,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\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 m=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int m=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }\n }",
"a<=b",
"a",
"b",
"{\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }\n }",
"for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }",
"int s=a;",
"int s=a;",
"s",
"a",
"s<=b",
"s",
"b",
"s++",
"s++",
"s",
"{\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }",
"{\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }",
"if(s%m==0){\n System.out.println(\"OK\");\n break;\n }",
"s%m==0",
"s%m",
"s",
"m",
"0",
"{\n System.out.println(\"OK\");\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }",
"(s==b)&&!(b%m==0)",
"(s==b)",
"s",
"b",
"!(b%m==0)",
"(b%m==0)",
"b%m",
"b",
"m",
"0",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\n }\n }\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n if(a<=b){\n for(int s=a;s<=b;s++){\n if(s%m==0){\n System.out.println(\"OK\");\n break;\n }\n if((s==b)&&!(b%m==0)){\n System.out.println(\"NG\");\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 m=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
if(a<=b){
for(int s=a;s<=b;s++){
if(s%m==0){
System.out.println("OK");
break;
}
if((s==b)&&!(b%m==0)){
System.out.println("NG");
}
}
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
40,
13,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int OK =0;\n for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }\n if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\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 K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int OK =0;\n for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }\n if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int OK =0;\n for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }\n if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int OK =0;\n for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }\n if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int OK =0;",
"OK",
"0",
"for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }",
"int i =A;",
"int i =A;",
"i",
"A",
"i<=B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if (i % K == 0) {\n OK++;\n break;\n }\n }",
"{\n if (i % K == 0) {\n OK++;\n break;\n }\n }",
"if (i % K == 0) {\n OK++;\n break;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n OK++;\n break;\n }",
"OK++",
"OK",
"break;",
"if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"OK == 1",
"OK",
"1",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int OK =0;\n for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }\n if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int OK =0;\n for (int i =A; i<=B; i++) {\n if (i % K == 0) {\n OK++;\n break;\n }\n }\n if (OK == 1) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int OK =0;
for (int i =A; i<=B; i++) {
if (i % K == 0) {
OK++;
break;
}
}
if (OK == 1) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.*;\npublic class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a= sc.nextInt();\n int b= sc.nextInt();\n boolean c = true;\n for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }\n System.out.println(\"NG\");\n \n }\n}\n\n ",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a= sc.nextInt();\n int b= sc.nextInt();\n boolean c = true;\n for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }\n System.out.println(\"NG\");\n \n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a= sc.nextInt();\n int b= sc.nextInt();\n boolean c = true;\n for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }\n System.out.println(\"NG\");\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a= sc.nextInt();\n int b= sc.nextInt();\n boolean c = true;\n for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }\n System.out.println(\"NG\");\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a= sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b= sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean c = true;",
"c",
"true",
"for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }",
"{\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }",
"if(i%n==0)\n {System.out.println(\"OK\");\n return;}",
"i%n==0",
"i%n",
"i",
"n",
"0",
"{System.out.println(\"OK\");\n return;}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a= sc.nextInt();\n int b= sc.nextInt();\n boolean c = true;\n for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }\n System.out.println(\"NG\");\n \n }\n}",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a= sc.nextInt();\n int b= sc.nextInt();\n boolean c = true;\n for(int i=a;i<=b;i++)\n {\n if(i%n==0)\n {System.out.println(\"OK\");\n return;}\n\n }\n System.out.println(\"NG\");\n \n }\n}",
"Main"
] |
import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a= sc.nextInt();
int b= sc.nextInt();
boolean c = true;
for(int i=a;i<=b;i++)
{
if(i%n==0)
{System.out.println("OK");
return;}
}
System.out.println("NG");
}
}
|
[
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,
41,
13,
13,
11,
1,
41,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
3,
30,
0,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
30,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
50,
61
],
[
61,
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\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tint A = stdIn.nextInt();\n\t\tint B = stdIn.nextInt();\n\t\t\n\t\tint ans = K;\n\t\t\n\t\tfor(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\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 stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tint A = stdIn.nextInt();\n\t\tint B = stdIn.nextInt();\n\t\t\n\t\tint ans = K;\n\t\t\n\t\tfor(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tint A = stdIn.nextInt();\n\t\tint B = stdIn.nextInt();\n\t\t\n\t\tint ans = K;\n\t\t\n\t\tfor(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tint A = stdIn.nextInt();\n\t\tint B = stdIn.nextInt();\n\t\t\n\t\tint ans = K;\n\t\t\n\t\tfor(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int K = stdIn.nextInt();",
"K",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int A = stdIn.nextInt();",
"A",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int B = stdIn.nextInt();",
"B",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int ans = K;",
"ans",
"K",
"for(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}",
"if(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}",
"A <= ans",
"A",
"ans",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tans += K;\n\t\t\t}",
"ans += K",
"ans",
"K",
"if(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"ans <= B",
"ans",
"B",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tint A = stdIn.nextInt();\n\t\tint B = stdIn.nextInt();\n\t\t\n\t\tint ans = K;\n\t\t\n\t\tfor(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tint A = stdIn.nextInt();\n\t\tint B = stdIn.nextInt();\n\t\t\n\t\tint ans = K;\n\t\t\n\t\tfor(int i = 1; ; i++) {\n\t\t\tif(A <= ans) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tans += K;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans <= B) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int K = stdIn.nextInt();
int A = stdIn.nextInt();
int B = stdIn.nextInt();
int ans = K;
for(int i = 1; ; i++) {
if(A <= ans) {
break;
}else {
ans += K;
}
}
if(ans <= B) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
}
|
[
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,
4,
18,
18,
13,
13,
8,
4,
13,
13,
13,
13,
17,
17,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
29,
17,
41,
13,
2,
13,
2,
13,
2,
13,
13,
14,
2,
13,
13,
29,
17,
29,
17,
23,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
33,
37
],
[
32,
38
],
[
32,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
6,
43
],
[
43,
44
],
[
4,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
48,
60
],
[
60,
61
],
[
47,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
47,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
47,
77
],
[
77,
78
],
[
45,
79
],
[
79,
80
],
[
45,
81
],
[
81,
82
],
[
45,
83
],
[
83,
84
]
] |
[
"import java.util.Scanner;\n\n/**\n * https://atcoder.jp/contests/abc165/tasks/abc165_a\n */\n\nclass Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n System.out.println(canCarry(k, a, b) ? \"OK\" : \"NG\");\n\n scanner.close();\n\n }\n\n public static boolean canCarry(int k, int a, int b) {\n if (a % k == 0 || b % k == 0) return true;\n\n int c = a + (k - (a % k));\n if (c <= b) return true;\n return false;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n System.out.println(canCarry(k, a, b) ? \"OK\" : \"NG\");\n\n scanner.close();\n\n }\n\n public static boolean canCarry(int k, int a, int b) {\n if (a % k == 0 || b % k == 0) return true;\n\n int c = a + (k - (a % k));\n if (c <= b) return true;\n return false;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n System.out.println(canCarry(k, a, b) ? \"OK\" : \"NG\");\n\n scanner.close();\n\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n System.out.println(canCarry(k, a, b) ? \"OK\" : \"NG\");\n\n scanner.close();\n\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println(canCarry(k, a, b) ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"canCarry(k, a, b) ? \"OK\" : \"NG\"",
"canCarry(k, a, b)",
"canCarry",
"k",
"a",
"b",
"\"OK\"",
"\"NG\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public static boolean canCarry(int k, int a, int b) {\n if (a % k == 0 || b % k == 0) return true;\n\n int c = a + (k - (a % k));\n if (c <= b) return true;\n return false;\n }",
"canCarry",
"{\n if (a % k == 0 || b % k == 0) return true;\n\n int c = a + (k - (a % k));\n if (c <= b) return true;\n return false;\n }",
"if (a % k == 0 || b % k == 0) return true;",
"a % k == 0 || b % k == 0",
"a % k == 0",
"a % k",
"a",
"k",
"0",
"b % k == 0",
"b % k",
"b",
"k",
"0",
"return true;",
"true",
"int c = a + (k - (a % k));",
"c",
"a + (k - (a % k))",
"a",
"(k - (a % k))",
"k",
"(a % k)",
"a",
"k",
"if (c <= b) return true;",
"c <= b",
"c",
"b",
"return true;",
"true",
"return false;",
"false",
"int k",
"k",
"int a",
"a",
"int b",
"b"
] |
import java.util.Scanner;
/**
* https://atcoder.jp/contests/abc165/tasks/abc165_a
*/
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int k = scanner.nextInt();
int a = scanner.nextInt();
int b = scanner.nextInt();
System.out.println(canCarry(k, a, b) ? "OK" : "NG");
scanner.close();
}
public static boolean canCarry(int k, int a, int b) {
if (a % k == 0 || b % k == 0) return true;
int c = a + (k - (a % k));
if (c <= b) return true;
return false;
}
}
|
[
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,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
4,
18,
4,
18,
13,
17,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
4,
18,
13,
17,
17,
17,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
8,
13,
17,
17,
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
],
[
122,
14
],
[
122,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
17,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
17,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
61,
67
],
[
60,
68
],
[
17,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
75,
81
],
[
74,
82
],
[
17,
83
],
[
83,
84
],
[
83,
85
],
[
17,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
17,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
115,
118
],
[
15,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n int k = Integer.valueOf(mylist.get(0));\n int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);\n int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);\n\n Boolean chkflg = false;\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }\n System.out.println(chkflg ? \"OK\" : \"NG\");\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n int k = Integer.valueOf(mylist.get(0));\n int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);\n int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);\n\n Boolean chkflg = false;\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }\n System.out.println(chkflg ? \"OK\" : \"NG\");\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n int k = Integer.valueOf(mylist.get(0));\n int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);\n int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);\n\n Boolean chkflg = false;\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }\n System.out.println(chkflg ? \"OK\" : \"NG\");\n\n }",
"main",
"{\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n int k = Integer.valueOf(mylist.get(0));\n int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);\n int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);\n\n Boolean chkflg = false;\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }\n System.out.println(chkflg ? \"OK\" : \"NG\");\n\n }",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader reader = new BufferedReader(is);",
"reader",
"new BufferedReader(is)",
"List<String> mylist = new ArrayList<>();",
"mylist",
"new ArrayList<>()",
"String strinput = reader.readLine();",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }",
"strinput != null",
"strinput",
"null",
"{\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }",
"mylist.add(strinput)",
"mylist.add",
"mylist",
"strinput",
"strinput = reader.readLine()",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"int k = Integer.valueOf(mylist.get(0));",
"k",
"Integer.valueOf(mylist.get(0))",
"Integer.valueOf",
"Integer",
"mylist.get(0)",
"mylist.get",
"mylist",
"0",
"int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);",
"a",
"Integer.valueOf(mylist.get(1).split(\" \")[0])",
"Integer.valueOf",
"Integer",
"mylist.get(1).split(\" \")[0]",
"mylist.get(1).split(\" \")",
"mylist.get(1).split",
"mylist.get(1)",
"mylist.get",
"mylist",
"1",
"\" \"",
"0",
"int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);",
"b",
"Integer.valueOf(mylist.get(1).split(\" \")[1])",
"Integer.valueOf",
"Integer",
"mylist.get(1).split(\" \")[1]",
"mylist.get(1).split(\" \")",
"mylist.get(1).split",
"mylist.get(1)",
"mylist.get",
"mylist",
"1",
"\" \"",
"1",
"Boolean chkflg = false;",
"chkflg",
"false",
"for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }",
"{\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }",
"if (i % k == 0) {\n chkflg = true;\n break;\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n chkflg = true;\n break;\n }",
"chkflg = true",
"chkflg",
"true",
"break;",
"System.out.println(chkflg ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"chkflg ? \"OK\" : \"NG\"",
"chkflg",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n int k = Integer.valueOf(mylist.get(0));\n int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);\n int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);\n\n Boolean chkflg = false;\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }\n System.out.println(chkflg ? \"OK\" : \"NG\");\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n List<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n\n mylist.add(strinput);\n strinput = reader.readLine();\n\n }\n\n int k = Integer.valueOf(mylist.get(0));\n int a = Integer.valueOf(mylist.get(1).split(\" \")[0]);\n int b = Integer.valueOf(mylist.get(1).split(\" \")[1]);\n\n Boolean chkflg = false;\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n chkflg = true;\n break;\n }\n }\n System.out.println(chkflg ? \"OK\" : \"NG\");\n\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws Exception {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(is);
List<String> mylist = new ArrayList<>();
// 標準入力からの値を変数strinputに代入
String strinput = reader.readLine();
while (strinput != null) {
mylist.add(strinput);
strinput = reader.readLine();
}
int k = Integer.valueOf(mylist.get(0));
int a = Integer.valueOf(mylist.get(1).split(" ")[0]);
int b = Integer.valueOf(mylist.get(1).split(" ")[1]);
Boolean chkflg = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
chkflg = true;
break;
}
}
System.out.println(chkflg ? "OK" : "NG");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
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,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
468,
8
],
[
468,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
29,
45
],
[
45,
46
],
[
45,
47
],
[
29,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
29,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
9,
85
],
[
85,
86
],
[
468,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
87,
95
],
[
95,
96
],
[
87,
97
],
[
97,
98
],
[
87,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
99,
107
],
[
107,
108
],
[
87,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
112,
117
],
[
117,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
123,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
111,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
87,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
154,
168
],
[
168,
169
],
[
168,
170
],
[
154,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
154,
184
],
[
184,
185
],
[
184,
186
],
[
154,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
192,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
154,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
87,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
211,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
211,
225
],
[
225,
226
],
[
225,
227
],
[
211,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
211,
241
],
[
241,
242
],
[
241,
243
],
[
211,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
244,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
249,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
211,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
87,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
278,
279
],
[
278,
280
],
[
273,
281
],
[
281,
282
],
[
282,
283
],
[
273,
284
],
[
285,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
268,
292
],
[
292,
293
],
[
266,
294
],
[
294,
295
],
[
87,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
306,
308
],
[
299,
309
],
[
309,
310
],
[
309,
311
],
[
299,
312
],
[
312,
313
],
[
313,
314
],
[
299,
315
],
[
316,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
320,
323
],
[
323,
324
],
[
323,
325
],
[
319,
326
],
[
316,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
329,
331
],
[
316,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
336
],
[
336,
337
],
[
336,
338
],
[
316,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
339,
343
],
[
298,
344
],
[
344,
345
],
[
296,
346
],
[
346,
347
],
[
296,
348
],
[
348,
349
],
[
87,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
352,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
352,
366
],
[
366,
367
],
[
366,
368
],
[
352,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
369,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
375,
378
],
[
374,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
352,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
87,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
389,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
389,
402
],
[
402,
403
],
[
402,
404
],
[
389,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
405,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
411,
414
],
[
410,
415
],
[
415,
416
],
[
415,
417
],
[
417,
418
],
[
389,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
87,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
430,
428
],
[
440,
429
],
[
437,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
434,
435
],
[
434,
436
],
[
437,
437
],
[
437,
438
],
[
437,
439
],
[
440,
440
],
[
440,
441
],
[
440,
442
],
[
430,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
423,
447
],
[
447,
448
],
[
87,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
452,
453
],
[
454,
454
],
[
454,
455
],
[
455,
456
],
[
455,
457
],
[
454,
458
],
[
458,
459
],
[
458,
460
],
[
454,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
449,
465
],
[
465,
466
],
[
0,
467
],
[
467,
468
],
[
467,
469
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\n\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }\n pw.close();\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }\n pw.close();\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }\n pw.close();\n }",
"main",
"{\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }\n pw.close();\n }",
"InputReader sc = new InputReader(System.in);",
"sc",
"new InputReader(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"Random gen = new Random();",
"gen",
"new Random()",
"int test = 1;",
"test",
"1",
"while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }",
"test-- > 0",
"test--",
"test",
"0",
"{\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean f = false;",
"f",
"false",
"for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0)\n {\n f = true;\n break;\n }\n }",
"{\n if(i%k==0)\n {\n f = true;\n break;\n }\n }",
"if(i%k==0)\n {\n f = true;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n f = true;\n break;\n }",
"f = true",
"f",
"true",
"break;",
"if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");",
"f",
"pw.print(\"OK\")",
"pw.print",
"pw",
"\"OK\"",
"pw.print(\"NG\")",
"pw.print",
"pw",
"\"NG\"",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }",
"InputReader",
"private final InputStream stream;",
"stream",
"private final byte[] buf = new byte[8192];",
"buf",
"new byte[8192]",
"8192",
"private int curChar",
"curChar",
"snumChars;",
"snumChars",
"public InputReader(InputStream st) {\n this.stream = st;\n }",
"InputReader",
"{\n this.stream = st;\n }",
"this.stream = st",
"this.stream",
"this",
"this.stream",
"st",
"InputStream st",
"st",
"public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (snumChars == -1)\n throw new InputMismatchException();",
"snumChars == -1",
"snumChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar >= snumChars",
"curChar",
"snumChars",
"{\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n snumChars = stream.read(buf);\n }",
"snumChars = stream.read(buf)",
"snumChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (snumChars <= 0)\n return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int[] nextIntArray(int n) {\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"nextIntArray",
"{\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"shuffle",
"{ for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int i = 0, n = a.length;",
"int i = 0",
"i",
"0",
"n = a.length;",
"n",
"a.length",
"a",
"a.length",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int ind = gen.nextInt(n-i)+i;",
"ind",
"gen.nextInt(n-i)+i",
"gen.nextInt(n-i)",
"gen.nextInt",
"gen",
"n-i",
"n",
"i",
"i",
"int d = a[i];",
"d",
"a[i]",
"a",
"i",
"a[i] = a[ind]",
"a[i]",
"a",
"i",
"a[ind]",
"a",
"ind",
"a[ind] = d",
"a[ind]",
"a",
"ind",
"d",
"return a;",
"a",
"int[] a",
"a",
"Random gen",
"gen",
"public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndOfLine",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n\n\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }\n pw.close();\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"public class Main {\n\n\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-- > 0)\n {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean f = false;\n for(int i=a;i<=b;i++)\n {\n if(i%k==0)\n {\n f = true;\n break;\n }\n }\n if(f)\n pw.print(\"OK\");\n else\n pw.print(\"NG\");\n }\n pw.close();\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int a[] = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputReader sc = new InputReader(System.in);
PrintWriter pw = new PrintWriter(System.out);
Random gen = new Random();
int test = 1;//sc.nextInt();
while(test-- > 0)
{
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
boolean f = false;
for(int i=a;i<=b;i++)
{
if(i%k==0)
{
f = true;
break;
}
}
if(f)
pw.print("OK");
else
pw.print("NG");
}
pw.close();
}
static class InputReader {
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
public InputReader(InputStream st) {
this.stream = st;
}
public int read() {
if (snumChars == -1)
throw new InputMismatchException();
if (curChar >= snumChars) {
curChar = 0;
try {
snumChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (snumChars <= 0)
return -1;
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int n) {
int a[] = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
public static int[] shuffle(int[] a, Random gen)
{ for(int i = 0, n = a.length;i < n;i++)
{ int ind = gen.nextInt(n-i)+i;
int d = a[i];
a[i] = a[ind];
a[ind] = d;
}
return a;
}
public String readString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public String nextLine() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
}
}
|
[
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,
0,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
0,
13,
17,
3,
14,
13,
4,
18,
18,
13,
13,
17,
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
55,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
]
] |
[
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[]args){\n Scanner sc=new Scanner(System.in);\n int k,a,b;\n k=sc.nextInt();\n a=sc.nextInt();\n b=sc.nextInt();\n boolean flag=true\t;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }\n if(flag)\n System.out.println(\"NG\");\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 k,a,b;\n k=sc.nextInt();\n a=sc.nextInt();\n b=sc.nextInt();\n boolean flag=true\t;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }\n if(flag)\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[]args){\n Scanner sc=new Scanner(System.in);\n int k,a,b;\n k=sc.nextInt();\n a=sc.nextInt();\n b=sc.nextInt();\n boolean flag=true\t;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }\n if(flag)\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int k,a,b;\n k=sc.nextInt();\n a=sc.nextInt();\n b=sc.nextInt();\n boolean flag=true\t;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }\n if(flag)\n System.out.println(\"NG\");\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k",
"k",
"a",
"a",
"b;",
"b",
"k=sc.nextInt()",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b=sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean flag=true\t;",
"flag",
"true",
"for(int i=a;i<=b;i++){\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }",
"{\n if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }\n }",
"if(i%k==0){\n System.out.println(\"OK\");\n flag=false;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n System.out.println(\"OK\");\n flag=false;\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"flag=false",
"flag",
"false",
"break;",
"if(flag)\n System.out.println(\"NG\");",
"flag",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[]args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int k,a,b;
k=sc.nextInt();
a=sc.nextInt();
b=sc.nextInt();
boolean flag=true ;
for(int i=a;i<=b;i++){
if(i%k==0){
System.out.println("OK");
flag=false;
break;
}
}
if(flag)
System.out.println("NG");
}
}
|
[
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,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
2,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
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
],
[
35,
49
],
[
35,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n scan.close();\n\n System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n scan.close();\n\n System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n scan.close();\n\n System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\");\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n scan.close();\n\n System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\");\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"A%K == 0 || A/K != B/K ? \"OK\" : \"NG\"",
"A%K == 0 || A/K != B/K",
"A%K == 0",
"A%K",
"A",
"K",
"0",
"A/K != B/K",
"A/K",
"A",
"K",
"B/K",
"B",
"K",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n scan.close();\n\n System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n scan.close();\n\n System.out.println(A%K == 0 || A/K != B/K ? \"OK\" : \"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
scan.close();
System.out.println(A%K == 0 || A/K != B/K ? "OK" : "NG");
}
}
|
[
7,
15,
13,
17,
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,
4,
18,
13,
14,
2,
2,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
2,
2,
2,
13,
13,
17,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
180,
14
],
[
180,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
17,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
36,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
59,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
68,
76
],
[
51,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
51,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
15,
89
],
[
89,
90
],
[
180,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
91,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
91,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
106,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
116,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
105,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
91,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
91,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
91,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
91,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
164,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
160,
177
],
[
177,
178
],
[
0,
179
],
[
179,
180
],
[
179,
181
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t FastReader s = new FastReader();\n\t\t \n\t\t \n\t\t int n = s.nextInt();\n\t\t int a = s.nextInt();\n\t\t int b = s.nextInt();\n\t\t \n\t\t if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }\n\t\t \n\t}\n\t\n\tstatic class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n\t}\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\tpublic static void main(String[] args) {\n\t\t FastReader s = new FastReader();\n\t\t \n\t\t \n\t\t int n = s.nextInt();\n\t\t int a = s.nextInt();\n\t\t int b = s.nextInt();\n\t\t \n\t\t if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }\n\t\t \n\t}\n\t\n\tstatic class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t FastReader s = new FastReader();\n\t\t \n\t\t \n\t\t int n = s.nextInt();\n\t\t int a = s.nextInt();\n\t\t int b = s.nextInt();\n\t\t \n\t\t if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }\n\t\t \n\t}",
"main",
"{\n\t\t FastReader s = new FastReader();\n\t\t \n\t\t \n\t\t int n = s.nextInt();\n\t\t int a = s.nextInt();\n\t\t int b = s.nextInt();\n\t\t \n\t\t if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }\n\t\t \n\t}",
"FastReader s = new FastReader();",
"s",
"new FastReader()",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int a = s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"int b = s.nextInt();",
"b",
"s.nextInt()",
"s.nextInt",
"s",
"if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }",
"b-a >= n-1",
"b-a",
"b",
"a",
"n-1",
"n",
"1",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }",
"if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");",
"a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b",
"a%n==0",
"a%n",
"a",
"n",
"0",
"((a/n)+1)*n > a && ((a/n)+1)*n <= b",
"((a/n)+1)*n > a",
"((a/n)+1)*n",
"((a/n)+1)",
"(a/n)",
"a",
"n",
"1",
"n",
"a",
"((a/n)+1)*n <= b",
"((a/n)+1)*n",
"((a/n)+1)",
"(a/n)",
"a",
"n",
"1",
"n",
"b",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n\t}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\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 {\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 {\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 {\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 {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\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\tpublic static void main(String[] args) {\n\t\t FastReader s = new FastReader();\n\t\t \n\t\t \n\t\t int n = s.nextInt();\n\t\t int a = s.nextInt();\n\t\t int b = s.nextInt();\n\t\t \n\t\t if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }\n\t\t \n\t}\n\t\n\tstatic class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t FastReader s = new FastReader();\n\t\t \n\t\t \n\t\t int n = s.nextInt();\n\t\t int a = s.nextInt();\n\t\t int b = s.nextInt();\n\t\t \n\t\t if(b-a >= n-1)\n\t\t\t System.out.println(\"OK\");\n\t\t else\n\t\t {\n\t\t\t if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)\n\t\t\t\t System.out.println(\"OK\");\n\t\t\t else System.out.println(\"NG\");\n\t\t }\n\t\t \n\t}\n\t\n\tstatic class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastReader s = new FastReader();
int n = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
if(b-a >= n-1)
System.out.println("OK");
else
{
if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)
System.out.println("OK");
else System.out.println("NG");
}
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader()
{
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,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
29,
4,
18,
18,
13,
13,
17,
4,
18,
13,
29,
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
],
[
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
46,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n\n int factor = scan.nextInt();\n int minDist = scan.nextInt();\n int maxDist = scan.nextInt();\n\n for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }\n System.out.println(\"NG\");\n scan.close();\n return;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n\n int factor = scan.nextInt();\n int minDist = scan.nextInt();\n int maxDist = scan.nextInt();\n\n for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }\n System.out.println(\"NG\");\n scan.close();\n return;\n }\n}",
"Main",
"public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n\n int factor = scan.nextInt();\n int minDist = scan.nextInt();\n int maxDist = scan.nextInt();\n\n for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }\n System.out.println(\"NG\");\n scan.close();\n return;\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int factor = scan.nextInt();\n int minDist = scan.nextInt();\n int maxDist = scan.nextInt();\n\n for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }\n System.out.println(\"NG\");\n scan.close();\n return;\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int factor = scan.nextInt();",
"factor",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int minDist = scan.nextInt();",
"minDist",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int maxDist = scan.nextInt();",
"maxDist",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }",
"int i = minDist;",
"int i = minDist;",
"i",
"minDist",
"i <= maxDist",
"i",
"maxDist",
"++i",
"++i",
"i",
"{\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }",
"{\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }",
"if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }",
"i % factor == 0",
"i % factor",
"i",
"factor",
"0",
"{\n System.out.println(\"OK\");\n scan.close();\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"scan.close()",
"scan.close",
"scan",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"scan.close()",
"scan.close",
"scan",
"return;",
"String[] arg",
"arg",
"public class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n\n int factor = scan.nextInt();\n int minDist = scan.nextInt();\n int maxDist = scan.nextInt();\n\n for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }\n System.out.println(\"NG\");\n scan.close();\n return;\n }\n}",
"public class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n\n int factor = scan.nextInt();\n int minDist = scan.nextInt();\n int maxDist = scan.nextInt();\n\n for(int i = minDist; i <= maxDist; ++i) {\n if(i % factor == 0) {\n System.out.println(\"OK\");\n scan.close();\n return;\n }\n }\n System.out.println(\"NG\");\n scan.close();\n return;\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] arg) {
Scanner scan = new Scanner(System.in);
int factor = scan.nextInt();
int minDist = scan.nextInt();
int maxDist = scan.nextInt();
for(int i = minDist; i <= maxDist; ++i) {
if(i % factor == 0) {
System.out.println("OK");
scan.close();
return;
}
}
System.out.println("NG");
scan.close();
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
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
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();\n for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }\n if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");\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 judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();\n for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }\n if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();\n for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }\n if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();\n for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }\n if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int judge=0",
"judge",
"0",
"k=sc.nextInt()",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n judge=1;\n break;\n }\n }",
"{\n if(i%k==0){\n judge=1;\n break;\n }\n }",
"if(i%k==0){\n judge=1;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n judge=1;\n break;\n }",
"judge=1",
"judge",
"1",
"break;",
"if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");",
"judge==1",
"judge",
"1",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();\n for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }\n if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();\n for(int i=a; i<=b; i++){\n if(i%k==0){\n judge=1;\n break;\n }\n }\n if(judge==1) System.out.print(\"OK\");\n else System.out.print(\"NG\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int judge=0, k=sc.nextInt(), a=sc.nextInt(), b=sc.nextInt();
for(int i=a; i<=b; i++){
if(i%k==0){
judge=1;
break;
}
}
if(judge==1) System.out.print("OK");
else System.out.print("NG");
}
}
|
[
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,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tfor (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"NG\");\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\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tfor (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"NG\");\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tfor (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"NG\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tfor (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"NG\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"int d = a;",
"int d = a;",
"d",
"a",
"d <= b",
"d",
"b",
"++d",
"++d",
"d",
"{\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"if (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}",
"d % k == 0",
"d % k",
"d",
"k",
"0",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tfor (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"NG\");\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tfor (int d = a; d <= b; ++d) {\n\t\t\tif (d % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"NG\");\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 k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for (int d = a; d <= b; ++d) {
if (d % k == 0) {
System.out.println("OK");
return;
}
}
System.out.println("NG");
}
}
|
[
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,
41,
13,
13,
11,
1,
41,
13,
13,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
0,
13,
2,
13,
17,
30,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
40,
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
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
51,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
45,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
63,
75
],
[
75,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int n = A;\n \n for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\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 Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int n = A;\n \n for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }\n \n } \n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int n = A;\n \n for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int n = A;\n \n for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n = A;",
"n",
"A",
"for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i < B + 1",
"i",
"B + 1",
"B",
"1",
"i++",
"i++",
"i",
"{\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }",
"{\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }",
"if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n System.out.println(\"OK\");\n i = B + 1;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"i = B + 1",
"i",
"B + 1",
"B",
"1",
"{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }",
"if(n == B){\n System.out.println(\"NG\");\n }",
"n == B",
"n",
"B",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"n++",
"n",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int n = A;\n \n for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\n n++;\n }\n }\n \n } \n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int n = A;\n \n for(int i = A; i < B + 1 ; i++){\n if(i % K == 0){\n System.out.println(\"OK\");\n i = B + 1;\n }else{\n if(n == B){\n System.out.println(\"NG\");\n }\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 K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int n = A;
for(int i = A; i < B + 1 ; i++){
if(i % K == 0){
System.out.println("OK");
i = B + 1;
}else{
if(n == B){
System.out.println("NG");
}
n++;
}
}
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
13,
30,
9,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
30,
4,
18,
18,
13,
13,
17,
3,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
54,
61
],
[
48,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
62,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint K = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tfor(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\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\t\t// 整数の入力\n\t\tint K = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tfor(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint K = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tfor(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint K = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tfor(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}",
"K*i < A",
"K*i",
"K",
"i",
"A",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}",
"K*i > B",
"K*i",
"K",
"i",
"B",
"{\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"break;",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint K = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tfor(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\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\t\t// 整数の入力\n\t\tint K = sc.nextInt();\n\t\t// スペース区切りの整数の入力\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tfor(int i = 1; i <= B; i++) {\n\t\t\tif(K*i < A) {\n\t\t\t\tcontinue;\n\t\t\t} else if(K*i > B) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}\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 K = sc.nextInt();
// スペース区切りの整数の入力
int A = sc.nextInt();
int B = sc.nextInt();
for(int i = 1; i <= B; i++) {
if(K*i < A) {
continue;
} else if(K*i > B) {
System.out.println("NG");
break;
} else {
System.out.println("OK");
break;
}
}
}
}
|
[
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,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
17,
0,
13,
17,
3,
14,
40,
13,
30,
4,
18,
13,
17,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
13,
2,
13,
2,
17,
13,
1,
0,
13,
13,
30,
30,
41,
13,
2,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
41,
13,
4,
18,
18,
13,
41,
13,
20,
0,
13,
20,
0,
13,
20,
12,
13,
30,
4,
18,
13,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
2,
4,
18,
13,
2,
2,
13,
17,
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,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
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
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
470,
41
],
[
470,
42
],
[
42,
43
],
[
470,
44
],
[
44,
45
],
[
470,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
48,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
48,
63
],
[
63,
64
],
[
63,
65
],
[
48,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
48,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
48,
102
],
[
102,
103
],
[
46,
104
],
[
104,
105
],
[
470,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
125,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
125,
138
],
[
138,
139
],
[
138,
140
],
[
125,
141
],
[
141,
142
],
[
141,
143
],
[
125,
144
],
[
144,
145
],
[
144,
146
],
[
125,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
125,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
159,
161
],
[
152,
162
],
[
162,
163
],
[
163,
164
],
[
152,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
167,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
167,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
182,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
201,
203
],
[
197,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
207,
208
],
[
207,
209
],
[
182,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
214,
217
],
[
217,
218
],
[
217,
219
],
[
182,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
227,
229
],
[
182,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
238,
240
],
[
234,
241
],
[
241,
242
],
[
241,
243
],
[
234,
244
],
[
244,
245
],
[
244,
246
],
[
182,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
255,
257
],
[
251,
258
],
[
258,
259
],
[
258,
260
],
[
251,
261
],
[
261,
262
],
[
261,
263
],
[
125,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
125,
268
],
[
268,
269
],
[
269,
270
],
[
268,
271
],
[
274,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
272,
278
],
[
274,
279
],
[
470,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
470,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
470,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
296,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
306,
308
],
[
296,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
294,
314
],
[
314,
315
],
[
294,
316
],
[
316,
317
],
[
294,
318
],
[
318,
319
],
[
470,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
326,
328
],
[
470,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
331,
338
],
[
338,
339
],
[
338,
340
],
[
331,
341
],
[
341,
342
],
[
341,
343
],
[
331,
344
],
[
344,
345
],
[
344,
346
],
[
470,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
349,
353
],
[
353,
354
],
[
354,
355
],
[
470,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
356,
360
],
[
360,
361
],
[
356,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
364,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
370,
374
],
[
362,
375
],
[
375,
376
],
[
362,
377
],
[
377,
378
],
[
470,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
379,
383
],
[
383,
384
],
[
379,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
385,
391
],
[
391,
392
],
[
379,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
396,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
395,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
379,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
417,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
425
],
[
425,
426
],
[
426,
427
],
[
379,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
432,
435
],
[
435,
436
],
[
379,
437
],
[
437,
438
],
[
437,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
442,
443
],
[
441,
444
],
[
444,
445
],
[
379,
446
],
[
446,
447
],
[
446,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
450,
453
],
[
453,
454
],
[
379,
455
],
[
455,
456
],
[
455,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
460,
461
],
[
379,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
0,
469
],
[
469,
470
],
[
469,
471
]
] |
[
"import java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Set;\nimport java.util.StringTokenizer;\nimport java.util.stream.Collectors;\n\npublic class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n int n = readInt();\n int start = readInt();\n int end = readInt();\n boolean isFound = false;\n for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }\n if (!isFound) {\n output.println(\"NG\");\n }\n closeReader();\n }\n\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"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.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"public class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n int n = readInt();\n int start = readInt();\n int end = readInt();\n boolean isFound = false;\n for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }\n if (!isFound) {\n output.println(\"NG\");\n }\n closeReader();\n }\n\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"Main",
"private static FastScanner input;",
"input",
"private static PrintWriter output;",
"output",
"public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n int n = readInt();\n int start = readInt();\n int end = readInt();\n boolean isFound = false;\n for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }\n if (!isFound) {\n output.println(\"NG\");\n }\n closeReader();\n }",
"main",
"{\n// openFile();\n openConsole();\n int n = readInt();\n int start = readInt();\n int end = readInt();\n boolean isFound = false;\n for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }\n if (!isFound) {\n output.println(\"NG\");\n }\n closeReader();\n }",
"openConsole()",
"openConsole",
"int n = readInt();",
"n",
"readInt()",
"readInt",
"int start = readInt();",
"start",
"readInt()",
"readInt",
"int end = readInt();",
"end",
"readInt()",
"readInt",
"boolean isFound = false;",
"isFound",
"false",
"for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }",
"int i = start;",
"int i = start;",
"i",
"start",
"i <= end",
"i",
"end",
"i++",
"i++",
"i",
"{\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }",
"{\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }",
"if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }",
"i % n == 0",
"i % n",
"i",
"n",
"0",
"{\n output.println(\"OK\");\n isFound = true;\n break;\n }",
"output.println(\"OK\")",
"output.println",
"output",
"\"OK\"",
"isFound = true",
"isFound",
"true",
"break;",
"if (!isFound) {\n output.println(\"NG\");\n }",
"!isFound",
"isFound",
"{\n output.println(\"NG\");\n }",
"output.println(\"NG\")",
"output.println",
"output",
"\"NG\"",
"closeReader()",
"closeReader",
"String[] args",
"args",
"private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }",
"solveC",
"{\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }",
"int numTest = readInt();",
"numTest",
"readInt()",
"readInt",
"for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numTest",
"i",
"numTest",
"i++",
"i++",
"i",
"{\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }",
"{\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }",
"int a = readInt();",
"a",
"readInt()",
"readInt",
"int b = readInt();",
"b",
"readInt()",
"readInt",
"int c = readInt();",
"c",
"readInt()",
"readInt",
"int aRes = 0",
"aRes",
"0",
"bRes = 0",
"bRes",
"0",
"cRes = 0",
"cRes",
"0",
"count = Integer.MAX_VALUE;",
"count",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }",
"int aIter = 1;",
"int aIter = 1;",
"aIter",
"1",
"aIter <= 2 * a",
"aIter",
"2 * a",
"2",
"a",
"aIter++",
"aIter++",
"aIter",
"{\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }",
"{\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }",
"for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }",
"int bIter = aIter;",
"int bIter = aIter;",
"bIter",
"aIter",
"bIter <= 2 * b",
"bIter",
"2 * b",
"2",
"b",
"bIter += aIter",
"bIter += aIter",
"bIter",
"aIter",
"{\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }",
"{\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }",
"int cLow = bIter * (c / bIter);",
"cLow",
"bIter * (c / bIter)",
"bIter",
"(c / bIter)",
"c",
"bIter",
"int cHigh = cLow + bIter;",
"cHigh",
"cLow + bIter",
"cLow",
"bIter",
"int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);",
"aAndBDist",
"Math.abs(aIter - a) + Math.abs(bIter - b)",
"Math.abs(aIter - a)",
"Math.abs",
"Math",
"aIter - a",
"aIter",
"a",
"Math.abs(bIter - b)",
"Math.abs",
"Math",
"bIter - b",
"bIter",
"b",
"int firstSum = aAndBDist + Math.abs(cLow - c);",
"firstSum",
"aAndBDist + Math.abs(cLow - c)",
"aAndBDist",
"Math.abs(cLow - c)",
"Math.abs",
"Math",
"cLow - c",
"cLow",
"c",
"int secondSum = aAndBDist + Math.abs(cHigh - c);",
"secondSum",
"aAndBDist + Math.abs(cHigh - c)",
"aAndBDist",
"Math.abs(cHigh - c)",
"Math.abs",
"Math",
"cHigh - c",
"cHigh",
"c",
"if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }",
"firstSum < count",
"firstSum",
"count",
"{\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }",
"aRes = aIter",
"aRes",
"aIter",
"bRes = bIter",
"bRes",
"bIter",
"cRes = cLow",
"cRes",
"cLow",
"count = firstSum",
"count",
"firstSum",
"if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }",
"secondSum < count",
"secondSum",
"count",
"{\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }",
"aRes = aIter",
"aRes",
"aIter",
"bRes = bIter",
"bRes",
"bIter",
"cRes = cHigh",
"cRes",
"cHigh",
"count = secondSum",
"count",
"secondSum",
"output.println(count)",
"output.println",
"output",
"count",
"output.println(aRes + \" \" + bRes + \" \" + cRes)",
"output.println",
"output",
"aRes + \" \" + bRes + \" \" + cRes",
"\" \"",
"bRes",
"aRes + \" \" + bRes + \" \" + cRes",
"aRes",
"\" \"",
"bRes",
"\" \"",
"cRes",
"private static String readString() throws IOException {\n return input.nextLine();\n }",
"readString",
"{\n return input.nextLine();\n }",
"return input.nextLine();",
"input.nextLine()",
"input.nextLine",
"input",
"private static int readInt() throws IOException {\n return input.nextInt();\n }",
"readInt",
"{\n return input.nextInt();\n }",
"return input.nextInt();",
"input.nextInt()",
"input.nextInt",
"input",
"private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }",
"swap",
"{\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }",
"int temp = data[i];",
"temp",
"data[i]",
"data",
"i",
"data[i] = data[j]",
"data[i]",
"data",
"i",
"data[j]",
"data",
"j",
"data[j] = temp",
"data[j]",
"data",
"j",
"temp",
"int[] data",
"data",
"int i",
"i",
"int j",
"j",
"private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }",
"openConsole",
"{\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }",
"input = new FastScanner(System.in)",
"input",
"new FastScanner(System.in)",
"output = new PrintWriter(System.out)",
"output",
"new PrintWriter(System.out)",
"private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }",
"openFile",
"{\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }",
"ClassLoader classLoader = Main.class.getClassLoader();",
"classLoader",
"Main.class.getClassLoader()",
"Main.class.getClassLoader",
"Main.class",
"Main.class",
"File myFile = new File(classLoader.getResource(\"input.txt\").getFile());",
"myFile",
"new File(classLoader.getResource(\"input.txt\").getFile())",
"input = new FastScanner(new FileInputStream(myFile))",
"input",
"new FastScanner(new FileInputStream(myFile))",
"output = new PrintWriter(System.out)",
"output",
"new PrintWriter(System.out)",
"private static void closeReader() {\n output.flush();\n output.close();\n }",
"closeReader",
"{\n output.flush();\n output.close();\n }",
"output.flush()",
"output.flush",
"output",
"output.close()",
"output.close",
"output",
"static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }",
"Pair",
"int id",
"id",
"count;",
"count",
"Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }",
"Pair",
"{\n this.id = id;\n this.count = count;\n }",
"this.id = id",
"this.id",
"this",
"this.id",
"id",
"this.count = count",
"this.count",
"this",
"this.count",
"count",
"Integer id",
"id",
"Integer count",
"count",
"static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }",
"FastScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\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",
"boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }",
"hasNext",
"{\n return br.ready() || (st != null && st.hasMoreTokens());\n }",
"return br.ready() || (st != null && st.hasMoreTokens());",
"br.ready() || (st != null && st.hasMoreTokens())",
"br.ready()",
"br.ready",
"br",
"(st != null && st.hasMoreTokens())",
"st != null",
"st",
"null",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"int nextInt() throws IOException {\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() throws IOException {\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() throws IOException {\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() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"boolean hasNextLine() throws IOException {\n return br.ready();\n }",
"hasNextLine",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n int n = readInt();\n int start = readInt();\n int end = readInt();\n boolean isFound = false;\n for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }\n if (!isFound) {\n output.println(\"NG\");\n }\n closeReader();\n }\n\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"public class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n int n = readInt();\n int start = readInt();\n int end = readInt();\n boolean isFound = false;\n for (int i = start; i <= end; i++) {\n if (i % n == 0) {\n output.println(\"OK\");\n isFound = true;\n break;\n }\n }\n if (!isFound) {\n output.println(\"NG\");\n }\n closeReader();\n }\n\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.stream.Collectors;
public class Main {
private static FastScanner input;
private static PrintWriter output;
public static void main(String[] args) throws IOException {
// openFile();
openConsole();
int n = readInt();
int start = readInt();
int end = readInt();
boolean isFound = false;
for (int i = start; i <= end; i++) {
if (i % n == 0) {
output.println("OK");
isFound = true;
break;
}
}
if (!isFound) {
output.println("NG");
}
closeReader();
}
private static void solveC() throws IOException {
int numTest = readInt();
for (int i = 0; i < numTest; i++) {
int a = readInt();
int b = readInt();
int c = readInt();
int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;
for (int aIter = 1; aIter <= 2 * a; aIter++) {
for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {
int cLow = bIter * (c / bIter);
int cHigh = cLow + bIter;
int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);
int firstSum = aAndBDist + Math.abs(cLow - c);
int secondSum = aAndBDist + Math.abs(cHigh - c);
if (firstSum < count) {
aRes = aIter;
bRes = bIter;
cRes = cLow;
count = firstSum;
}
if (secondSum < count) {
aRes = aIter;
bRes = bIter;
cRes = cHigh;
count = secondSum;
}
}
}
output.println(count);
output.println(aRes + " " + bRes + " " + cRes);
}
}
private static String readString() throws IOException {
return input.nextLine();
}
private static int readInt() throws IOException {
return input.nextInt();
}
private static void swap(int[] data, int i, int j) {
int temp = data[i];
data[i] = data[j];
data[j] = temp;
}
private static void openConsole() {
input = new FastScanner(System.in);
output = new PrintWriter(System.out);
}
private static void openFile() throws FileNotFoundException {
ClassLoader classLoader = Main.class.getClassLoader();
File myFile = new File(classLoader.getResource("input.txt").getFile());
input = new FastScanner(new FileInputStream(myFile));
output = new PrintWriter(System.out);
}
private static void closeReader() {
output.flush();
output.close();
}
static class Pair {
int id, count;
Pair(Integer id, Integer count) {
this.id = id;
this.count = count;
}
}
static class FastScanner {
StringTokenizer st;
BufferedReader br;
FastScanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
private String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
boolean hasNext() throws IOException {
return br.ready() || (st != null && st.hasMoreTokens());
}
int nextInt() throws IOException {
return Integer.parseInt(next());
}
long nextLong() throws IOException {
return Long.parseLong(next());
}
double nextDouble() throws IOException {
return Double.parseDouble(next());
}
String nextLine() throws IOException {
return br.readLine();
}
boolean hasNextLine() throws IOException {
return br.ready();
}
}
}
|
[
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,
14,
2,
2,
2,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
27,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n } \n\t}\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 int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n } \n\t}\n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n } \n\t}",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n } \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"B/K*K>=A",
"B/K*K",
"B/K",
"B",
"K",
"K",
"A",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n } \n\t}\n}",
"public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n if(B/K*K>=A){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n } \n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
if(B/K*K>=A){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
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,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
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
],
[
96,
11
],
[
96,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
14,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
14,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
12,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] |
[
"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\tint multiple = Integer.parseInt(br.readLine());\n\t\tString input = br.readLine();\n\t\tString[] inputArray = input.split(\" \");\n\t\t\n\t\tint start = Integer.parseInt(inputArray[0]);\n\t\tint end = Integer.parseInt(inputArray[1]);\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t\tSystem.exit(0);\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\tint multiple = Integer.parseInt(br.readLine());\n\t\tString input = br.readLine();\n\t\tString[] inputArray = input.split(\" \");\n\t\t\n\t\tint start = Integer.parseInt(inputArray[0]);\n\t\tint end = Integer.parseInt(inputArray[1]);\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t\tSystem.exit(0);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint multiple = Integer.parseInt(br.readLine());\n\t\tString input = br.readLine();\n\t\tString[] inputArray = input.split(\" \");\n\t\t\n\t\tint start = Integer.parseInt(inputArray[0]);\n\t\tint end = Integer.parseInt(inputArray[1]);\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint multiple = Integer.parseInt(br.readLine());\n\t\tString input = br.readLine();\n\t\tString[] inputArray = input.split(\" \");\n\t\t\n\t\tint start = Integer.parseInt(inputArray[0]);\n\t\tint end = Integer.parseInt(inputArray[1]);\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t\tSystem.exit(0);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int multiple = Integer.parseInt(br.readLine());",
"multiple",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"String[] inputArray = input.split(\" \");",
"inputArray",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int start = Integer.parseInt(inputArray[0]);",
"start",
"Integer.parseInt(inputArray[0])",
"Integer.parseInt",
"Integer",
"inputArray[0]",
"inputArray",
"0",
"int end = Integer.parseInt(inputArray[1]);",
"end",
"Integer.parseInt(inputArray[1])",
"Integer.parseInt",
"Integer",
"inputArray[1]",
"inputArray",
"1",
"for (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"int i = start;",
"int i = start;",
"i",
"start",
"i <= end",
"i",
"end",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"if (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"i % multiple == 0",
"i % multiple",
"i",
"multiple",
"0",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"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\tint multiple = Integer.parseInt(br.readLine());\n\t\tString input = br.readLine();\n\t\tString[] inputArray = input.split(\" \");\n\t\t\n\t\tint start = Integer.parseInt(inputArray[0]);\n\t\tint end = Integer.parseInt(inputArray[1]);\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t\tSystem.exit(0);\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\tint multiple = Integer.parseInt(br.readLine());\n\t\tString input = br.readLine();\n\t\tString[] inputArray = input.split(\" \");\n\t\t\n\t\tint start = Integer.parseInt(inputArray[0]);\n\t\tint end = Integer.parseInt(inputArray[1]);\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % multiple == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t\tSystem.exit(0);\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));
int multiple = Integer.parseInt(br.readLine());
String input = br.readLine();
String[] inputArray = input.split(" ");
int start = Integer.parseInt(inputArray[0]);
int end = Integer.parseInt(inputArray[1]);
for (int i = start; i <= end; i++) {
if (i % multiple == 0) {
System.out.println("OK");
System.exit(0);
}
}
System.out.println("NG");
System.exit(0);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
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
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
6,
18
],
[
18,
19
],
[
4,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
22,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
57,
64
],
[
22,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
20,
71
],
[
71,
72
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }\n public static void do_(Scanner inp) {\n int k = inp.nextInt();\n int a = inp.nextInt();\n int b = inp.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }\n public static void do_(Scanner inp) {\n int k = inp.nextInt();\n int a = inp.nextInt();\n int b = inp.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }",
"main",
"{\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }",
"Scanner inp = new Scanner(System.in);",
"inp",
"new Scanner(System.in)",
"do_(inp)",
"do_",
"inp",
"inp.close()",
"inp.close",
"inp",
"String args[]",
"args",
"public static void do_(Scanner inp) {\n int k = inp.nextInt();\n int a = inp.nextInt();\n int b = inp.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"do_",
"{\n int k = inp.nextInt();\n int a = inp.nextInt();\n int b = inp.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"int k = inp.nextInt();",
"k",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int a = inp.nextInt();",
"a",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int b = inp.nextInt();",
"b",
"inp.nextInt()",
"inp.nextInt",
"inp",
"for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }",
"{\n if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }\n }",
"if (i % k == 0) {\n System.out.println(\"OK\");\n return;\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"Scanner inp",
"inp"
] |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner inp = new Scanner(System.in);
do_(inp);
inp.close();
}
public static void do_(Scanner inp) {
int k = inp.nextInt();
int a = inp.nextInt();
int b = inp.nextInt();
for (int i = a; i <= b; i++) {
if (i % k == 0) {
System.out.println("OK");
return;
}
}
System.out.println("NG");
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
2,
13,
17,
3,
30,
9,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
45,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = 0;\n for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\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 int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = 0;\n for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = 0;\n for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = 0;\n for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int C = 0;",
"C",
"0",
"for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }",
"int i=A;",
"int i=A;",
"i",
"A",
"i<B+1",
"i",
"B+1",
"B",
"1",
"i++",
"i++",
"i",
"{\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }",
"{\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }",
"if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }",
"i%K==0",
"i%K",
"i",
"K",
"0",
"{\n C=C+1;\n break;\n }",
"C=C+1",
"C",
"C+1",
"C",
"1",
"break;",
"{\n continue;\n }",
"continue;",
"if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"C>0",
"C",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = 0;\n for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = 0;\n for(int i=A;i<B+1;i++){\n if(i%K==0){\n C=C+1;\n break;\n }else{\n continue;\n }\n }if(C>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int C = 0;
for(int i=A;i<B+1;i++){
if(i%K==0){
C=C+1;
break;
}else{
continue;
}
}if(C>0){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
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
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint g = 0;\n\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\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 sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint g = 0;\n\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\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 k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint g = 0;\n\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint g = 0;\n\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int g = 0;",
"g",
"0",
"for(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"g = 1",
"g",
"1",
"break;",
"if(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"g == 1",
"g",
"1",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint g = 0;\n\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint g = 0;\n\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tg = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(g == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\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 k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int g = 0;
for(int i = a; i <= b; i++) {
if(i % k == 0) {
g = 1;
break;
}
}
if(g == 1) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
}
|
[
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,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
2,
13,
13,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
39,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tfor(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }\n }\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 \tint K = sc.nextInt();\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tfor(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tfor(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tfor(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }",
"int i=A;",
"int i=A;",
"i",
"A",
"i<=B",
"i",
"B",
"i++",
"i++",
"i",
"{\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }",
"{\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }",
"if(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }",
"i%K==0",
"i%K",
"i",
"K",
"0",
"{\n \tSystem.out.println(\"OK\");\n \tbreak;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }",
"i==B && i%K!=0",
"i==B",
"i",
"B",
"i%K!=0",
"i%K",
"i",
"K",
"0",
"{\n \tSystem.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tfor(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tfor(int i=A;i<=B;i++){\n \tif(i%K==0){\n \tSystem.out.println(\"OK\");\n \tbreak;\n }\n \tif(i==B && i%K!=0){\n \tSystem.out.println(\"NG\");\n }\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
for(int i=A;i<=B;i++){
if(i%K==0){
System.out.println("OK");
break;
}
if(i==B && i%K!=0){
System.out.println("NG");
}
}
}
}
|
[
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,
41,
13,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
0,
13,
17,
0,
13,
13,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
52,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int count = k;\n boolean bool = false;\n while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }\n if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int count = k;\n boolean bool = false;\n while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }\n if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int count = k;\n boolean bool = false;\n while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }\n if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int count = k;\n boolean bool = false;\n while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }\n if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = k;",
"count",
"k",
"boolean bool = false;",
"bool",
"false",
"while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }",
"count<=b",
"count",
"b",
"{\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }",
"if (a<=count&&count<=b)bool=true;",
"a<=count&&count<=b",
"a<=count",
"a",
"count",
"count<=b",
"count",
"b",
"bool=true",
"bool",
"true",
"count+=k",
"count",
"k",
"if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");",
"bool",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int count = k;\n boolean bool = false;\n while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }\n if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int count = k;\n boolean bool = false;\n while (count<=b){\n if (a<=count&&count<=b)bool=true;\n count+=k;\n }\n if (bool)System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int count = k;
boolean bool = false;
while (count<=b){
if (a<=count&&count<=b)bool=true;
count+=k;
}
if (bool)System.out.println("OK");
else System.out.println("NG");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
18,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
17,
29,
4,
18,
13,
17,
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
],
[
80,
11
],
[
80,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
12,
23
],
[
23,
24
],
[
80,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
27,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
27,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
27,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
25,
75
],
[
75,
76
],
[
25,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n\n for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }\n\n os.println(\"NG\");\n }\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n\n for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }\n\n os.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }",
"main",
"{\n solve(System.in, System.out);\n }",
"solve(System.in, System.out)",
"solve",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n\n for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }\n\n os.println(\"NG\");\n }",
"solve",
"{\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n\n for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }\n\n os.println(\"NG\");\n }",
"Scanner scan = new Scanner(is);",
"scan",
"new Scanner(is)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }",
"{\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }",
"if (i % K == 0){\n os.println(\"OK\");\n return;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n os.println(\"OK\");\n return;\n }",
"os.println(\"OK\")",
"os.println",
"os",
"\"OK\"",
"return;",
"os.println(\"NG\")",
"os.println",
"os",
"\"NG\"",
"InputStream is",
"is",
"PrintStream os",
"os",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n\n for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }\n\n os.println(\"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n\n for(int i = A; i <= B; i++) {\n if (i % K == 0){\n os.println(\"OK\");\n return;\n }\n }\n\n os.println(\"NG\");\n }\n}",
"Main"
] |
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
solve(System.in, System.out);
}
static void solve(InputStream is, PrintStream os) {
// Your code here!
Scanner scan = new Scanner(is);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
for(int i = A; i <= B; i++) {
if (i % K == 0){
os.println("OK");
return;
}
}
os.println("NG");
}
}
|
[
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,
14,
2,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
27,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
27,
54
],
[
54,
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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\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 k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }",
"a / k == b / k && a % k != 0 && b % k != 0",
"a / k == b / k && a % k != 0 && b % k != 0",
"a / k == b / k",
"a / k",
"a",
"k",
"b / k",
"b",
"k",
"a % k != 0",
"a % k",
"a",
"k",
"0",
"b % k != 0",
"b % k",
"b",
"k",
"0",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a / k == b / k && a % k != 0 && b % k != 0){\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
if(a / k == b / k && a % k != 0 && b % k != 0){
System.out.println("NG");
} else {
System.out.println("OK");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
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,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
213,
11
],
[
213,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
14,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
12,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
80,
87
],
[
87,
88
],
[
87,
89
],
[
80,
91
],
[
91,
92
],
[
91,
93
],
[
80,
94
],
[
94,
95
],
[
94,
96
],
[
80,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
100,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
111,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
107,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
130,
131
],
[
99,
132
],
[
132,
133
],
[
80,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
80,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
148,
159
],
[
159,
160
],
[
80,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
164,
174
],
[
174,
175
],
[
163,
176
],
[
176,
177
],
[
177,
178
],
[
80,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
182,
186
],
[
186,
187
],
[
181,
188
],
[
188,
189
],
[
188,
190
],
[
181,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
181,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
181,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
0,
212
],
[
212,
213
],
[
212,
214
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint c = Integer.parseInt(sc.next());\n\t\tString ans = \"NG\";\n\t\tfor(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t}\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint c = Integer.parseInt(sc.next());\n\t\tString ans = \"NG\";\n\t\tfor(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint c = Integer.parseInt(sc.next());\n\t\tString ans = \"NG\";\n\t\tfor(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t}",
"main",
"{\n\t\tFastScanner sc = new FastScanner();\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint c = Integer.parseInt(sc.next());\n\t\tString ans = \"NG\";\n\t\tfor(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t}",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int a = Integer.parseInt(sc.next());",
"a",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int b = Integer.parseInt(sc.next());",
"b",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int c = Integer.parseInt(sc.next());",
"c",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"for(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}",
"int i = b;",
"int i = b;",
"i",
"b",
"i <= c",
"i",
"c",
"i++",
"i++",
"i",
"{\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}",
"if(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}",
"i > 0 && (i % a) == 0",
"i > 0",
"i",
"0",
"(i % a) == 0",
"(i % a)",
"i",
"a",
"0",
"{\n\t\t\t\tans = \"OK\";\n\t\t\t}",
"ans = \"OK\"",
"ans",
"\"OK\"",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = in.read(buffer);\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 buflen = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint c = Integer.parseInt(sc.next());\n\t\tString ans = \"NG\";\n\t\tfor(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint c = Integer.parseInt(sc.next());\n\t\tString ans = \"NG\";\n\t\tfor(int i = b; i <= c; i++) {\n\t\t\tif(i > 0 && (i % a) == 0) {\n\t\t\t\tans = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t}\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
int c = Integer.parseInt(sc.next());
String ans = "NG";
for(int i = b; i <= c; i++) {
if(i > 0 && (i % a) == 0) {
ans = "OK";
}
}
System.out.print(ans);
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
53,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int param = scan.nextInt();\n\n int from = scan.nextInt();\n int to = scan.nextInt();\n\n boolean is = false;\n\n for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }\n\n if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int param = scan.nextInt();\n\n int from = scan.nextInt();\n int to = scan.nextInt();\n\n boolean is = false;\n\n for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }\n\n if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int param = scan.nextInt();\n\n int from = scan.nextInt();\n int to = scan.nextInt();\n\n boolean is = false;\n\n for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }\n\n if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n\n int param = scan.nextInt();\n\n int from = scan.nextInt();\n int to = scan.nextInt();\n\n boolean is = false;\n\n for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }\n\n if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int param = scan.nextInt();",
"param",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int from = scan.nextInt();",
"from",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int to = scan.nextInt();",
"to",
"scan.nextInt()",
"scan.nextInt",
"scan",
"boolean is = false;",
"is",
"false",
"for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }",
"int i = from;",
"int i = from;",
"i",
"from",
"i <= to",
"i",
"to",
"i++",
"i++",
"i",
"{\n if (i % param == 0) {\n is = true;\n }\n }",
"{\n if (i % param == 0) {\n is = true;\n }\n }",
"if (i % param == 0) {\n is = true;\n }",
"i % param == 0",
"i % param",
"i",
"param",
"0",
"{\n is = true;\n }",
"is = true",
"is",
"true",
"if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"is",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int param = scan.nextInt();\n\n int from = scan.nextInt();\n int to = scan.nextInt();\n\n boolean is = false;\n\n for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }\n\n if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int param = scan.nextInt();\n\n int from = scan.nextInt();\n int to = scan.nextInt();\n\n boolean is = false;\n\n for (int i = from; i <= to; i++) {\n if (i % param == 0) {\n is = true;\n }\n }\n\n if (is) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int param = scan.nextInt();
int from = scan.nextInt();
int to = scan.nextInt();
boolean is = false;
for (int i = from; i <= to; i++) {
if (i % param == 0) {
is = true;
}
}
if (is) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
52,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flag=0;\n for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }\n if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\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 k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flag=0;\n for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }\n if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flag=0;\n for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }\n if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flag=0;\n for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }\n if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int flag=0;",
"flag",
"0",
"for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n flag++;\n }\n }",
"{\n if(i%k==0){\n flag++;\n }\n }",
"if(i%k==0){\n flag++;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n flag++;\n }",
"flag++",
"flag",
"if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"flag>0",
"flag",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flag=0;\n for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }\n if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flag=0;\n for( int i=a;i<=b;i++){\n if(i%k==0){\n flag++;\n }\n }\n if(flag>0){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int flag=0;
for( int i=a;i<=b;i++){
if(i%k==0){
flag++;
}
}
if(flag>0){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
2,
2,
13,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint kyori=(b/k)*k;\n\t\t\n\t\tif(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tsc.close();\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\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint kyori=(b/k)*k;\n\t\t\n\t\tif(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint kyori=(b/k)*k;\n\t\t\n\t\tif(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint kyori=(b/k)*k;\n\t\t\n\t\tif(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kyori=(b/k)*k;",
"kyori",
"(b/k)*k",
"(b/k)",
"b",
"k",
"k",
"if(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"a<=kyori",
"a",
"kyori",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint kyori=(b/k)*k;\n\t\t\n\t\tif(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint kyori=(b/k)*k;\n\t\t\n\t\tif(a<=kyori) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tsc.close();\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);
int k=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
int kyori=(b/k)*k;
if(a<=kyori) {
System.out.println("OK");
}else {
System.out.println("NG");
}
sc.close();
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint k = s.nextInt();\n\t\tint a = s.nextInt();\n\t\tint b = s.nextInt();\n\t\tint flag = 0;\n\n\t\tfor (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\ts.close();\n\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\n\t\tint k = s.nextInt();\n\t\tint a = s.nextInt();\n\t\tint b = s.nextInt();\n\t\tint flag = 0;\n\n\t\tfor (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\ts.close();\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint k = s.nextInt();\n\t\tint a = s.nextInt();\n\t\tint b = s.nextInt();\n\t\tint flag = 0;\n\n\t\tfor (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\ts.close();\n\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint k = s.nextInt();\n\t\tint a = s.nextInt();\n\t\tint b = s.nextInt();\n\t\tint flag = 0;\n\n\t\tfor (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\ts.close();\n\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int k = s.nextInt();",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"int a = s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"int b = s.nextInt();",
"b",
"s.nextInt()",
"s.nextInt",
"s",
"int flag = 0;",
"flag",
"0",
"for (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"k * i <= 1000",
"k * i",
"k",
"i",
"1000",
"i++",
"i++",
"i",
"{\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}",
"if(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}",
"k * i >= a && k * i <= b",
"k * i >= a",
"k * i",
"k",
"i",
"a",
"k * i <= b",
"k * i",
"k",
"i",
"b",
"{\n\t\t\t\tflag++;\n\t\t\t}",
"flag++",
"flag",
"if(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"flag != 0",
"flag",
"0",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"s.close()",
"s.close",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint k = s.nextInt();\n\t\tint a = s.nextInt();\n\t\tint b = s.nextInt();\n\t\tint flag = 0;\n\n\t\tfor (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\ts.close();\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint k = s.nextInt();\n\t\tint a = s.nextInt();\n\t\tint b = s.nextInt();\n\t\tint flag = 0;\n\n\t\tfor (int i = 1; k * i <= 1000; i++) {\n\t\t\tif(k * i >= a && k * i <= b) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif(flag != 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\ts.close();\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int k = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
int flag = 0;
for (int i = 1; k * i <= 1000; i++) {
if(k * i >= a && k * i <= b) {
flag++;
}
}
if(flag != 0) {
System.out.println("OK");
} else {
System.out.println("NG");
}
s.close();
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
52,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\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 k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }",
"{\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }",
"if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }",
"k * i >= a && k * i <=b",
"k * i >= a",
"k * i",
"k",
"i",
"a",
"k * i <=b",
"k * i",
"k",
"i",
"b",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n for(int i=1; i<=1000; i++) {\n if(k * i >= a && k * i <=b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
for(int i=1; i<=1000; i++) {
if(k * i >= a && k * i <=b) {
System.out.println("OK");
return;
}
}
System.out.println("NG");
}
}
|
[
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,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
14,
2,
2,
2,
13,
17,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
51,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
46,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
72,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tInteger K = Integer.parseInt(scanner.next());\n\t\tInteger A = Integer.parseInt(scanner.next());\n\t\tInteger B = Integer.parseInt(scanner.next());\n\n\t\tint a = A / K;\n\t\tint num = A % K;\n\t\tif (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\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 scanner = new Scanner(System.in);\n\n\t\tInteger K = Integer.parseInt(scanner.next());\n\t\tInteger A = Integer.parseInt(scanner.next());\n\t\tInteger B = Integer.parseInt(scanner.next());\n\n\t\tint a = A / K;\n\t\tint num = A % K;\n\t\tif (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tInteger K = Integer.parseInt(scanner.next());\n\t\tInteger A = Integer.parseInt(scanner.next());\n\t\tInteger B = Integer.parseInt(scanner.next());\n\n\t\tint a = A / K;\n\t\tint num = A % K;\n\t\tif (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tInteger K = Integer.parseInt(scanner.next());\n\t\tInteger A = Integer.parseInt(scanner.next());\n\t\tInteger B = Integer.parseInt(scanner.next());\n\n\t\tint a = A / K;\n\t\tint num = A % K;\n\t\tif (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"Integer K = Integer.parseInt(scanner.next());",
"K",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"Integer A = Integer.parseInt(scanner.next());",
"A",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"Integer B = Integer.parseInt(scanner.next());",
"B",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int a = A / K;",
"a",
"A / K",
"A",
"K",
"int num = A % K;",
"num",
"A % K",
"A",
"K",
"if (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}",
"num == 0",
"num",
"0",
"{\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}",
"if (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}",
"a * K <= B",
"a * K",
"a",
"K",
"B",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"{\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}",
"if ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}",
"(a+1) * K <= B",
"(a+1) * K",
"(a+1)",
"a",
"1",
"K",
"B",
"{\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tInteger K = Integer.parseInt(scanner.next());\n\t\tInteger A = Integer.parseInt(scanner.next());\n\t\tInteger B = Integer.parseInt(scanner.next());\n\n\t\tint a = A / K;\n\t\tint num = A % K;\n\t\tif (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tInteger K = Integer.parseInt(scanner.next());\n\t\tInteger A = Integer.parseInt(scanner.next());\n\t\tInteger B = Integer.parseInt(scanner.next());\n\n\t\tint a = A / K;\n\t\tint num = A % K;\n\t\tif (num == 0) {\n\t\t\tif (a * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ((a+1) * K <= B) {\n\t\t\t\tSystem.out.println(\"OK\");;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Integer K = Integer.parseInt(scanner.next());
Integer A = Integer.parseInt(scanner.next());
Integer B = Integer.parseInt(scanner.next());
int a = A / K;
int num = A % K;
if (num == 0) {
if (a * K <= B) {
System.out.println("OK");
} else {
System.out.println("NG");
}
} else {
if ((a+1) * K <= B) {
System.out.println("OK");;
} else {
System.out.println("NG");
}
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
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
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.*;\npublic class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint k=stdIn.nextInt();\n\t\tint a=stdIn.nextInt();\n\t\tint b=stdIn.nextInt();\n\t\tint x=0;\n\t\t\n\t\tfor(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n \n\t}\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint k=stdIn.nextInt();\n\t\tint a=stdIn.nextInt();\n\t\tint b=stdIn.nextInt();\n\t\tint x=0;\n\t\t\n\t\tfor(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n \n\t}\n \n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint k=stdIn.nextInt();\n\t\tint a=stdIn.nextInt();\n\t\tint b=stdIn.nextInt();\n\t\tint x=0;\n\t\t\n\t\tfor(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n \n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint k=stdIn.nextInt();\n\t\tint a=stdIn.nextInt();\n\t\tint b=stdIn.nextInt();\n\t\tint x=0;\n\t\t\n\t\tfor(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n \n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int k=stdIn.nextInt();",
"k",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int a=stdIn.nextInt();",
"a",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int b=stdIn.nextInt();",
"b",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int x=0;",
"x",
"0",
"for(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = a;",
"int i = a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}",
"x=1",
"x",
"1",
"break;",
"if(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"x==1",
"x",
"1",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint k=stdIn.nextInt();\n\t\tint a=stdIn.nextInt();\n\t\tint b=stdIn.nextInt();\n\t\tint x=0;\n\t\t\n\t\tfor(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n \n\t}\n \n}",
"public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint k=stdIn.nextInt();\n\t\tint a=stdIn.nextInt();\n\t\tint b=stdIn.nextInt();\n\t\tint x=0;\n\t\t\n\t\tfor(int i = a;i<=b;i++) {\n\t\t\tif(i%k==0) {\n\t\t\t\tx=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(x==1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n \n\t}\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int k=stdIn.nextInt();
int a=stdIn.nextInt();
int b=stdIn.nextInt();
int x=0;
for(int i = a;i<=b;i++) {
if(i%k==0) {
x=1;
break;
}
}
if(x==1) {
System.out.println("OK");
}
else {
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
41,
13,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
8,
2,
13,
2,
2,
13,
13,
13,
17,
17,
29,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
53,
61
],
[
53,
62
],
[
8,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.io.*;\n\npublic class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String[] arr = reader.readLine().split (\" \");\n int A, B;\n A = Integer.parseInt (arr[0]);\n B = Integer.parseInt (arr[1]);\n System.out.println (A <= B / K * K ? \"OK\" : \"NG\");\n return;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String[] arr = reader.readLine().split (\" \");\n int A, B;\n A = Integer.parseInt (arr[0]);\n B = Integer.parseInt (arr[1]);\n System.out.println (A <= B / K * K ? \"OK\" : \"NG\");\n return;\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String[] arr = reader.readLine().split (\" \");\n int A, B;\n A = Integer.parseInt (arr[0]);\n B = Integer.parseInt (arr[1]);\n System.out.println (A <= B / K * K ? \"OK\" : \"NG\");\n return;\n }",
"main",
"{\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String[] arr = reader.readLine().split (\" \");\n int A, B;\n A = Integer.parseInt (arr[0]);\n B = Integer.parseInt (arr[1]);\n System.out.println (A <= B / K * K ? \"OK\" : \"NG\");\n return;\n }",
"BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));",
"reader",
"new BufferedReader (new InputStreamReader (System.in))",
"int K = Integer.parseInt (reader.readLine());",
"K",
"Integer.parseInt (reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] arr = reader.readLine().split (\" \");",
"arr",
"reader.readLine().split (\" \")",
"reader.readLine().split",
"reader.readLine()",
"reader.readLine",
"reader",
"\" \"",
"int A",
"A",
"B;",
"B",
"A = Integer.parseInt (arr[0])",
"A",
"Integer.parseInt (arr[0])",
"Integer.parseInt",
"Integer",
"arr[0]",
"arr",
"0",
"B = Integer.parseInt (arr[1])",
"B",
"Integer.parseInt (arr[1])",
"Integer.parseInt",
"Integer",
"arr[1]",
"arr",
"1",
"System.out.println (A <= B / K * K ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"A <= B / K * K ? \"OK\" : \"NG\"",
"A <= B / K * K",
"A",
"B / K * K",
"B / K",
"B",
"K",
"K",
"\"OK\"",
"\"NG\"",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String[] arr = reader.readLine().split (\" \");\n int A, B;\n A = Integer.parseInt (arr[0]);\n B = Integer.parseInt (arr[1]);\n System.out.println (A <= B / K * K ? \"OK\" : \"NG\");\n return;\n }\n}",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String[] arr = reader.readLine().split (\" \");\n int A, B;\n A = Integer.parseInt (arr[0]);\n B = Integer.parseInt (arr[1]);\n System.out.println (A <= B / K * K ? \"OK\" : \"NG\");\n return;\n }\n}",
"Main"
] |
import java.io.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader reader =
new BufferedReader (new InputStreamReader (System.in));
int K = Integer.parseInt (reader.readLine());
String[] arr = reader.readLine().split (" ");
int A, B;
A = Integer.parseInt (arr[0]);
B = Integer.parseInt (arr[1]);
System.out.println (A <= B / K * K ? "OK" : "NG");
return;
}
}
|
[
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,
13,
4,
18,
13,
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,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
13,
13,
4,
18,
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
],
[
95,
14
],
[
95,
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
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
34,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
17,
56
],
[
56,
57
],
[
57,
58
],
[
17,
59
],
[
59,
60
],
[
59,
61
],
[
17,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
17,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
17,
89
],
[
89,
90
],
[
90,
91
],
[
15,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] |
[
"import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int k = Integer.parseInt(br.readLine());\n String[] in = br.readLine().split(\" \");\n int a = Integer.parseInt(in[0]);\n int b = Integer.parseInt(in[1]);\n\n br.close();\n\n String ans = \"NG\";\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }\n\n bw.write(ans);\n\n bw.flush();\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int k = Integer.parseInt(br.readLine());\n String[] in = br.readLine().split(\" \");\n int a = Integer.parseInt(in[0]);\n int b = Integer.parseInt(in[1]);\n\n br.close();\n\n String ans = \"NG\";\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }\n\n bw.write(ans);\n\n bw.flush();\n\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int k = Integer.parseInt(br.readLine());\n String[] in = br.readLine().split(\" \");\n int a = Integer.parseInt(in[0]);\n int b = Integer.parseInt(in[1]);\n\n br.close();\n\n String ans = \"NG\";\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }\n\n bw.write(ans);\n\n bw.flush();\n\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int k = Integer.parseInt(br.readLine());\n String[] in = br.readLine().split(\" \");\n int a = Integer.parseInt(in[0]);\n int b = Integer.parseInt(in[1]);\n\n br.close();\n\n String ans = \"NG\";\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }\n\n bw.write(ans);\n\n bw.flush();\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"int k = Integer.parseInt(br.readLine());",
"k",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] in = br.readLine().split(\" \");",
"in",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a = Integer.parseInt(in[0]);",
"a",
"Integer.parseInt(in[0])",
"Integer.parseInt",
"Integer",
"in[0]",
"in",
"0",
"int b = Integer.parseInt(in[1]);",
"b",
"Integer.parseInt(in[1])",
"Integer.parseInt",
"Integer",
"in[1]",
"in",
"1",
"br.close()",
"br.close",
"br",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if (i % k == 0) {\n ans = \"OK\";\n }\n }",
"{\n if (i % k == 0) {\n ans = \"OK\";\n }\n }",
"if (i % k == 0) {\n ans = \"OK\";\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n ans = \"OK\";\n }",
"ans = \"OK\"",
"ans",
"\"OK\"",
"bw.write(ans)",
"bw.write",
"bw",
"ans",
"bw.flush()",
"bw.flush",
"bw",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int k = Integer.parseInt(br.readLine());\n String[] in = br.readLine().split(\" \");\n int a = Integer.parseInt(in[0]);\n int b = Integer.parseInt(in[1]);\n\n br.close();\n\n String ans = \"NG\";\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }\n\n bw.write(ans);\n\n bw.flush();\n\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int k = Integer.parseInt(br.readLine());\n String[] in = br.readLine().split(\" \");\n int a = Integer.parseInt(in[0]);\n int b = Integer.parseInt(in[1]);\n\n br.close();\n\n String ans = \"NG\";\n\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n ans = \"OK\";\n }\n }\n\n bw.write(ans);\n\n bw.flush();\n\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int k = Integer.parseInt(br.readLine());
String[] in = br.readLine().split(" ");
int a = Integer.parseInt(in[0]);
int b = Integer.parseInt(in[1]);
br.close();
String ans = "NG";
for (int i = a; i <= b; i++) {
if (i % k == 0) {
ans = "OK";
}
}
bw.write(ans);
bw.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
13,
11,
1,
0,
13,
13,
2,
13,
13,
1,
40,
13,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] |
[
"import java.util.*; \npublic class Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int k;\n k=in.nextInt();\n int a,b,i,num;\n a=in.nextInt();\n b=in.nextInt();\n num=a;\n for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }\n System.out.println(\"NG\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int k;\n k=in.nextInt();\n int a,b,i,num;\n a=in.nextInt();\n b=in.nextInt();\n num=a;\n for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int k;\n k=in.nextInt();\n int a,b,i,num;\n a=in.nextInt();\n b=in.nextInt();\n num=a;\n for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n int k;\n k=in.nextInt();\n int a,b,i,num;\n a=in.nextInt();\n b=in.nextInt();\n num=a;\n for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }\n System.out.println(\"NG\");\n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int k;",
"k",
"k=in.nextInt()",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"int a",
"a",
"b",
"b",
"i",
"i",
"num;",
"num",
"a=in.nextInt()",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"b=in.nextInt()",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"num=a",
"num",
"a",
"for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }",
"i=num;",
"i=num",
"i",
"num",
"i<=b",
"i",
"b",
"i++,num++",
"i++",
"i",
"num++",
"num",
"{\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }",
"{\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }",
"if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n System.out.println(\"OK\");\n System.exit(0);\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int k;\n k=in.nextInt();\n int a,b,i,num;\n a=in.nextInt();\n b=in.nextInt();\n num=a;\n for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }\n System.out.println(\"NG\");\n }\n}",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int k;\n k=in.nextInt();\n int a,b,i,num;\n a=in.nextInt();\n b=in.nextInt();\n num=a;\n for(i=num;i<=b;i++,num++)\n {\n if(i%k==0)\n {\n System.out.println(\"OK\");\n System.exit(0);\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int k;
k=in.nextInt();
int a,b,i,num;
a=in.nextInt();
b=in.nextInt();
num=a;
for(i=num;i<=b;i++,num++)
{
if(i%k==0)
{
System.out.println("OK");
System.exit(0);
}
}
System.out.println("NG");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
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,
13,
41,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
8,
2,
13,
13,
17,
17,
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
],
[
77,
14
],
[
77,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
17,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
17,
53
],
[
53,
54
],
[
54,
55
],
[
17,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
17,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
68,
73
],
[
15,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String str[] = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n in.close();\n int largest = (b/k) * k;\n System.out.println(a<=largest?\"OK\":\"NG\");\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.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String str[] = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n in.close();\n int largest = (b/k) * k;\n System.out.println(a<=largest?\"OK\":\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String str[] = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n in.close();\n int largest = (b/k) * k;\n System.out.println(a<=largest?\"OK\":\"NG\");\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String str[] = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n in.close();\n int largest = (b/k) * k;\n System.out.println(a<=largest?\"OK\":\"NG\");\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int k = Integer.parseInt(in.readLine());",
"k",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String str[] = in.readLine().split(\" \");",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int a = Integer.parseInt(str[0]);",
"a",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int b = Integer.parseInt(str[1]);",
"b",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"in.close()",
"in.close",
"in",
"int largest = (b/k) * k;",
"largest",
"(b/k) * k",
"(b/k)",
"b",
"k",
"k",
"System.out.println(a<=largest?\"OK\":\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a<=largest?\"OK\":\"NG\"",
"a<=largest",
"a",
"largest",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String str[] = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n in.close();\n int largest = (b/k) * k;\n System.out.println(a<=largest?\"OK\":\"NG\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String str[] = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n in.close();\n int largest = (b/k) * k;\n System.out.println(a<=largest?\"OK\":\"NG\");\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(in.readLine());
String str[] = in.readLine().split(" ");
int a = Integer.parseInt(str[0]);
int b = Integer.parseInt(str[1]);
in.close();
int largest = (b/k) * k;
System.out.println(a<=largest?"OK":"NG");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
2,
18,
13,
13,
17,
41,
13,
2,
18,
13,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
8,
2,
2,
2,
13,
17,
13,
2,
13,
13,
17,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
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,
29,
18,
4,
18,
4,
13,
17,
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,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
255,
8
],
[
255,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
255,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
255,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
255,
28
],
[
28,
29
],
[
28,
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
30,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
49,
60
],
[
28,
61
],
[
61,
62
],
[
28,
63
],
[
63,
64
],
[
255,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
67,
78
],
[
78,
79
],
[
79,
80
],
[
65,
81
],
[
81,
82
],
[
255,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
83,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
98,
99
],
[
83,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
102,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
83,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
83,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
83,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
83,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
158,
163
],
[
83,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
188,
189
],
[
166,
190
],
[
190,
191
],
[
164,
192
],
[
192,
193
],
[
83,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
196,
220
],
[
220,
221
],
[
194,
222
],
[
222,
223
],
[
83,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
226,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
231,
242
],
[
243,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
226,
250
],
[
250,
251
],
[
224,
252
],
[
252,
253
],
[
0,
254
],
[
254,
255
],
[
254,
256
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int k = in.ni();\n int a = in.ni(), b = in.ni();\n out.println(((a-1)/k<b/k)?\"OK\":\"NG\");\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int k = in.ni();\n int a = in.ni(), b = in.ni();\n out.println(((a-1)/k<b/k)?\"OK\":\"NG\");\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"Main",
"public static final long mod = (long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"public static final long INF = Long.MAX_VALUE/2;",
"INF",
"Long.MAX_VALUE/2",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"2",
"public static final int inf = Integer.MAX_VALUE/2;",
"inf",
"Integer.MAX_VALUE/2",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"2",
"static void solve(InputReader in, PrintWriter out){\n int k = in.ni();\n int a = in.ni(), b = in.ni();\n out.println(((a-1)/k<b/k)?\"OK\":\"NG\");\n }",
"solve",
"{\n int k = in.ni();\n int a = in.ni(), b = in.ni();\n out.println(((a-1)/k<b/k)?\"OK\":\"NG\");\n }",
"int k = in.ni();",
"k",
"in.ni()",
"in.ni",
"in",
"int a = in.ni()",
"a",
"in.ni()",
"in.ni",
"in",
"b = in.ni();",
"b",
"in.ni()",
"in.ni",
"in",
"out.println(((a-1)/k<b/k)?\"OK\":\"NG\")",
"out.println",
"out",
"((a-1)/k<b/k)?\"OK\":\"NG\"",
"((a-1)/k<b/k)",
"(a-1)/k",
"(a-1)",
"a",
"1",
"k",
"b/k",
"b",
"k",
"\"OK\"",
"\"NG\"",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }",
"main",
"{\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }",
"InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"solve(in, out)",
"solve",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }",
"InputReader",
"private BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"st = null",
"st",
"null",
"InputStream is",
"is",
"public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"ns",
"{\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }",
"catch (Exception e){\n throw new RuntimeException(e);\n }",
"Exception e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(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",
"public int ni(){\n return Integer.parseInt(ns());\n }",
"ni",
"{\n return Integer.parseInt(ns());\n }",
"return Integer.parseInt(ns());",
"Integer.parseInt(ns())",
"Integer.parseInt",
"Integer",
"ns()",
"ns",
"public long nl(){\n return Long.parseLong(ns());\n }",
"nl",
"{\n return Long.parseLong(ns());\n }",
"return Long.parseLong(ns());",
"Long.parseLong(ns())",
"Long.parseLong",
"Long",
"ns()",
"ns",
"public double nd(){\n return Double.parseDouble(ns());\n }",
"nd",
"{\n return Double.parseDouble(ns());\n }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"public char nc(){\n return ns().toCharArray()[0];\n }",
"nc",
"{\n return ns().toCharArray()[0];\n }",
"return ns().toCharArray()[0];",
"ns().toCharArray()[0]",
"ns().toCharArray()",
"ns().toCharArray",
"ns()",
"ns",
"0",
"public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"ni",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = ni();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = ni();\n }",
"{\n a[i] = ni();\n }",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }",
"nl",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nl();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nl();\n }",
"{\n a[i] = nl();\n }",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }",
"nd",
"{\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }",
"double[] a = new double[n];",
"a",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nd();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nd();\n }",
"{\n a[i] = nd();\n }",
"a[i] = nd()",
"a[i]",
"a",
"i",
"nd()",
"nd",
"return a;",
"a",
"int n",
"n",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int k = in.ni();\n int a = in.ni(), b = in.ni();\n out.println(((a-1)/k<b/k)?\"OK\":\"NG\");\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n int k = in.ni();\n int a = in.ni(), b = in.ni();\n out.println(((a-1)/k<b/k)?\"OK\":\"NG\");\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static final long mod = (long)1e9+7;
public static final long INF = Long.MAX_VALUE/2;
public static final int inf = Integer.MAX_VALUE/2;
static void solve(InputReader in, PrintWriter out){
int k = in.ni();
int a = in.ni(), b = in.ni();
out.println(((a-1)/k<b/k)?"OK":"NG");
}
public static void main(String[] args){
InputReader in = new InputReader(System.in);
PrintWriter out = new PrintWriter(System.out);
solve(in, out);
out.close();
}
public static class InputReader{
private BufferedReader br;
private StringTokenizer st;
public InputReader(InputStream is){
br = new BufferedReader(new InputStreamReader(is));
st = null;
}
public String ns(){
if(st == null || !st.hasMoreTokens()){
try{
st = new StringTokenizer(br.readLine());
}catch (Exception e){
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int ni(){
return Integer.parseInt(ns());
}
public long nl(){
return Long.parseLong(ns());
}
public double nd(){
return Double.parseDouble(ns());
}
public char nc(){
return ns().toCharArray()[0];
}
public int[] ni(int n){
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = ni();
}
return a;
}
public long[] nl(int n){
long[] a = new long[n];
for (int i = 0; i < n; i++) {
a[i] = nl();
}
return a;
}
public double[] nd(int n){
double[] a = new double[n];
for (int i = 0; i < n; i++) {
a[i] = nd();
}
return 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,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
37,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.Scanner;\npublic class Main\n{\n public static void main(String Args[])\n {\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int n=a%k;\n int num=k-n;\n if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String Args[])\n {\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int n=a%k;\n int num=k-n;\n if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n \n}",
"Main",
"public static void main(String Args[])\n {\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int n=a%k;\n int num=k-n;\n if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int n=a%k;\n int num=k-n;\n if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n=a%k;",
"n",
"a%k",
"a",
"k",
"int num=k-n;",
"num",
"k-n",
"k",
"n",
"if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");",
"a+num<=b||n==0",
"a+num<=b",
"a+num",
"a",
"num",
"b",
"n==0",
"n",
"0",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String Args[]",
"Args",
"public class Main\n{\n public static void main(String Args[])\n {\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int n=a%k;\n int num=k-n;\n if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n \n}",
"public class Main\n{\n public static void main(String Args[])\n {\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n int n=a%k;\n int num=k-n;\n if(a+num<=b||n==0)\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n \n}",
"Main"
] |
import java.util.Scanner;
public class Main
{
public static void main(String Args[])
{
Scanner sc=new Scanner(System.in);
int k=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
int n=a%k;
int num=k-n;
if(a+num<=b||n==0)
System.out.println("OK");
else
System.out.println("NG");
}
}
|
[
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,
41,
13,
17,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
17,
2,
13,
17,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
50,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // input\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n String ans = \"\";\n int x = a / k;\n int y = b / k;\n int z = a % k;\n int w = b % k;\n if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";\n\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // input\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n String ans = \"\";\n int x = a / k;\n int y = b / k;\n int z = a % k;\n int w = b % k;\n if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n // input\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n String ans = \"\";\n int x = a / k;\n int y = b / k;\n int z = a % k;\n int w = b % k;\n if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";\n\n System.out.println(ans);\n }",
"main",
"{\n // input\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n String ans = \"\";\n int x = a / k;\n int y = b / k;\n int z = a % k;\n int w = b % k;\n if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";\n\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"\";",
"ans",
"\"\"",
"int x = a / k;",
"x",
"a / k",
"a",
"k",
"int y = b / k;",
"y",
"b / k",
"b",
"k",
"int z = a % k;",
"z",
"a % k",
"a",
"k",
"int w = b % k;",
"w",
"b % k",
"b",
"k",
"if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";",
"y - x >= 1 || (z == 0 || w == 0)",
"y - x >= 1",
"y - x",
"y",
"x",
"1",
"(z == 0 || w == 0)",
"z == 0",
"z",
"0",
"w == 0",
"w",
"0",
"ans = \"OK\"",
"ans",
"\"OK\"",
"ans = \"NG\"",
"ans",
"\"NG\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n // input\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n String ans = \"\";\n int x = a / k;\n int y = b / k;\n int z = a % k;\n int w = b % k;\n if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";\n\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n // input\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n String ans = \"\";\n int x = a / k;\n int y = b / k;\n int z = a % k;\n int w = b % k;\n if (y - x >= 1 || (z == 0 || w == 0)) ans = \"OK\";\n else ans = \"NG\";\n\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// input
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
String ans = "";
int x = a / k;
int y = b / k;
int z = a % k;
int w = b % k;
if (y - x >= 1 || (z == 0 || w == 0)) ans = "OK";
else ans = "NG";
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
2,
2,
13,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
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
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
10,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
10,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
10,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
44,
54
],
[
44,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }\n }",
"main",
"{\n try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }\n }",
"try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }",
"{\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }",
"Scanner s = new Scanner(System.in)",
"Scanner s = new Scanner(System.in)",
"new Scanner(System.in)",
"int k = s.nextInt();",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"int a = s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"int b = s.nextInt();",
"b",
"s.nextInt()",
"s.nextInt",
"s",
"int mod = a % k;",
"mod",
"a % k",
"a",
"k",
"int d = b - a;",
"d",
"b - a",
"b",
"a",
"System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\"",
"(mod == 0 || (k - mod) <= d)",
"mod == 0",
"mod",
"0",
"(k - mod) <= d",
"(k - mod)",
"k",
"mod",
"d",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n try (Scanner s = new Scanner(System.in)) {\n int k = s.nextInt();\n int a = s.nextInt();\n int b = s.nextInt();\n int mod = a % k;\n int d = b - a;\n System.out.println((mod == 0 || (k - mod) <= d) ? \"OK\" : \"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
try (Scanner s = new Scanner(System.in)) {
int k = s.nextInt();
int a = s.nextInt();
int b = s.nextInt();
int mod = a % k;
int d = b - a;
System.out.println((mod == 0 || (k - mod) <= d) ? "OK" : "NG");
}
}
}
|
[
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,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
6,
58
],
[
58,
59
]
] |
[
"//WeLoveGolf.java\nimport java.util.Scanner;\nclass Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n\n int sum=b/k;\n int ans=k*sum;\n //System.out.println(\"sum\"+sum);\n //System.out.println(\"ans\"+ans);\n\n if(ans>=a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n\n int sum=b/k;\n int ans=k*sum;\n //System.out.println(\"sum\"+sum);\n //System.out.println(\"ans\"+ans);\n\n if(ans>=a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n\n int sum=b/k;\n int ans=k*sum;\n //System.out.println(\"sum\"+sum);\n //System.out.println(\"ans\"+ans);\n\n if(ans>=a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n sc.close();\n }",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n\n int sum=b/k;\n int ans=k*sum;\n //System.out.println(\"sum\"+sum);\n //System.out.println(\"ans\"+ans);\n\n if(ans>=a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n sc.close();\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum=b/k;",
"sum",
"b/k",
"b",
"k",
"int ans=k*sum;",
"ans",
"k*sum",
"k",
"sum",
"if(ans>=a){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }",
"ans>=a",
"ans",
"a",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args"
] |
//WeLoveGolf.java
import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int k=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
int sum=b/k;
int ans=k*sum;
//System.out.println("sum"+sum);
//System.out.println("ans"+ans);
if(ans>=a){
System.out.println("OK");
}
else{
System.out.println("NG");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
30,
0,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
29,
4,
18,
13,
20,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
77,
84
],
[
69,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
],
[
126,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
99,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
122,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str1 = lines[0];\n int mult = Integer.parseInt(str1); //K\n \n String str2 = lines[1];\n String[] str21 = str2.split(\" \");\n int from = Integer.parseInt(str21[0]); //A\n int till = Integer.parseInt(str21[1]); //B\n\n for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }\n\n System.out.println(\"NG\");\n\n\n \n \n \n \n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str1 = lines[0];\n int mult = Integer.parseInt(str1); //K\n \n String str2 = lines[1];\n String[] str21 = str2.split(\" \");\n int from = Integer.parseInt(str21[0]); //A\n int till = Integer.parseInt(str21[1]); //B\n\n for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }\n\n System.out.println(\"NG\");\n\n\n \n \n \n \n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str1 = lines[0];\n int mult = Integer.parseInt(str1); //K\n \n String str2 = lines[1];\n String[] str21 = str2.split(\" \");\n int from = Integer.parseInt(str21[0]); //A\n int till = Integer.parseInt(str21[1]); //B\n\n for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }\n\n System.out.println(\"NG\");\n\n\n \n \n \n \n }",
"main",
"{\n String[] lines = getStdin();\n String str1 = lines[0];\n int mult = Integer.parseInt(str1); //K\n \n String str2 = lines[1];\n String[] str21 = str2.split(\" \");\n int from = Integer.parseInt(str21[0]); //A\n int till = Integer.parseInt(str21[1]); //B\n\n for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }\n\n System.out.println(\"NG\");\n\n\n \n \n \n \n }",
"String[] lines = getStdin();",
"lines",
"getStdin()",
"getStdin",
"String str1 = lines[0];",
"str1",
"lines[0]",
"lines",
"0",
"int mult = Integer.parseInt(str1);",
"mult",
"Integer.parseInt(str1)",
"Integer.parseInt",
"Integer",
"str1",
"String str2 = lines[1];",
"str2",
"lines[1]",
"lines",
"1",
"String[] str21 = str2.split(\" \");",
"str21",
"str2.split(\" \")",
"str2.split",
"str2",
"\" \"",
"int from = Integer.parseInt(str21[0]);",
"from",
"Integer.parseInt(str21[0])",
"Integer.parseInt",
"Integer",
"str21[0]",
"str21",
"0",
"int till = Integer.parseInt(str21[1]);",
"till",
"Integer.parseInt(str21[1])",
"Integer.parseInt",
"Integer",
"str21[1]",
"str21",
"1",
"for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }",
"{\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }",
"int multiple = mult * i ;",
"multiple",
"mult * i",
"mult",
"i",
"if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }",
"multiple >= from && multiple <= till",
"multiple >= from",
"multiple",
"from",
"multiple <= till",
"multiple",
"till",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"{\n multiple = mult; //=7\n }",
"multiple = mult",
"multiple",
"mult",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"getStdin",
"{\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"ArrayList<String> lines = new ArrayList<>();",
"lines",
"new ArrayList<>()",
"while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n lines.add(scanner.nextLine());\n }",
"lines.add(scanner.nextLine())",
"lines.add",
"lines",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"return lines.toArray(new String[lines.size()]);",
"lines.toArray(new String[lines.size()])",
"lines.toArray",
"lines",
"new String[lines.size()]",
"lines.size()",
"lines.size",
"lines",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str1 = lines[0];\n int mult = Integer.parseInt(str1); //K\n \n String str2 = lines[1];\n String[] str21 = str2.split(\" \");\n int from = Integer.parseInt(str21[0]); //A\n int till = Integer.parseInt(str21[1]); //B\n\n for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }\n\n System.out.println(\"NG\");\n\n\n \n \n \n \n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String str1 = lines[0];\n int mult = Integer.parseInt(str1); //K\n \n String str2 = lines[1];\n String[] str21 = str2.split(\" \");\n int from = Integer.parseInt(str21[0]); //A\n int till = Integer.parseInt(str21[1]); //B\n\n for (int i = 1; i <= 1000 ; i++){\n int multiple = mult * i ;\n //System.out.println(multiple);\n if (multiple >= from && multiple <= till){\n System.out.println(\"OK\");\n return;\n } else {\n multiple = mult; //=7\n }\n }\n\n System.out.println(\"NG\");\n\n\n \n \n \n \n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
String[] lines = getStdin();
String str1 = lines[0];
int mult = Integer.parseInt(str1); //K
String str2 = lines[1];
String[] str21 = str2.split(" ");
int from = Integer.parseInt(str21[0]); //A
int till = Integer.parseInt(str21[1]); //B
for (int i = 1; i <= 1000 ; i++){
int multiple = mult * i ;
//System.out.println(multiple);
if (multiple >= from && multiple <= till){
System.out.println("OK");
return;
} else {
multiple = mult; //=7
}
}
System.out.println("NG");
}
private static String[] getStdin() {
Scanner scanner = new Scanner(System.in);
ArrayList<String> lines = new ArrayList<>();
while (scanner.hasNext()) {
lines.add(scanner.nextLine());
}
return lines.toArray(new String[lines.size()]);
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
8,
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
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"//package atcoder;\n \nimport java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint count = 0;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n}\n\t\t",
"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 K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint count = 0;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint count = 0;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint count = 0;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"int i=A;",
"int i=A;",
"i",
"A",
"i<B+1",
"i",
"B+1",
"B",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"if(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}",
"i%K == 0",
"i%K",
"i",
"K",
"0",
"{\n\t\t\t\tcount ++;\n\t\t\t}",
"count ++",
"count",
"if(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"count>0",
"count",
"0",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint count = 0;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint count = 0;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K == 0) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count>0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n}",
"Main"
] |
//package atcoder;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int count = 0;
for(int i=A;i<B+1;i++) {
if(i%K == 0) {
count ++;
}
}
if(count>0) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
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
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n String result = \"NG\";\n\n for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }\n System.out.println(result);\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n String result = \"NG\";\n\n for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n String result = \"NG\";\n\n for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }\n System.out.println(result);\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n String result = \"NG\";\n\n for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }\n System.out.println(result);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String result = \"NG\";",
"result",
"\"NG\"",
"for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }",
"{\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }",
"if (i % K == 0) {\n result= \"OK\";\n break;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n result= \"OK\";\n break;\n }",
"result= \"OK\"",
"result",
"\"OK\"",
"break;",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n String result = \"NG\";\n\n for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }\n System.out.println(result);\n }\n}",
"public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n String result = \"NG\";\n\n for (int i = A; i <= B; i++) {\n if (i % K == 0) {\n result= \"OK\";\n break;\n }\n }\n System.out.println(result);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
String result = "NG";
for (int i = A; i <= B; i++) {
if (i % K == 0) {
result= "OK";
break;
}
}
System.out.println(result);
}
}
|
[
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,
4,
18,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
42,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
50,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n scanner.close();\n\n if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }\n\n if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n scanner.close();\n\n if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }\n\n if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n scanner.close();\n\n if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }\n\n if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n scanner.close();\n\n if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }\n\n if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int K = scanner.nextInt();",
"K",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int A = scanner.nextInt();",
"A",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int B = scanner.nextInt();",
"B",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.close()",
"scanner.close",
"scanner",
"if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }",
"A % K == 0 || B % K == 0",
"A % K == 0",
"A % K",
"A",
"K",
"0",
"B % K == 0",
"B % K",
"B",
"K",
"0",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }",
"A / K == B / K",
"A / K",
"A",
"K",
"B / K",
"B",
"K",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n scanner.close();\n\n if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }\n\n if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n scanner.close();\n\n if (A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n return;\n }\n\n if (A / K == B / K) {\n System.out.println(\"NG\");\n } else {\n System.out.println(\"OK\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
int A = scanner.nextInt();
int B = scanner.nextInt();
scanner.close();
if (A % K == 0 || B % K == 0) {
System.out.println("OK");
return;
}
if (A / K == B / K) {
System.out.println("NG");
} else {
System.out.println("OK");
}
}
}
|
[
7,
15,
13,
17,
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,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
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,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
241,
23
],
[
241,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
26,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
26,
48
],
[
48,
49
],
[
48,
50
],
[
26,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
26,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
24,
90
],
[
90,
91
],
[
241,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
96,
101
],
[
92,
102
],
[
102,
103
],
[
92,
104
],
[
104,
105
],
[
241,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
110,
116
],
[
106,
117
],
[
117,
118
],
[
106,
119
],
[
119,
120
],
[
106,
121
],
[
121,
122
],
[
241,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
127,
132
],
[
123,
133
],
[
133,
134
],
[
123,
135
],
[
135,
136
],
[
241,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
143,
146
],
[
141,
147
],
[
137,
148
],
[
148,
149
],
[
137,
150
],
[
150,
151
],
[
137,
152
],
[
152,
153
],
[
241,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
154,
158
],
[
158,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
160,
169
],
[
169,
170
],
[
154,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
174,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
184,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
173,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
154,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
154,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
214,
222
],
[
222,
223
],
[
223,
224
],
[
214,
225
],
[
226,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
234,
235
],
[
209,
236
],
[
236,
237
],
[
207,
238
],
[
238,
239
],
[
0,
240
],
[
240,
241
],
[
240,
242
]
] |
[
"\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n boolean flag = false;\n for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }\n\n if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");\n }\n\n public static int MaxTwo(int x, int y){\n return ((x > y)?x:y);\n }\n public static int MaxThree(int x, int y, int z){\n return MaxTwo(MaxTwo(x,y),z);\n }\n public static int MinTwo(int x, int y){\n return ((x < y)?x:y);\n }\n public static int MinThree(int x, int y, int z){\n return MinTwo(MinTwo(x,y),z);\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int size){\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }\n\n }\n}\n\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n boolean flag = false;\n for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }\n\n if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");\n }\n\n public static int MaxTwo(int x, int y){\n return ((x > y)?x:y);\n }\n public static int MaxThree(int x, int y, int z){\n return MaxTwo(MaxTwo(x,y),z);\n }\n public static int MinTwo(int x, int y){\n return ((x < y)?x:y);\n }\n public static int MinThree(int x, int y, int z){\n return MinTwo(MinTwo(x,y),z);\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int size){\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n boolean flag = false;\n for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }\n\n if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");\n }",
"main",
"{\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n boolean flag = false;\n for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }\n\n if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");\n }",
"InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int K = in.nextInt();",
"K",
"in.nextInt()",
"in.nextInt",
"in",
"int A = in.nextInt();",
"A",
"in.nextInt()",
"in.nextInt",
"in",
"int B = in.nextInt();",
"B",
"in.nextInt()",
"in.nextInt",
"in",
"boolean flag = false;",
"flag",
"false",
"for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }",
"int i = A;",
"int i = A;",
"i",
"A",
"i <=B",
"i",
"B",
"i++",
"i++",
"i",
"{\n if(i%K == 0){\n flag = true;\n break;\n }\n }",
"{\n if(i%K == 0){\n flag = true;\n break;\n }\n }",
"if(i%K == 0){\n flag = true;\n break;\n }",
"i%K == 0",
"i%K",
"i",
"K",
"0",
"{\n flag = true;\n break;\n }",
"flag = true",
"flag",
"true",
"break;",
"if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");",
"flag",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public static int MaxTwo(int x, int y){\n return ((x > y)?x:y);\n }",
"MaxTwo",
"{\n return ((x > y)?x:y);\n }",
"return ((x > y)?x:y);",
"((x > y)?x:y)",
"(x > y)",
"x",
"y",
"x",
"y",
"int x",
"x",
"int y",
"y",
"public static int MaxThree(int x, int y, int z){\n return MaxTwo(MaxTwo(x,y),z);\n }",
"MaxThree",
"{\n return MaxTwo(MaxTwo(x,y),z);\n }",
"return MaxTwo(MaxTwo(x,y),z);",
"MaxTwo(MaxTwo(x,y),z)",
"MaxTwo",
"MaxTwo(x,y)",
"MaxTwo",
"x",
"y",
"z",
"int x",
"x",
"int y",
"y",
"int z",
"z",
"public static int MinTwo(int x, int y){\n return ((x < y)?x:y);\n }",
"MinTwo",
"{\n return ((x < y)?x:y);\n }",
"return ((x < y)?x:y);",
"((x < y)?x:y)",
"(x < y)",
"x",
"y",
"x",
"y",
"int x",
"x",
"int y",
"y",
"public static int MinThree(int x, int y, int z){\n return MinTwo(MinTwo(x,y),z);\n }",
"MinThree",
"{\n return MinTwo(MinTwo(x,y),z);\n }",
"return MinTwo(MinTwo(x,y),z);",
"MinTwo(MinTwo(x,y),z)",
"MinTwo",
"MinTwo(x,y)",
"MinTwo",
"x",
"y",
"z",
"int x",
"x",
"int y",
"y",
"int z",
"z",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int size){\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public 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",
"public int[] nextIntArray(int size){\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }",
"nextIntArray",
"{\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }",
"int arr[] =new int[size];",
"arr",
"new int[size]",
"size",
"for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }",
"{\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }",
"arr[i] = Integer.parseInt(next())",
"arr[i]",
"arr",
"i",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"return arr;",
"arr",
"int size",
"size",
"public class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n boolean flag = false;\n for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }\n\n if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");\n }\n\n public static int MaxTwo(int x, int y){\n return ((x > y)?x:y);\n }\n public static int MaxThree(int x, int y, int z){\n return MaxTwo(MaxTwo(x,y),z);\n }\n public static int MinTwo(int x, int y){\n return ((x < y)?x:y);\n }\n public static int MinThree(int x, int y, int z){\n return MinTwo(MinTwo(x,y),z);\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int size){\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n boolean flag = false;\n for (int i = A; i <=B ; i++) {\n if(i%K == 0){\n flag = true;\n break;\n }\n }\n\n if (flag){\n System.out.println(\"OK\");\n }else System.out.println(\"NG\");\n }\n\n public static int MaxTwo(int x, int y){\n return ((x > y)?x:y);\n }\n public static int MaxThree(int x, int y, int z){\n return MaxTwo(MaxTwo(x,y),z);\n }\n public static int MinTwo(int x, int y){\n return ((x < y)?x:y);\n }\n public static int MinThree(int x, int y, int z){\n return MinTwo(MinTwo(x,y),z);\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int size){\n int arr[] =new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = Integer.parseInt(next());\n// sum = sum + in.nextInt();\n }\n return arr;\n }\n\n }\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
InputReader in = new InputReader(System.in);
PrintWriter out = new PrintWriter(System.out);
int K = in.nextInt();
int A = in.nextInt();
int B = in.nextInt();
boolean flag = false;
for (int i = A; i <=B ; i++) {
if(i%K == 0){
flag = true;
break;
}
}
if (flag){
System.out.println("OK");
}else System.out.println("NG");
}
public static int MaxTwo(int x, int y){
return ((x > y)?x:y);
}
public static int MaxThree(int x, int y, int z){
return MaxTwo(MaxTwo(x,y),z);
}
public static int MinTwo(int x, int y){
return ((x < y)?x:y);
}
public static int MinThree(int x, int y, int z){
return MinTwo(MinTwo(x,y),z);
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public int[] nextIntArray(int size){
int arr[] =new int[size];
for (int i = 0; i < size; i++) {
arr[i] = Integer.parseInt(next());
// sum = sum + in.nextInt();
}
return arr;
}
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
8,
13,
17,
17,
4,
18,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
59,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tboolean ans = false;\n\t\t\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans ? \"OK\" : \"NG\");\n\t\tsc.close();\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 k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tboolean ans = false;\n\t\t\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans ? \"OK\" : \"NG\");\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tboolean ans = false;\n\t\t\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans ? \"OK\" : \"NG\");\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tboolean ans = false;\n\t\t\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans ? \"OK\" : \"NG\");\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean ans = false;",
"ans",
"false",
"for(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}",
"ans = true",
"ans",
"true",
"break;",
"System.out.println(ans ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ans ? \"OK\" : \"NG\"",
"ans",
"\"OK\"",
"\"NG\"",
"sc.close()",
"sc.close",
"sc",
"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 k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tboolean ans = false;\n\t\t\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans ? \"OK\" : \"NG\");\n\t\tsc.close();\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 k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tboolean ans = false;\n\t\t\n\t\tfor(int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tans = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans ? \"OK\" : \"NG\");\n\t\tsc.close();\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 k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
boolean ans = false;
for(int i = a; i <= b; i++) {
if(i % k == 0) {
ans = true;
break;
}
}
System.out.println(ans ? "OK" : "NG");
sc.close();
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
55,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
78,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.*;\npublic class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }System.out.println(\"NG\");\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }System.out.println(\"NG\");\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"Main",
"public void solve() {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }System.out.println(\"NG\");\n }",
"solve",
"{\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }System.out.println(\"NG\");\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=B/K",
"i",
"B/K",
"B",
"K",
"i++",
"i++",
"i",
"{int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }",
"{int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }",
"int C = K*i;",
"C",
"K*i",
"K",
"i",
"if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}",
"A<=C && C<=B",
"A<=C",
"A",
"C",
"C<=B",
"C",
"B",
"{System.out.println(\"OK\");return;}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"public static void main(String[] args) {\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }System.out.println(\"NG\");\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n for(int i=0;i<=B/K;i++){int C = K*i;\n if(A<=C && C<=B)\n {System.out.println(\"OK\");return;}\n }System.out.println(\"NG\");\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"Main"
] |
import java.util.*;
public class Main {
public void solve() {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
for(int i=0;i<=B/K;i++){int C = K*i;
if(A<=C && C<=B)
{System.out.println("OK");return;}
}System.out.println("NG");
}
public static void main(String[] args) {
new Main().solve();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
3,
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
],
[
62,
14
],
[
62,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
32,
40
],
[
41,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
51,
58
],
[
15,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n long X = Long.parseLong(in.readLine());\n long deposit = 100;\n for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }\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.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n long X = Long.parseLong(in.readLine());\n long deposit = 100;\n for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n long X = Long.parseLong(in.readLine());\n long deposit = 100;\n for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n long X = Long.parseLong(in.readLine());\n long deposit = 100;\n for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"long X = Long.parseLong(in.readLine());",
"X",
"Long.parseLong(in.readLine())",
"Long.parseLong",
"Long",
"in.readLine()",
"in.readLine",
"in",
"long deposit = 100;",
"deposit",
"100",
"for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i++",
"i++",
"i",
"{\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }",
"{\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }",
"deposit = (long)(deposit * 1.01)",
"deposit",
"(long)(deposit * 1.01)",
"deposit",
"1.01",
"if(deposit >= X ){\n System.out.println(i);\n break;\n }",
"deposit >= X",
"deposit",
"X",
"{\n System.out.println(i);\n break;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"break;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n long X = Long.parseLong(in.readLine());\n long deposit = 100;\n for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n long X = Long.parseLong(in.readLine());\n long deposit = 100;\n for (long i = 1; ; i++){\n deposit = (long)(deposit * 1.01);\n if(deposit >= X ){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
long X = Long.parseLong(in.readLine());
long deposit = 100;
for (long i = 1; ; i++){
deposit = (long)(deposit * 1.01);
if(deposit >= X ){
System.out.println(i);
break;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
17,
40,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
27,
33
],
[
33,
34
],
[
27,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"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\tdouble N=sc.nextDouble();\n\t\tdouble money=100;\n\t\tdouble count=0;\n\t\twhile(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}\n\t\tSystem.out.println((int)count);\n\t\tsc.close();\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\tdouble N=sc.nextDouble();\n\t\tdouble money=100;\n\t\tdouble count=0;\n\t\twhile(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}\n\t\tSystem.out.println((int)count);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N=sc.nextDouble();\n\t\tdouble money=100;\n\t\tdouble count=0;\n\t\twhile(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}\n\t\tSystem.out.println((int)count);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N=sc.nextDouble();\n\t\tdouble money=100;\n\t\tdouble count=0;\n\t\twhile(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}\n\t\tSystem.out.println((int)count);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double N=sc.nextDouble();",
"N",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double money=100;",
"money",
"100",
"double count=0;",
"count",
"0",
"while(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}",
"money<(double)N",
"money",
"(double)N",
"{\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}",
"money=money*1.01",
"money",
"money*1.01",
"money",
"1.01",
"count++",
"count",
"money=Math.floor(money)",
"money",
"Math.floor(money)",
"Math.floor",
"Math",
"money",
"System.out.println((int)count)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N=sc.nextDouble();\n\t\tdouble money=100;\n\t\tdouble count=0;\n\t\twhile(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}\n\t\tSystem.out.println((int)count);\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N=sc.nextDouble();\n\t\tdouble money=100;\n\t\tdouble count=0;\n\t\twhile(money<(double)N) {\n\t\t\tmoney=money*1.01;\n\t\t\tcount++;\n\t\t\tmoney=Math.floor(money);\n\t\t}\n\t\tSystem.out.println((int)count);\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double N=sc.nextDouble();
double money=100;
double count=0;
while(money<(double)N) {
money=money*1.01;
count++;
money=Math.floor(money);
}
System.out.println((int)count);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
0,
13,
2,
13,
17,
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
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
22,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
36,
43
],
[
31,
44
],
[
44,
45
],
[
44,
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 try (Scanner sc = new Scanner(System.in)) {\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\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 long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }",
"{\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"long X = sc.nextLong();",
"X",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long x = 100;",
"x",
"100",
"for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i++",
"i++",
"i",
"{\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }",
"{\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }",
"if (x >= X) {\n System.out.println(i);\n return;\n }",
"x >= X",
"x",
"X",
"{\n System.out.println(i);\n return;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"return;",
"x += x / 100",
"x",
"x / 100",
"x",
"100",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n long X = sc.nextLong();\n long x = 100;\n for (int i = 0;; i++) {\n if (x >= X) {\n System.out.println(i);\n return;\n }\n\n x += x / 100;\n }\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
long X = sc.nextLong();
long x = 100;
for (int i = 0;; i++) {
if (x >= X) {
System.out.println(i);
return;
}
x += x / 100;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double num1 = scan.nextDouble();\n double mny = 100;\n double risoku = 1.01;\n \n int cnt; \n for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }\n System.out.println(cnt);\n scan.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double num1 = scan.nextDouble();\n double mny = 100;\n double risoku = 1.01;\n \n int cnt; \n for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }\n System.out.println(cnt);\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double num1 = scan.nextDouble();\n double mny = 100;\n double risoku = 1.01;\n \n int cnt; \n for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }\n System.out.println(cnt);\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n double num1 = scan.nextDouble();\n double mny = 100;\n double risoku = 1.01;\n \n int cnt; \n for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }\n System.out.println(cnt);\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"double num1 = scan.nextDouble();",
"num1",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double mny = 100;",
"mny",
"100",
"double risoku = 1.01;",
"risoku",
"1.01",
"int cnt;",
"cnt",
"for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }",
"cnt=0;",
"cnt=0",
"cnt",
"0",
"mny<num1",
"mny",
"num1",
"cnt++",
"cnt++",
"cnt",
"{\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }",
"{\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }",
"long mny2 = (long)(mny*risoku);",
"mny2",
"(long)(mny*risoku)",
"mny",
"risoku",
"mny = mny2",
"mny",
"mny2",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double num1 = scan.nextDouble();\n double mny = 100;\n double risoku = 1.01;\n \n int cnt; \n for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }\n System.out.println(cnt);\n scan.close();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double num1 = scan.nextDouble();\n double mny = 100;\n double risoku = 1.01;\n \n int cnt; \n for(cnt=0;mny<num1;cnt++){\n long mny2 = (long)(mny*risoku);\n mny = mny2;\n }\n System.out.println(cnt);\n scan.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double num1 = scan.nextDouble();
double mny = 100;
double risoku = 1.01;
int cnt;
for(cnt=0;mny<num1;cnt++){
long mny2 = (long)(mny*risoku);
mny = mny2;
}
System.out.println(cnt);
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
42,
2,
13,
13,
30,
40,
13,
0,
13,
4,
18,
13,
2,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
36,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.io.*;\npublic class Main {\n public static void main(String[] args) throws IOException{\n long X=0;\n int i=0;\n long n = 100;\n double k = 0;\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n X = Long.parseLong(r.readLine());\n do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);\n System.out.println(i);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException{\n long X=0;\n int i=0;\n long n = 100;\n double k = 0;\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n X = Long.parseLong(r.readLine());\n do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);\n System.out.println(i);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n long X=0;\n int i=0;\n long n = 100;\n double k = 0;\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n X = Long.parseLong(r.readLine());\n do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);\n System.out.println(i);\n }",
"main",
"{\n long X=0;\n int i=0;\n long n = 100;\n double k = 0;\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n X = Long.parseLong(r.readLine());\n do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);\n System.out.println(i);\n }",
"long X=0;",
"X",
"0",
"int i=0;",
"i",
"0",
"long n = 100;",
"n",
"100",
"double k = 0;",
"k",
"0",
"BufferedReader r = new BufferedReader(new InputStreamReader(System.in));",
"r",
"new BufferedReader(new InputStreamReader(System.in))",
"X = Long.parseLong(r.readLine())",
"X",
"Long.parseLong(r.readLine())",
"Long.parseLong",
"Long",
"r.readLine()",
"r.readLine",
"r",
"do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);",
"n<X",
"n",
"X",
"{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }",
"i++",
"i",
"k = Math.ceil((double)(n/100))",
"k",
"Math.ceil((double)(n/100))",
"Math.ceil",
"Math",
"(double)(n/100)",
"n",
"100",
"n += (long)k",
"n",
"(long)k",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException{\n long X=0;\n int i=0;\n long n = 100;\n double k = 0;\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n X = Long.parseLong(r.readLine());\n do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);\n System.out.println(i);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException{\n long X=0;\n int i=0;\n long n = 100;\n double k = 0;\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n X = Long.parseLong(r.readLine());\n do{\n i++;\n k = Math.ceil((double)(n/100));\n n += (long)k;\n }while(n<X);\n System.out.println(i);\n }\n}",
"Main"
] |
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
long X=0;
int i=0;
long n = 100;
double k = 0;
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
X = Long.parseLong(r.readLine());
do{
i++;
k = Math.ceil((double)(n/100));
n += (long)k;
}while(n<X);
System.out.println(i);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
2,
18,
13,
13,
17,
41,
13,
2,
18,
13,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
17,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
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,
29,
18,
4,
18,
4,
13,
17,
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,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
250,
8
],
[
250,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
250,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
250,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
250,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
30,
39
],
[
39,
40
],
[
39,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
30,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
28,
56
],
[
56,
57
],
[
28,
58
],
[
58,
59
],
[
250,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
69,
70
],
[
69,
71
],
[
69,
72
],
[
62,
73
],
[
73,
74
],
[
74,
75
],
[
60,
76
],
[
76,
77
],
[
250,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
78,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
93,
94
],
[
78,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
98,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
97,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
78,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
78,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
78,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
78,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
153,
158
],
[
78,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
166,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
161,
185
],
[
185,
186
],
[
159,
187
],
[
187,
188
],
[
78,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
191,
215
],
[
215,
216
],
[
189,
217
],
[
217,
218
],
[
78,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
226,
234
],
[
234,
235
],
[
235,
236
],
[
226,
237
],
[
238,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
221,
245
],
[
245,
246
],
[
219,
247
],
[
247,
248
],
[
0,
249
],
[
249,
250
],
[
249,
251
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n long x = in.nl();\n long a = 100;\n int count = 0;\n while(a<x){\n a *= 1.01;\n count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n long x = in.nl();\n long a = 100;\n int count = 0;\n while(a<x){\n a *= 1.01;\n count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"Main",
"public static final long mod = (long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"public static final long INF = Long.MAX_VALUE/2;",
"INF",
"Long.MAX_VALUE/2",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"2",
"public static final int inf = Integer.MAX_VALUE/2;",
"inf",
"Integer.MAX_VALUE/2",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"2",
"static void solve(InputReader in, PrintWriter out){\n long x = in.nl();\n long a = 100;\n int count = 0;\n while(a<x){\n a *= 1.01;\n count++;\n }\n out.println(count);\n }",
"solve",
"{\n long x = in.nl();\n long a = 100;\n int count = 0;\n while(a<x){\n a *= 1.01;\n count++;\n }\n out.println(count);\n }",
"long x = in.nl();",
"x",
"in.nl()",
"in.nl",
"in",
"long a = 100;",
"a",
"100",
"int count = 0;",
"count",
"0",
"while(a<x){\n a *= 1.01;\n count++;\n }",
"a<x",
"a",
"x",
"{\n a *= 1.01;\n count++;\n }",
"a *= 1.01",
"a",
"1.01",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }",
"main",
"{\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }",
"InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"solve(in, out)",
"solve",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }",
"InputReader",
"private BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"st = null",
"st",
"null",
"InputStream is",
"is",
"public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"ns",
"{\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }",
"catch (Exception e){\n throw new RuntimeException(e);\n }",
"Exception e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(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",
"public int ni(){\n return Integer.parseInt(ns());\n }",
"ni",
"{\n return Integer.parseInt(ns());\n }",
"return Integer.parseInt(ns());",
"Integer.parseInt(ns())",
"Integer.parseInt",
"Integer",
"ns()",
"ns",
"public long nl(){\n return Long.parseLong(ns());\n }",
"nl",
"{\n return Long.parseLong(ns());\n }",
"return Long.parseLong(ns());",
"Long.parseLong(ns())",
"Long.parseLong",
"Long",
"ns()",
"ns",
"public double nd(){\n return Double.parseDouble(ns());\n }",
"nd",
"{\n return Double.parseDouble(ns());\n }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"public char nc(){\n return ns().toCharArray()[0];\n }",
"nc",
"{\n return ns().toCharArray()[0];\n }",
"return ns().toCharArray()[0];",
"ns().toCharArray()[0]",
"ns().toCharArray()",
"ns().toCharArray",
"ns()",
"ns",
"0",
"public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"ni",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = ni();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = ni();\n }",
"{\n a[i] = ni();\n }",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }",
"nl",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nl();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nl();\n }",
"{\n a[i] = nl();\n }",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }",
"nd",
"{\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }",
"double[] a = new double[n];",
"a",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nd();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nd();\n }",
"{\n a[i] = nd();\n }",
"a[i] = nd()",
"a[i]",
"a",
"i",
"nd()",
"nd",
"return a;",
"a",
"int n",
"n",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n long x = in.nl();\n long a = 100;\n int count = 0;\n while(a<x){\n a *= 1.01;\n count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"public class Main {\n public static final long mod = (long)1e9+7;\n public static final long INF = Long.MAX_VALUE/2;\n public static final int inf = Integer.MAX_VALUE/2;\n\n static void solve(InputReader in, PrintWriter out){\n long x = in.nl();\n long a = 100;\n int count = 0;\n while(a<x){\n a *= 1.01;\n count++;\n }\n out.println(count);\n }\n\n public static void main(String[] args){\n InputReader in = new InputReader(System.in);\n PrintWriter out = new PrintWriter(System.out);\n solve(in, out);\n out.close();\n }\n public static class InputReader{\n private BufferedReader br;\n private StringTokenizer st;\n public InputReader(InputStream is){\n br = new BufferedReader(new InputStreamReader(is));\n st = null;\n }\n public String ns(){\n if(st == null || !st.hasMoreTokens()){\n try{\n st = new StringTokenizer(br.readLine());\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n public int ni(){\n return Integer.parseInt(ns());\n }\n public long nl(){\n return Long.parseLong(ns());\n }\n public double nd(){\n return Double.parseDouble(ns());\n }\n public char nc(){\n return ns().toCharArray()[0];\n }\n public int[] ni(int n){\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n public long[] nl(int n){\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nl();\n }\n return a;\n }\n public double[] nd(int n){\n double[] a = new double[n];\n for (int i = 0; i < n; i++) {\n a[i] = nd();\n }\n return a;\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static final long mod = (long)1e9+7;
public static final long INF = Long.MAX_VALUE/2;
public static final int inf = Integer.MAX_VALUE/2;
static void solve(InputReader in, PrintWriter out){
long x = in.nl();
long a = 100;
int count = 0;
while(a<x){
a *= 1.01;
count++;
}
out.println(count);
}
public static void main(String[] args){
InputReader in = new InputReader(System.in);
PrintWriter out = new PrintWriter(System.out);
solve(in, out);
out.close();
}
public static class InputReader{
private BufferedReader br;
private StringTokenizer st;
public InputReader(InputStream is){
br = new BufferedReader(new InputStreamReader(is));
st = null;
}
public String ns(){
if(st == null || !st.hasMoreTokens()){
try{
st = new StringTokenizer(br.readLine());
}catch (Exception e){
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int ni(){
return Integer.parseInt(ns());
}
public long nl(){
return Long.parseLong(ns());
}
public double nd(){
return Double.parseDouble(ns());
}
public char nc(){
return ns().toCharArray()[0];
}
public int[] ni(int n){
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = ni();
}
return a;
}
public long[] nl(int n){
long[] a = new long[n];
for (int i = 0; i < n; i++) {
a[i] = nl();
}
return a;
}
public double[] nd(int n){
double[] a = new double[n];
for (int i = 0; i < n; i++) {
a[i] = nd();
}
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
42,
5
],
[
42,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
6,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n long X = scanner.nextLong();\n long deposit = 100;\n int count = 0;\n\n while(deposit < X) {\n deposit *= 1.01;\n count++;\n }\n\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n long X = scanner.nextLong();\n long deposit = 100;\n int count = 0;\n\n while(deposit < X) {\n deposit *= 1.01;\n count++;\n }\n\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n long X = scanner.nextLong();\n long deposit = 100;\n int count = 0;\n\n while(deposit < X) {\n deposit *= 1.01;\n count++;\n }\n\n System.out.println(count);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n long X = scanner.nextLong();\n long deposit = 100;\n int count = 0;\n\n while(deposit < X) {\n deposit *= 1.01;\n count++;\n }\n\n System.out.println(count);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long X = scanner.nextLong();",
"X",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long deposit = 100;",
"deposit",
"100",
"int count = 0;",
"count",
"0",
"while(deposit < X) {\n deposit *= 1.01;\n count++;\n }",
"deposit < X",
"deposit",
"X",
"{\n deposit *= 1.01;\n count++;\n }",
"deposit *= 1.01",
"deposit",
"1.01",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n long X = scanner.nextLong();\n long deposit = 100;\n int count = 0;\n\n while(deposit < X) {\n deposit *= 1.01;\n count++;\n }\n\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n long X = scanner.nextLong();\n long deposit = 100;\n int count = 0;\n\n while(deposit < X) {\n deposit *= 1.01;\n count++;\n }\n\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long X = scanner.nextLong();
long deposit = 100;
int count = 0;
while(deposit < X) {
deposit *= 1.01;
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
27,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tlong x = sc.nextLong();\n \tlong have = 100;\n \tint count = 0;\n \twhile(have < x){\n \thave += have/100;\n \tcount++;\n }\n \tSystem.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tlong x = sc.nextLong();\n \tlong have = 100;\n \tint count = 0;\n \twhile(have < x){\n \thave += have/100;\n \tcount++;\n }\n \tSystem.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tlong x = sc.nextLong();\n \tlong have = 100;\n \tint count = 0;\n \twhile(have < x){\n \thave += have/100;\n \tcount++;\n }\n \tSystem.out.println(count);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tlong x = sc.nextLong();\n \tlong have = 100;\n \tint count = 0;\n \twhile(have < x){\n \thave += have/100;\n \tcount++;\n }\n \tSystem.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long x = sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long have = 100;",
"have",
"100",
"int count = 0;",
"count",
"0",
"while(have < x){\n \thave += have/100;\n \tcount++;\n }",
"have < x",
"have",
"x",
"{\n \thave += have/100;\n \tcount++;\n }",
"have += have/100",
"have",
"have/100",
"have",
"100",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tlong x = sc.nextLong();\n \tlong have = 100;\n \tint count = 0;\n \twhile(have < x){\n \thave += have/100;\n \tcount++;\n }\n \tSystem.out.println(count);\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tlong x = sc.nextLong();\n \tlong have = 100;\n \tint count = 0;\n \twhile(have < x){\n \thave += have/100;\n \tcount++;\n }\n \tSystem.out.println(count);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long have = 100;
int count = 0;
while(have < x){
have += have/100;
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
13,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
31,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n \tboolean flg = true;\n \tint year = 0;\n \tlong money = 100;\n \tlong counter = 0;\n \n \twhile (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }\n\n \n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n \tboolean flg = true;\n \tint year = 0;\n \tlong money = 100;\n \tlong counter = 0;\n \n \twhile (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }\n\n \n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n \tboolean flg = true;\n \tint year = 0;\n \tlong money = 100;\n \tlong counter = 0;\n \n \twhile (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }\n\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n \tboolean flg = true;\n \tint year = 0;\n \tlong money = 100;\n \tlong counter = 0;\n \n \twhile (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }\n\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long num = sc.nextLong();",
"num",
"sc.nextLong()",
"sc.nextLong",
"sc",
"boolean flg = true;",
"flg",
"true",
"int year = 0;",
"year",
"0",
"long money = 100;",
"money",
"100",
"long counter = 0;",
"counter",
"0",
"while (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }",
"flg",
"{\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }",
"money *= 1.01",
"money",
"1.01",
"counter += 1",
"counter",
"1",
"if (num<=money) {\n flg = false;\n System.out.println(counter);\n }",
"num<=money",
"num",
"money",
"{\n flg = false;\n System.out.println(counter);\n }",
"flg = false",
"flg",
"false",
"System.out.println(counter)",
"System.out.println",
"System.out",
"System",
"System.out",
"counter",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n \tboolean flg = true;\n \tint year = 0;\n \tlong money = 100;\n \tlong counter = 0;\n \n \twhile (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }\n\n \n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long num = sc.nextLong();\n \tboolean flg = true;\n \tint year = 0;\n \tlong money = 100;\n \tlong counter = 0;\n \n \twhile (flg) {\n \tmoney *= 1.01; \n \tcounter += 1;\n \tif (num<=money) {\n flg = false;\n System.out.println(counter);\n }\t\n }\n\n \n }\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long num = sc.nextLong();
boolean flg = true;
int year = 0;
long money = 100;
long counter = 0;
while (flg) {
money *= 1.01;
counter += 1;
if (num<=money) {
flg = false;
System.out.println(counter);
}
}
}
}
|
[
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,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
41,
13,
4,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
4,
18,
13,
13,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
13,
2,
13,
2,
17,
13,
1,
0,
13,
13,
30,
30,
41,
13,
2,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
41,
13,
4,
18,
18,
13,
41,
13,
20,
0,
13,
20,
0,
13,
20,
12,
13,
30,
4,
18,
13,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
2,
4,
18,
13,
2,
2,
13,
17,
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,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
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
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
441,
29
],
[
441,
30
],
[
30,
31
],
[
441,
32
],
[
32,
33
],
[
441,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
36,
43
],
[
43,
44
],
[
43,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
36,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
36,
66
],
[
66,
67
],
[
34,
68
],
[
68,
69
],
[
441,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
72,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
89,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
89,
102
],
[
102,
103
],
[
102,
104
],
[
89,
105
],
[
105,
106
],
[
105,
107
],
[
89,
108
],
[
108,
109
],
[
108,
110
],
[
89,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
89,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
131,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
131,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
146,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
165,
167
],
[
161,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
171,
173
],
[
146,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
181,
183
],
[
146,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
191,
193
],
[
146,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
202,
204
],
[
198,
205
],
[
205,
206
],
[
205,
207
],
[
198,
208
],
[
208,
209
],
[
208,
210
],
[
146,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
219,
221
],
[
215,
222
],
[
222,
223
],
[
222,
224
],
[
215,
225
],
[
225,
226
],
[
225,
227
],
[
89,
228
],
[
228,
229
],
[
229,
230
],
[
228,
231
],
[
89,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
238,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
236,
242
],
[
238,
243
],
[
441,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
441,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
441,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
441,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
270,
272
],
[
267,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
267,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
265,
285
],
[
285,
286
],
[
265,
287
],
[
287,
288
],
[
265,
289
],
[
289,
290
],
[
441,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
297,
298
],
[
297,
299
],
[
441,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
302,
309
],
[
309,
310
],
[
309,
311
],
[
302,
312
],
[
312,
313
],
[
312,
314
],
[
302,
315
],
[
315,
316
],
[
315,
317
],
[
441,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
320,
324
],
[
324,
325
],
[
325,
326
],
[
441,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
327,
331
],
[
331,
332
],
[
327,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
335,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
333,
346
],
[
346,
347
],
[
333,
348
],
[
348,
349
],
[
441,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
350,
354
],
[
354,
355
],
[
350,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
356,
362
],
[
362,
363
],
[
350,
364
],
[
364,
365
],
[
364,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
368,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
367,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
366,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
350,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
390,
391
],
[
388,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
396,
397
],
[
397,
398
],
[
350,
399
],
[
399,
400
],
[
399,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
403,
406
],
[
406,
407
],
[
350,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
412,
415
],
[
415,
416
],
[
350,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
421,
424
],
[
424,
425
],
[
350,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
350,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
0,
440
],
[
440,
441
],
[
440,
442
]
] |
[
"import java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n long target = readLong();\n int numYears = 0;\n for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }\n output.println(numYears);\n closeReader();\n }\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static long readLong() throws IOException {\n return input.nextLong();\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"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.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n long target = readLong();\n int numYears = 0;\n for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }\n output.println(numYears);\n closeReader();\n }\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static long readLong() throws IOException {\n return input.nextLong();\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"Main",
"private static FastScanner input;",
"input",
"private static PrintWriter output;",
"output",
"public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n long target = readLong();\n int numYears = 0;\n for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }\n output.println(numYears);\n closeReader();\n }",
"main",
"{\n// openFile();\n openConsole();\n long target = readLong();\n int numYears = 0;\n for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }\n output.println(numYears);\n closeReader();\n }",
"openConsole()",
"openConsole",
"long target = readLong();",
"target",
"readLong()",
"readLong",
"int numYears = 0;",
"numYears",
"0",
"for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }",
"long savings = 100;",
"long savings = 100;",
"savings",
"100",
"savings < target",
"savings",
"target",
"numYears++",
"numYears++",
"numYears",
"{\n savings *= 1.01;\n }",
"{\n savings *= 1.01;\n }",
"savings *= 1.01",
"savings",
"1.01",
"output.println(numYears)",
"output.println",
"output",
"numYears",
"closeReader()",
"closeReader",
"String[] args",
"args",
"private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }",
"solveC",
"{\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }",
"int numTest = readInt();",
"numTest",
"readInt()",
"readInt",
"for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numTest",
"i",
"numTest",
"i++",
"i++",
"i",
"{\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }",
"{\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }",
"int a = readInt();",
"a",
"readInt()",
"readInt",
"int b = readInt();",
"b",
"readInt()",
"readInt",
"int c = readInt();",
"c",
"readInt()",
"readInt",
"int aRes = 0",
"aRes",
"0",
"bRes = 0",
"bRes",
"0",
"cRes = 0",
"cRes",
"0",
"count = Integer.MAX_VALUE;",
"count",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }",
"int aIter = 1;",
"int aIter = 1;",
"aIter",
"1",
"aIter <= 2 * a",
"aIter",
"2 * a",
"2",
"a",
"aIter++",
"aIter++",
"aIter",
"{\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }",
"{\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }",
"for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }",
"int bIter = aIter;",
"int bIter = aIter;",
"bIter",
"aIter",
"bIter <= 2 * b",
"bIter",
"2 * b",
"2",
"b",
"bIter += aIter",
"bIter += aIter",
"bIter",
"aIter",
"{\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }",
"{\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }",
"int cLow = bIter * (c / bIter);",
"cLow",
"bIter * (c / bIter)",
"bIter",
"(c / bIter)",
"c",
"bIter",
"int cHigh = cLow + bIter;",
"cHigh",
"cLow + bIter",
"cLow",
"bIter",
"int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);",
"aAndBDist",
"Math.abs(aIter - a) + Math.abs(bIter - b)",
"Math.abs(aIter - a)",
"Math.abs",
"Math",
"aIter - a",
"aIter",
"a",
"Math.abs(bIter - b)",
"Math.abs",
"Math",
"bIter - b",
"bIter",
"b",
"int firstSum = aAndBDist + Math.abs(cLow - c);",
"firstSum",
"aAndBDist + Math.abs(cLow - c)",
"aAndBDist",
"Math.abs(cLow - c)",
"Math.abs",
"Math",
"cLow - c",
"cLow",
"c",
"int secondSum = aAndBDist + Math.abs(cHigh - c);",
"secondSum",
"aAndBDist + Math.abs(cHigh - c)",
"aAndBDist",
"Math.abs(cHigh - c)",
"Math.abs",
"Math",
"cHigh - c",
"cHigh",
"c",
"if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }",
"firstSum < count",
"firstSum",
"count",
"{\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }",
"aRes = aIter",
"aRes",
"aIter",
"bRes = bIter",
"bRes",
"bIter",
"cRes = cLow",
"cRes",
"cLow",
"count = firstSum",
"count",
"firstSum",
"if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }",
"secondSum < count",
"secondSum",
"count",
"{\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }",
"aRes = aIter",
"aRes",
"aIter",
"bRes = bIter",
"bRes",
"bIter",
"cRes = cHigh",
"cRes",
"cHigh",
"count = secondSum",
"count",
"secondSum",
"output.println(count)",
"output.println",
"output",
"count",
"output.println(aRes + \" \" + bRes + \" \" + cRes)",
"output.println",
"output",
"aRes + \" \" + bRes + \" \" + cRes",
"\" \"",
"bRes",
"aRes + \" \" + bRes + \" \" + cRes",
"aRes",
"\" \"",
"bRes",
"\" \"",
"cRes",
"private static long readLong() throws IOException {\n return input.nextLong();\n }",
"readLong",
"{\n return input.nextLong();\n }",
"return input.nextLong();",
"input.nextLong()",
"input.nextLong",
"input",
"private static String readString() throws IOException {\n return input.nextLine();\n }",
"readString",
"{\n return input.nextLine();\n }",
"return input.nextLine();",
"input.nextLine()",
"input.nextLine",
"input",
"private static int readInt() throws IOException {\n return input.nextInt();\n }",
"readInt",
"{\n return input.nextInt();\n }",
"return input.nextInt();",
"input.nextInt()",
"input.nextInt",
"input",
"private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }",
"swap",
"{\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }",
"int temp = data[i];",
"temp",
"data[i]",
"data",
"i",
"data[i] = data[j]",
"data[i]",
"data",
"i",
"data[j]",
"data",
"j",
"data[j] = temp",
"data[j]",
"data",
"j",
"temp",
"int[] data",
"data",
"int i",
"i",
"int j",
"j",
"private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }",
"openConsole",
"{\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }",
"input = new FastScanner(System.in)",
"input",
"new FastScanner(System.in)",
"output = new PrintWriter(System.out)",
"output",
"new PrintWriter(System.out)",
"private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }",
"openFile",
"{\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }",
"ClassLoader classLoader = Main.class.getClassLoader();",
"classLoader",
"Main.class.getClassLoader()",
"Main.class.getClassLoader",
"Main.class",
"Main.class",
"File myFile = new File(classLoader.getResource(\"input.txt\").getFile());",
"myFile",
"new File(classLoader.getResource(\"input.txt\").getFile())",
"input = new FastScanner(new FileInputStream(myFile))",
"input",
"new FastScanner(new FileInputStream(myFile))",
"output = new PrintWriter(System.out)",
"output",
"new PrintWriter(System.out)",
"private static void closeReader() {\n output.flush();\n output.close();\n }",
"closeReader",
"{\n output.flush();\n output.close();\n }",
"output.flush()",
"output.flush",
"output",
"output.close()",
"output.close",
"output",
"static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }",
"Pair",
"int id",
"id",
"count;",
"count",
"Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }",
"Pair",
"{\n this.id = id;\n this.count = count;\n }",
"this.id = id",
"this.id",
"this",
"this.id",
"id",
"this.count = count",
"this.count",
"this",
"this.count",
"count",
"Integer id",
"id",
"Integer count",
"count",
"static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }",
"FastScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\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",
"boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }",
"hasNext",
"{\n return br.ready() || (st != null && st.hasMoreTokens());\n }",
"return br.ready() || (st != null && st.hasMoreTokens());",
"br.ready() || (st != null && st.hasMoreTokens())",
"br.ready()",
"br.ready",
"br",
"(st != null && st.hasMoreTokens())",
"st != null",
"st",
"null",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"int nextInt() throws IOException {\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() throws IOException {\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() throws IOException {\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() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"boolean hasNextLine() throws IOException {\n return br.ready();\n }",
"hasNextLine",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n long target = readLong();\n int numYears = 0;\n for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }\n output.println(numYears);\n closeReader();\n }\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static long readLong() throws IOException {\n return input.nextLong();\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"public class Main {\n private static FastScanner input;\n private static PrintWriter output;\n\n public static void main(String[] args) throws IOException {\n// openFile();\n openConsole();\n long target = readLong();\n int numYears = 0;\n for (long savings = 100; savings < target; numYears++) {\n savings *= 1.01;\n }\n output.println(numYears);\n closeReader();\n }\n\n private static void solveC() throws IOException {\n int numTest = readInt();\n for (int i = 0; i < numTest; i++) {\n int a = readInt();\n int b = readInt();\n int c = readInt();\n int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;\n for (int aIter = 1; aIter <= 2 * a; aIter++) {\n for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {\n int cLow = bIter * (c / bIter);\n int cHigh = cLow + bIter;\n int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);\n int firstSum = aAndBDist + Math.abs(cLow - c);\n int secondSum = aAndBDist + Math.abs(cHigh - c);\n if (firstSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cLow;\n count = firstSum;\n }\n if (secondSum < count) {\n aRes = aIter;\n bRes = bIter;\n cRes = cHigh;\n count = secondSum;\n }\n }\n }\n output.println(count);\n output.println(aRes + \" \" + bRes + \" \" + cRes);\n }\n }\n\n private static long readLong() throws IOException {\n return input.nextLong();\n }\n\n private static String readString() throws IOException {\n return input.nextLine();\n }\n\n private static int readInt() throws IOException {\n return input.nextInt();\n }\n\n private static void swap(int[] data, int i, int j) {\n int temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n\n private static void openConsole() {\n input = new FastScanner(System.in);\n output = new PrintWriter(System.out);\n }\n\n private static void openFile() throws FileNotFoundException {\n ClassLoader classLoader = Main.class.getClassLoader();\n File myFile = new File(classLoader.getResource(\"input.txt\").getFile());\n input = new FastScanner(new FileInputStream(myFile));\n output = new PrintWriter(System.out);\n }\n\n private static void closeReader() {\n output.flush();\n output.close();\n }\n\n static class Pair {\n int id, count;\n\n Pair(Integer id, Integer count) {\n this.id = id;\n this.count = count;\n }\n }\n\n static class FastScanner {\n StringTokenizer st;\n BufferedReader br;\n\n FastScanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n private String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n boolean hasNext() throws IOException {\n return br.ready() || (st != null && st.hasMoreTokens());\n }\n\n int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n String nextLine() throws IOException {\n return br.readLine();\n }\n\n boolean hasNextLine() throws IOException {\n return br.ready();\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
private static FastScanner input;
private static PrintWriter output;
public static void main(String[] args) throws IOException {
// openFile();
openConsole();
long target = readLong();
int numYears = 0;
for (long savings = 100; savings < target; numYears++) {
savings *= 1.01;
}
output.println(numYears);
closeReader();
}
private static void solveC() throws IOException {
int numTest = readInt();
for (int i = 0; i < numTest; i++) {
int a = readInt();
int b = readInt();
int c = readInt();
int aRes = 0, bRes = 0, cRes = 0, count = Integer.MAX_VALUE;
for (int aIter = 1; aIter <= 2 * a; aIter++) {
for (int bIter = aIter; bIter <= 2 * b; bIter += aIter) {
int cLow = bIter * (c / bIter);
int cHigh = cLow + bIter;
int aAndBDist = Math.abs(aIter - a) + Math.abs(bIter - b);
int firstSum = aAndBDist + Math.abs(cLow - c);
int secondSum = aAndBDist + Math.abs(cHigh - c);
if (firstSum < count) {
aRes = aIter;
bRes = bIter;
cRes = cLow;
count = firstSum;
}
if (secondSum < count) {
aRes = aIter;
bRes = bIter;
cRes = cHigh;
count = secondSum;
}
}
}
output.println(count);
output.println(aRes + " " + bRes + " " + cRes);
}
}
private static long readLong() throws IOException {
return input.nextLong();
}
private static String readString() throws IOException {
return input.nextLine();
}
private static int readInt() throws IOException {
return input.nextInt();
}
private static void swap(int[] data, int i, int j) {
int temp = data[i];
data[i] = data[j];
data[j] = temp;
}
private static void openConsole() {
input = new FastScanner(System.in);
output = new PrintWriter(System.out);
}
private static void openFile() throws FileNotFoundException {
ClassLoader classLoader = Main.class.getClassLoader();
File myFile = new File(classLoader.getResource("input.txt").getFile());
input = new FastScanner(new FileInputStream(myFile));
output = new PrintWriter(System.out);
}
private static void closeReader() {
output.flush();
output.close();
}
static class Pair {
int id, count;
Pair(Integer id, Integer count) {
this.id = id;
this.count = count;
}
}
static class FastScanner {
StringTokenizer st;
BufferedReader br;
FastScanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
private String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
boolean hasNext() throws IOException {
return br.ready() || (st != null && st.hasMoreTokens());
}
int nextInt() throws IOException {
return Integer.parseInt(next());
}
long nextLong() throws IOException {
return Long.parseLong(next());
}
double nextDouble() throws IOException {
return Double.parseDouble(next());
}
String nextLine() throws IOException {
return br.readLine();
}
boolean hasNextLine() throws IOException {
return br.ready();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
42,
2,
13,
13,
30,
0,
13,
2,
13,
17,
0,
13,
2,
2,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
54,
8
],
[
8,
9
],
[
8,
10
],
[
54,
11
],
[
11,
12
],
[
11,
13
],
[
54,
14
],
[
14,
15
],
[
14,
16
],
[
54,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
19,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
17,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tstatic long X;\n\tstatic int m=0;\n\tstatic long a=100;\n\tstatic boolean n=true;\n\tpublic static void main(String[]args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tX=sc.nextLong();\n\t\twhile(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic long X;\n\tstatic int m=0;\n\tstatic long a=100;\n\tstatic boolean n=true;\n\tpublic static void main(String[]args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tX=sc.nextLong();\n\t\twhile(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n}",
"Main",
"static long X;",
"X",
"static int m=0;",
"m",
"0",
"static long a=100;",
"a",
"100",
"static boolean n=true;",
"n",
"true",
"public static void main(String[]args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tX=sc.nextLong();\n\t\twhile(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}\n\t\tSystem.out.println(m);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tX=sc.nextLong();\n\t\twhile(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}\n\t\tSystem.out.println(m);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"X=sc.nextLong()",
"X",
"sc.nextLong()",
"sc.nextLong",
"sc",
"while(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}",
"X>a",
"X",
"a",
"{\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}",
"m=m+1",
"m",
"m+1",
"m",
"1",
"a=a/100+a",
"a",
"a/100+a",
"a/100",
"a",
"100",
"a",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"String[]args",
"args",
"public class Main {\n\tstatic long X;\n\tstatic int m=0;\n\tstatic long a=100;\n\tstatic boolean n=true;\n\tpublic static void main(String[]args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tX=sc.nextLong();\n\t\twhile(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n}",
"public class Main {\n\tstatic long X;\n\tstatic int m=0;\n\tstatic long a=100;\n\tstatic boolean n=true;\n\tpublic static void main(String[]args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tX=sc.nextLong();\n\t\twhile(X>a) {\n\t\t\tm=m+1;\n\t\t\ta=a/100+a;\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static long X;
static int m=0;
static long a=100;
static boolean n=true;
public static void main(String[]args) {
Scanner sc=new Scanner(System.in);
X=sc.nextLong();
while(X>a) {
m=m+1;
a=a/100+a;
}
System.out.println(m);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
2,
13,
17,
0,
13,
2,
13,
17,
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
],
[
52,
8
],
[
52,
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
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
9,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nlong x=scan.nextLong();\n\nint i=0;\nlong n=100;\nwhile(n<x){\n n=n+n/100;\n i=i+1;\n}\n\nSystem.out.println(i);\n\n\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nlong x=scan.nextLong();\n\nint i=0;\nlong n=100;\nwhile(n<x){\n n=n+n/100;\n i=i+1;\n}\n\nSystem.out.println(i);\n\n\n}\n}",
"Main",
"public static void main(String[] args){\nScanner scan=new Scanner(System.in);\nlong x=scan.nextLong();\n\nint i=0;\nlong n=100;\nwhile(n<x){\n n=n+n/100;\n i=i+1;\n}\n\nSystem.out.println(i);\n\n\n}",
"main",
"{\nScanner scan=new Scanner(System.in);\nlong x=scan.nextLong();\n\nint i=0;\nlong n=100;\nwhile(n<x){\n n=n+n/100;\n i=i+1;\n}\n\nSystem.out.println(i);\n\n\n}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long x=scan.nextLong();",
"x",
"scan.nextLong()",
"scan.nextLong",
"scan",
"int i=0;",
"i",
"0",
"long n=100;",
"n",
"100",
"while(n<x){\n n=n+n/100;\n i=i+1;\n}",
"n<x",
"n",
"x",
"{\n n=n+n/100;\n i=i+1;\n}",
"n=n+n/100",
"n",
"n+n/100",
"n",
"n/100",
"n",
"100",
"i=i+1",
"i",
"i+1",
"i",
"1",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args",
"public class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nlong x=scan.nextLong();\n\nint i=0;\nlong n=100;\nwhile(n<x){\n n=n+n/100;\n i=i+1;\n}\n\nSystem.out.println(i);\n\n\n}\n}",
"public class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nlong x=scan.nextLong();\n\nint i=0;\nlong n=100;\nwhile(n<x){\n n=n+n/100;\n i=i+1;\n}\n\nSystem.out.println(i);\n\n\n}\n}",
"Main"
] |
import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
long x=scan.nextLong();
int i=0;
long n=100;
while(n<x){
n=n+n/100;
i=i+1;
}
System.out.println(i);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
2,
13,
17,
14,
2,
13,
13,
30,
3,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
25,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
25,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble S = scan.nextDouble();\n\t\tdouble a = 100;\n\t\tint c = 1;\n\t\twhile(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\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\tdouble S = scan.nextDouble();\n\t\tdouble a = 100;\n\t\tint c = 1;\n\t\twhile(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble S = scan.nextDouble();\n\t\tdouble a = 100;\n\t\tint c = 1;\n\t\twhile(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble S = scan.nextDouble();\n\t\tdouble a = 100;\n\t\tint c = 1;\n\t\twhile(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"double S = scan.nextDouble();",
"S",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"double a = 100;",
"a",
"100",
"int c = 1;",
"c",
"1",
"while(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}",
"true",
"{\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}",
"a=Math.floor(a*1.01)",
"a",
"Math.floor(a*1.01)",
"Math.floor",
"Math",
"a*1.01",
"a",
"1.01",
"if(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}",
"S<=a",
"S",
"a",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble S = scan.nextDouble();\n\t\tdouble a = 100;\n\t\tint c = 1;\n\t\twhile(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble S = scan.nextDouble();\n\t\tdouble a = 100;\n\t\tint c = 1;\n\t\twhile(true) {\n\t\t\ta=Math.floor(a*1.01);\n\t\t\tif(S<=a) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double S = scan.nextDouble();
double a = 100;
int c = 1;
while(true) {
a=Math.floor(a*1.01);
if(S<=a) {
break;
}
c++;
}
System.out.println(c);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n long X=sc.nextLong(), y=100;\n int z=0;\n while(y<X){\n y= y+ y/100;\n z++;\n }\n System.out.println(z);\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 long X=sc.nextLong(), y=100;\n int z=0;\n while(y<X){\n y= y+ y/100;\n z++;\n }\n System.out.println(z);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n long X=sc.nextLong(), y=100;\n int z=0;\n while(y<X){\n y= y+ y/100;\n z++;\n }\n System.out.println(z);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n long X=sc.nextLong(), y=100;\n int z=0;\n while(y<X){\n y= y+ y/100;\n z++;\n }\n System.out.println(z);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long X=sc.nextLong()",
"X",
"sc.nextLong()",
"sc.nextLong",
"sc",
"y=100;",
"y",
"100",
"int z=0;",
"z",
"0",
"while(y<X){\n y= y+ y/100;\n z++;\n }",
"y<X",
"y",
"X",
"{\n y= y+ y/100;\n z++;\n }",
"y= y+ y/100",
"y",
"y+ y/100",
"y",
"y/100",
"y",
"100",
"z++",
"z",
"System.out.println(z)",
"System.out.println",
"System.out",
"System",
"System.out",
"z",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n long X=sc.nextLong(), y=100;\n int z=0;\n while(y<X){\n y= y+ y/100;\n z++;\n }\n System.out.println(z);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n long X=sc.nextLong(), y=100;\n int z=0;\n while(y<X){\n y= y+ y/100;\n z++;\n }\n System.out.println(z);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
long X=sc.nextLong(), y=100;
int z=0;
while(y<X){
y= y+ y/100;
z++;
}
System.out.println(z);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
4,
18,
13,
2,
13,
17,
0,
13,
2,
13,
17,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
27,
36
],
[
36,
37
],
[
36,
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;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n long x=kbd.nextLong();\n long a=100;\n int y=0;\n\n while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}\nSystem.out.println(y);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n long x=kbd.nextLong();\n long a=100;\n int y=0;\n\n while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}\nSystem.out.println(y);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n long x=kbd.nextLong();\n long a=100;\n int y=0;\n\n while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}\nSystem.out.println(y);\n }",
"main",
"{\n Scanner kbd =new Scanner(System.in);\n long x=kbd.nextLong();\n long a=100;\n int y=0;\n\n while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}\nSystem.out.println(y);\n }",
"Scanner kbd =new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"long x=kbd.nextLong();",
"x",
"kbd.nextLong()",
"kbd.nextLong",
"kbd",
"long a=100;",
"a",
"100",
"int y=0;",
"y",
"0",
"while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}",
"x>a",
"x",
"a",
"{\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}",
"a=(long)Math.floor(a*1.01)",
"a",
"(long)Math.floor(a*1.01)",
"Math.floor",
"Math",
"a*1.01",
"a",
"1.01",
"y=y+1",
"y",
"y+1",
"y",
"1",
"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 kbd =new Scanner(System.in);\n long x=kbd.nextLong();\n long a=100;\n int y=0;\n\n while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}\nSystem.out.println(y);\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n long x=kbd.nextLong();\n long a=100;\n int y=0;\n\n while(x>a){\n a=(long)Math.floor(a*1.01);\n y=y+1;\n}\nSystem.out.println(y);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner kbd =new Scanner(System.in);
long x=kbd.nextLong();
long a=100;
int y=0;
while(x>a){
a=(long)Math.floor(a*1.01);
y=y+1;
}
System.out.println(y);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
17,
40,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
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
] |
[
[
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
],
[
10,
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
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
29,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
29,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
17,
60
],
[
60,
61
],
[
61,
62
],
[
15,
63
],
[
63,
64
],
[
10,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
90,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
79,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
65,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
65,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
65,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
65,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
138,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
134,
151
],
[
151,
152
]
] |
[
"//package com.company;\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n//****Use Integer Wrapper Class for Arrays.sort()****\nclass Main {\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args){\n FastReader scan=new FastReader();\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n long x=scan.nextLong();\n long c=100;\n int y=0;\n while(c<x){\n c+=c/100;\n y++;\n }\n out.println(y);\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args){\n FastReader scan=new FastReader();\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n long x=scan.nextLong();\n long c=100;\n int y=0;\n while(c<x){\n c+=c/100;\n y++;\n }\n out.println(y);\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"Main",
"static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"public static void main(String[] Args){\n FastReader scan=new FastReader();\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n long x=scan.nextLong();\n long c=100;\n int y=0;\n while(c<x){\n c+=c/100;\n y++;\n }\n out.println(y);\n }\n out.flush();\n out.close();\n }",
"main",
"{\n FastReader scan=new FastReader();\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n long x=scan.nextLong();\n long c=100;\n int y=0;\n while(c<x){\n c+=c/100;\n y++;\n }\n out.println(y);\n }\n out.flush();\n out.close();\n }",
"FastReader scan=new FastReader();",
"scan",
"new FastReader()",
"int t=1;",
"t",
"1",
"while(t-->0){\n long x=scan.nextLong();\n long c=100;\n int y=0;\n while(c<x){\n c+=c/100;\n y++;\n }\n out.println(y);\n }",
"t-->0",
"t--",
"t",
"0",
"{\n long x=scan.nextLong();\n long c=100;\n int y=0;\n while(c<x){\n c+=c/100;\n y++;\n }\n out.println(y);\n }",
"long x=scan.nextLong();",
"x",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long c=100;",
"c",
"100",
"int y=0;",
"y",
"0",
"while(c<x){\n c+=c/100;\n y++;\n }",
"c<x",
"c",
"x",
"{\n c+=c/100;\n y++;\n }",
"c+=c/100",
"c",
"c/100",
"c",
"100",
"y++",
"y",
"out.println(y)",
"out.println",
"out",
"y",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] Args",
"Args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\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 {\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 {\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 {\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 {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\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"
] |
//package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
class Main {
static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
public static void main(String[] Args){
FastReader scan=new FastReader();
int t=1;
// t=scan.nextInt();
while(t-->0){
long x=scan.nextLong();
long c=100;
int y=0;
while(c<x){
c+=c/100;
y++;
}
out.println(y);
}
out.flush();
out.close();
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader()
{
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,
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,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
2,
13,
17,
14,
2,
13,
13,
30,
4,
18,
13,
13,
29,
30,
40,
13,
23,
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
],
[
98,
17
],
[
98,
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
],
[
98,
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
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
53,
91
],
[
91,
92
],
[
53,
93
],
[
93,
94
],
[
53,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] |
[
"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 abc165_b solver = new abc165_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc165_b {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\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 abc165_b solver = new abc165_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc165_b {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }\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 abc165_b solver = new abc165_b();\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 abc165_b solver = new abc165_b();\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)",
"abc165_b solver = new abc165_b();",
"solver",
"new abc165_b()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class abc165_b {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }\n }\n\n }",
"abc165_b",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }\n }",
"solve",
"{\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }\n }",
"long X = in.nextLong();",
"X",
"in.nextLong()",
"in.nextLong",
"in",
"long base = 100;",
"base",
"100",
"long year = 1;",
"year",
"1",
"while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }",
"true",
"{\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }",
"base += Math.floor(base / 100)",
"base",
"Math.floor(base / 100)",
"Math.floor",
"Math",
"base / 100",
"base",
"100",
"if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }",
"X <= base",
"X",
"base",
"{\n out.println(year);\n return;\n }",
"out.println(year)",
"out.println",
"out",
"year",
"return;",
"{\n year++;\n }",
"year++",
"year",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"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 abc165_b solver = new abc165_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc165_b {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }\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 abc165_b solver = new abc165_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc165_b {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n long X = in.nextLong();\n long base = 100;\n long year = 1;\n while (true) {\n base += Math.floor(base / 100);\n if (X <= base) {\n out.println(year);\n return;\n } else {\n year++;\n }\n }\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);
abc165_b solver = new abc165_b();
solver.solve(1, in, out);
out.close();
}
static class abc165_b {
public void solve(int testNumber, Scanner in, PrintWriter out) {
long X = in.nextLong();
long base = 100;
long year = 1;
while (true) {
base += Math.floor(base / 100);
if (X <= base) {
out.println(year);
return;
} else {
year++;
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
40,
13,
0,
13,
17,
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
],
[
45,
8
],
[
45,
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
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
9,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long X = scan.nextLong();\n\n long ganpon = 100;\n\n long year = 0;\n\n while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }\n\n System.out.println(year);\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long X = scan.nextLong();\n\n long ganpon = 100;\n\n long year = 0;\n\n while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }\n\n System.out.println(year);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long X = scan.nextLong();\n\n long ganpon = 100;\n\n long year = 0;\n\n while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }\n\n System.out.println(year);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n long X = scan.nextLong();\n\n long ganpon = 100;\n\n long year = 0;\n\n while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }\n\n System.out.println(year);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long X = scan.nextLong();",
"X",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long ganpon = 100;",
"ganpon",
"100",
"long year = 0;",
"year",
"0",
"while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }",
"ganpon < X",
"ganpon",
"X",
"{\n year++;\n ganpon *= 1.01;\n }",
"year++",
"year",
"ganpon *= 1.01",
"ganpon",
"1.01",
"System.out.println(year)",
"System.out.println",
"System.out",
"System",
"System.out",
"year",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long X = scan.nextLong();\n\n long ganpon = 100;\n\n long year = 0;\n\n while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }\n\n System.out.println(year);\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n long X = scan.nextLong();\n\n long ganpon = 100;\n\n long year = 0;\n\n while (ganpon < X) {\n year++;\n ganpon *= 1.01;\n }\n\n System.out.println(year);\n }\n\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long X = scan.nextLong();
long ganpon = 100;
long year = 0;
while (ganpon < X) {
year++;
ganpon *= 1.01;
}
System.out.println(year);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
40,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long x = sc.nextLong();\n long now = 100l;\n long year = 0l;\n while(now < x){\n year++;\n now += now / 100;\n }\n System.out.println(year);\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 long x = sc.nextLong();\n long now = 100l;\n long year = 0l;\n while(now < x){\n year++;\n now += now / 100;\n }\n System.out.println(year);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long x = sc.nextLong();\n long now = 100l;\n long year = 0l;\n while(now < x){\n year++;\n now += now / 100;\n }\n System.out.println(year);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long x = sc.nextLong();\n long now = 100l;\n long year = 0l;\n while(now < x){\n year++;\n now += now / 100;\n }\n System.out.println(year);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long x = sc.nextLong();",
"x",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long now = 100l;",
"now",
"100l",
"long year = 0l;",
"year",
"0l",
"while(now < x){\n year++;\n now += now / 100;\n }",
"now < x",
"now",
"x",
"{\n year++;\n now += now / 100;\n }",
"year++",
"year",
"now += now / 100",
"now",
"now / 100",
"now",
"100",
"System.out.println(year)",
"System.out.println",
"System.out",
"System",
"System.out",
"year",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long x = sc.nextLong();\n long now = 100l;\n long year = 0l;\n while(now < x){\n year++;\n now += now / 100;\n }\n System.out.println(year);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long x = sc.nextLong();\n long now = 100l;\n long year = 0l;\n while(now < x){\n year++;\n now += now / 100;\n }\n System.out.println(year);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long now = 100l;
long year = 0l;
while(now < x){
year++;
now += now / 100;
}
System.out.println(year);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
4,
18,
13,
13,
17,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
87,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
10,
18
],
[
18,
19
],
[
18,
20
],
[
10,
21
],
[
21,
22
],
[
21,
23
],
[
10,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
28,
36
],
[
36,
37
],
[
36,
38
],
[
28,
39
],
[
39,
40
],
[
10,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
8,
47
],
[
47,
48
],
[
87,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
87,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
87,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
87,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t long X=gl();\n\t long yen=100;\n\t long y=0;\n\t while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }\n System.out.print(y);\n\n// if (2*X<=Y&& Y<=4*X && Y%2==0) {\n// \tSystem.out.println(\"Yes\");\n// }else{\n// \tSystem.out.println(\"No\");\n// }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t long X=gl();\n\t long yen=100;\n\t long y=0;\n\t while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }\n System.out.print(y);\n\n// if (2*X<=Y&& Y<=4*X && Y%2==0) {\n// \tSystem.out.println(\"Yes\");\n// }else{\n// \tSystem.out.println(\"No\");\n// }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"Main",
"static Scanner scanner;",
"scanner",
"public static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t long X=gl();\n\t long yen=100;\n\t long y=0;\n\t while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }\n System.out.print(y);\n\n// if (2*X<=Y&& Y<=4*X && Y%2==0) {\n// \tSystem.out.println(\"Yes\");\n// }else{\n// \tSystem.out.println(\"No\");\n// }\n\t}",
"main",
"{\n\t scanner = new Scanner(System.in);\n\n\t long X=gl();\n\t long yen=100;\n\t long y=0;\n\t while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }\n System.out.print(y);\n\n// if (2*X<=Y&& Y<=4*X && Y%2==0) {\n// \tSystem.out.println(\"Yes\");\n// }else{\n// \tSystem.out.println(\"No\");\n// }\n\t}",
"scanner = new Scanner(System.in)",
"scanner",
"new Scanner(System.in)",
"long X=gl();",
"X",
"gl()",
"gl",
"long yen=100;",
"yen",
"100",
"long y=0;",
"y",
"0",
"while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }",
"yen<X",
"yen",
"X",
"{\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }",
"long a=Math.floorDiv(yen, 100);",
"a",
"Math.floorDiv(yen, 100)",
"Math.floorDiv",
"Math",
"yen",
"100",
"yen+=a",
"yen",
"a",
"y++",
"y",
"System.out.print(y)",
"System.out.print",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args",
"// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}",
"gs",
"{\n\t\treturn scanner.next();\n\t}",
"return scanner.next();",
"scanner.next()",
"scanner.next",
"scanner",
"// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}",
"gi",
"{\n\t\treturn Integer.parseInt(scanner.next());\n\t}",
"return Integer.parseInt(scanner.next());",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}",
"gl",
"{\n\t\treturn Long.parseLong(scanner.next());\n\t}",
"return Long.parseLong(scanner.next());",
"Long.parseLong(scanner.next())",
"Long.parseLong",
"Long",
"scanner.next()",
"scanner.next",
"scanner",
"// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}",
"gd",
"{\n\t\treturn Double.parseDouble(scanner.next());\n\t}",
"return Double.parseDouble(scanner.next());",
"Double.parseDouble(scanner.next())",
"Double.parseDouble",
"Double",
"scanner.next()",
"scanner.next",
"scanner",
"public class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t long X=gl();\n\t long yen=100;\n\t long y=0;\n\t while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }\n System.out.print(y);\n\n// if (2*X<=Y&& Y<=4*X && Y%2==0) {\n// \tSystem.out.println(\"Yes\");\n// }else{\n// \tSystem.out.println(\"No\");\n// }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"public class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t long X=gl();\n\t long yen=100;\n\t long y=0;\n\t while (yen<X) {\n\t \tlong a=Math.floorDiv(yen, 100);\n\t \tyen+=a;\n\t \ty++;\n\t }\n System.out.print(y);\n\n// if (2*X<=Y&& Y<=4*X && Y%2==0) {\n// \tSystem.out.println(\"Yes\");\n// }else{\n// \tSystem.out.println(\"No\");\n// }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
long X=gl();
long yen=100;
long y=0;
while (yen<X) {
long a=Math.floorDiv(yen, 100);
yen+=a;
y++;
}
System.out.print(y);
// if (2*X<=Y&& Y<=4*X && Y%2==0) {
// System.out.println("Yes");
// }else{
// System.out.println("No");
// }
}
// 文字列として入力を取得
public static String gs() {
return scanner.next();
}
// intとして入力を取得
public static int gi() {
return Integer.parseInt(scanner.next());
}
// longとして入力を取得
public static long gl() {
return Long.parseLong(scanner.next());
}
// doubleとして入力を取得
public static double gd() {
return Double.parseDouble(scanner.next());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
2,
13,
2,
13,
17,
30,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
20,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args)throws Exception {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong money = scan.nextLong();\n\t\tlong year = 0;\n\t\tfor(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}\n\t\tSystem.out.println(year);\n\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args)throws Exception {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong money = scan.nextLong();\n\t\tlong year = 0;\n\t\tfor(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}\n\t\tSystem.out.println(year);\n\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args)throws Exception {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong money = scan.nextLong();\n\t\tlong year = 0;\n\t\tfor(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}\n\t\tSystem.out.println(year);\n\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong money = scan.nextLong();\n\t\tlong year = 0;\n\t\tfor(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}\n\t\tSystem.out.println(year);\n\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long money = scan.nextLong();",
"money",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long year = 0;",
"year",
"0",
"for(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}",
"long num = 100;",
"long num = 100;",
"num",
"100",
"num < money",
"num",
"money",
"num = num + num/100",
"num = num + num/100",
"num",
"num + num/100",
"num",
"num/100",
"num",
"100",
"{\n\t\t\tyear ++;\n\t\t}",
"{\n\t\t\tyear ++;\n\t\t}",
"year ++",
"year",
"System.out.println(year)",
"System.out.println",
"System.out",
"System",
"System.out",
"year",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)throws Exception {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong money = scan.nextLong();\n\t\tlong year = 0;\n\t\tfor(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}\n\t\tSystem.out.println(year);\n\n\t\tscan.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws Exception {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong money = scan.nextLong();\n\t\tlong year = 0;\n\t\tfor(long num = 100;num < money;num = num + num/100) {\n\t\t\tyear ++;\n\t\t}\n\t\tSystem.out.println(year);\n\n\t\tscan.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args)throws Exception {
Scanner scan = new Scanner(System.in);
long money = scan.nextLong();
long year = 0;
for(long num = 100;num < money;num = num + num/100) {
year ++;
}
System.out.println(year);
scan.close();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.