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,
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,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
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
],
[
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
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
64,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"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\n for(int i=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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\n for(int i=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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\n for(int i=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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\n for(int i=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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 break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\n }\n }",
"{\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\n }\n }",
"if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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 break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if(i==1000){\n System.out.println(\"NG\");\n break;\n }",
"i==1000",
"i",
"1000",
"{\n System.out.println(\"NG\");\n break;\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"break;",
"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 for(int i=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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\n for(int i=1 ; i<=1000 ; i++){\n if(a<=(k*i) && (k*i)<=b){\n System.out.println(\"OK\");\n break;\n }else if(i==1000){\n System.out.println(\"NG\");\n break;\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=1 ; i<=1000 ; i++){
if(a<=(k*i) && (k*i)<=b){
System.out.println("OK");
break;
}else if(i==1000){
System.out.println("NG");
break;
}
}
}
}
|
[
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,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
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
],
[
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
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
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
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
63,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"/*\nIf you want to aim high, aim high\nDon't let that studying and grades consume you\nJust live life young\n******************************\nIf I'm the sun, you're the moon\nBecause when I go up, you go down\n*******************************\nI'm working for the day I will surpass you\nhttps://www.a2oj.com/Ladder16.html\n*/\nimport java.util.*;\nimport java.io.*;\nimport java.math.*;\n\n public class Main\n {\n public static void main(String omkar[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); \n int T = Integer.parseInt(infile.readLine());\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int N = Integer.parseInt(st.nextToken());\n int M = Integer.parseInt(st.nextToken());\n for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n }",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n {\n public static void main(String omkar[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); \n int T = Integer.parseInt(infile.readLine());\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int N = Integer.parseInt(st.nextToken());\n int M = Integer.parseInt(st.nextToken());\n for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n }",
"Main",
"public static void main(String omkar[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); \n int T = Integer.parseInt(infile.readLine());\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int N = Integer.parseInt(st.nextToken());\n int M = Integer.parseInt(st.nextToken());\n for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); \n int T = Integer.parseInt(infile.readLine());\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int N = Integer.parseInt(st.nextToken());\n int M = Integer.parseInt(st.nextToken());\n for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }",
"BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));",
"infile",
"new BufferedReader(new InputStreamReader(System.in))",
"int T = Integer.parseInt(infile.readLine());",
"T",
"Integer.parseInt(infile.readLine())",
"Integer.parseInt",
"Integer",
"infile.readLine()",
"infile.readLine",
"infile",
"StringTokenizer st = new StringTokenizer(infile.readLine());",
"st",
"new StringTokenizer(infile.readLine())",
"int N = Integer.parseInt(st.nextToken());",
"N",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int M = Integer.parseInt(st.nextToken());",
"M",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }",
"int i=N;",
"int i=N;",
"i",
"N",
"i <= M",
"i",
"M",
"i++",
"i++",
"i",
"if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }",
"if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }",
"i%T == 0",
"i%T",
"i",
"T",
"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\"",
"String omkar[]",
"omkar",
"public class Main\n {\n public static void main(String omkar[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); \n int T = Integer.parseInt(infile.readLine());\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int N = Integer.parseInt(st.nextToken());\n int M = Integer.parseInt(st.nextToken());\n for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n }",
"public class Main\n {\n public static void main(String omkar[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); \n int T = Integer.parseInt(infile.readLine());\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int N = Integer.parseInt(st.nextToken());\n int M = Integer.parseInt(st.nextToken());\n for(int i=N; i <= M; i++)\n if(i%T == 0)\n {\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n }",
"Main"
] |
/*
If you want to aim high, aim high
Don't let that studying and grades consume you
Just live life young
******************************
If I'm the sun, you're the moon
Because when I go up, you go down
*******************************
I'm working for the day I will surpass you
https://www.a2oj.com/Ladder16.html
*/
import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
public static void main(String omkar[]) throws Exception
{
BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(infile.readLine());
StringTokenizer st = new StringTokenizer(infile.readLine());
int N = Integer.parseInt(st.nextToken());
int M = Integer.parseInt(st.nextToken());
for(int i=N; i <= M; i++)
if(i%T == 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,
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
],
[
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
],
[
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
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
55,
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.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(),A=sc.nextInt(),B=sc.nextInt();\n\t\tboolean flag= false;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}\n\t\tif(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\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 sc = new Scanner(System.in);\n\t\tint K= sc.nextInt(),A=sc.nextInt(),B=sc.nextInt();\n\t\tboolean flag= false;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}\n\t\tif(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n\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(),A=sc.nextInt(),B=sc.nextInt();\n\t\tboolean flag= false;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}\n\t\tif(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K= sc.nextInt(),A=sc.nextInt(),B=sc.nextInt();\n\t\tboolean flag= false;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}\n\t\tif(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int 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= false;",
"flag",
"false",
"for(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\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\tflag=true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}",
"if(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}",
"i%K==0",
"i%K",
"i",
"K",
"0",
"{\n\t\t\t\tflag=true;\n\t\t\t}",
"flag=true",
"flag",
"true",
"if(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"flag",
"{\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 sc = new Scanner(System.in);\n\t\tint K= sc.nextInt(),A=sc.nextInt(),B=sc.nextInt();\n\t\tboolean flag= false;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}\n\t\tif(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n\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(),A=sc.nextInt(),B=sc.nextInt();\n\t\tboolean flag= false;\n\t\tfor(int i=A;i<B+1;i++) {\n\t\t\tif(i%K==0) {\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t}\n\t\tif(flag) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K= sc.nextInt(),A=sc.nextInt(),B=sc.nextInt();
boolean flag= false;
for(int i=A;i<B+1;i++) {
if(i%K==0) {
flag=true;
}
}
if(flag) {
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,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
8,
2,
2,
2,
13,
13,
2,
13,
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
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
27,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
27,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
52,
62
],
[
52,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}\n\t}\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\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}\n\t}",
"main",
"{\n\t\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\tif(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\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",
"if(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}",
"a % k == 0 || b % k == 0",
"a % k == 0",
"a % k",
"a",
"k",
"0",
"b % k == 0",
"b % k",
"b",
"k",
"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(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}",
"System.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"b / k - a / k >=1 ? \"OK\" : \"NG\"",
"b / k - a / k >=1",
"b / k - a / k",
"b / k",
"b",
"k",
"a / k",
"a",
"k",
"1",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public 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\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif(a % k == 0 || b % k == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(b / k - a / k >=1 ? \"OK\" : \"NG\");\t\n\t\t}\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(a % k == 0 || b % k == 0) {
System.out.println("OK");
} else {
System.out.println(b / k - a / k >=1 ? "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,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
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,
29,
4,
18,
18,
13,
13,
17,
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
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
33,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
62,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt(), A = sc.nextInt(), B = sc.nextInt();\n if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }\n\n for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }\n System.out.print(\"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(), A = sc.nextInt(), B = sc.nextInt();\n if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }\n\n for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }\n System.out.print(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt(), A = sc.nextInt(), B = sc.nextInt();\n if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }\n\n for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }\n System.out.print(\"NG\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt(), A = sc.nextInt(), B = sc.nextInt();\n if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }\n\n for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }\n System.out.print(\"NG\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int 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",
"if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }",
"B - A >= K",
"B - A",
"B",
"A",
"K",
"{\n System.out.print(\"OK\");\n return;\n }",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\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.print(\"OK\");\n return;\n }\n }",
"{\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }",
"if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n System.out.print(\"OK\");\n return;\n }",
"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",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt(), A = sc.nextInt(), B = sc.nextInt();\n if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }\n\n for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }\n 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 K = sc.nextInt(), A = sc.nextInt(), B = sc.nextInt();\n if(B - A >= K) {\n System.out.print(\"OK\");\n return;\n }\n\n for(int i = A; i < B + 1; i++) {\n if(i % K == 0) {\n System.out.print(\"OK\");\n return;\n }\n }\n System.out.print(\"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(), A = sc.nextInt(), B = sc.nextInt();
if(B - A >= K) {
System.out.print("OK");
return;
}
for(int i = A; i < B + 1; i++) {
if(i % K == 0) {
System.out.print("OK");
return;
}
}
System.out.print("NG");
}
}
|
[
7,
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,
11,
1,
41,
13,
13,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
29,
4,
18,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
73,
8
],
[
73,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
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
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
54,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
9,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n PrintWriter printWriter = new PrintWriter(System.out);\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }\n printWriter.println(\"NG\");\n printWriter.flush();\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n PrintWriter printWriter = new PrintWriter(System.out);\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }\n printWriter.println(\"NG\");\n printWriter.flush();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n PrintWriter printWriter = new PrintWriter(System.out);\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }\n printWriter.println(\"NG\");\n printWriter.flush();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n PrintWriter printWriter = new PrintWriter(System.out);\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }\n printWriter.println(\"NG\");\n printWriter.flush();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"PrintWriter printWriter = new PrintWriter(System.out);",
"printWriter",
"new PrintWriter(System.out)",
"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",
"for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\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 printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }",
"{\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }",
"if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }",
"printWriter.println(\"OK\")",
"printWriter.println",
"printWriter",
"\"OK\"",
"printWriter.flush()",
"printWriter.flush",
"printWriter",
"return;",
"printWriter.println(\"NG\")",
"printWriter.println",
"printWriter",
"\"NG\"",
"printWriter.flush()",
"printWriter.flush",
"printWriter",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n PrintWriter printWriter = new PrintWriter(System.out);\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }\n printWriter.println(\"NG\");\n printWriter.flush();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n PrintWriter printWriter = new PrintWriter(System.out);\n int k = scanner.nextInt();\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n for (int i = a; i < b + 1; i++){\n if (i % k == 0) {\n printWriter.println(\"OK\");\n printWriter.flush();\n return;\n }\n }\n printWriter.println(\"NG\");\n printWriter.flush();\n }\n}",
"Main"
] |
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
PrintWriter printWriter = new PrintWriter(System.out);
int k = scanner.nextInt();
int a = scanner.nextInt();
int b = scanner.nextInt();
for (int i = a; i < b + 1; i++){
if (i % k == 0) {
printWriter.println("OK");
printWriter.flush();
return;
}
}
printWriter.println("NG");
printWriter.flush();
}
}
|
[
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,
2,
13,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
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
],
[
36,
37
],
[
36,
38
],
[
33,
39
],
[
32,
40
],
[
32,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
] |
[
"import java.util.Scanner;\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\tSystem.out.println((b-b%k>=a)?\"OK\":\"NG\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tSystem.out.println((b-b%k>=a)?\"OK\":\"NG\");\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\tSystem.out.println((b-b%k>=a)?\"OK\":\"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\tSystem.out.println((b-b%k>=a)?\"OK\":\"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",
"System.out.println((b-b%k>=a)?\"OK\":\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(b-b%k>=a)?\"OK\":\"NG\"",
"(b-b%k>=a)",
"b-b%k",
"b",
"b%k",
"b",
"k",
"a",
"\"OK\"",
"\"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\tSystem.out.println((b-b%k>=a)?\"OK\":\"NG\");\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\tSystem.out.println((b-b%k>=a)?\"OK\":\"NG\");\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-b%k>=a)?"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,
14,
2,
2,
2,
2,
13,
13,
13,
13,
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
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
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
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
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
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\nint K= scan.nextInt();\n\n int A= scan.nextInt();\n\n int B= scan.nextInt();\n\n int N=A%K;\n if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");};\n\n\n\n // write your code here\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\nint K= scan.nextInt();\n\n int A= scan.nextInt();\n\n int B= scan.nextInt();\n\n int N=A%K;\n if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");};\n\n\n\n // write your code here\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\nint K= scan.nextInt();\n\n int A= scan.nextInt();\n\n int B= scan.nextInt();\n\n int N=A%K;\n if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");};\n\n\n\n // write your code here\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\nint K= scan.nextInt();\n\n int A= scan.nextInt();\n\n int B= scan.nextInt();\n\n int N=A%K;\n if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");};\n\n\n\n // write your code here\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",
"int N=A%K;",
"N",
"A%K",
"A",
"K",
"if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");}",
"(N+B-A>=K)||(N==0)",
"(N+B-A>=K)",
"N+B-A",
"N+B",
"N",
"B",
"A",
"K",
"(N==0)",
"N",
"0",
"{System.out.println(\"OK\");}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{System.out.println(\"NG\");}",
"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 scan=new Scanner(System.in);\nint K= scan.nextInt();\n\n int A= scan.nextInt();\n\n int B= scan.nextInt();\n\n int N=A%K;\n if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");};\n\n\n\n // write your code here\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\nint K= scan.nextInt();\n\n int A= scan.nextInt();\n\n int B= scan.nextInt();\n\n int N=A%K;\n if((N+B-A>=K)||(N==0)){System.out.println(\"OK\");}\n else {System.out.println(\"NG\");};\n\n\n\n // write your code here\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();
int N=A%K;
if((N+B-A>=K)||(N==0)){System.out.println("OK");}
else {System.out.println("NG");};
// write your code here
}
}
|
[
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,
42,
17,
30,
14,
2,
13,
13,
30,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
0,
13,
2,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
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
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
42,
49
],
[
33,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
54,
61
],
[
32,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n public static void main(final 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 int Kc = K;\n while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(final 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 int Kc = K;\n while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }\n\n }\n}",
"Main",
"public static void main(final 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 int Kc = K;\n while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }\n\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 int Kc = K;\n while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }\n\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",
"int Kc = K;",
"Kc",
"K",
"while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }",
"true",
"{\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }",
"if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }",
"Kc <= B",
"Kc",
"B",
"{\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }",
"if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }",
"Kc >= A",
"Kc",
"A",
"{\n System.out.println(\"OK\");\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if(Kc > B){\n System.out.println(\"NG\");\n break;\n }",
"Kc > B",
"Kc",
"B",
"{\n System.out.println(\"NG\");\n break;\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"break;",
"Kc = Kc + K",
"Kc",
"Kc + K",
"Kc",
"K",
"final String args[]",
"args",
"public class Main{\n public static void main(final 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 int Kc = K;\n while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }\n\n }\n}",
"public class Main{\n public static void main(final 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 int Kc = K;\n while(true){\n if(Kc <= B){\n if(Kc >= A){\n System.out.println(\"OK\");\n break;\n }\n }else if(Kc > B){\n System.out.println(\"NG\");\n break;\n }\n Kc = Kc + K;\n \n }\n\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(final String args[]) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
int Kc = K;
while(true){
if(Kc <= B){
if(Kc >= A){
System.out.println("OK");
break;
}
}else if(Kc > B){
System.out.println("NG");
break;
}
Kc = Kc + K;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
13,
13,
13,
13,
23,
13,
12,
13,
30,
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,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
94,
5
],
[
94,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
33,
37
],
[
6,
38
],
[
38,
39
],
[
94,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
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
],
[
66,
68
],
[
42,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
69,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
40,
87
],
[
87,
88
],
[
40,
89
],
[
89,
90
],
[
40,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint k;\n\t\tint A;\n\t\tint B;\n\t\t Scanner scan = new Scanner(System.in);\n\t\t \n\t\t // Read the next integer from the screen \n\t\t \tk= scan.nextInt(); \n\t\t \t\n\t \n\t // Read the next integer from the screen \n\t A = scan.nextInt(); \n\t \n\t \n\t \n\t // Read the next integer from the screen \n\t B= scan.nextInt();\n\t check(k,A,B);\n\t }\n\tpublic static void check(int k,int A,int B)\n\t{\n\t\tint l=0;\n\t\tfor(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint k;\n\t\tint A;\n\t\tint B;\n\t\t Scanner scan = new Scanner(System.in);\n\t\t \n\t\t // Read the next integer from the screen \n\t\t \tk= scan.nextInt(); \n\t\t \t\n\t \n\t // Read the next integer from the screen \n\t A = scan.nextInt(); \n\t \n\t \n\t \n\t // Read the next integer from the screen \n\t B= scan.nextInt();\n\t check(k,A,B);\n\t }\n\tpublic static void check(int k,int A,int B)\n\t{\n\t\tint l=0;\n\t\tfor(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint k;\n\t\tint A;\n\t\tint B;\n\t\t Scanner scan = new Scanner(System.in);\n\t\t \n\t\t // Read the next integer from the screen \n\t\t \tk= scan.nextInt(); \n\t\t \t\n\t \n\t // Read the next integer from the screen \n\t A = scan.nextInt(); \n\t \n\t \n\t \n\t // Read the next integer from the screen \n\t B= scan.nextInt();\n\t check(k,A,B);\n\t }",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\n\t\tint k;\n\t\tint A;\n\t\tint B;\n\t\t Scanner scan = new Scanner(System.in);\n\t\t \n\t\t // Read the next integer from the screen \n\t\t \tk= scan.nextInt(); \n\t\t \t\n\t \n\t // Read the next integer from the screen \n\t A = scan.nextInt(); \n\t \n\t \n\t \n\t // Read the next integer from the screen \n\t B= scan.nextInt();\n\t check(k,A,B);\n\t }",
"int k;",
"k",
"int A;",
"A",
"int B;",
"B",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"k= scan.nextInt()",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"A = scan.nextInt()",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"B= scan.nextInt()",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"check(k,A,B)",
"check",
"k",
"A",
"B",
"String[] args",
"args",
"public static void check(int k,int A,int B)\n\t{\n\t\tint l=0;\n\t\tfor(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}\t\n\t}",
"check",
"{\n\t\tint l=0;\n\t\tfor(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}\t\n\t}",
"int l=0;",
"l",
"0",
"for(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\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{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}",
"if(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n\t\t\tl=1\t;\n\t\t\t}",
"l=1",
"l",
"1",
"if(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}",
"l==1",
"l",
"1",
"{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"int k",
"k",
"int A",
"A",
"int B",
"B",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint k;\n\t\tint A;\n\t\tint B;\n\t\t Scanner scan = new Scanner(System.in);\n\t\t \n\t\t // Read the next integer from the screen \n\t\t \tk= scan.nextInt(); \n\t\t \t\n\t \n\t // Read the next integer from the screen \n\t A = scan.nextInt(); \n\t \n\t \n\t \n\t // Read the next integer from the screen \n\t B= scan.nextInt();\n\t check(k,A,B);\n\t }\n\tpublic static void check(int k,int A,int B)\n\t{\n\t\tint l=0;\n\t\tfor(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}\t\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint k;\n\t\tint A;\n\t\tint B;\n\t\t Scanner scan = new Scanner(System.in);\n\t\t \n\t\t // Read the next integer from the screen \n\t\t \tk= scan.nextInt(); \n\t\t \t\n\t \n\t // Read the next integer from the screen \n\t A = scan.nextInt(); \n\t \n\t \n\t \n\t // Read the next integer from the screen \n\t B= scan.nextInt();\n\t check(k,A,B);\n\t }\n\tpublic static void check(int k,int A,int B)\n\t{\n\t\tint l=0;\n\t\tfor(int i=A;i<=B;i++)\n\t\t{\n\t\t\tif(i%k==0)\n\t\t\t{\n\t\t\tl=1\t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l==1)\n\t\t{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"NG\");\t\n\t\t}\t\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
int k;
int A;
int B;
Scanner scan = new Scanner(System.in);
// Read the next integer from the screen
k= scan.nextInt();
// Read the next integer from the screen
A = scan.nextInt();
// Read the next integer from the screen
B= scan.nextInt();
check(k,A,B);
}
public static void check(int k,int A,int B)
{
int l=0;
for(int i=A;i<=B;i++)
{
if(i%k==0)
{
l=1 ;
}
}
if(l==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,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
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
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
27,
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
],
[
40,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
54,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
53,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
8,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\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\n\t\tif (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\t\n\treturn;\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\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\n\t\tif (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\t\n\treturn;\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\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\n\t\tif (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\t\n\treturn;\n\n\t}",
"main",
"{\n\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\n\t\tif (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\t\n\treturn;\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 (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}",
"A % K == 0",
"A % K",
"A",
"K",
"0",
"{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}",
"B % K == 0",
"B % K",
"B",
"K",
"0",
"{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}",
"(A / K + 1) * K < B",
"(A / K + 1) * K",
"(A / K + 1)",
"A / K",
"A",
"K",
"1",
"K",
"B",
"{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.print(\"NG\");\n\t\t}",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"return;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\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\n\t\tif (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\t\n\treturn;\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\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\n\t\tif (A % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if (B % K == 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else if ((A / K + 1) * K < B) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\t\n\treturn;\n\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();
if (A % K == 0) {
System.out.print("OK");
} else if (B % K == 0) {
System.out.print("OK");
} else if ((A / K + 1) * K < B) {
System.out.print("OK");
} else {
System.out.print("NG");
}
return;
}
}
|
[
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,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
52,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tlong K = scanner.nextLong();\n\t\tlong a = scanner.nextLong();\n\t\tlong b = scanner.nextLong();\n\t\tlong a1;\n\t\tlong b1;\n\t\ta1 = a/K;\n\t\tb1 = b/K;\n\t\tif (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\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 scanner = new Scanner(System.in);\n\t\tlong K = scanner.nextLong();\n\t\tlong a = scanner.nextLong();\n\t\tlong b = scanner.nextLong();\n\t\tlong a1;\n\t\tlong b1;\n\t\ta1 = a/K;\n\t\tb1 = b/K;\n\t\tif (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\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 scanner = new Scanner(System.in);\n\t\tlong K = scanner.nextLong();\n\t\tlong a = scanner.nextLong();\n\t\tlong b = scanner.nextLong();\n\t\tlong a1;\n\t\tlong b1;\n\t\ta1 = a/K;\n\t\tb1 = b/K;\n\t\tif (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\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 scanner = new Scanner(System.in);\n\t\tlong K = scanner.nextLong();\n\t\tlong a = scanner.nextLong();\n\t\tlong b = scanner.nextLong();\n\t\tlong a1;\n\t\tlong b1;\n\t\ta1 = a/K;\n\t\tb1 = b/K;\n\t\tif (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long K = scanner.nextLong();",
"K",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long a = scanner.nextLong();",
"a",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long b = scanner.nextLong();",
"b",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"long a1;",
"a1",
"long b1;",
"b1",
"a1 = a/K",
"a1",
"a/K",
"a",
"K",
"b1 = b/K",
"b1",
"b/K",
"b",
"K",
"if (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"K == 1",
"K",
"1",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"a % K == 0 || b % K == 0",
"a % K == 0",
"a % K",
"a",
"K",
"0",
"b % K == 0",
"b % K",
"b",
"K",
"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 (b1 != a1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"b1 != a1",
"b1",
"a1",
"{\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 scanner = new Scanner(System.in);\n\t\tlong K = scanner.nextLong();\n\t\tlong a = scanner.nextLong();\n\t\tlong b = scanner.nextLong();\n\t\tlong a1;\n\t\tlong b1;\n\t\ta1 = a/K;\n\t\tb1 = b/K;\n\t\tif (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\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 scanner = new Scanner(System.in);\n\t\tlong K = scanner.nextLong();\n\t\tlong a = scanner.nextLong();\n\t\tlong b = scanner.nextLong();\n\t\tlong a1;\n\t\tlong b1;\n\t\ta1 = a/K;\n\t\tb1 = b/K;\n\t\tif (K == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if(a % K == 0 || b % K == 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else if (b1 != a1) {\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 scanner = new Scanner(System.in);
long K = scanner.nextLong();
long a = scanner.nextLong();
long b = scanner.nextLong();
long a1;
long b1;
a1 = a/K;
b1 = b/K;
if (K == 1) {
System.out.println("OK");
} else if(a % K == 0 || b % K == 0) {
System.out.println("OK");
} else if (b1 != a1) {
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,
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
],
[
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
],
[
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.Scanner;\n\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\n\t\t//倍数\n\t\tint K = sc.nextInt();\n\t\t//以上\n\t\tint A = sc.nextInt();\n\t\t//以下\n\t\tint B = sc.nextInt();\n\n\t\tsc.close();\n\n\t\t//A以上Bまでの範囲\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//倍数\n\t\tint K = sc.nextInt();\n\t\t//以上\n\t\tint A = sc.nextInt();\n\t\t//以下\n\t\tint B = sc.nextInt();\n\n\t\tsc.close();\n\n\t\t//A以上Bまでの範囲\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\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\n\t\t//倍数\n\t\tint K = sc.nextInt();\n\t\t//以上\n\t\tint A = sc.nextInt();\n\t\t//以下\n\t\tint B = sc.nextInt();\n\n\t\tsc.close();\n\n\t\t//A以上Bまでの範囲\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//倍数\n\t\tint K = sc.nextInt();\n\t\t//以上\n\t\tint A = sc.nextInt();\n\t\t//以下\n\t\tint B = sc.nextInt();\n\n\t\tsc.close();\n\n\t\t//A以上Bまでの範囲\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.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",
"sc.close()",
"sc.close",
"sc",
"for (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\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\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}",
"if (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\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\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//倍数\n\t\tint K = sc.nextInt();\n\t\t//以上\n\t\tint A = sc.nextInt();\n\t\t//以下\n\t\tint B = sc.nextInt();\n\n\t\tsc.close();\n\n\t\t//A以上Bまでの範囲\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\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\n\t\t//倍数\n\t\tint K = sc.nextInt();\n\t\t//以上\n\t\tint A = sc.nextInt();\n\t\t//以下\n\t\tint B = sc.nextInt();\n\n\t\tsc.close();\n\n\t\t//A以上Bまでの範囲\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
//倍数
int K = sc.nextInt();
//以上
int A = sc.nextInt();
//以下
int B = sc.nextInt();
sc.close();
//A以上Bまでの範囲
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,
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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
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
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean flg = false;\n for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }\n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n sc.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n boolean flg = false;\n for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }\n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n sc.close();\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 boolean flg = false;\n for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }\n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n sc.close();\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 boolean flg = false;\n for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }\n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\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",
"boolean flg = false;",
"flg",
"false",
"for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = 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 flg = true;\n break;\n }\n }",
"{\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }",
"if ((i % k) == 0) {\n flg = true;\n break;\n }",
"(i % k) == 0",
"(i % k)",
"i",
"k",
"0",
"{\n flg = true;\n break;\n }",
"flg = true",
"flg",
"true",
"break;",
"if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"flg",
"{\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",
"public class Main {\n\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 boolean flg = false;\n for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }\n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n sc.close();\n }\n\n}",
"public class Main {\n\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 boolean flg = false;\n for (int i = a; i <= b; i++) {\n if ((i % k) == 0) {\n flg = true;\n break;\n }\n }\n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n\n sc.close();\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();
boolean flg = false;
for (int i = a; i <= b; i++) {
if ((i % k) == 0) {
flg = true;
break;
}
}
if (flg) {
System.out.println("OK");
} else {
System.out.println("NG");
}
sc.close();
}
}
|
[
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,
14,
2,
2,
4,
18,
13,
2,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
308,
8
],
[
308,
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
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
31,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
30,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
9,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
57,
64
],
[
64,
65
],
[
64,
66
],
[
57,
68
],
[
68,
69
],
[
68,
70
],
[
57,
71
],
[
71,
72
],
[
71,
73
],
[
57,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
88,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
84,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
76,
109
],
[
109,
110
],
[
57,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
57,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
133,
135
],
[
125,
136
],
[
136,
137
],
[
57,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
141,
151
],
[
151,
152
],
[
140,
153
],
[
153,
154
],
[
154,
155
],
[
57,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
159,
163
],
[
163,
164
],
[
158,
165
],
[
165,
166
],
[
165,
167
],
[
158,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
158,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
158,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
57,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
192,
196
],
[
196,
197
],
[
191,
198
],
[
198,
199
],
[
198,
200
],
[
191,
201
],
[
201,
202
],
[
201,
203
],
[
191,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
191,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
191,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
225,
227
],
[
220,
228
],
[
228,
229
],
[
229,
230
],
[
191,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
242,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
248,
250
],
[
234,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
252,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
251,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
263,
267
],
[
251,
268
],
[
268,
269
],
[
269,
270
],
[
233,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
57,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
277,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
286,
288
],
[
283,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
291,
293
],
[
282,
294
],
[
294,
295
],
[
277,
296
],
[
296,
297
],
[
57,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
305,
306
],
[
0,
307
],
[
307,
308
],
[
307,
309
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tint k = fs.nextInt();\n\t\tint a = fs.nextInt();\n\t\tint b = fs.nextInt();\n\t\tif ((Math.ceil((double) a / k)) * k <= 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\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tint k = fs.nextInt();\n\t\tint a = fs.nextInt();\n\t\tint b = fs.nextInt();\n\t\tif ((Math.ceil((double) a / k)) * k <= 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}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tint k = fs.nextInt();\n\t\tint a = fs.nextInt();\n\t\tint b = fs.nextInt();\n\t\tif ((Math.ceil((double) a / k)) * k <= 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\tFastScanner fs = new FastScanner();\n\t\tint k = fs.nextInt();\n\t\tint a = fs.nextInt();\n\t\tint b = fs.nextInt();\n\t\tif ((Math.ceil((double) a / k)) * k <= b) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int k = fs.nextInt();",
"k",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int a = fs.nextInt();",
"a",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int b = fs.nextInt();",
"b",
"fs.nextInt()",
"fs.nextInt",
"fs",
"if ((Math.ceil((double) a / k)) * k <= b) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"(Math.ceil((double) a / k)) * k <= b",
"(Math.ceil((double) a / k)) * k",
"(Math.ceil((double) a / k))",
"Math.ceil",
"Math",
"(double) a / k",
"(double) a",
"k",
"k",
"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",
"class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\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\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"hasNextByte",
"{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr = 0",
"ptr",
"0",
"try {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t}",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}",
"buflen <= 0",
"buflen",
"0",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}",
"readByte",
"{\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}",
"if (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}",
"isPrintableChar",
"{\n\t\treturn 33 <= c && c <= 126;\n\t}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}",
"hasNext",
"{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}",
"while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;",
"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\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"next",
"{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"if (!hasNext())\n\t\t\tthrow 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\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"nextLong",
"{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"if (!hasNext())\n\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"nextInt",
"{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tint k = fs.nextInt();\n\t\tint a = fs.nextInt();\n\t\tint b = fs.nextInt();\n\t\tif ((Math.ceil((double) a / k)) * k <= 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}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tint k = fs.nextInt();\n\t\tint a = fs.nextInt();\n\t\tint b = fs.nextInt();\n\t\tif ((Math.ceil((double) a / k)) * k <= 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}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int k = fs.nextInt();
int a = fs.nextInt();
int b = fs.nextInt();
if ((Math.ceil((double) a / k)) * k <= b) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
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();
}
public long nextLong() {
if (!hasNext())
throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() {
return Double.parseDouble(next());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
30,
41,
13,
2,
2,
13,
13,
13,
42,
2,
2,
13,
13,
13,
30,
0,
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,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
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
],
[
247,
14
],
[
247,
15
],
[
15,
16
],
[
15,
17
],
[
247,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
18,
31
],
[
31,
32
],
[
247,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
63,
70
],
[
51,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
97,
104
],
[
35,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
247,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
115,
120
],
[
111,
121
],
[
121,
122
],
[
111,
123
],
[
123,
124
],
[
247,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
129,
134
],
[
125,
135
],
[
135,
136
],
[
125,
137
],
[
137,
138
],
[
247,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
148,
151
],
[
151,
152
],
[
151,
153
],
[
139,
154
],
[
154,
155
],
[
139,
156
],
[
156,
157
],
[
247,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
158,
162
],
[
162,
163
],
[
158,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
158,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
173,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
183,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
172,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
158,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
158,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
214,
215
],
[
158,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
223,
224
],
[
158,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
231,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
227,
244
],
[
244,
245
],
[
0,
246
],
[
246,
247
],
[
246,
248
]
] |
[
"//package code;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n/**\n *\n * @author Milo\n */\npublic class Main {\n \n static FastReader in = new FastReader();\n public static void main(String[] args) {\n int t = 1; //in.nextInt();\n while (t-- > 0)\n solve();\n }\n \n public static void solve() {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n \n if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }\n System.out.println(\"NG\");\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 \n public static int max(int a, int b) {\n return a > b ? a : b;\n }\n \n public static int min(int a, int b) {\n return a < b ? a : b;\n }\n \n public static int gcd(int a, int b) {\n return b == 0 ? a : gcd(b, (a % b));\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 static FastReader in = new FastReader();\n public static void main(String[] args) {\n int t = 1; //in.nextInt();\n while (t-- > 0)\n solve();\n }\n \n public static void solve() {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n \n if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }\n System.out.println(\"NG\");\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 \n public static int max(int a, int b) {\n return a > b ? a : b;\n }\n \n public static int min(int a, int b) {\n return a < b ? a : b;\n }\n \n public static int gcd(int a, int b) {\n return b == 0 ? a : gcd(b, (a % b));\n }\n}",
"Main",
"static FastReader in = new FastReader();",
"in",
"new FastReader()",
"public static void main(String[] args) {\n int t = 1; //in.nextInt();\n while (t-- > 0)\n solve();\n }",
"main",
"{\n int t = 1; //in.nextInt();\n while (t-- > 0)\n solve();\n }",
"int t = 1;",
"t",
"1",
"while (t-- > 0)\n solve();",
"t-- > 0",
"t--",
"t",
"0",
"solve()",
"solve",
"String[] args",
"args",
"public static void solve() {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n \n if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }\n System.out.println(\"NG\");\n \n }",
"solve",
"{\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n \n if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }\n System.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",
"if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\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 return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }",
"int st = (a / k) * k;",
"st",
"(a / k) * k",
"(a / k)",
"a",
"k",
"k",
"while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }",
"st + k <= b",
"st + k",
"st",
"k",
"b",
"{\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }",
"st += k",
"st",
"k",
"if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }",
"st >= a && st <= b",
"st >= a",
"st",
"a",
"st <= b",
"st",
"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\"",
"public static int max(int a, int b) {\n return a > b ? a : b;\n }",
"max",
"{\n return a > b ? a : b;\n }",
"return a > b ? a : b;",
"a > b ? a : b",
"a > b",
"a",
"b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static int min(int a, int b) {\n return a < b ? a : b;\n }",
"min",
"{\n return a < b ? a : b;\n }",
"return a < b ? a : b;",
"a < b ? a : b",
"a < b",
"a",
"b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static int gcd(int a, int b) {\n return b == 0 ? a : gcd(b, (a % b));\n }",
"gcd",
"{\n return b == 0 ? a : gcd(b, (a % b));\n }",
"return b == 0 ? a : gcd(b, (a % b));",
"b == 0 ? a : gcd(b, (a % b))",
"b == 0",
"b",
"0",
"a",
"gcd(b, (a % b))",
"gcd",
"b",
"(a % b)",
"a",
"b",
"int a",
"a",
"int b",
"b",
"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 \n static FastReader in = new FastReader();\n public static void main(String[] args) {\n int t = 1; //in.nextInt();\n while (t-- > 0)\n solve();\n }\n \n public static void solve() {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n \n if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }\n System.out.println(\"NG\");\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 \n public static int max(int a, int b) {\n return a > b ? a : b;\n }\n \n public static int min(int a, int b) {\n return a < b ? a : b;\n }\n \n public static int gcd(int a, int b) {\n return b == 0 ? a : gcd(b, (a % b));\n }\n}",
"public class Main {\n \n static FastReader in = new FastReader();\n public static void main(String[] args) {\n int t = 1; //in.nextInt();\n while (t-- > 0)\n solve();\n }\n \n public static void solve() {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n \n if(a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }else{\n int st = (a / k) * k;\n while(st + k <= b){\n st += k;\n if(st >= a && st <= b){\n System.out.println(\"OK\");\n return;\n }\n }\n }\n System.out.println(\"NG\");\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 \n public static int max(int a, int b) {\n return a > b ? a : b;\n }\n \n public static int min(int a, int b) {\n return a < b ? a : b;\n }\n \n public static int gcd(int a, int b) {\n return b == 0 ? a : gcd(b, (a % b));\n }\n}",
"Main"
] |
//package code;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
*
* @author Milo
*/
public class Main {
static FastReader in = new FastReader();
public static void main(String[] args) {
int t = 1; //in.nextInt();
while (t-- > 0)
solve();
}
public static void solve() {
int k = in.nextInt();
int a = in.nextInt();
int b = in.nextInt();
if(a % k == 0 || b % k == 0){
System.out.println("OK");
return;
}else{
int st = (a / k) * k;
while(st + k <= b){
st += k;
if(st >= a && st <= b){
System.out.println("OK");
return;
}
}
}
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;
}
}
public static int max(int a, int b) {
return a > b ? a : b;
}
public static int min(int a, int b) {
return a < b ? a : b;
}
public static int gcd(int a, int b) {
return b == 0 ? a : gcd(b, (a % b));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
18,
13,
17,
2,
13,
13,
2,
2,
13,
13,
4,
18,
13,
18,
13,
17,
30,
0,
13,
17,
9,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
54,
56
],
[
42,
57
],
[
57,
58
],
[
58,
59
],
[
42,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
71,
72
],
[
71,
73
],
[
63,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
62,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] |
[
"import java.io.*;\npublic class Main{\n public static void main(String[] args) throws IOException{\n int K;\n String str;\n String[] A = new String[2];\n String ans = \"NG\";\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n K = Integer.parseInt(r.readLine());\n str = r.readLine();\n A = (str.split(\" \"));\n for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException{\n int K;\n String str;\n String[] A = new String[2];\n String ans = \"NG\";\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n K = Integer.parseInt(r.readLine());\n str = r.readLine();\n A = (str.split(\" \"));\n for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n int K;\n String str;\n String[] A = new String[2];\n String ans = \"NG\";\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n K = Integer.parseInt(r.readLine());\n str = r.readLine();\n A = (str.split(\" \"));\n for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n int K;\n String str;\n String[] A = new String[2];\n String ans = \"NG\";\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n K = Integer.parseInt(r.readLine());\n str = r.readLine();\n A = (str.split(\" \"));\n for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }\n System.out.println(ans);\n }",
"int K;",
"K",
"String str;",
"str",
"String[] A = new String[2];",
"A",
"new String[2]",
"2",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"BufferedReader r = new BufferedReader(new InputStreamReader(System.in));",
"r",
"new BufferedReader(new InputStreamReader(System.in))",
"K = Integer.parseInt(r.readLine())",
"K",
"Integer.parseInt(r.readLine())",
"Integer.parseInt",
"Integer",
"r.readLine()",
"r.readLine",
"r",
"str = r.readLine()",
"str",
"r.readLine()",
"r.readLine",
"r",
"A = (str.split(\" \"))",
"A",
"(str.split(\" \"))",
"str.split",
"str",
"\" \"",
"for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i*K <= Integer.parseInt(A[1])",
"i*K",
"i",
"K",
"Integer.parseInt(A[1])",
"Integer.parseInt",
"Integer",
"A[1]",
"A",
"1",
"i++",
"i++",
"i",
"{\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }",
"{\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }",
"if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }",
"Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])",
"Integer.parseInt(A[0]) <= i*K",
"Integer.parseInt(A[0])",
"Integer.parseInt",
"Integer",
"A[0]",
"A",
"0",
"i*K",
"i",
"K",
"i*K <= Integer.parseInt(A[1])",
"i*K",
"i",
"K",
"Integer.parseInt(A[1])",
"Integer.parseInt",
"Integer",
"A[1]",
"A",
"1",
"{\n ans=\"OK\";\n continue;\n }",
"ans=\"OK\"",
"ans",
"\"OK\"",
"continue;",
"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) throws IOException{\n int K;\n String str;\n String[] A = new String[2];\n String ans = \"NG\";\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n K = Integer.parseInt(r.readLine());\n str = r.readLine();\n A = (str.split(\" \"));\n for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException{\n int K;\n String str;\n String[] A = new String[2];\n String ans = \"NG\";\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n K = Integer.parseInt(r.readLine());\n str = r.readLine();\n A = (str.split(\" \"));\n for(int i=1;i*K <= Integer.parseInt(A[1]);i++){\n if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){\n ans=\"OK\";\n continue;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
int K;
String str;
String[] A = new String[2];
String ans = "NG";
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
K = Integer.parseInt(r.readLine());
str = r.readLine();
A = (str.split(" "));
for(int i=1;i*K <= Integer.parseInt(A[1]);i++){
if(Integer.parseInt(A[0]) <= i*K && i*K <= Integer.parseInt(A[1])){
ans="OK";
continue;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
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
],
[
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
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
56,
63
],
[
48,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
68,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint ans=1;\n\n\t\tfor(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint ans=1;\n\n\t\tfor(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t\tsc.close();\n\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\tint ans=1;\n\n\t\tfor(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t\tsc.close();\n\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\tint ans=1;\n\n\t\tfor(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t\tsc.close();\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",
"int ans=1;",
"ans",
"1",
"for(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\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\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"ans = K * i",
"ans",
"K * i",
"K",
"i",
"if(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}",
"ans >= A && ans <= B",
"ans >= A",
"ans",
"A",
"ans <= B",
"ans",
"B",
"{\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;",
"if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}",
"ans > B",
"ans",
"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;",
"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\tint ans=1;\n\n\t\tfor(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t\tsc.close();\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint ans=1;\n\n\t\tfor(int i = 1 ; i <= B ; i++) {\n\t\t\tans = K * i;\n\t\t\tif(ans >= A && ans <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(ans > B){\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t\tsc.close();\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int ans=1;
for(int i = 1 ; i <= B ; i++) {
ans = K * i;
if(ans >= A && ans <= B) {
System.out.println("OK");
break;
}else if(ans > B){
System.out.println("NG");
break;
}
}
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,
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;\n \npublic class Main{\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner scanner = new Scanner(System.in);\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint total = (B / K) * K;\n\t\t\n\t\tif (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner scanner = new Scanner(System.in);\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint total = (B / K) * K;\n\t\t\n\t\tif (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\n}",
"Main",
"public static void main(String[] args) {\n \n\t\tScanner scanner = new Scanner(System.in);\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint total = (B / K) * K;\n\t\t\n\t\tif (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}",
"main",
"{\n \n\t\tScanner scanner = new Scanner(System.in);\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint total = (B / K) * K;\n\t\t\n\t\tif (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}",
"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",
"int total = (B / K) * K;",
"total",
"(B / K) * K",
"(B / K)",
"B",
"K",
"K",
"if (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"A <= total",
"A",
"total",
"{\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\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main{\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner scanner = new Scanner(System.in);\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint total = (B / K) * K;\n\t\t\n\t\tif (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\n}",
"public class Main{\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner scanner = new Scanner(System.in);\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint total = (B / K) * K;\n\t\t\n\t\tif (A <= total) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\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();
int total = (B / K) * K;
if (A <= total) {
System.out.println("OK");
} else {
System.out.println("NG");
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
42,
2,
13,
13,
30,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
0,
13,
13,
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
],
[
83,
5
],
[
83,
6
],
[
6,
7
],
[
6,
8
],
[
83,
9
],
[
9,
10
],
[
9,
11
],
[
83,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
83,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
83,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
83,
27
],
[
27,
28
],
[
27,
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
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
57,
64
],
[
52,
65
],
[
65,
66
],
[
65,
67
],
[
29,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
83,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.util.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint len = K;\n\t\twhile(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint len = K;\n\t\twhile(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int MOD = 998244353;",
"MOD",
"998244353",
"final int MAX = Integer.MAX_VALUE;",
"MAX",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"final long LMAX = Long.MAX_VALUE;",
"LMAX",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"int len = (int)1e6 + 1;",
"len",
"(int)1e6 + 1",
"(int)1e6",
"1",
"void doIt() {\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint len = K;\n\t\twhile(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t}",
"doIt",
"{\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint len = K;\n\t\twhile(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t}",
"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 len = K;",
"len",
"K",
"while(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}",
"len <= B",
"len",
"B",
"{\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}",
"if(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}",
"A <= len",
"A",
"len",
"{\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;",
"len += K",
"len",
"K",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"public static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}",
"main",
"{\n\t\tnew Main().doIt();\n\t}",
"new Main().doIt()",
"new Main().doIt",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint len = K;\n\t\twhile(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint len = K;\n\t\twhile(len <= B) {\n\t\t\tif(A <= len) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlen += K;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"Main"
] |
import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
final int MOD = 998244353;
final int MAX = Integer.MAX_VALUE;
final long LMAX = Long.MAX_VALUE;
int len = (int)1e6 + 1;
void doIt() {
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int len = K;
while(len <= B) {
if(A <= len) {
System.out.println("OK");
return;
}
len += K;
}
System.out.println("NG");
}
public static void main(String[] args) {
new Main().doIt();
}
}
|
[
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,
2,
13,
13,
14,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
13,
17,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
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,
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,
14,
2,
13,
17,
29,
4,
18,
13,
13,
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,
6,
13,
12,
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
],
[
436,
11
],
[
436,
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
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
50,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
12,
70
],
[
70,
71
],
[
436,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
72,
80
],
[
80,
81
],
[
72,
82
],
[
82,
83
],
[
72,
84
],
[
84,
85
],
[
72,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
86,
94
],
[
94,
95
],
[
72,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
99,
104
],
[
104,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
110,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
98,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
72,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
141,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
141,
155
],
[
155,
156
],
[
155,
157
],
[
141,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
141,
171
],
[
171,
172
],
[
171,
173
],
[
141,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
179,
190
],
[
190,
191
],
[
190,
192
],
[
179,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
179,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
141,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
72,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
208,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
208,
222
],
[
222,
223
],
[
222,
224
],
[
208,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
208,
238
],
[
238,
239
],
[
238,
240
],
[
208,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
252,
254
],
[
247,
255
],
[
255,
256
],
[
246,
257
],
[
257,
258
],
[
257,
259
],
[
246,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
262,
264
],
[
246,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
208,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
72,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
275,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
280,
285
],
[
285,
286
],
[
285,
287
],
[
280,
288
],
[
288,
289
],
[
289,
290
],
[
280,
291
],
[
292,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
297,
298
],
[
275,
299
],
[
299,
300
],
[
273,
301
],
[
301,
302
],
[
72,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
305,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
305,
319
],
[
319,
320
],
[
319,
321
],
[
305,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
322,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
328,
331
],
[
327,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
305,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
72,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
342,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
342,
355
],
[
355,
356
],
[
355,
357
],
[
342,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
364,
367
],
[
363,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
342,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
72,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
384,
387
],
[
378,
388
],
[
388,
389
],
[
392,
390
],
[
402,
391
],
[
399,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
396,
397
],
[
396,
398
],
[
399,
399
],
[
399,
400
],
[
399,
401
],
[
402,
402
],
[
402,
403
],
[
402,
404
],
[
392,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
376,
409
],
[
409,
410
],
[
72,
411
],
[
411,
412
],
[
411,
413
],
[
413,
414
],
[
414,
415
],
[
416,
416
],
[
416,
417
],
[
417,
418
],
[
417,
419
],
[
416,
420
],
[
420,
421
],
[
420,
422
],
[
416,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
411,
427
],
[
427,
428
],
[
72,
429
],
[
429,
430
],
[
429,
431
],
[
431,
432
],
[
431,
433
],
[
433,
434
],
[
0,
435
],
[
435,
436
],
[
435,
437
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.InputMismatchException;\n\npublic class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int y = a / n;\n if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int snext() {\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\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 String readString() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(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 public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int y = a / n;\n if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int snext() {\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\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 String readString() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(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 public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int y = a / n;\n if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"main",
"{\n InputReader in = new InputReader(System.in);\n\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int y = a / n;\n if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n }",
"InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"int n = in.nextInt();",
"n",
"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",
"int y = a / n;",
"y",
"a / n",
"a",
"n",
"if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");",
"a % n == 0",
"a % n",
"a",
"n",
"0",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");",
"(y + 1) * n <= b",
"(y + 1) * n",
"(y + 1)",
"y",
"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 InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int snext() {\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\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 String readString() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(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 public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\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",
"private SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int snext() {\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }",
"snext",
"{\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }",
"if (snumChars == -1) 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) 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) 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) return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c)) {\n c = snext();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = snext();\n }",
"c = snext()",
"c",
"snext()",
"snext",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = snext();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = snext();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = snext()",
"c",
"snext()",
"snext",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n }",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = snext()",
"c",
"snext()",
"snext",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c)) {\n c = snext();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = snext();\n }",
"c = snext()",
"c",
"snext()",
"snext",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = snext();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = snext();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = snext()",
"c",
"snext()",
"snext",
"long res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n }",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = snext()",
"c",
"snext()",
"snext",
"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 String readString() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c)) {\n c = snext();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = snext();\n }",
"c = snext()",
"c",
"snext()",
"snext",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = snext();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = snext()",
"c",
"snext()",
"snext",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextLine() {\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c)) c = snext();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = snext()",
"c",
"snext()",
"snext",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n res.appendCodePoint(c);\n c = snext();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = snext()",
"c",
"snext()",
"snext",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"if (filter != null) return filter.isSpaceChar(c);",
"filter != null",
"filter",
"null",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int y = a / n;\n if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int snext() {\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\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 String readString() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(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 public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n InputReader in = new InputReader(System.in);\n\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int y = a / n;\n if (a % n == 0) System.out.println(\"OK\");\n else if ((y + 1) * n <= b) System.out.println(\"OK\");\n else System.out.println(\"NG\");\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 private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int snext() {\n if (snumChars == -1) 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) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = snext();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\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 String readString() {\n int c = snext();\n while (isSpaceChar(c)) {\n c = snext();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = snext();\n while (isSpaceChar(c)) c = snext();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = snext();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(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 public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.InputMismatchException;
public class Main {
public static void main(String[] args) {
InputReader in = new InputReader(System.in);
int n = in.nextInt();
int a = in.nextInt();
int b = in.nextInt();
int y = a / n;
if (a % n == 0) System.out.println("OK");
else if ((y + 1) * n <= b) System.out.println("OK");
else System.out.println("NG");
}
static class InputReader {
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
private SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int snext() {
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 = snext();
while (isSpaceChar(c)) {
c = snext();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = snext();
}
int res = 0;
do {
if (c < '0' || c > '9') throw new InputMismatchException();
res *= 10;
res += c - '0';
c = snext();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = snext();
while (isSpaceChar(c)) {
c = snext();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = snext();
}
long res = 0;
do {
if (c < '0' || c > '9') throw new InputMismatchException();
res *= 10;
res += c - '0';
c = snext();
} 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 String readString() {
int c = snext();
while (isSpaceChar(c)) {
c = snext();
}
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = snext();
} while (!isSpaceChar(c));
return res.toString();
}
public String nextLine() {
int c = snext();
while (isSpaceChar(c)) c = snext();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = snext();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
if (filter != null) return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
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,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
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,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
94,
5
],
[
94,
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
],
[
29,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
71,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
6,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
] |
[
"//package beg_165;\nimport java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tint b = a.nextInt();\n\t\tString xdrtcfvygbuh = a.nextLine();\n\t\t\n\t\tString c = a.nextLine();\n\t\tString[] list = c.split(\" \");\n\t\t\n\t\tint f = Integer.parseInt(list[0]);\n\t\tint l = Integer.parseInt(list[1]);\n\t\tboolean check=true;\n\t\tfor (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (check) {\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 a = new Scanner(System.in);\n\t\tint b = a.nextInt();\n\t\tString xdrtcfvygbuh = a.nextLine();\n\t\t\n\t\tString c = a.nextLine();\n\t\tString[] list = c.split(\" \");\n\t\t\n\t\tint f = Integer.parseInt(list[0]);\n\t\tint l = Integer.parseInt(list[1]);\n\t\tboolean check=true;\n\t\tfor (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (check) {\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 a = new Scanner(System.in);\n\t\tint b = a.nextInt();\n\t\tString xdrtcfvygbuh = a.nextLine();\n\t\t\n\t\tString c = a.nextLine();\n\t\tString[] list = c.split(\" \");\n\t\t\n\t\tint f = Integer.parseInt(list[0]);\n\t\tint l = Integer.parseInt(list[1]);\n\t\tboolean check=true;\n\t\tfor (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (check) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner a = new Scanner(System.in);\n\t\tint b = a.nextInt();\n\t\tString xdrtcfvygbuh = a.nextLine();\n\t\t\n\t\tString c = a.nextLine();\n\t\tString[] list = c.split(\" \");\n\t\t\n\t\tint f = Integer.parseInt(list[0]);\n\t\tint l = Integer.parseInt(list[1]);\n\t\tboolean check=true;\n\t\tfor (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (check) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}",
"Scanner a = new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"int b = a.nextInt();",
"b",
"a.nextInt()",
"a.nextInt",
"a",
"String xdrtcfvygbuh = a.nextLine();",
"xdrtcfvygbuh",
"a.nextLine()",
"a.nextLine",
"a",
"String c = a.nextLine();",
"c",
"a.nextLine()",
"a.nextLine",
"a",
"String[] list = c.split(\" \");",
"list",
"c.split(\" \")",
"c.split",
"c",
"\" \"",
"int f = Integer.parseInt(list[0]);",
"f",
"Integer.parseInt(list[0])",
"Integer.parseInt",
"Integer",
"list[0]",
"list",
"0",
"int l = Integer.parseInt(list[1]);",
"l",
"Integer.parseInt(list[1])",
"Integer.parseInt",
"Integer",
"list[1]",
"list",
"1",
"boolean check=true;",
"check",
"true",
"for (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i=f;",
"int i=f;",
"i",
"f",
"i<=l",
"i",
"l",
"i++",
"i++",
"i",
"{\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}",
"i%b==0",
"i%b",
"i",
"b",
"0",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"check=false",
"check",
"false",
"break;",
"if (check) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"check",
"{\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 a = new Scanner(System.in);\n\t\tint b = a.nextInt();\n\t\tString xdrtcfvygbuh = a.nextLine();\n\t\t\n\t\tString c = a.nextLine();\n\t\tString[] list = c.split(\" \");\n\t\t\n\t\tint f = Integer.parseInt(list[0]);\n\t\tint l = Integer.parseInt(list[1]);\n\t\tboolean check=true;\n\t\tfor (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (check) {\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 a = new Scanner(System.in);\n\t\tint b = a.nextInt();\n\t\tString xdrtcfvygbuh = a.nextLine();\n\t\t\n\t\tString c = a.nextLine();\n\t\tString[] list = c.split(\" \");\n\t\t\n\t\tint f = Integer.parseInt(list[0]);\n\t\tint l = Integer.parseInt(list[1]);\n\t\tboolean check=true;\n\t\tfor (int i=f;i<=l;i++) {\n\t\t\tif (i%b==0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t\tcheck=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (check) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t}\n\n}",
"Main"
] |
//package beg_165;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
int b = a.nextInt();
String xdrtcfvygbuh = a.nextLine();
String c = a.nextLine();
String[] list = c.split(" ");
int f = Integer.parseInt(list[0]);
int l = Integer.parseInt(list[1]);
boolean check=true;
for (int i=f;i<=l;i++) {
if (i%b==0) {
System.out.println("OK");
check=false;
break;
}
}
if (check) {
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,
14,
2,
2,
13,
13,
13,
30,
0,
13,
17,
30,
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
],
[
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
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
64,
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;\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner stdIn= new Scanner(System.in);\n int k = stdIn.nextInt();\n int a = stdIn.nextInt();\n int b = stdIn.nextInt();\n boolean c=false;\n if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }\n if(c){\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 stdIn= new Scanner(System.in);\n int k = stdIn.nextInt();\n int a = stdIn.nextInt();\n int b = stdIn.nextInt();\n boolean c=false;\n if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }\n if(c){\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 stdIn= new Scanner(System.in);\n int k = stdIn.nextInt();\n int a = stdIn.nextInt();\n int b = stdIn.nextInt();\n boolean c=false;\n if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }\n if(c){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner stdIn= new Scanner(System.in);\n int k = stdIn.nextInt();\n int a = stdIn.nextInt();\n int b = stdIn.nextInt();\n boolean c=false;\n if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }\n if(c){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n }",
"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",
"boolean c=false;",
"c",
"false",
"if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }",
"a-b>=k",
"a-b",
"a",
"b",
"k",
"{\n c=true;\n }",
"c=true",
"c",
"true",
"{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }",
"for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n c=true; \n }\n }",
"{\n if(i%k==0){\n c=true; \n }\n }",
"if(i%k==0){\n c=true; \n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n c=true; \n }",
"c=true",
"c",
"true",
"if(c){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"c",
"{\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 stdIn= new Scanner(System.in);\n int k = stdIn.nextInt();\n int a = stdIn.nextInt();\n int b = stdIn.nextInt();\n boolean c=false;\n if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }\n if(c){\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 stdIn= new Scanner(System.in);\n int k = stdIn.nextInt();\n int a = stdIn.nextInt();\n int b = stdIn.nextInt();\n boolean c=false;\n if(a-b>=k){\n c=true;\n }else{\n for(int i=a;i<=b;i++){\n if(i%k==0){\n c=true; \n }\n }\n }\n if(c){\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 stdIn= new Scanner(System.in);
int k = stdIn.nextInt();
int a = stdIn.nextInt();
int b = stdIn.nextInt();
boolean c=false;
if(a-b>=k){
c=true;
}else{
for(int i=a;i<=b;i++){
if(i%k==0){
c=true;
}
}
}
if(c){
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,
2,
2,
13,
2,
13,
13,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
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
],
[
161,
11
],
[
161,
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
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
42,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
56,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
12,
70
],
[
70,
71
],
[
161,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
72,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
72,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
87,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
97,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
86,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
72,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
72,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
72,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
72,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
145,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
141,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\npublic class Main {\n 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 }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();\n int ans=(a-(a%k))+k;\n if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n 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 }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();\n int ans=(a-(a%k))+k;\n if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader ob = new FastReader();\n int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();\n int ans=(a-(a%k))+k;\n if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n FastReader ob = new FastReader();\n int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();\n int ans=(a-(a%k))+k;\n if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }",
"FastReader ob = new FastReader();",
"ob",
"new FastReader()",
"int k=ob.nextInt()",
"k",
"ob.nextInt()",
"ob.nextInt",
"ob",
"a=ob.nextInt()",
"a",
"ob.nextInt()",
"ob.nextInt",
"ob",
"b=ob.nextInt();",
"b",
"ob.nextInt()",
"ob.nextInt",
"ob",
"int ans=(a-(a%k))+k;",
"ans",
"(a-(a%k))+k",
"(a-(a%k))",
"a",
"(a%k)",
"a",
"k",
"k",
"if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }",
"ans>=a && ans<=b || a%k==0",
"ans>=a && ans<=b",
"ans>=a",
"ans",
"a",
"ans<=b",
"ans",
"b",
"a%k==0",
"a%k",
"a",
"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\"",
"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",
"public class Main {\n 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 }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();\n int ans=(a-(a%k))+k;\n if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n}",
"public class Main {\n 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 }\n public static void main(String[] args) {\n FastReader ob = new FastReader();\n int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();\n int ans=(a-(a%k))+k;\n if(ans>=a && ans<=b || a%k==0){\n System.out.println(\"OK\");\n return;\n }\n System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
import java.lang.*;
public 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 ob = new FastReader();
int k=ob.nextInt(),a=ob.nextInt(),b=ob.nextInt();
int ans=(a-(a%k))+k;
if(ans>=a && ans<=b || a%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,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
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
],
[
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
],
[
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
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tInteger k = sc.nextInt();\n\t\tInteger a = sc.nextInt();\n\t\tInteger b = sc.nextInt();\n\n\t\tString result = \"NG\";\n\t\tfor(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\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\tInteger k = sc.nextInt();\n\t\tInteger a = sc.nextInt();\n\t\tInteger b = sc.nextInt();\n\n\t\tString result = \"NG\";\n\t\tfor(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tInteger k = sc.nextInt();\n\t\tInteger a = sc.nextInt();\n\t\tInteger b = sc.nextInt();\n\n\t\tString result = \"NG\";\n\t\tfor(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tInteger k = sc.nextInt();\n\t\tInteger a = sc.nextInt();\n\t\tInteger b = sc.nextInt();\n\n\t\tString result = \"NG\";\n\t\tfor(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Integer k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Integer a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Integer b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String result = \"NG\";",
"result",
"\"NG\"",
"for(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"k * i <= b",
"k * i",
"k",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}",
"if(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}",
"k * i >= a",
"k * i",
"k",
"i",
"a",
"{\n\t\t\t\tresult = \"OK\";\n\t\t\t}",
"result = \"OK\"",
"result",
"\"OK\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tInteger k = sc.nextInt();\n\t\tInteger a = sc.nextInt();\n\t\tInteger b = sc.nextInt();\n\n\t\tString result = \"NG\";\n\t\tfor(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tInteger k = sc.nextInt();\n\t\tInteger a = sc.nextInt();\n\t\tInteger b = sc.nextInt();\n\n\t\tString result = \"NG\";\n\t\tfor(int i = 1; k * i <= b; i++) {\n\t\t\tif(k * i >= a) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer k = sc.nextInt();
Integer a = sc.nextInt();
Integer b = sc.nextInt();
String result = "NG";
for(int i = 1; k * i <= b; i++) {
if(k * i >= a) {
result = "OK";
}
}
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,
14,
2,
2,
2,
2,
2,
13,
13,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
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
],
[
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
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
29,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
27,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
27,
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 { //クラス名はMain\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n \n if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n \n if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n \n if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n \n if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\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",
"if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");",
"(B/K - A/K >=1)||(B%K==0)||(A%K==0)",
"(B/K - A/K >=1)||(B%K==0)||(A%K==0)",
"(B/K - A/K >=1)",
"B/K - A/K",
"B/K",
"B",
"K",
"A/K",
"A",
"K",
"1",
"(B%K==0)",
"B%K",
"B",
"K",
"0",
"(A%K==0)",
"A%K",
"A",
"K",
"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 { //クラス名はMain\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n \n if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n}",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n \n if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))\n System.out.println(\"OK\");\n else\n System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main { //クラス名は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();
if ((B/K - A/K >=1)||(B%K==0)||(A%K==0))
System.out.println("OK");
else
System.out.println("NG");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
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,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
49,
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.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\n\t\tint t = b/n;\n\t\tint ans = t*n;\n\n\t\tif(a <= ans && ans <= b){\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}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\n\t\tint t = b/n;\n\t\tint ans = t*n;\n\n\t\tif(a <= ans && ans <= b){\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}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\n\t\tint t = b/n;\n\t\tint ans = t*n;\n\n\t\tif(a <= ans && ans <= b){\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 sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\n\t\tint t = b/n;\n\t\tint ans = t*n;\n\n\t\tif(a <= ans && ans <= b){\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 sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = 0;",
"n",
"0",
"int a = 0;",
"a",
"0",
"int b = 0;",
"b",
"0",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = b/n;",
"t",
"b/n",
"b",
"n",
"int ans = t*n;",
"ans",
"t*n",
"t",
"n",
"if(a <= ans && ans <= b){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"a <= ans && ans <= b",
"a <= ans",
"a",
"ans",
"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\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\n\t\tint t = b/n;\n\t\tint ans = t*n;\n\n\t\tif(a <= ans && ans <= b){\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}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\n\t\tint t = b/n;\n\t\tint ans = t*n;\n\n\t\tif(a <= ans && ans <= b){\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}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = 0;
int a = 0;
int b = 0;
n = sc.nextInt();
sc.nextLine();
a = sc.nextInt();
b = sc.nextInt();
int t = b/n;
int ans = t*n;
if(a <= ans && ans <= b){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
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,
0,
13,
17,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
65,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
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
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
58,
61
],
[
9,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean flag = false;\n for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\n }\n }\n\n System.out.println(flag?\"OK\":\"NG\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean flag = false;\n for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\n }\n }\n\n System.out.println(flag?\"OK\":\"NG\");\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean flag = false;\n for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\n }\n }\n\n System.out.println(flag?\"OK\":\"NG\");\n }",
"main",
"{\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean flag = false;\n for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\n }\n }\n\n System.out.println(flag?\"OK\":\"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 flag = false;",
"flag",
"false",
"for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\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 }\n }",
"{\n if(i % k ==0){\n flag = true;\n }\n }",
"if(i % k ==0){\n flag = true;\n }",
"i % k ==0",
"i % k",
"i",
"k",
"0",
"{\n flag = true;\n }",
"flag = true",
"flag",
"true",
"System.out.println(flag?\"OK\":\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"flag?\"OK\":\"NG\"",
"flag",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean flag = false;\n for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\n }\n }\n\n System.out.println(flag?\"OK\":\"NG\");\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n boolean flag = false;\n for(int i = a; i<=b; i++){\n if(i % k ==0){\n flag = true;\n }\n }\n\n System.out.println(flag?\"OK\":\"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
boolean flag = false;
for(int i = a; i<=b; i++){
if(i % k ==0){
flag = true;
}
}
System.out.println(flag?"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,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
17,
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,
0,
13,
17,
3,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
17,
2,
13,
17,
29,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
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
],
[
254,
14
],
[
254,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
17,
42
],
[
42,
43
],
[
42,
44
],
[
17,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
87,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
67,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
15,
108
],
[
108,
109
],
[
254,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
120,
130
],
[
130,
131
],
[
130,
132
],
[
119,
133
],
[
133,
134
],
[
119,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
136,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
136,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
153,
159
],
[
159,
160
],
[
135,
161
],
[
161,
162
],
[
110,
163
],
[
163,
164
],
[
254,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
165,
169
],
[
169,
170
],
[
165,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
165,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
180,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
190,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
179,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
165,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
212,
213
],
[
165,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
221,
222
],
[
165,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
230,
231
],
[
165,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
238,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
234,
251
],
[
251,
252
],
[
0,
253
],
[
253,
254
],
[
253,
255
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n FastReader s = new FastReader();\n int k,a,b;\n k=s.nextInt();\n a=s.nextInt();\n b=s.nextInt();\n int flag=0;\n if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }\n\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n 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\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 public static void main(String[] args) {\n FastReader s = new FastReader();\n int k,a,b;\n k=s.nextInt();\n a=s.nextInt();\n b=s.nextInt();\n int flag=0;\n if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }\n\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n 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\n}",
"Main",
"public static void main(String[] args) {\n FastReader s = new FastReader();\n int k,a,b;\n k=s.nextInt();\n a=s.nextInt();\n b=s.nextInt();\n int flag=0;\n if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }\n\n }",
"main",
"{\n FastReader s = new FastReader();\n int k,a,b;\n k=s.nextInt();\n a=s.nextInt();\n b=s.nextInt();\n int flag=0;\n if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }\n\n }",
"FastReader s = new FastReader();",
"s",
"new FastReader()",
"int k",
"k",
"a",
"a",
"b;",
"b",
"k=s.nextInt()",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"a=s.nextInt()",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"b=s.nextInt()",
"b",
"s.nextInt()",
"s.nextInt",
"s",
"int flag=0;",
"flag",
"0",
"if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }",
"k==1",
"k",
"1",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }",
"b-a>=k",
"b-a",
"b",
"a",
"k",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }",
"for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=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 {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }",
"{\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }",
"if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n System.out.println(\"OK\");\n flag=1;\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"flag=1",
"flag",
"1",
"break;",
"if(flag==0)\n System.out.println(\"NG\");",
"flag==0",
"flag",
"0",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"isPrime",
"{\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"n == 2",
"n",
"2",
"return true;",
"true",
"if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"(n % 2 == 0 && n > 2) || n < 2",
"(n % 2 == 0 && n > 2)",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"n > 2",
"n",
"2",
"n < 2",
"n",
"2",
"return false;",
"false",
"{\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= (int) Math.sqrt(n)",
"i",
"(int) Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i += 2",
"i += 2",
"i",
"2",
"{\n if (n % i == 0)\n return false;\n }",
"{\n if (n % i == 0)\n return false;\n }",
"if (n % i == 0)\n return false;",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n 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\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 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 public static void main(String[] args) {\n FastReader s = new FastReader();\n int k,a,b;\n k=s.nextInt();\n a=s.nextInt();\n b=s.nextInt();\n int flag=0;\n if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }\n\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n 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\n}",
"public class Main {\n public static void main(String[] args) {\n FastReader s = new FastReader();\n int k,a,b;\n k=s.nextInt();\n a=s.nextInt();\n b=s.nextInt();\n int flag=0;\n if(k==1)\n System.out.println(\"OK\");\n else if(b-a>=k)\n System.out.println(\"OK\");\n else{\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n System.out.println(\"OK\");\n flag=1;\n break;\n }\n }\n if(flag==0)\n System.out.println(\"NG\");\n }\n\n }\n\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n 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\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 k,a,b;
k=s.nextInt();
a=s.nextInt();
b=s.nextInt();
int flag=0;
if(k==1)
System.out.println("OK");
else if(b-a>=k)
System.out.println("OK");
else{
for(int i=a;i<=b;i++){
if(i%k==0)
{
System.out.println("OK");
flag=1;
break;
}
}
if(flag==0)
System.out.println("NG");
}
}
private static boolean isPrime(int n) {
if (n == 2)
return true;
else if ((n % 2 == 0 && n > 2) || n < 2)
return false;
else {
for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {
if (n % i == 0)
return false;
}
return true;
}
}
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,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
2,
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
],
[
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
],
[
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
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
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;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scnr = new Scanner(System.in);\n\t\tint k = scnr.nextInt();\n\t\tint a = scnr.nextInt();\n\t\tint b = scnr.nextInt();\n\n\t\tint counter = 0;\n\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scnr = new Scanner(System.in);\n\t\tint k = scnr.nextInt();\n\t\tint a = scnr.nextInt();\n\t\tint b = scnr.nextInt();\n\n\t\tint counter = 0;\n\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scnr = new Scanner(System.in);\n\t\tint k = scnr.nextInt();\n\t\tint a = scnr.nextInt();\n\t\tint b = scnr.nextInt();\n\n\t\tint counter = 0;\n\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner scnr = new Scanner(System.in);\n\t\tint k = scnr.nextInt();\n\t\tint a = scnr.nextInt();\n\t\tint b = scnr.nextInt();\n\n\t\tint counter = 0;\n\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t}",
"Scanner scnr = new Scanner(System.in);",
"scnr",
"new Scanner(System.in)",
"int k = scnr.nextInt();",
"k",
"scnr.nextInt()",
"scnr.nextInt",
"scnr",
"int a = scnr.nextInt();",
"a",
"scnr.nextInt()",
"scnr.nextInt",
"scnr",
"int b = scnr.nextInt();",
"b",
"scnr.nextInt()",
"scnr.nextInt",
"scnr",
"int counter = 0;",
"counter",
"0",
"for (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 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\tcounter = counter + 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}",
"if(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n\t\t\t\tcounter = counter + 1;\n\t\t\t}",
"counter = counter + 1",
"counter",
"counter + 1",
"counter",
"1",
"if (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"counter == 0",
"counter",
"0",
"{\n\t\t\tSystem.out.print(\"NG\");\n\t\t}",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"counter > 0",
"counter",
"0",
"{\n\t\t\tSystem.out.print(\"OK\");\n\t\t}",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scnr = new Scanner(System.in);\n\t\tint k = scnr.nextInt();\n\t\tint a = scnr.nextInt();\n\t\tint b = scnr.nextInt();\n\n\t\tint counter = 0;\n\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scnr = new Scanner(System.in);\n\t\tint k = scnr.nextInt();\n\t\tint a = scnr.nextInt();\n\t\tint b = scnr.nextInt();\n\n\t\tint counter = 0;\n\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif(i % k == 0) {\n\t\t\t\tcounter = counter + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (counter == 0) {\n\t\t\tSystem.out.print(\"NG\");\n\t\t}\n\t\telse if (counter > 0) {\n\t\t\tSystem.out.print(\"OK\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int k = scnr.nextInt();
int a = scnr.nextInt();
int b = scnr.nextInt();
int counter = 0;
for (int i = a; i <= b; i++) {
if(i % k == 0) {
counter = counter + 1;
}
}
if (counter == 0) {
System.out.print("NG");
}
else if (counter > 0) {
System.out.print("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,
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,
0,
13,
17,
3,
14,
2,
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
],
[
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
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
43,
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
],
[
67,
68
],
[
67,
69
],
[
66,
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;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int k=kbd.nextInt();\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int x=1;\n for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }\n if(x==1){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 kbd =new Scanner(System.in);\n int k=kbd.nextInt();\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int x=1;\n for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }\n if(x==1){System.out.println(\"NG\");\n}}\n }",
"Main",
"public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int k=kbd.nextInt();\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int x=1;\n for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }\n if(x==1){System.out.println(\"NG\");\n}}",
"main",
"{\n Scanner kbd =new Scanner(System.in);\n int k=kbd.nextInt();\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int x=1;\n for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }\n if(x==1){System.out.println(\"NG\");\n}}",
"Scanner kbd =new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"int k=kbd.nextInt();",
"k",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int a=kbd.nextInt();",
"a",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int b=kbd.nextInt();",
"b",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int x=1;",
"x",
"1",
"for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\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 x=0;\n break;\n }\n }",
"{\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }",
"if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\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 x=0;\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"x=0",
"x",
"0",
"break;",
"if(x==1){System.out.println(\"NG\");\n}",
"x==1",
"x",
"1",
"{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 kbd =new Scanner(System.in);\n int k=kbd.nextInt();\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int x=1;\n for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }\n if(x==1){System.out.println(\"NG\");\n}}\n }",
"public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int k=kbd.nextInt();\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int x=1;\n for(int i=1;i<=1000;i++){\n if(a<=k*i&&k*i<=b){\n System.out.println(\"OK\");\n x=0;\n break;\n }\n }\n if(x==1){System.out.println(\"NG\");\n}}\n }",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner kbd =new Scanner(System.in);
int k=kbd.nextInt();
int a=kbd.nextInt();
int b=kbd.nextInt();
int x=1;
for(int i=1;i<=1000;i++){
if(a<=k*i&&k*i<=b){
System.out.println("OK");
x=0;
break;
}
}
if(x==1){System.out.println("NG");
}}
}
|
[
7,
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
13,
13,
17,
13,
14,
2,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
13,
2,
13,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
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,
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,
41,
13,
4,
13,
42,
4,
13,
13,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
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,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
29,
4,
18,
13,
4,
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,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
18,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
13,
41,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
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
],
[
628,
11
],
[
628,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
14,
48
],
[
48,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
50,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
48,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
48,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
14,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
14,
80
],
[
80,
81
],
[
81,
82
],
[
14,
83
],
[
83,
84
],
[
84,
85
],
[
12,
86
],
[
86,
87
],
[
628,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
88,
96
],
[
96,
97
],
[
88,
98
],
[
98,
99
],
[
88,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
88,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
114,
115
],
[
88,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
119,
124
],
[
124,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
134,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
130,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
118,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
88,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
161,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
161,
174
],
[
174,
175
],
[
174,
176
],
[
161,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
161,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
88,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
197,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
197,
210
],
[
210,
211
],
[
210,
212
],
[
197,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
197,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
88,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
233,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
233,
246
],
[
246,
247
],
[
246,
248
],
[
233,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
253,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
233,
262
],
[
262,
263
],
[
262,
264
],
[
233,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
265,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
276,
278
],
[
271,
279
],
[
279,
280
],
[
270,
281
],
[
281,
282
],
[
281,
283
],
[
270,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
286,
288
],
[
270,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
233,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
88,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
299,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
299,
312
],
[
312,
313
],
[
312,
314
],
[
299,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
319,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
299,
328
],
[
328,
329
],
[
328,
330
],
[
299,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
331,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
338,
342
],
[
342,
343
],
[
342,
344
],
[
337,
345
],
[
345,
346
],
[
336,
347
],
[
347,
348
],
[
347,
349
],
[
336,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
352,
354
],
[
336,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
299,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
88,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
367,
370
],
[
370,
371
],
[
88,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
379,
377
],
[
389,
378
],
[
386,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
383,
384
],
[
383,
385
],
[
386,
386
],
[
386,
387
],
[
386,
388
],
[
389,
389
],
[
389,
390
],
[
389,
391
],
[
379,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
372,
396
],
[
396,
397
],
[
88,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
401,
402
],
[
403,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
407,
408
],
[
407,
409
],
[
403,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
398,
414
],
[
414,
415
],
[
88,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
419,
424
],
[
424,
425
],
[
424,
426
],
[
426,
427
],
[
426,
428
],
[
419,
429
],
[
429,
430
],
[
430,
431
],
[
419,
432
],
[
433,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
434,
438
],
[
438,
439
],
[
416,
440
],
[
440,
441
],
[
88,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
447,
449
],
[
445,
450
],
[
450,
451
],
[
450,
452
],
[
452,
453
],
[
452,
454
],
[
445,
455
],
[
455,
456
],
[
456,
457
],
[
445,
458
],
[
459,
459
],
[
459,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
464,
465
],
[
465,
466
],
[
464,
467
],
[
442,
468
],
[
468,
469
],
[
88,
470
],
[
470,
471
],
[
470,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
475,
477
],
[
473,
478
],
[
478,
479
],
[
478,
480
],
[
480,
481
],
[
480,
482
],
[
473,
483
],
[
483,
484
],
[
484,
485
],
[
473,
486
],
[
487,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
489,
491
],
[
488,
492
],
[
492,
493
],
[
470,
494
],
[
494,
495
],
[
88,
496
],
[
496,
497
],
[
496,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
501,
503
],
[
503,
504
],
[
503,
505
],
[
499,
506
],
[
506,
507
],
[
506,
508
],
[
499,
509
],
[
509,
510
],
[
510,
511
],
[
499,
512
],
[
513,
513
],
[
513,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
516,
520
],
[
513,
521
],
[
521,
522
],
[
521,
523
],
[
523,
524
],
[
523,
525
],
[
525,
526
],
[
525,
527
],
[
513,
528
],
[
528,
529
],
[
529,
530
],
[
529,
531
],
[
531,
532
],
[
531,
533
],
[
528,
534
],
[
534,
535
],
[
534,
536
],
[
513,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
537,
541
],
[
496,
542
],
[
542,
543
],
[
88,
544
],
[
544,
545
],
[
544,
546
],
[
546,
547
],
[
547,
548
],
[
544,
549
],
[
549,
550
],
[
544,
551
],
[
551,
552
],
[
628,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
553,
557
],
[
557,
558
],
[
553,
559
],
[
559,
560
],
[
559,
561
],
[
553,
562
],
[
562,
563
],
[
562,
564
],
[
564,
565
],
[
565,
566
],
[
566,
567
],
[
566,
568
],
[
565,
569
],
[
564,
570
],
[
570,
571
],
[
571,
572
],
[
571,
573
],
[
570,
574
],
[
562,
575
],
[
575,
576
],
[
562,
577
],
[
577,
578
],
[
553,
579
],
[
579,
580
],
[
579,
581
],
[
581,
582
],
[
582,
583
],
[
586,
584
],
[
584,
585
],
[
585,
586
],
[
586,
587
],
[
586,
588
],
[
585,
589
],
[
584,
590
],
[
586,
591
],
[
628,
592
],
[
592,
593
],
[
592,
594
],
[
594,
595
],
[
592,
596
],
[
596,
597
],
[
592,
598
],
[
598,
599
],
[
592,
600
],
[
600,
601
],
[
600,
602
],
[
592,
603
],
[
603,
604
],
[
603,
605
],
[
605,
606
],
[
606,
607
],
[
607,
608
],
[
607,
609
],
[
606,
610
],
[
605,
611
],
[
611,
612
],
[
612,
613
],
[
612,
614
],
[
611,
615
],
[
605,
616
],
[
616,
617
],
[
617,
618
],
[
617,
619
],
[
616,
620
],
[
603,
621
],
[
621,
622
],
[
603,
623
],
[
623,
624
],
[
603,
625
],
[
625,
626
],
[
0,
627
],
[
627,
628
],
[
627,
629
]
] |
[
"import java.io.*;\nimport java.math.*;\nimport java.util.*;\npublic class Main\n{\n\tstatic class FastReader\n {\n private InputStream mIs;private byte[] buf = new byte[1024];private int curChar,numChars;public FastReader() { this(System.in); }public FastReader(InputStream is) { mIs = is;}\n public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}\n 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() ;}\n public String next(){int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}\n public long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}\n public int i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}\n public double d() throws IOException {return Double.parseDouble(next()) ;}\n public boolean isSpaceChar(int c) { return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }\n public boolean isEndOfLine(int c) { return c == '\\n' || c == '\\r' || c == -1; }\n public void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}\n public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}\n public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}\n public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }\n public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)\n }\n\tpublic static void main(String args[]) throws IOException{\n\t\tFastReader in = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tStringBuilder out = new StringBuilder();\n\t\tint k = in.i(), a= in.i(), b=in.i();\n\t\tint v = (a/k+1)*k;\n\t\tif(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");\n\t\tpw.print(out);\n\t\tpw.flush();\n pw.close();\n\t}\n\tprivate static class Pair<F, S> {\n \n public F first;\n \n public S second;\n \n public Pair() {}\n \n public Pair(F first, S second) {\n this.first = first;\n this.second = second;\n }\n\t\tpublic String toString(){\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}\n }\n \n private static class Triple<F, S, T> {\n \n public F first;\n \n public S second;\n \n public T third;\n \n public Triple() {}\n \n public Triple(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }\n }\n}\n\t\t// long k = in.i();\n\t\t// long lo = 0, hi = (long)100000;\n\t\t// while(lo<hi){\n\t\t\t// long mid = lo+(hi-lo)/2;\n\t\t\t// if((long)100*Math.pow(1.01,mid)>=k) hi=mid;\n\t\t\t// else lo = mid+1;\n\t\t\t// System.out.println(100*Math.pow(1.01,mid));\n\t\t// }",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tstatic class FastReader\n {\n private InputStream mIs;private byte[] buf = new byte[1024];private int curChar,numChars;public FastReader() { this(System.in); }public FastReader(InputStream is) { mIs = is;}\n public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}\n 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() ;}\n public String next(){int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}\n public long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}\n public int i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}\n public double d() throws IOException {return Double.parseDouble(next()) ;}\n public boolean isSpaceChar(int c) { return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }\n public boolean isEndOfLine(int c) { return c == '\\n' || c == '\\r' || c == -1; }\n public void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}\n public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}\n public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}\n public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }\n public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)\n }\n\tpublic static void main(String args[]) throws IOException{\n\t\tFastReader in = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tStringBuilder out = new StringBuilder();\n\t\tint k = in.i(), a= in.i(), b=in.i();\n\t\tint v = (a/k+1)*k;\n\t\tif(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");\n\t\tpw.print(out);\n\t\tpw.flush();\n pw.close();\n\t}\n\tprivate static class Pair<F, S> {\n \n public F first;\n \n public S second;\n \n public Pair() {}\n \n public Pair(F first, S second) {\n this.first = first;\n this.second = second;\n }\n\t\tpublic String toString(){\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}\n }\n \n private static class Triple<F, S, T> {\n \n public F first;\n \n public S second;\n \n public T third;\n \n public Triple() {}\n \n public Triple(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }\n }\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tFastReader in = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tStringBuilder out = new StringBuilder();\n\t\tint k = in.i(), a= in.i(), b=in.i();\n\t\tint v = (a/k+1)*k;\n\t\tif(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");\n\t\tpw.print(out);\n\t\tpw.flush();\n pw.close();\n\t}",
"main",
"{\n\t\tFastReader in = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tStringBuilder out = new StringBuilder();\n\t\tint k = in.i(), a= in.i(), b=in.i();\n\t\tint v = (a/k+1)*k;\n\t\tif(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");\n\t\tpw.print(out);\n\t\tpw.flush();\n pw.close();\n\t}",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"StringBuilder out = new StringBuilder();",
"out",
"new StringBuilder()",
"int k = in.i()",
"k",
"in.i()",
"in.i",
"in",
"a= in.i()",
"a",
"in.i()",
"in.i",
"in",
"b=in.i();",
"b",
"in.i()",
"in.i",
"in",
"int v = (a/k+1)*k;",
"v",
"(a/k+1)*k",
"(a/k+1)",
"a/k",
"a",
"k",
"1",
"k",
"if(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");",
"a%k==0 || b%k==0 || (v>a && v<b)",
"a%k==0 || b%k==0 || (v>a && v<b)",
"a%k==0",
"a%k",
"a",
"k",
"0",
"b%k==0",
"b%k",
"b",
"k",
"0",
"(v>a && v<b)",
"v>a",
"v",
"a",
"v<b",
"v",
"b",
"out.append(\"OK\")",
"out.append",
"out",
"\"OK\"",
"out.append(\"NG\")",
"out.append",
"out",
"\"NG\"",
"pw.print(out)",
"pw.print",
"pw",
"out",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"String args[]",
"args",
"static class FastReader\n {\n private InputStream mIs;private byte[] buf = new byte[1024];private int curChar,numChars;public FastReader() { this(System.in); }public FastReader(InputStream is) { mIs = is;}\n public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}\n 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() ;}\n public String next(){int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}\n public long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}\n public int i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}\n public double d() throws IOException {return Double.parseDouble(next()) ;}\n public boolean isSpaceChar(int c) { return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }\n public boolean isEndOfLine(int c) { return c == '\\n' || c == '\\r' || c == -1; }\n public void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}\n public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}\n public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}\n public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }\n public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)\n }",
"FastReader",
"private InputStream mIs;",
"mIs",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar",
"curChar",
"numChars;",
"numChars",
"public FastReader() { this(System.in); }",
"FastReader",
"{ this(System.in); }",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public FastReader(InputStream is) { mIs = is;}",
"FastReader",
"{ mIs = is;}",
"mIs = is",
"mIs",
"is",
"InputStream is",
"is",
"public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}",
"read",
"{if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}",
"if (numChars == -1) throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }",
"curChar >= numChars",
"curChar",
"numChars",
"{curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }",
"curChar = 0",
"curChar",
"0",
"try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}",
"catch (IOException e) { throw new InputMismatchException();}",
"IOException e",
"{ throw new InputMismatchException();}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{ numChars = mIs.read(buf);}",
"numChars = mIs.read(buf)",
"numChars",
"mIs.read(buf)",
"mIs.read",
"mIs",
"buf",
"if (numChars <= 0) return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"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() ;}",
"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() ;}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {res.appendCodePoint(c);c = read();}while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{res.appendCodePoint(c);c = read();}",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString() ;",
"res.toString()",
"res.toString",
"res",
"public String next(){int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}",
"next",
"{int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{res.appendCodePoint(c);c = read();}",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}",
"l",
"{int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') { sgn = -1 ; c = read() ; }",
"c == '-'",
"c",
"'-'",
"{ sgn = -1 ; c = read() ; }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"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 i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}",
"i",
"{int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}",
"int c = read() ;",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') { sgn = -1 ; c = read() ; }",
"c == '-'",
"c",
"'-'",
"{ sgn = -1 ; c = read() ; }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"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 double d() throws IOException {return Double.parseDouble(next()) ;}",
"d",
"{return Double.parseDouble(next()) ;}",
"return Double.parseDouble(next()) ;",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public boolean isSpaceChar(int c) { return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }",
"isSpaceChar",
"{ return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }",
"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",
"public boolean isEndOfLine(int c) { return c == '\\n' || c == '\\r' || c == -1; }",
"isEndOfLine",
"{ return c == '\\n' || c == '\\r' || c == -1; }",
"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 void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}",
"scanIntArr",
"{ for(int li=0;li<arr.length;++li){ arr[li]=i();}}",
"for(int li=0;li<arr.length;++li){ arr[li]=i();}",
"int li=0;",
"int li=0;",
"li",
"0",
"li<arr.length",
"li",
"arr.length",
"arr",
"arr.length",
"++li",
"++li",
"li",
"{ arr[li]=i();}",
"{ arr[li]=i();}",
"arr[li]=i()",
"arr[li]",
"arr",
"li",
"i()",
"i",
"int [] arr",
"arr",
"public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}",
"scanIntIndexArr",
"{ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}",
"for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}",
"int li=0;",
"int li=0;",
"li",
"0",
"li<arr.length",
"li",
"arr.length",
"arr",
"arr.length",
"++li",
"++li",
"li",
"{ arr[li]=i()-1;}",
"{ arr[li]=i()-1;}",
"arr[li]=i()-1",
"arr[li]",
"arr",
"li",
"i()-1",
"i()",
"i",
"1",
"int [] arr",
"arr",
"public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}",
"scanLongArr",
"{for (int i=0;i<arr.length;++i){arr[i]=l();}}",
"for (int i=0;i<arr.length;++i){arr[i]=l();}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"++i",
"++i",
"i",
"{arr[i]=l();}",
"{arr[i]=l();}",
"arr[i]=l()",
"arr[i]",
"arr",
"i",
"l()",
"l",
"long [] arr",
"arr",
"public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }",
"shuffle",
"{ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }",
"for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; }",
"int i=arr.length;",
"int i=arr.length;",
"i",
"arr.length",
"arr",
"arr.length",
"i>0",
"i",
"0",
"--i",
"--i",
"i",
"{ int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; }",
"{ int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; }",
"int r=(int)(Math.random()*i);",
"r",
"(int)(Math.random()*i)",
"Math.random()",
"Math.random",
"Math",
"i",
"int temp=arr[i-1];",
"temp",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"arr[i-1]=arr[r]",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"arr[r]",
"arr",
"r",
"arr[r]=temp",
"arr[r]",
"arr",
"r",
"temp",
"int [] arr",
"arr",
"public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)",
"swapIntegers",
"{return a;}",
"return a;",
"a",
"int a",
"a",
"int b",
"b",
"private static class Pair<F, S> {\n \n public F first;\n \n public S second;\n \n public Pair() {}\n \n public Pair(F first, S second) {\n this.first = first;\n this.second = second;\n }\n\t\tpublic String toString(){\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}\n }",
"Pair",
"public F first;",
"first",
"public S second;",
"second",
"public Pair() {}",
"Pair",
"{}",
"public Pair(F first, S second) {\n this.first = first;\n this.second = second;\n }",
"Pair",
"{\n this.first = first;\n this.second = second;\n }",
"this.first = first",
"this.first",
"this",
"this.first",
"first",
"this.second = second",
"this.second",
"this",
"this.second",
"second",
"F first",
"first",
"S second",
"second",
"public String toString(){\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}",
"toString",
"{\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}",
"return \"(\"+first+\", \"+second+\")\";",
"\"(\"+first+\", \"+second+\")\"",
"second",
"\", \"",
"\"(\"+first+\", \"+second+\")\"",
"\"(\"",
"first",
"\", \"",
"second",
"\")\"",
"private static class Triple<F, S, T> {\n \n public F first;\n \n public S second;\n \n public T third;\n \n public Triple() {}\n \n public Triple(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }\n }",
"Triple",
"public F first;",
"first",
"public S second;",
"second",
"public T third;",
"third",
"public Triple() {}",
"Triple",
"{}",
"public Triple(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }",
"Triple",
"{\n this.first = first;\n this.second = second;\n this.third = third;\n }",
"this.first = first",
"this.first",
"this",
"this.first",
"first",
"this.second = second",
"this.second",
"this",
"this.second",
"second",
"this.third = third",
"this.third",
"this",
"this.third",
"third",
"F first",
"first",
"S second",
"second",
"T third",
"third",
"public class Main\n{\n\tstatic class FastReader\n {\n private InputStream mIs;private byte[] buf = new byte[1024];private int curChar,numChars;public FastReader() { this(System.in); }public FastReader(InputStream is) { mIs = is;}\n public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}\n 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() ;}\n public String next(){int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}\n public long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}\n public int i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}\n public double d() throws IOException {return Double.parseDouble(next()) ;}\n public boolean isSpaceChar(int c) { return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }\n public boolean isEndOfLine(int c) { return c == '\\n' || c == '\\r' || c == -1; }\n public void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}\n public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}\n public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}\n public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }\n public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)\n }\n\tpublic static void main(String args[]) throws IOException{\n\t\tFastReader in = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tStringBuilder out = new StringBuilder();\n\t\tint k = in.i(), a= in.i(), b=in.i();\n\t\tint v = (a/k+1)*k;\n\t\tif(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");\n\t\tpw.print(out);\n\t\tpw.flush();\n pw.close();\n\t}\n\tprivate static class Pair<F, S> {\n \n public F first;\n \n public S second;\n \n public Pair() {}\n \n public Pair(F first, S second) {\n this.first = first;\n this.second = second;\n }\n\t\tpublic String toString(){\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}\n }\n \n private static class Triple<F, S, T> {\n \n public F first;\n \n public S second;\n \n public T third;\n \n public Triple() {}\n \n public Triple(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }\n }\n}",
"public class Main\n{\n\tstatic class FastReader\n {\n private InputStream mIs;private byte[] buf = new byte[1024];private int curChar,numChars;public FastReader() { this(System.in); }public FastReader(InputStream is) { mIs = is;}\n public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}\n 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() ;}\n public String next(){int c = read();while (isSpaceChar(c)) c = read();StringBuilder res = new StringBuilder();do {res.appendCodePoint(c);c = read();}while (!isSpaceChar(c));return res.toString();}\n public long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}\n public int i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}\n public double d() throws IOException {return Double.parseDouble(next()) ;}\n public boolean isSpaceChar(int c) { return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1; }\n public boolean isEndOfLine(int c) { return c == '\\n' || c == '\\r' || c == -1; }\n public void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}\n public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}\n public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}\n public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }\n public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)\n }\n\tpublic static void main(String args[]) throws IOException{\n\t\tFastReader in = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tStringBuilder out = new StringBuilder();\n\t\tint k = in.i(), a= in.i(), b=in.i();\n\t\tint v = (a/k+1)*k;\n\t\tif(a%k==0 || b%k==0 || (v>a && v<b))\n\t\t\tout.append(\"OK\");\n\t\telse\n\t\t\tout.append(\"NG\");\n\t\tpw.print(out);\n\t\tpw.flush();\n pw.close();\n\t}\n\tprivate static class Pair<F, S> {\n \n public F first;\n \n public S second;\n \n public Pair() {}\n \n public Pair(F first, S second) {\n this.first = first;\n this.second = second;\n }\n\t\tpublic String toString(){\n\t\t\treturn \"(\"+first+\", \"+second+\")\";\n\t\t}\n }\n \n private static class Triple<F, S, T> {\n \n public F first;\n \n public S second;\n \n public T third;\n \n public Triple() {}\n \n public Triple(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.math.*;
import java.util.*;
public class Main
{
static class FastReader
{
private InputStream mIs;private byte[] buf = new byte[1024];private int curChar,numChars;public FastReader() { this(System.in); }public FastReader(InputStream is) { mIs = is;}
public int read() {if (numChars == -1) throw new InputMismatchException();if (curChar >= numChars) {curChar = 0;try { numChars = mIs.read(buf);} catch (IOException e) { throw new InputMismatchException();}if (numChars <= 0) return -1; }return buf[curChar++];}
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 String next(){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 long l(){int c = read();while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }long res = 0; do{ if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read();}while(!isSpaceChar(c));return res * sgn;}
public int i(){int c = read() ;while (isSpaceChar(c)) c = read();int sgn = 1;if (c == '-') { sgn = -1 ; c = read() ; }int res = 0;do{if (c < '0' || c > '9') throw new InputMismatchException();res *= 10 ; res += c - '0' ; c = read() ;}while(!isSpaceChar(c));return res * sgn;}
public double d() throws IOException {return Double.parseDouble(next()) ;}
public boolean isSpaceChar(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; }
public boolean isEndOfLine(int c) { return c == '\n' || c == '\r' || c == -1; }
public void scanIntArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i();}}
public void scanIntIndexArr(int [] arr){ for(int li=0;li<arr.length;++li){ arr[li]=i()-1;}}
public void scanLongArr(long [] arr){for (int i=0;i<arr.length;++i){arr[i]=l();}}
public void shuffle(int [] arr){ for(int i=arr.length;i>0;--i) { int r=(int)(Math.random()*i); int temp=arr[i-1]; arr[i-1]=arr[r]; arr[r]=temp; } }
public int swapIntegers(int a,int b){return a;} //Call it like this: a=swapIntegers(b,b=a)
}
public static void main(String args[]) throws IOException{
FastReader in = new FastReader();
PrintWriter pw = new PrintWriter(System.out);
StringBuilder out = new StringBuilder();
int k = in.i(), a= in.i(), b=in.i();
int v = (a/k+1)*k;
if(a%k==0 || b%k==0 || (v>a && v<b))
out.append("OK");
else
out.append("NG");
pw.print(out);
pw.flush();
pw.close();
}
private static class Pair<F, S> {
public F first;
public S second;
public Pair() {}
public Pair(F first, S second) {
this.first = first;
this.second = second;
}
public String toString(){
return "("+first+", "+second+")";
}
}
private static class Triple<F, S, T> {
public F first;
public S second;
public T third;
public Triple() {}
public Triple(F first, S second, T third) {
this.first = first;
this.second = second;
this.third = third;
}
}
}
// long k = in.i();
// long lo = 0, hi = (long)100000;
// while(lo<hi){
// long mid = lo+(hi-lo)/2;
// if((long)100*Math.pow(1.01,mid)>=k) hi=mid;
// else lo = mid+1;
// System.out.println(100*Math.pow(1.01,mid));
// }
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
0,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
4,
18,
13,
8,
13,
17,
17,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
172,
8
],
[
172,
9
],
[
9,
10
],
[
9,
11
],
[
172,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
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
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
43,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
14,
78
],
[
78,
79
],
[
79,
80
],
[
12,
81
],
[
81,
82
],
[
172,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
83,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
83,
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
],
[
113,
114
],
[
108,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
97,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
83,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
83,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
83,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
83,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
156,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
152,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main {\nstatic PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] args) {\n\t// write your code here\n MyScanner mc = new MyScanner();\n boolean game= false;\n int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();\n int count =0;\n while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }\n if (count>=A&&count<=B){\n game = true;\n }\n pw.println(game?\"OK\":\"NG\");\n pw.flush();\n }\n\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\nstatic PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] args) {\n\t// write your code here\n MyScanner mc = new MyScanner();\n boolean game= false;\n int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();\n int count =0;\n while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }\n if (count>=A&&count<=B){\n game = true;\n }\n pw.println(game?\"OK\":\"NG\");\n pw.flush();\n }\n\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\n}",
"Main",
"static PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out));",
"pw",
"new PrintWriter(new OutputStreamWriter(System.out))",
"public static void main(String[] args) {\n\t// write your code here\n MyScanner mc = new MyScanner();\n boolean game= false;\n int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();\n int count =0;\n while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }\n if (count>=A&&count<=B){\n game = true;\n }\n pw.println(game?\"OK\":\"NG\");\n pw.flush();\n }",
"main",
"{\n\t// write your code here\n MyScanner mc = new MyScanner();\n boolean game= false;\n int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();\n int count =0;\n while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }\n if (count>=A&&count<=B){\n game = true;\n }\n pw.println(game?\"OK\":\"NG\");\n pw.flush();\n }",
"MyScanner mc = new MyScanner();",
"mc",
"new MyScanner()",
"boolean game= false;",
"game",
"false",
"int K = mc.nextInt();",
"K",
"mc.nextInt()",
"mc.nextInt",
"mc",
"int A = mc.nextInt();",
"A",
"mc.nextInt()",
"mc.nextInt",
"mc",
"int B = mc.nextInt();",
"B",
"mc.nextInt()",
"mc.nextInt",
"mc",
"int count =0;",
"count",
"0",
"while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }",
"count<=1000",
"count",
"1000",
"{\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }",
"if (count>=A&&count<=B){\n game = true;\n }",
"count>=A&&count<=B",
"count>=A",
"count",
"A",
"count<=B",
"count",
"B",
"{\n game = true;\n }",
"game = true",
"game",
"true",
"count+=K",
"count",
"K",
"if (count>=A&&count<=B){\n game = true;\n }",
"count>=A&&count<=B",
"count>=A",
"count",
"A",
"count<=B",
"count",
"B",
"{\n game = true;\n }",
"game = true",
"game",
"true",
"pw.println(game?\"OK\":\"NG\")",
"pw.println",
"pw",
"game?\"OK\":\"NG\"",
"game",
"\"OK\"",
"\"NG\"",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }",
"nextLine",
"{\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t str = br.readLine();\n\t }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\nstatic PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] args) {\n\t// write your code here\n MyScanner mc = new MyScanner();\n boolean game= false;\n int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();\n int count =0;\n while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }\n if (count>=A&&count<=B){\n game = true;\n }\n pw.println(game?\"OK\":\"NG\");\n pw.flush();\n }\n\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\n}",
"public class Main {\nstatic PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] args) {\n\t// write your code here\n MyScanner mc = new MyScanner();\n boolean game= false;\n int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();\n int count =0;\n while (count<=1000){\n if (count>=A&&count<=B){\n game = true;\n }\n count+=K;\n }\n if (count>=A&&count<=B){\n game = true;\n }\n pw.println(game?\"OK\":\"NG\");\n pw.flush();\n }\n\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
static PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out));
public static void main(String[] args) {
// write your code here
MyScanner mc = new MyScanner();
boolean game= false;
int K = mc.nextInt(); int A = mc.nextInt(); int B = mc.nextInt();
int count =0;
while (count<=1000){
if (count>=A&&count<=B){
game = true;
}
count+=K;
}
if (count>=A&&count<=B){
game = true;
}
pw.println(game?"OK":"NG");
pw.flush();
}
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
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,
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,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
2,
13,
13,
2,
13,
13,
17,
30,
0,
13,
2,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
98,
8
],
[
98,
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
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
9,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] |
[
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint k=scan.nextInt();\nint a=scan.nextInt();\nint b=scan.nextInt();\n\nint sum=0;\nif(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}\n\nif(sum==1){\n System.out.println(\"OK\");\n}\nif(sum==0){\n System.out.println(\"NG\");\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);\nint k=scan.nextInt();\nint a=scan.nextInt();\nint b=scan.nextInt();\n\nint sum=0;\nif(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}\n\nif(sum==1){\n System.out.println(\"OK\");\n}\nif(sum==0){\n System.out.println(\"NG\");\n}\n\n}\n}",
"Main",
"public static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint k=scan.nextInt();\nint a=scan.nextInt();\nint b=scan.nextInt();\n\nint sum=0;\nif(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}\n\nif(sum==1){\n System.out.println(\"OK\");\n}\nif(sum==0){\n System.out.println(\"NG\");\n}\n\n}",
"main",
"{\nScanner scan=new Scanner(System.in);\nint k=scan.nextInt();\nint a=scan.nextInt();\nint b=scan.nextInt();\n\nint sum=0;\nif(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}\n\nif(sum==1){\n System.out.println(\"OK\");\n}\nif(sum==0){\n System.out.println(\"NG\");\n}\n\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",
"int sum=0;",
"sum",
"0",
"if(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}",
"a%k==0",
"a%k",
"a",
"k",
"0",
"{\n sum=sum+1;\n}",
"sum=sum+1",
"sum",
"sum+1",
"sum",
"1",
"if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}",
"b%k==0",
"b%k",
"b",
"k",
"0",
"{\n sum=sum+1;\n}",
"sum=sum+1",
"sum",
"sum+1",
"sum",
"1",
"if(b/k-a/k>=1){\n sum=sum+1;\n}",
"b/k-a/k>=1",
"b/k-a/k",
"b/k",
"b",
"k",
"a/k",
"a",
"k",
"1",
"{\n sum=sum+1;\n}",
"sum=sum+1",
"sum",
"sum+1",
"sum",
"1",
"if(sum==1){\n System.out.println(\"OK\");\n}",
"sum==1",
"sum",
"1",
"{\n System.out.println(\"OK\");\n}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if(sum==0){\n System.out.println(\"NG\");\n}",
"sum==0",
"sum",
"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{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint k=scan.nextInt();\nint a=scan.nextInt();\nint b=scan.nextInt();\n\nint sum=0;\nif(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}\n\nif(sum==1){\n System.out.println(\"OK\");\n}\nif(sum==0){\n System.out.println(\"NG\");\n}\n\n}\n}",
"public class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint k=scan.nextInt();\nint a=scan.nextInt();\nint b=scan.nextInt();\n\nint sum=0;\nif(a%k==0){\n sum=sum+1;\n}else if(b%k==0){\n sum=sum+1;\n}else if(b/k-a/k>=1){\n sum=sum+1;\n}\n\nif(sum==1){\n System.out.println(\"OK\");\n}\nif(sum==0){\n System.out.println(\"NG\");\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);
int k=scan.nextInt();
int a=scan.nextInt();
int b=scan.nextInt();
int sum=0;
if(a%k==0){
sum=sum+1;
}else if(b%k==0){
sum=sum+1;
}else if(b/k-a/k>=1){
sum=sum+1;
}
if(sum==1){
System.out.println("OK");
}
if(sum==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,
0,
13,
2,
2,
13,
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
],
[
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
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
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
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\n\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\tint s=0;\n\t\ts=(B/K)*K;\n\t\tif(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\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 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 s=0;\n\t\ts=(B/K)*K;\n\t\tif(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\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\tint s=0;\n\t\ts=(B/K)*K;\n\t\tif(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\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 s=0;\n\t\ts=(B/K)*K;\n\t\tif(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\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 s=0;",
"s",
"0",
"s=(B/K)*K",
"s",
"(B/K)*K",
"(B/K)",
"B",
"K",
"K",
"if(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"A<=s",
"A",
"s",
"{\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\tint s=0;\n\t\ts=(B/K)*K;\n\t\tif(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\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 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 s=0;\n\t\ts=(B/K)*K;\n\t\tif(A<=s)\n\t\t{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse\n\t\t{\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 scan=new Scanner(System.in);
int K=scan.nextInt();
int A=scan.nextInt();
int B=scan.nextInt();
int s=0;
s=(B/K)*K;
if(A<=s)
{
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,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
86,
11
],
[
86,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
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
],
[
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
],
[
73,
75
],
[
72,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
12,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n String result = \"NG\";\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}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n String result = \"NG\";\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n String result = \"NG\";\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n String result = \"NG\";\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 }",
"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[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"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",
"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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n String result = \"NG\";\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n String result = \"NG\";\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.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[] str = br.readLine().split(" ");
int a = Integer.parseInt(str[0]);
int b = Integer.parseInt(str[1]);
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,
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.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n for(int i=a;i<=b;i++){\n if (i%n == 0){\n System.out.println(\"OK\");\n return;\n }\n }\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 scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n for(int i=a;i<=b;i++){\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 Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n for(int i=a;i<=b;i++){\n if (i%n == 0){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n for(int i=a;i<=b;i++){\n if (i%n == 0){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"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%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;\n }",
"i%n == 0",
"i%n",
"i",
"n",
"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\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n for(int i=a;i<=b;i++){\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 public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n for(int i=a;i<=b;i++){\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 scan = new Scanner(System.in);
int n = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
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,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
91,
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
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
10,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
10,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
8,
51
],
[
51,
52
],
[
91,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
91,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
91,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
91,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] |
[
"\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 int k=gi();\n\t int a=gi();\n\t int b=gi();\n\t \n\t int w=b%k;\n\n\t //System.out.print(nr*2*Math.PI);\n\t if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }\n\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 int k=gi();\n\t int a=gi();\n\t int b=gi();\n\t \n\t int w=b%k;\n\n\t //System.out.print(nr*2*Math.PI);\n\t if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }\n\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 int k=gi();\n\t int a=gi();\n\t int b=gi();\n\t \n\t int w=b%k;\n\n\t //System.out.print(nr*2*Math.PI);\n\t if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }\n\n\n\t}",
"main",
"{\n\t scanner = new Scanner(System.in);\n\n\t int k=gi();\n\t int a=gi();\n\t int b=gi();\n\t \n\t int w=b%k;\n\n\t //System.out.print(nr*2*Math.PI);\n\t if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }\n\n\n\t}",
"scanner = new Scanner(System.in)",
"scanner",
"new Scanner(System.in)",
"int k=gi();",
"k",
"gi()",
"gi",
"int a=gi();",
"a",
"gi()",
"gi",
"int b=gi();",
"b",
"gi()",
"gi",
"int w=b%k;",
"w",
"b%k",
"b",
"k",
"if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }",
"b-w>=a",
"b-w",
"b",
"w",
"a",
"{\n\t \tSystem.out.print(\"OK\");\n\t }",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t \tSystem.out.print(\"NG\");\n\t }",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"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 int k=gi();\n\t int a=gi();\n\t int b=gi();\n\t \n\t int w=b%k;\n\n\t //System.out.print(nr*2*Math.PI);\n\t if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }\n\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 int k=gi();\n\t int a=gi();\n\t int b=gi();\n\t \n\t int w=b%k;\n\n\t //System.out.print(nr*2*Math.PI);\n\t if (b-w>=a) {\n\t \tSystem.out.print(\"OK\");\n\t }else {\n\t \tSystem.out.print(\"NG\");\n\t }\n\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);
int k=gi();
int a=gi();
int b=gi();
int w=b%k;
//System.out.print(nr*2*Math.PI);
if (b-w>=a) {
System.out.print("OK");
}else {
System.out.print("NG");
}
}
// 文字列として入力を取得
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,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
2,
2,
13,
13,
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
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
27,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint k = sc.nextInt();\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tif(a <= (b/k)*k) System.out.println(\"OK\");\n \telse System.out.println(\"NG\");\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 \tint k = sc.nextInt();\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tif(a <= (b/k)*k) System.out.println(\"OK\");\n \telse System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint k = sc.nextInt();\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tif(a <= (b/k)*k) System.out.println(\"OK\");\n \telse System.out.println(\"NG\");\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint k = sc.nextInt();\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tif(a <= (b/k)*k) System.out.println(\"OK\");\n \telse 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",
"if(a <= (b/k)*k) System.out.println(\"OK\");\n \telse System.out.println(\"NG\");",
"a <= (b/k)*k",
"a",
"(b/k)*k",
"(b/k)",
"b",
"k",
"k",
"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\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint k = sc.nextInt();\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tif(a <= (b/k)*k) System.out.println(\"OK\");\n \telse System.out.println(\"NG\");\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint k = sc.nextInt();\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tif(a <= (b/k)*k) System.out.println(\"OK\");\n \telse System.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();
if(a <= (b/k)*k) 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,
4,
18,
13,
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
],
[
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
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\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\tint ans = 0;\n\n\t\tfor(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(ans == 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\t\tstdIn.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\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\tint ans = 0;\n\n\t\tfor(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(ans == 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\t\tstdIn.close();\n\t}\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\tint ans = 0;\n\n\t\tfor(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(ans == 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\t\tstdIn.close();\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\tint ans = 0;\n\n\t\tfor(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(ans == 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\t\tstdIn.close();\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 = 0;",
"ans",
"0",
"for(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int a = A;",
"int a = A;",
"a",
"A",
"a <= B",
"a",
"B",
"a++",
"a++",
"a",
"{\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"a % K == 0",
"a % K",
"a",
"K",
"0",
"{\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"ans = 1",
"ans",
"1",
"break;",
"if(ans == 1){\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"ans == 1",
"ans",
"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\"",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\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\tint ans = 0;\n\n\t\tfor(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(ans == 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\t\tstdIn.close();\n\t}\n}",
"public class Main {\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\tint ans = 0;\n\n\t\tfor(int a = A; a <= B ; a++){\n\t\t\tif(a % K == 0){\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(ans == 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\t\tstdIn.close();\n\t}\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 = 0;
for(int a = A; a <= B ; a++){
if(a % K == 0){
ans = 1;
break;
}
}
if(ans == 1){
System.out.println("OK");
}
else{
System.out.println("NG");
}
stdIn.close();
}
}
|
[
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,
41,
13,
41,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
0,
13,
17,
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
],
[
99,
5
],
[
99,
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
],
[
8,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
65,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"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, A, B;\n\n\t\tK = sc.nextInt();\n\t\tA = sc.nextInt();\n\t\tB = sc.nextInt();\n\n\t\tint min, max, flg;\n\n\t\tmin = A / K;\n\t\tmax = B / K;\n\t\tflg = 0;\n\n\t\tfor (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}\n\t\tif(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");\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, A, B;\n\n\t\tK = sc.nextInt();\n\t\tA = sc.nextInt();\n\t\tB = sc.nextInt();\n\n\t\tint min, max, flg;\n\n\t\tmin = A / K;\n\t\tmax = B / K;\n\t\tflg = 0;\n\n\t\tfor (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}\n\t\tif(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K, A, B;\n\n\t\tK = sc.nextInt();\n\t\tA = sc.nextInt();\n\t\tB = sc.nextInt();\n\n\t\tint min, max, flg;\n\n\t\tmin = A / K;\n\t\tmax = B / K;\n\t\tflg = 0;\n\n\t\tfor (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}\n\t\tif(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K, A, B;\n\n\t\tK = sc.nextInt();\n\t\tA = sc.nextInt();\n\t\tB = sc.nextInt();\n\n\t\tint min, max, flg;\n\n\t\tmin = A / K;\n\t\tmax = B / K;\n\t\tflg = 0;\n\n\t\tfor (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}\n\t\tif(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");\n\t}",
"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",
"int min",
"min",
"max",
"max",
"flg;",
"flg",
"min = A / K",
"min",
"A / K",
"A",
"K",
"max = B / K",
"max",
"B / K",
"B",
"K",
"flg = 0",
"flg",
"0",
"for (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}",
"int i = min;",
"int i = min;",
"i",
"min",
"i <= max",
"i",
"max",
"i++",
"i++",
"i",
"{\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}",
"{\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}",
"if (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;",
"K * i >= A && K * i <= B",
"K * i >= A",
"K * i",
"K",
"i",
"A",
"K * i <= B",
"K * i",
"K",
"i",
"B",
"flg = 1",
"flg",
"1",
"if(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");",
"flg==1",
"flg",
"1",
"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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K, A, B;\n\n\t\tK = sc.nextInt();\n\t\tA = sc.nextInt();\n\t\tB = sc.nextInt();\n\n\t\tint min, max, flg;\n\n\t\tmin = A / K;\n\t\tmax = B / K;\n\t\tflg = 0;\n\n\t\tfor (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}\n\t\tif(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");\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, A, B;\n\n\t\tK = sc.nextInt();\n\t\tA = sc.nextInt();\n\t\tB = sc.nextInt();\n\n\t\tint min, max, flg;\n\n\t\tmin = A / K;\n\t\tmax = B / K;\n\t\tflg = 0;\n\n\t\tfor (int i = min; i <= max; i++) {\n\t\t\tif (K * i >= A && K * i <= B)\n\t\t\t\tflg = 1;\n\t\t}\n\t\tif(flg==1) System.out.println(\"OK\");\n\t\telse System.out.println(\"NG\");\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, A, B;
K = sc.nextInt();
A = sc.nextInt();
B = sc.nextInt();
int min, max, flg;
min = A / K;
max = B / K;
flg = 0;
for (int i = min; i <= max; i++) {
if (K * i >= A && K * i <= B)
flg = 1;
}
if(flg==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,
42,
2,
2,
13,
13,
13,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
40,
13,
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
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
50,
57
],
[
36,
58
],
[
58,
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.*;\n\npublic class Main {\n /**\n * AtCoder Beginner Contest 165\n */\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 int i = 0;\n while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\n }\n System.out.println(\"NG\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n /**\n * AtCoder Beginner Contest 165\n */\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 int i = 0;\n while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\n }\n System.out.println(\"NG\");\n }\n}",
"Main",
"/**\n * AtCoder Beginner Contest 165\n */\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 int i = 0;\n while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\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\n int i = 0;\n while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\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",
"int i = 0;",
"i",
"0",
"while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\n }",
"i * K <= B",
"i * K",
"i",
"K",
"B",
"{\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\n }",
"int result = i * K;",
"result",
"i * K",
"i",
"K",
"if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }",
"A <= result && result <= B",
"A <= result",
"A",
"result",
"result <= B",
"result",
"B",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"i++",
"i",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n /**\n * AtCoder Beginner Contest 165\n */\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 int i = 0;\n while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\n }\n System.out.println(\"NG\");\n }\n}",
"public class Main {\n /**\n * AtCoder Beginner Contest 165\n */\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 int i = 0;\n while ( i * K <= B) {\n int result = i * K;\n if ( A <= result && result <= B) {\n System.out.println(\"OK\");\n return;\n }\n i++;\n }\n System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
/**
* AtCoder Beginner Contest 165
*/
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 i = 0;
while ( i * K <= B) {
int result = i * K;
if ( A <= result && result <= B) {
System.out.println("OK");
return;
}
i++;
}
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,
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,
42,
2,
13,
13,
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
],
[
81,
5
],
[
81,
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
],
[
26,
27
],
[
27,
28
],
[
22,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
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.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int k = Integer.parseInt(in.nextLine());\n String[] tmp = in.nextLine().trim().split(\"\\\\s\");\n int a = Integer.parseInt(tmp[0]);\n int b = Integer.parseInt(tmp[1]);\n in.close();\n int res = 0;\n while(res < a){\n res += k;\n }\n if(res <= b){\n System.out.println(\"OK\");\n }\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 in = new Scanner(System.in);\n int k = Integer.parseInt(in.nextLine());\n String[] tmp = in.nextLine().trim().split(\"\\\\s\");\n int a = Integer.parseInt(tmp[0]);\n int b = Integer.parseInt(tmp[1]);\n in.close();\n int res = 0;\n while(res < a){\n res += k;\n }\n if(res <= b){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int k = Integer.parseInt(in.nextLine());\n String[] tmp = in.nextLine().trim().split(\"\\\\s\");\n int a = Integer.parseInt(tmp[0]);\n int b = Integer.parseInt(tmp[1]);\n in.close();\n int res = 0;\n while(res < a){\n res += k;\n }\n if(res <= b){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int k = Integer.parseInt(in.nextLine());\n String[] tmp = in.nextLine().trim().split(\"\\\\s\");\n int a = Integer.parseInt(tmp[0]);\n int b = Integer.parseInt(tmp[1]);\n in.close();\n int res = 0;\n while(res < a){\n res += k;\n }\n if(res <= b){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int k = Integer.parseInt(in.nextLine());",
"k",
"Integer.parseInt(in.nextLine())",
"Integer.parseInt",
"Integer",
"in.nextLine()",
"in.nextLine",
"in",
"String[] tmp = in.nextLine().trim().split(\"\\\\s\");",
"tmp",
"in.nextLine().trim().split(\"\\\\s\")",
"in.nextLine().trim().split",
"in.nextLine().trim()",
"in.nextLine().trim",
"in.nextLine()",
"in.nextLine",
"in",
"\"\\\\s\"",
"int a = Integer.parseInt(tmp[0]);",
"a",
"Integer.parseInt(tmp[0])",
"Integer.parseInt",
"Integer",
"tmp[0]",
"tmp",
"0",
"int b = Integer.parseInt(tmp[1]);",
"b",
"Integer.parseInt(tmp[1])",
"Integer.parseInt",
"Integer",
"tmp[1]",
"tmp",
"1",
"in.close()",
"in.close",
"in",
"int res = 0;",
"res",
"0",
"while(res < a){\n res += k;\n }",
"res < a",
"res",
"a",
"{\n res += k;\n }",
"res += k",
"res",
"k",
"if(res <= b){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }",
"res <= b",
"res",
"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 in = new Scanner(System.in);\n int k = Integer.parseInt(in.nextLine());\n String[] tmp = in.nextLine().trim().split(\"\\\\s\");\n int a = Integer.parseInt(tmp[0]);\n int b = Integer.parseInt(tmp[1]);\n in.close();\n int res = 0;\n while(res < a){\n res += k;\n }\n if(res <= b){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int k = Integer.parseInt(in.nextLine());\n String[] tmp = in.nextLine().trim().split(\"\\\\s\");\n int a = Integer.parseInt(tmp[0]);\n int b = Integer.parseInt(tmp[1]);\n in.close();\n int res = 0;\n while(res < a){\n res += k;\n }\n if(res <= b){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int k = Integer.parseInt(in.nextLine());
String[] tmp = in.nextLine().trim().split("\\s");
int a = Integer.parseInt(tmp[0]);
int b = Integer.parseInt(tmp[1]);
in.close();
int res = 0;
while(res < a){
res += k;
}
if(res <= b){
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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
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,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
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,
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,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
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,
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,
14,
2,
13,
17,
29,
4,
18,
13,
13,
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,
4,
13,
6,
13,
12,
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
],
[
392,
20
],
[
392,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
23,
34
],
[
34,
35
],
[
34,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
23,
40
],
[
40,
41
],
[
40,
42
],
[
23,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
43,
48
],
[
23,
49
],
[
49,
50
],
[
50,
51
],
[
21,
52
],
[
52,
53
],
[
392,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
58,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
58,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
56,
103
],
[
103,
104
],
[
56,
105
],
[
105,
106
],
[
56,
107
],
[
107,
108
],
[
392,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
109,
117
],
[
117,
118
],
[
109,
119
],
[
119,
120
],
[
109,
121
],
[
121,
122
],
[
109,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
123,
131
],
[
131,
132
],
[
109,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
136,
141
],
[
141,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
147,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
135,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
109,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
178,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
178,
191
],
[
191,
192
],
[
191,
193
],
[
178,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
198,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
178,
207
],
[
207,
208
],
[
207,
209
],
[
178,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
221,
223
],
[
216,
224
],
[
224,
225
],
[
215,
226
],
[
226,
227
],
[
226,
228
],
[
215,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
231,
233
],
[
215,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
178,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
109,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
244,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
244,
257
],
[
257,
258
],
[
257,
259
],
[
244,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
264,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
244,
273
],
[
273,
274
],
[
273,
275
],
[
244,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
276,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
287,
288
],
[
287,
289
],
[
282,
290
],
[
290,
291
],
[
281,
292
],
[
292,
293
],
[
292,
294
],
[
281,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
297,
299
],
[
281,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
244,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
109,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
310,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
310,
323
],
[
323,
324
],
[
323,
325
],
[
310,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
326,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
332,
335
],
[
331,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
310,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
109,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
352,
355
],
[
346,
356
],
[
356,
357
],
[
360,
358
],
[
370,
359
],
[
367,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
364,
365
],
[
364,
366
],
[
367,
367
],
[
367,
368
],
[
367,
369
],
[
370,
370
],
[
370,
371
],
[
370,
372
],
[
360,
373
],
[
373,
374
],
[
373,
375
],
[
375,
376
],
[
344,
377
],
[
377,
378
],
[
109,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
109,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
0,
391
],
[
391,
392
],
[
391,
393
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.util.*;\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Manan Patel\n */\npublic class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n Solution solver = new Solution();\n //int testCount = Integer.parseInt(in.next());\n //for (int i = 1; i <= testCount; i++)\n solver.solve(1 , in, w);\n w.close();\n }\n\n static class Solution {\n public void solve(int tc, InputReader sc, PrintWriter w) {\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\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 }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\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.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n Solution solver = new Solution();\n //int testCount = Integer.parseInt(in.next());\n //for (int i = 1; i <= testCount; i++)\n solver.solve(1 , in, w);\n w.close();\n }\n\n static class Solution {\n public void solve(int tc, InputReader sc, PrintWriter w) {\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\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 }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n Solution solver = new Solution();\n //int testCount = Integer.parseInt(in.next());\n //for (int i = 1; i <= testCount; i++)\n solver.solve(1 , in, w);\n w.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n Solution solver = new Solution();\n //int testCount = Integer.parseInt(in.next());\n //for (int i = 1; i <= testCount; i++)\n solver.solve(1 , in, w);\n w.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter w = new PrintWriter(outputStream);",
"w",
"new PrintWriter(outputStream)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve(1 , in, w)",
"solver.solve",
"solver",
"1",
"in",
"w",
"w.close()",
"w.close",
"w",
"String[] args",
"args",
"static class Solution {\n public void solve(int tc, InputReader sc, PrintWriter w) {\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }\n }",
"Solution",
"public void solve(int tc, InputReader sc, PrintWriter w) {\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }",
"solve",
"{\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int 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 w.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 w.println(\"OK\");\n return;\n }\n }",
"{\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }",
"if(i % k == 0){\n w.println(\"OK\");\n return;\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n w.println(\"OK\");\n return;\n }",
"w.println(\"OK\")",
"w.println",
"w",
"\"OK\"",
"return;",
"w.println(\"NG\")",
"w.println",
"w",
"\"NG\"",
"int tc",
"tc",
"InputReader sc",
"sc",
"PrintWriter w",
"w",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\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 }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = 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 numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"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 if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9')\n throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"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 int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"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 if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9')\n throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"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 String readString() {\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 }\n while (!isSpaceChar(c));\n\n return res.toString();\n }",
"readString",
"{\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 }\n while (!isSpaceChar(c));\n\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 }\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 boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"if (filter != null)\n return filter.isSpaceChar(c);",
"filter != null",
"filter",
"null",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"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",
"public String next() {\n return readString();\n }",
"next",
"{\n return readString();\n }",
"return readString();",
"readString()",
"readString",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main{\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n Solution solver = new Solution();\n //int testCount = Integer.parseInt(in.next());\n //for (int i = 1; i <= testCount; i++)\n solver.solve(1 , in, w);\n w.close();\n }\n\n static class Solution {\n public void solve(int tc, InputReader sc, PrintWriter w) {\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\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 }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\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 InputReader in = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n Solution solver = new Solution();\n //int testCount = Integer.parseInt(in.next());\n //for (int i = 1; i <= testCount; i++)\n solver.solve(1 , in, w);\n w.close();\n }\n\n static class Solution {\n public void solve(int tc, InputReader sc, PrintWriter w) {\n int k = sc.nextInt();\n int a = sc.nextInt() , b = sc.nextInt();\n for(int i = a ; i <= b ; i++){\n if(i % k == 0){\n w.println(\"OK\");\n return;\n }\n }\n w.println(\"NG\");\n }\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\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 }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\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.InputMismatchException;
import java.util.*;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Manan Patel
*/
public class Main{
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter w = new PrintWriter(outputStream);
Solution solver = new Solution();
//int testCount = Integer.parseInt(in.next());
//for (int i = 1; i <= testCount; i++)
solver.solve(1 , in, w);
w.close();
}
static class Solution {
public void solve(int tc, InputReader sc, PrintWriter w) {
int k = sc.nextInt();
int a = sc.nextInt() , b = sc.nextInt();
for(int i = a ; i <= b ; i++){
if(i % k == 0){
w.println("OK");
return;
}
}
w.println("NG");
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1)
throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 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 {
if (c < '0' || c > '9')
throw new InputMismatchException();
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 {
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
}
while (!isSpaceChar(c));
return res * sgn;
}
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 boolean isSpaceChar(int c) {
if (filter != null)
return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public String next() {
return readString();
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
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,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
13,
13,
9,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
0,
13,
17,
3,
14,
2,
13,
13,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
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
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
39,
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
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
39,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] |
[
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flg = 0;\n\n for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }\n if(flg == 0) {\n System.out.println(\"NG\");\n }\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flg = 0;\n\n for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }\n if(flg == 0) {\n System.out.println(\"NG\");\n }\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flg = 0;\n\n for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }\n if(flg == 0) {\n System.out.println(\"NG\");\n }\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flg = 0;\n\n for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }\n if(flg == 0) {\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",
"int flg = 0;",
"flg",
"0",
"for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i++",
"i++",
"i",
"{\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }",
"{\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }",
"int num = k * i;",
"num",
"k * i",
"k",
"i",
"if(num < a) continue;",
"num < a",
"num",
"a",
"continue;",
"if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }",
"a <= num && b >= num",
"a <= num",
"a",
"num",
"b >= num",
"b",
"num",
"{\n System.out.println(\"OK\");\n flg = 1;\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"flg = 1",
"flg",
"1",
"break;",
"if(num > b) break;",
"num > b",
"num",
"b",
"break;",
"if(flg == 0) {\n System.out.println(\"NG\");\n }",
"flg == 0",
"flg",
"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\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flg = 0;\n\n for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }\n if(flg == 0) {\n System.out.println(\"NG\");\n }\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n int flg = 0;\n\n for(int i=1;; i++) {\n int num = k * i;\n if(num < a) continue;\n if(a <= num && b >= num) {\n System.out.println(\"OK\");\n flg = 1;\n break;\n }\n if(num > b) break;\n }\n if(flg == 0) {\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();
int flg = 0;
for(int i=1;; i++) {
int num = k * i;
if(num < a) continue;
if(a <= num && b >= num) {
System.out.println("OK");
flg = 1;
break;
}
if(num > b) break;
}
if(flg == 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,
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,
4,
18,
13,
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
],
[
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
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.*;\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 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 scan.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.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 scan.close();\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 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 scan.close();\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 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 scan.close();\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 = 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\"",
"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 int k = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.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 scan.close();\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 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 scan.close();\n }\n}",
"Main"
] |
import java.util.*;
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();
for(int i = a; i <= b; i++){
if(i % k == 0) {
System.out.println("OK");
return;
}
}
System.out.println("NG");
scan.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,
14,
2,
13,
2,
2,
13,
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
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
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
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"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\n\t\tif (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\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\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\n\t\tif (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\tsc.close();\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\n\t\tif (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\tsc.close();\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\n\t\tif (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\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",
"if (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"a <= b / k * k",
"a",
"b / k * k",
"b / k",
"b",
"k",
"k",
"{\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\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\n\t\tif (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\t\tsc.close();\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\n\t\tif (a <= b / k * k) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\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();
if (a <= b / k * k) {
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,
2,
2,
13,
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
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
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
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k=scan.nextInt(), a=scan.nextInt(), b=scan.nextInt();\n\n\t\tint largest = (b / k) * k;\n\n\n\t\tif(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k=scan.nextInt(), a=scan.nextInt(), b=scan.nextInt();\n\n\t\tint largest = (b / k) * k;\n\n\n\t\tif(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k=scan.nextInt(), a=scan.nextInt(), b=scan.nextInt();\n\n\t\tint largest = (b / k) * k;\n\n\n\t\tif(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\n\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k=scan.nextInt(), a=scan.nextInt(), b=scan.nextInt();\n\n\t\tint largest = (b / k) * k;\n\n\n\t\tif(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k=scan.nextInt()",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a=scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b=scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int largest = (b / k) * k;",
"largest",
"(b / k) * k",
"(b / k)",
"b",
"k",
"k",
"if(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"a <= largest",
"a",
"largest",
"{\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k=scan.nextInt(), a=scan.nextInt(), b=scan.nextInt();\n\n\t\tint largest = (b / k) * k;\n\n\n\t\tif(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k=scan.nextInt(), a=scan.nextInt(), b=scan.nextInt();\n\n\t\tint largest = (b / k) * k;\n\n\n\t\tif(a <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\n\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(), a=scan.nextInt(), b=scan.nextInt();
int largest = (b / k) * k;
if(a <= largest) {
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,
11,
1,
41,
13,
17,
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,
17,
3,
14,
2,
13,
13,
30,
40,
13,
14,
40,
13,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
56,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
50,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tboolean flag = false;\n \tint times = (B-A);\n for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }\n if(!flag){\n System.out.println(\"NG\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tboolean flag = false;\n \tint times = (B-A);\n for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }\n if(!flag){\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 int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tboolean flag = false;\n \tint times = (B-A);\n for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }\n if(!flag){\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\t\tboolean flag = false;\n \tint times = (B-A);\n for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }\n if(!flag){\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 flag = false;",
"flag",
"false",
"int times = (B-A);",
"times",
"(B-A)",
"B",
"A",
"for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<times+1",
"i",
"times+1",
"times",
"1",
"i++",
"i++",
"i",
"{\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }",
"{\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }",
"if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }",
"A % K == 0",
"A % K",
"A",
"K",
"0",
"{\n System.out.println(\"OK\");\n flag = true;\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"flag = true",
"flag",
"true",
"break;",
"if(A < B){\n A++;\n }",
"A < B",
"A",
"B",
"{\n A++;\n }",
"A++",
"A",
"if(!flag){\n System.out.println(\"NG\");\n }",
"!flag",
"flag",
"{\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 int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tboolean flag = false;\n \tint times = (B-A);\n for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }\n if(!flag){\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 int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\t\tboolean flag = false;\n \tint times = (B-A);\n for(int i=0;i<times+1;i++){\n if(A % K == 0){\n System.out.println(\"OK\");\n flag = true;\n break;\n } else if(A < B){\n A++;\n }\n }\n if(!flag){\n System.out.println(\"NG\");\n }\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();
boolean flag = false;
int times = (B-A);
for(int i=0;i<times+1;i++){
if(A % K == 0){
System.out.println("OK");
flag = true;
break;
} else if(A < B){
A++;
}
}
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,
41,
13,
17,
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,
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
],
[
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
],
[
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
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"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 K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tString s = \"NG\";\n\n\t\tfor(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(s);\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 K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tString s = \"NG\";\n\n\t\tfor(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(s);\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\tString s = \"NG\";\n\n\t\tfor(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(s);\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\tString s = \"NG\";\n\n\t\tfor(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(s);\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",
"String s = \"NG\";",
"s",
"\"NG\"",
"for(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= B - A",
"i",
"B - A",
"B",
"A",
"i ++",
"i ++",
"i",
"{\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int x = A + i;",
"x",
"A + i",
"A",
"i",
"if(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}",
"x % K == 0",
"x % K",
"x",
"K",
"0",
"{\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}",
"s = \"OK\"",
"s",
"\"OK\"",
"break;",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"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\tString s = \"NG\";\n\n\t\tfor(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(s);\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\tString s = \"NG\";\n\n\t\tfor(int i = 0; i <= B - A; i ++){\n\t\t\tint x = A + i;\n\t\t\tif(x % K == 0){\n\t\t\ts = \"OK\";\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(s);\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();
String s = "NG";
for(int i = 0; i <= B - A; i ++){
int x = A + i;
if(x % K == 0){
s = "OK";
break;
}
}
System.out.println(s);
}
}
|
[
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,
8,
2,
2,
13,
13,
17,
17,
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
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
41,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tSystem.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tSystem.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\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\n\t\tSystem.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\");\n\t}",
"main",
"{\n\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\n\t\tSystem.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"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",
"System.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\"",
"a / k != b / k",
"a / k",
"a",
"k",
"b / k",
"b",
"k",
"\"OK\"",
"a % k == 0 ? \"OK\" : \"NG\"",
"a % k == 0",
"a % k",
"a",
"k",
"0",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\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\n\t\tSystem.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tSystem.out.println( a / k != b / k ? \"OK\" : a % k == 0 ? \"OK\" : \"NG\");\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( a / k != b / k ? "OK" : a % k == 0 ? "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,
4,
18,
13,
41,
13,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
3,
40,
13,
0,
13,
2,
13,
13,
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
],
[
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
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
43,
57
],
[
57,
58
],
[
43,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
64,
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.*;\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 sc.close();\n\n int tmp = K;\n int times = 1;\n boolean results = false;\n while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }\n\n if (results) {\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 sc.close();\n\n int tmp = K;\n int times = 1;\n boolean results = false;\n while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }\n\n if (results) {\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 sc.close();\n\n int tmp = K;\n int times = 1;\n boolean results = false;\n while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }\n\n if (results) {\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 sc.close();\n\n int tmp = K;\n int times = 1;\n boolean results = false;\n while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }\n\n if (results) {\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",
"sc.close()",
"sc.close",
"sc",
"int tmp = K;",
"tmp",
"K",
"int times = 1;",
"times",
"1",
"boolean results = false;",
"results",
"false",
"while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }",
"tmp <= B",
"tmp",
"B",
"{\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }",
"if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }",
"tmp <= B && tmp >= A",
"tmp <= B",
"tmp",
"B",
"tmp >= A",
"tmp",
"A",
"{\n results = true;\n break;\n }",
"results = true",
"results",
"true",
"break;",
"times++",
"times",
"tmp = times * K",
"tmp",
"times * K",
"times",
"K",
"if (results) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"results",
"{\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 sc.close();\n\n int tmp = K;\n int times = 1;\n boolean results = false;\n while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }\n\n if (results) {\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 sc.close();\n\n int tmp = K;\n int times = 1;\n boolean results = false;\n while (tmp <= B) {\n if (tmp <= B && tmp >= A) {\n results = true;\n break;\n }\n times++;\n tmp = times * K;\n }\n\n if (results) {\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();
sc.close();
int tmp = K;
int times = 1;
boolean results = false;
while (tmp <= B) {
if (tmp <= B && tmp >= A) {
results = true;
break;
}
times++;
tmp = times * K;
}
if (results) {
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;\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\tboolean jg = false;\n\n\t\tfor (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}\n\t\tif(jg) {\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}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tboolean jg = false;\n\n\t\tfor (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}\n\t\tif(jg) {\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}",
"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\tboolean jg = false;\n\n\t\tfor (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}\n\t\tif(jg) {\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 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 jg = false;\n\n\t\tfor (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}\n\t\tif(jg) {\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 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 jg = false;",
"jg",
"false",
"for (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}",
"int num = A;",
"int num = A;",
"num",
"A",
"num <= B",
"num",
"B",
"num++",
"num++",
"num",
"{\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}",
"if(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}",
"num%K==0",
"num%K",
"num",
"K",
"0",
"{\n\t\t\t\tjg=true;\n\t\t\t}",
"jg=true",
"jg",
"true",
"if(jg) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"jg",
"{\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\tboolean jg = false;\n\n\t\tfor (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}\n\t\tif(jg) {\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}",
"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\tboolean jg = false;\n\n\t\tfor (int num = A; num <= B; num++) {\n\t\t\tif(num%K==0) {\n\t\t\t\tjg=true;\n\t\t\t}\n\t\t}\n\t\tif(jg) {\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}",
"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 jg = false;
for (int num = A; num <= B; num++) {
if(num%K==0) {
jg=true;
}
}
if(jg) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
}
|
[
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,
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,
13,
17,
30,
4,
18,
13,
17,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
180,
11
],
[
180,
12
],
[
12,
13
],
[
12,
14
],
[
180,
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
],
[
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
],
[
29,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
17,
83
],
[
83,
84
],
[
84,
85
],
[
17,
86
],
[
86,
87
],
[
87,
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
]
] |
[
"//package com.company;\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n//****Use Integer Wrapper Class for Arrays.sort()****\npublic 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 int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\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",
"public 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 int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\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 int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\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 int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\n }\n out.flush();\n out.close();\n }",
"FastReader scan=new FastReader();",
"scan",
"new FastReader()",
"int t=1;",
"t",
"1",
"while(t-->0){\n int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\n }",
"t-->0",
"t--",
"t",
"0",
"{\n int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\n }",
"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 ans=false;",
"ans",
"false",
"for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n ans=true;\n }\n }",
"{\n if(i%k==0){\n ans=true;\n }\n }",
"if(i%k==0){\n ans=true;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n ans=true;\n }",
"ans=true",
"ans",
"true",
"if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }",
"ans",
"{\n out.println(\"OK\");\n }",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"{\n out.println(\"NG\");\n }",
"out.println(\"NG\")",
"out.println",
"out",
"\"NG\"",
"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",
"public 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 int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\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}",
"public 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 int k=scan.nextInt();\n int a=scan.nextInt();\n int b=scan.nextInt();\n boolean ans=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n ans=true;\n }\n }\n if(ans){\n out.println(\"OK\");\n }else{\n out.println(\"NG\");\n }\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"
] |
//package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
public 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){
int k=scan.nextInt();
int a=scan.nextInt();
int b=scan.nextInt();
boolean ans=false;
for(int i=a;i<=b;i++){
if(i%k==0){
ans=true;
}
}
if(ans){
out.println("OK");
}else{
out.println("NG");
}
}
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,
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,
13,
2,
17,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
2,
13,
13,
2,
13,
2,
13,
13,
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
],
[
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
],
[
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
],
[
49,
50
],
[
49,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"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\tint ans = 0;\n\t\tfor (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (ans == 1) {\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 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 ans = 0;\n\t\tfor (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (ans == 1) {\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 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 ans = 0;\n\t\tfor (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (ans == 1) {\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 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 ans = 0;\n\t\tfor (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (ans == 1) {\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 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 ans = 0;",
"ans",
"0",
"for (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= (1000 / k)",
"i",
"(1000 / k)",
"1000",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"if (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}",
"a <= i * k && b >= k * i",
"a <= i * k",
"a",
"i * k",
"i",
"k",
"b >= k * i",
"b",
"k * i",
"k",
"i",
"{\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}",
"ans++",
"ans",
"break;",
"if (ans == 1) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"ans == 1",
"ans",
"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 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 ans = 0;\n\t\tfor (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (ans == 1) {\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 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 ans = 0;\n\t\tfor (int i = 1; i <= (1000 / k); i++) {\n\t\t\tif (a <= i * k && b >= k * i) {\n\t\t\t\tans++;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (ans == 1) {\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 sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int ans = 0;
for (int i = 1; i <= (1000 / k); i++) {
if (a <= i * k && b >= k * i) {
ans++;
break;
}
}
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,
14,
2,
2,
2,
13,
13,
17,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
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
],
[
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
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
27,
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
],
[
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.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tif(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(\"OK\");\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tif(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(\"OK\");\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tif(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(\"OK\");\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tif(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(\"OK\");\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(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}",
"b-a+1 < k",
"b-a+1",
"b-a",
"b",
"a",
"1",
"k",
"if(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}",
"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",
"{\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"return;",
"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\t\t\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tif(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(\"OK\");\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\t\n\t\tif(b-a+1 < k) \n\t\t\tif(a%k > 0 && a%k <= b%k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(\"OK\");\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();
if(b-a+1 < k)
if(a%k > 0 && a%k <= b%k) {
System.out.println("NG");
return;
}
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,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
0,
13,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
14,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
98,
8
],
[
98,
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
],
[
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
],
[
11,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
11,
60
],
[
60,
61
],
[
60,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
81,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
9,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] |
[
"import java.util.*;\nimport java.io.*;\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 if (a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }\n\n int rem = a % k;\n int temp = a-rem;\n temp += k;\n for(int i=temp; i<b; i+=k){\n if(temp > a){\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"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 if (a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }\n\n int rem = a % k;\n int temp = a-rem;\n temp += k;\n for(int i=temp; i<b; i+=k){\n if(temp > a){\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\n if (a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }\n\n int rem = a % k;\n int temp = a-rem;\n temp += k;\n for(int i=temp; i<b; i+=k){\n if(temp > a){\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\n if (a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }\n\n int rem = a % k;\n int temp = a-rem;\n temp += k;\n for(int i=temp; i<b; i+=k){\n if(temp > a){\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",
"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;",
"int rem = a % k;",
"rem",
"a % k",
"a",
"k",
"int temp = a-rem;",
"temp",
"a-rem",
"a",
"rem",
"temp += k",
"temp",
"k",
"for(int i=temp; i<b; i+=k){\n if(temp > a){\n System.out.println(\"OK\");\n return;\n }\n }",
"int i=temp;",
"int i=temp;",
"i",
"temp",
"i<b",
"i",
"b",
"i+=k",
"i+=k",
"i",
"k",
"{\n if(temp > a){\n System.out.println(\"OK\");\n return;\n }\n }",
"{\n if(temp > a){\n System.out.println(\"OK\");\n return;\n }\n }",
"if(temp > a){\n System.out.println(\"OK\");\n return;\n }",
"temp > a",
"temp",
"a",
"{\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\n if (a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }\n\n int rem = a % k;\n int temp = a-rem;\n temp += k;\n for(int i=temp; i<b; i+=k){\n if(temp > a){\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\n if (a % k == 0 || b % k == 0){\n System.out.println(\"OK\");\n return;\n }\n\n int rem = a % k;\n int temp = a-rem;\n temp += k;\n for(int i=temp; i<b; i+=k){\n if(temp > a){\n System.out.println(\"OK\");\n return;\n }\n }\n 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 k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
if (a % k == 0 || b % k == 0){
System.out.println("OK");
return;
}
int rem = a % k;
int temp = a-rem;
temp += k;
for(int i=temp; i<b; i+=k){
if(temp > a){
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,
14,
2,
2,
13,
13,
13,
0,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
2,
2,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
17,
0,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
30,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
40,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
57,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
]
] |
[
"import java.util.Scanner;\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\tint d = 0;\n\t\tif(c-b > a) d = 1;\n\t\telse {\n\t\t\tfor(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}\n\t\t}\n\t\tif(d == 0) System.out.println(\"NG\");\n\t\telse System.out.println(\"OK\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"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\tint d = 0;\n\t\tif(c-b > a) d = 1;\n\t\telse {\n\t\t\tfor(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}\n\t\t}\n\t\tif(d == 0) System.out.println(\"NG\");\n\t\telse System.out.println(\"OK\");\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\tint d = 0;\n\t\tif(c-b > a) d = 1;\n\t\telse {\n\t\t\tfor(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}\n\t\t}\n\t\tif(d == 0) System.out.println(\"NG\");\n\t\telse System.out.println(\"OK\");\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\tint d = 0;\n\t\tif(c-b > a) d = 1;\n\t\telse {\n\t\t\tfor(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}\n\t\t}\n\t\tif(d == 0) System.out.println(\"NG\");\n\t\telse System.out.println(\"OK\");\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",
"if(c-b > a) d = 1;\n\t\telse {\n\t\t\tfor(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}\n\t\t}",
"c-b > a",
"c-b",
"c",
"b",
"a",
"d = 1",
"d",
"1",
"{\n\t\t\tfor(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}\n\t\t}",
"for(int i = 0; i<(c-b)+1; i++) {\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<(c-b)+1",
"i",
"(c-b)+1",
"(c-b)",
"c",
"b",
"1",
"i++",
"i++",
"i",
"{\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}",
"{\n\t\t\t\tif((b+i) % a == 0) d = 1;\n\t\t\t}",
"if((b+i) % a == 0) d = 1;",
"(b+i) % a == 0",
"(b+i) % a",
"(b+i)",
"b",
"i",
"a",
"0",
"d = 1",
"d",
"1",
"if(d == 0) System.out.println(\"NG\");\n\t\telse System.out.println(\"OK\");",
"d == 0",
"d",
"0",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = 0;
if(c-b > a) d = 1;
else {
for(int i = 0; i<(c-b)+1; i++) {
if((b+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,
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 public static void main(String[] args) {\n Scanner s1 = new Scanner(System.in);\n int n = s1.nextInt();\n int A = s1.nextInt();\n int B = s1.nextInt();\n for(int i = A; i <= B; i++) {\n if(i % n == 0) {\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\n public static void main(String[] args) {\n Scanner s1 = new Scanner(System.in);\n int n = s1.nextInt();\n int A = s1.nextInt();\n int B = s1.nextInt();\n for(int i = A; i <= B; i++) {\n if(i % n == 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 s1 = new Scanner(System.in);\n int n = s1.nextInt();\n int A = s1.nextInt();\n int B = s1.nextInt();\n for(int i = A; i <= B; i++) {\n if(i % n == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n Scanner s1 = new Scanner(System.in);\n int n = s1.nextInt();\n int A = s1.nextInt();\n int B = s1.nextInt();\n for(int i = A; i <= B; i++) {\n if(i % n == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"Scanner s1 = new Scanner(System.in);",
"s1",
"new Scanner(System.in)",
"int n = s1.nextInt();",
"n",
"s1.nextInt()",
"s1.nextInt",
"s1",
"int A = s1.nextInt();",
"A",
"s1.nextInt()",
"s1.nextInt",
"s1",
"int B = s1.nextInt();",
"B",
"s1.nextInt()",
"s1.nextInt",
"s1",
"for(int i = A; i <= B; i++) {\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;\n }",
"i % n == 0",
"i % n",
"i",
"n",
"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\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner s1 = new Scanner(System.in);\n int n = s1.nextInt();\n int A = s1.nextInt();\n int B = s1.nextInt();\n for(int i = A; i <= B; i++) {\n if(i % n == 0) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner s1 = new Scanner(System.in);\n int n = s1.nextInt();\n int A = s1.nextInt();\n int B = s1.nextInt();\n for(int i = A; i <= B; i++) {\n if(i % n == 0) {\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 s1 = new Scanner(System.in);
int n = s1.nextInt();
int A = s1.nextInt();
int B = s1.nextInt();
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,
42,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
0,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
41,
48
],
[
33,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
32,
61
],
[
61,
62
],
[
61,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"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\t\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint s =k;\n\t\t\n\t\twhile(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\n\t\t}\n\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\t\t\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint s =k;\n\t\t\n\t\twhile(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\n\t\t}\n\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\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint s =k;\n\t\t\n\t\twhile(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\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\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint s =k;\n\t\t\n\t\twhile(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\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 s =k;",
"s",
"k",
"while(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\n\t\t}",
"true",
"{\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\n\t\t}",
"if(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}",
"a<=k && k <= b",
"a<=k",
"a",
"k",
"k <= b",
"k",
"b",
"{\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;",
"if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}",
"b<k",
"b",
"k",
"{\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;",
"k+=s",
"k",
"s",
"String[] args",
"args",
"public class Main {\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\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint s =k;\n\t\t\n\t\twhile(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\n\t\t}\n\t}\n\t\n}",
"public class Main {\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\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint s =k;\n\t\t\n\t\twhile(true) {\n\t\t\tif(a<=k && k <= b) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tbreak;\n\t\t\t}else if(b<k) {\n\t\t\t\tSystem.out.println(\"NG\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tk+=s;\n\t\t}\n\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 s =k;
while(true) {
if(a<=k && k <= b) {
System.out.println("OK");
break;
}else if(b<k) {
System.out.println("NG");
break;
}
k+=s;
}
}
}
|
[
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\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint K = s.nextInt();\n\t\tint A = s.nextInt();\n\t\tint B = s.nextInt();\n\t\t\n\t\tboolean ans = false;\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\t\t\n\t\tif(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}\n\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint K = s.nextInt();\n\t\tint A = s.nextInt();\n\t\tint B = s.nextInt();\n\t\t\n\t\tboolean ans = false;\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\t\t\n\t\tif(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}\n\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint K = s.nextInt();\n\t\tint A = s.nextInt();\n\t\tint B = s.nextInt();\n\t\t\n\t\tboolean ans = false;\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\t\t\n\t\tif(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}\n\n\t\t\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint K = s.nextInt();\n\t\tint A = s.nextInt();\n\t\tint B = s.nextInt();\n\t\t\n\t\tboolean ans = false;\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\t\t\n\t\tif(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}\n\n\t\t\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",
"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;",
"if(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}",
"ans",
"{System.out.println(\"OK\");}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{System.out.println(\"NG\");}",
"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 s = new Scanner(System.in);\n\t\tint K = s.nextInt();\n\t\tint A = s.nextInt();\n\t\tint B = s.nextInt();\n\t\t\n\t\tboolean ans = false;\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\t\t\n\t\tif(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}\n\n\t\t\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint K = s.nextInt();\n\t\tint A = s.nextInt();\n\t\tint B = s.nextInt();\n\t\t\n\t\tboolean ans = false;\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\t\t\n\t\tif(ans) {System.out.println(\"OK\");}\n\t\telse {System.out.println(\"NG\");}\n\n\t\t\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int K = s.nextInt();
int A = s.nextInt();
int B = s.nextInt();
boolean ans = false;
for(int i=A; i<=B; i++) {
if(i%K == 0) {
ans = true;
break;
}
}
if(ans) {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,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
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
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.Scanner;\n \npublic class Main {\n\tpublic 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 int B1 =(B/K)*K;\n \n if(A<=B1){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic 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 int B1 =(B/K)*K;\n \n if(A<=B1){\n System.out.println(\"OK\");\n }\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 \n int B1 =(B/K)*K;\n \n if(A<=B1){\n System.out.println(\"OK\");\n }\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 \n int B1 =(B/K)*K;\n \n if(A<=B1){\n System.out.println(\"OK\");\n }\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 B1 =(B/K)*K;",
"B1",
"(B/K)*K",
"(B/K)",
"B",
"K",
"K",
"if(A<=B1){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }",
"A<=B1",
"A",
"B1",
"{\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 Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int B1 =(B/K)*K;\n \n if(A<=B1){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n }\n}",
"public class Main {\n\tpublic 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 int B1 =(B/K)*K;\n \n if(A<=B1){\n System.out.println(\"OK\");\n }\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 B1 =(B/K)*K;
if(A<=B1){
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,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
4,
18,
13,
13,
13,
4,
18,
13,
2,
13,
17,
13,
14,
2,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
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,
30,
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,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
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,
6,
13,
12,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
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
],
[
385,
35
],
[
385,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
36,
67
],
[
67,
68
],
[
385,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
73,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
73,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
71,
116
],
[
116,
117
],
[
71,
118
],
[
118,
119
],
[
71,
120
],
[
120,
121
],
[
385,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
122,
130
],
[
130,
131
],
[
122,
132
],
[
132,
133
],
[
122,
134
],
[
134,
135
],
[
122,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
136,
144
],
[
144,
145
],
[
122,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
149,
154
],
[
154,
155
],
[
155,
156
],
[
148,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
161,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
148,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
122,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
193,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
193,
207
],
[
207,
208
],
[
207,
209
],
[
193,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
193,
223
],
[
223,
224
],
[
223,
225
],
[
193,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
237,
239
],
[
232,
240
],
[
240,
241
],
[
241,
242
],
[
231,
243
],
[
243,
244
],
[
243,
245
],
[
231,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
248,
250
],
[
231,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
193,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
122,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
268,
271
],
[
261,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
259,
276
],
[
276,
277
],
[
122,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
285,
283
],
[
295,
284
],
[
292,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
285,
289
],
[
289,
290
],
[
289,
291
],
[
292,
292
],
[
292,
293
],
[
292,
294
],
[
295,
295
],
[
295,
296
],
[
295,
297
],
[
285,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
278,
302
],
[
302,
303
],
[
122,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
385,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
310,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
314,
320
],
[
320,
321
],
[
310,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
322,
330
],
[
330,
331
],
[
310,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
335,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
342,
344
],
[
335,
345
],
[
345,
346
],
[
346,
347
],
[
335,
348
],
[
349,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
355,
358
],
[
349,
359
],
[
359,
360
],
[
360,
361
],
[
359,
362
],
[
362,
363
],
[
362,
364
],
[
332,
365
],
[
365,
366
],
[
310,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
374,
375
],
[
367,
376
],
[
376,
377
],
[
310,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
0,
384
],
[
384,
385
],
[
384,
386
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author akhl\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\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",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(outputStream)",
"AWeLoveGolf solver = new AWeLoveGolf();",
"solver",
"new AWeLoveGolf()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AWeLoveGolf {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }\n\n }",
"AWeLoveGolf",
"public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }",
"solve",
"{\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }",
"int n = in.nextInt();",
"n",
"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",
"int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);",
"temp",
"Math.floorDiv(b, n) - Math.floorDiv((a - 1), n)",
"Math.floorDiv(b, n)",
"Math.floorDiv",
"Math",
"b",
"n",
"Math.floorDiv((a - 1), n)",
"Math.floorDiv",
"Math",
"(a - 1)",
"a",
"1",
"n",
"if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");",
"temp > 0",
"temp",
"0",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"out.println(\"NG\")",
"out.println",
"out",
"\"NG\"",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"OutputWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = 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 numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"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 boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\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",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }",
"print",
"{\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }",
"for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < objects.length",
"i",
"objects.length",
"objects",
"objects.length",
"i++",
"i++",
"i",
"{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"if (i != 0) {\n writer.print(' ');\n }",
"i != 0",
"i",
"0",
"{\n writer.print(' ');\n }",
"writer.print(' ')",
"writer.print",
"writer",
"' '",
"writer.print(objects[i])",
"writer.print",
"writer",
"objects[i]",
"objects",
"i",
"Object... objects",
"objects",
"public void println(Object... objects) {\n print(objects);\n writer.println();\n }",
"println",
"{\n print(objects);\n writer.println();\n }",
"print(objects)",
"print",
"objects",
"writer.println()",
"writer.println",
"writer",
"Object... objects",
"objects",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);\n if (temp > 0)\n out.println(\"OK\");\n else\n out.println(\"NG\");\n// if (n == 1)\n// out.println(\"OK\");\n// else {\n// int mul = 0;\n// if (n < a) {\n// mul = a / n;\n// if (n * (mul + 1) > a && n * (mul + 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// else if (n>b)\n// out.println(\"NG\");\n// else if (n ==a && a==b)\n// out.println(\"OK\");\n// else {\n// mul = b /n;\n// if (n * (mul - 1) > a && n * (mul - 1) < b)\n// out.println(\"OK\");\n// else\n// out.println(\"NG\");\n// }\n// }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\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 if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author akhl
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
AWeLoveGolf solver = new AWeLoveGolf();
solver.solve(1, in, out);
out.close();
}
static class AWeLoveGolf {
public void solve(int testNumber, InputReader in, OutputWriter out) {
int n = in.nextInt();
int a = in.nextInt();
int b = in.nextInt();
int temp = Math.floorDiv(b, n) - Math.floorDiv((a - 1), n);
if (temp > 0)
out.println("OK");
else
out.println("NG");
// if (n == 1)
// out.println("OK");
// else {
// int mul = 0;
// if (n < a) {
// mul = a / n;
// if (n * (mul + 1) > a && n * (mul + 1) < b)
// out.println("OK");
// else
// out.println("NG");
// }
// else if (n>b)
// out.println("NG");
// else if (n ==a && a==b)
// out.println("OK");
// else {
// mul = b /n;
// if (n * (mul - 1) > a && n * (mul - 1) < b)
// out.println("OK");
// else
// out.println("NG");
// }
// }
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 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 {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void print(Object... objects) {
for (int i = 0; i < objects.length; i++) {
if (i != 0) {
writer.print(' ');
}
writer.print(objects[i]);
}
}
public void println(Object... objects) {
print(objects);
writer.println();
}
public void close() {
writer.close();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
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,
17,
4,
18,
18,
13,
13,
17,
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,
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,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
0,
13,
17,
40,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
14,
13,
0,
13,
17,
0,
13,
2,
4,
18,
13,
4,
18,
13,
13,
29,
2,
13,
8,
13,
40,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
246,
8
],
[
246,
9
],
[
9,
10
],
[
9,
11
],
[
246,
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
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
14,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
12,
75
],
[
75,
76
],
[
246,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
77,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
77,
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
],
[
103,
105
],
[
93,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
77,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
77,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
77,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
77,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
77,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
144,
151
],
[
151,
152
],
[
151,
153
],
[
144,
154
],
[
154,
155
],
[
154,
156
],
[
144,
157
],
[
157,
158
],
[
157,
159
],
[
144,
160
],
[
160,
161
],
[
160,
162
],
[
144,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
164,
169
],
[
163,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
144,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
176,
186
],
[
186,
187
],
[
187,
188
],
[
176,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
191,
196
],
[
190,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
203,
204
],
[
204,
205
],
[
197,
206
],
[
206,
207
],
[
206,
208
],
[
197,
209
],
[
209,
210
],
[
209,
211
],
[
190,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
212,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
144,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
228,
231
],
[
231,
232
],
[
232,
233
],
[
227,
234
],
[
144,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
238,
242
],
[
142,
243
],
[
243,
244
],
[
0,
245
],
[
245,
246
],
[
245,
247
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\tstatic int z = 0;\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = Integer.parseInt(sc.next());\n\t\tint B = Integer.parseInt(sc.next());\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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}\t\n\n\tstatic class Scanner \n\t{\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\t\tpublic String next() throws IOException \n\t\t{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\t\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\t\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\t\tpublic boolean ready() throws IOException {return br.ready();}\n\n\t\tpublic double nextDouble(String x) \n\t\t{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}\n\n\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tstatic int z = 0;\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = Integer.parseInt(sc.next());\n\t\tint B = Integer.parseInt(sc.next());\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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}\t\n\n\tstatic class Scanner \n\t{\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\t\tpublic String next() throws IOException \n\t\t{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\t\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\t\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\t\tpublic boolean ready() throws IOException {return br.ready();}\n\n\t\tpublic double nextDouble(String x) \n\t\t{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}\n\n\n\t}\n}",
"Main",
"static int z = 0;",
"z",
"0",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = Integer.parseInt(sc.next());\n\t\tint B = Integer.parseInt(sc.next());\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = Integer.parseInt(sc.next());\n\t\tint B = Integer.parseInt(sc.next());\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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",
"for (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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 = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % K == 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 % K == 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 % K == 0){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"i % K == 0",
"i % K",
"i",
"K",
"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\"",
"String[] args",
"args",
"static class Scanner \n\t{\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\t\tpublic String next() throws IOException \n\t\t{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\t\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\t\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\t\tpublic boolean ready() throws IOException {return br.ready();}\n\n\t\tpublic double nextDouble(String x) \n\t\t{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}\n\n\n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{\tbr = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException \n\t\t{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public double nextDouble(String x) \n\t\t{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}",
"nextDouble",
"{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}",
"StringBuilder sb = new StringBuilder(\"0\");",
"sb",
"new StringBuilder(\"0\")",
"double res = 0",
"res",
"0",
"f = 1;",
"f",
"1",
"boolean dec = false",
"dec",
"false",
"neg = false;",
"neg",
"false",
"int start = 0;",
"start",
"0",
"if(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}",
"x.charAt(0) == '-'",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"'-'",
"{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}",
"neg = true",
"neg",
"true",
"start++",
"start",
"for(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}",
"int i = start;",
"int i = start;",
"i",
"start",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"if(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}",
"if(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}",
"x.charAt(i) == '.'",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"'.'",
"{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}",
"res = Long.parseLong(sb.toString())",
"res",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"sb = new StringBuilder(\"0\")",
"sb",
"new StringBuilder(\"0\")",
"dec = true",
"dec",
"true",
"{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}",
"sb.append(x.charAt(i))",
"sb.append",
"sb",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(dec)\n\t\t\t\t\t\tf *= 10;",
"dec",
"f *= 10",
"f",
"10",
"res += Long.parseLong(sb.toString()) / f",
"res",
"Long.parseLong(sb.toString()) / f",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"f",
"return res * (neg?-1:1);",
"res * (neg?-1:1)",
"res",
"(neg?-1:1)",
"neg",
"-1",
"1",
"1",
"String x",
"x",
"public class Main{\n\tstatic int z = 0;\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = Integer.parseInt(sc.next());\n\t\tint B = Integer.parseInt(sc.next());\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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}\t\n\n\tstatic class Scanner \n\t{\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\t\tpublic String next() throws IOException \n\t\t{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\t\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\t\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\t\tpublic boolean ready() throws IOException {return br.ready();}\n\n\t\tpublic double nextDouble(String x) \n\t\t{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}\n\n\n\t}\n}",
"public class Main{\n\tstatic int z = 0;\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint A = Integer.parseInt(sc.next());\n\t\tint B = Integer.parseInt(sc.next());\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif(i % K == 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}\t\n\n\tstatic class Scanner \n\t{\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n\t\tpublic String next() throws IOException \n\t\t{\n\t\t\twhile (st == null || !st.hasMoreTokens()) \n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {return Integer.parseInt(next());}\n\n\t\tpublic long nextLong() throws IOException {return Long.parseLong(next());}\n\n\t\tpublic String nextLine() throws IOException {return br.readLine();}\n\n\t\tpublic boolean ready() throws IOException {return br.ready();}\n\n\t\tpublic double nextDouble(String x) \n\t\t{\n\n\t\t\tStringBuilder sb = new StringBuilder(\"0\");\n\t\t\tdouble res = 0, f = 1;\n\t\t\tboolean dec = false, neg = false;\n\t\t\tint start = 0;\n\t\t\tif(x.charAt(0) == '-')\n\t\t\t{\n\t\t\t\tneg = true;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\tfor(int i = start; i < x.length(); i++)\n\t\t\t\tif(x.charAt(i) == '.')\n\t\t\t\t{\n\t\t\t\t\tres = Long.parseLong(sb.toString());\n\t\t\t\t\tsb = new StringBuilder(\"0\");\n\t\t\t\t\tdec = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(x.charAt(i));\n\t\t\t\t\tif(dec)\n\t\t\t\t\t\tf *= 10;\n\t\t\t\t}\n\t\t\tres += Long.parseLong(sb.toString()) / f;\n\t\t\treturn res * (neg?-1:1);\n\t\t}\n\n\n\t}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main{
static int z = 0;
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = Integer.parseInt(sc.next());
int B = Integer.parseInt(sc.next());
for (int i = A; i <= B; i++) {
if(i % K == 0){
System.out.println("OK");
System.exit(0);
}
}
System.out.println("NG");
}
static class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public boolean ready() throws IOException {return br.ready();}
public double nextDouble(String x)
{
StringBuilder sb = new StringBuilder("0");
double res = 0, f = 1;
boolean dec = false, neg = false;
int start = 0;
if(x.charAt(0) == '-')
{
neg = true;
start++;
}
for(int i = start; i < x.length(); i++)
if(x.charAt(i) == '.')
{
res = Long.parseLong(sb.toString());
sb = new StringBuilder("0");
dec = true;
}
else
{
sb.append(x.charAt(i));
if(dec)
f *= 10;
}
res += Long.parseLong(sb.toString()) / f;
return res * (neg?-1:1);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
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,
13,
8,
13,
17,
17,
4,
18,
13,
23,
13,
12,
13,
30,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
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,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
17,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
180,
8
],
[
180,
9
],
[
9,
10
],
[
9,
11
],
[
180,
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
],
[
55,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
12,
70
],
[
70,
71
],
[
180,
72
],
[
72,
73
],
[
72,
74
],
[
180,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
85,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
75,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
75,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
75,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
75,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
137,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
136,
149
],
[
149,
150
],
[
75,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
153,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
153,
174
],
[
174,
175
],
[
174,
176
],
[
153,
177
],
[
177,
178
],
[
0,
179
],
[
179,
180
],
[
179,
181
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main\n{\n static PrintWriter out=new PrintWriter((System.out));\n public static void main(String args[])throws IOException\n {\n Reader sc=new Reader();\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n boolean found=false;\n for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }\n out.println(found?\"OK\":\"NG\");\n out.close();\n }\n \n public static void solve()\n {\n }\n \n static class Reader \n { \n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n public String next()\n {\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n public long nextLong()\n {\n return Long.parseLong(next());\n }\n \n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n \n public boolean hasNext()\n {\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }\n } \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n static PrintWriter out=new PrintWriter((System.out));\n public static void main(String args[])throws IOException\n {\n Reader sc=new Reader();\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n boolean found=false;\n for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }\n out.println(found?\"OK\":\"NG\");\n out.close();\n }\n \n public static void solve()\n {\n }\n \n static class Reader \n { \n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n public String next()\n {\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n public long nextLong()\n {\n return Long.parseLong(next());\n }\n \n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n \n public boolean hasNext()\n {\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }\n } \n}",
"Main",
"static PrintWriter out=new PrintWriter((System.out));",
"out",
"new PrintWriter((System.out))",
"public static void main(String args[])throws IOException\n {\n Reader sc=new Reader();\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n boolean found=false;\n for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }\n out.println(found?\"OK\":\"NG\");\n out.close();\n }",
"main",
"{\n Reader sc=new Reader();\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n boolean found=false;\n for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }\n out.println(found?\"OK\":\"NG\");\n out.close();\n }",
"Reader sc=new Reader();",
"sc",
"new Reader()",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean found=false;",
"found",
"false",
"for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }",
"int x=n;",
"int x=n;",
"x",
"n",
"x<=m",
"x",
"m",
"x++",
"x++",
"x",
"{\n if(x%k==0)\n {\n found=true;\n break;\n }\n }",
"{\n if(x%k==0)\n {\n found=true;\n break;\n }\n }",
"if(x%k==0)\n {\n found=true;\n break;\n }",
"x%k==0",
"x%k",
"x",
"k",
"0",
"{\n found=true;\n break;\n }",
"found=true",
"found",
"true",
"break;",
"out.println(found?\"OK\":\"NG\")",
"out.println",
"out",
"found?\"OK\":\"NG\"",
"found",
"\"OK\"",
"\"NG\"",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"public static void solve()\n {\n }",
"solve",
"{\n }",
"static class Reader \n { \n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n public String next()\n {\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n public long nextLong()\n {\n return Long.parseLong(next());\n }\n \n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n \n public boolean hasNext()\n {\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }\n }",
"Reader",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"public String next()\n {\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }",
"catch(Exception e)\n {\n e.printStackTrace();\n }",
"Exception 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",
"public 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",
"public 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",
"public 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",
"public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }",
"nextLine",
"{\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }",
"try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }",
"catch(Exception e)\n {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"return null;",
"null",
"public boolean hasNext()\n {\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }",
"hasNext",
"{\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }",
"String next=null;",
"next",
"null",
"try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }",
"catch(Exception e)\n {\n }",
"Exception e",
"{\n }",
"{\n next=br.readLine();\n }",
"next=br.readLine()",
"next",
"br.readLine()",
"br.readLine",
"br",
"if(next==null)\n {\n return false;\n }",
"next==null",
"next",
"null",
"{\n return false;\n }",
"return false;",
"false",
"st=new StringTokenizer(next)",
"st",
"new StringTokenizer(next)",
"return true;",
"true",
"public class Main\n{\n static PrintWriter out=new PrintWriter((System.out));\n public static void main(String args[])throws IOException\n {\n Reader sc=new Reader();\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n boolean found=false;\n for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }\n out.println(found?\"OK\":\"NG\");\n out.close();\n }\n \n public static void solve()\n {\n }\n \n static class Reader \n { \n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n public String next()\n {\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n public long nextLong()\n {\n return Long.parseLong(next());\n }\n \n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n \n public boolean hasNext()\n {\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }\n } \n}",
"public class Main\n{\n static PrintWriter out=new PrintWriter((System.out));\n public static void main(String args[])throws IOException\n {\n Reader sc=new Reader();\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n boolean found=false;\n for(int x=n;x<=m;x++)\n {\n if(x%k==0)\n {\n found=true;\n break;\n }\n }\n out.println(found?\"OK\":\"NG\");\n out.close();\n }\n \n public static void solve()\n {\n }\n \n static class Reader \n { \n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n public String next()\n {\n while(!st.hasMoreTokens())\n {\n try\n {\n st=new StringTokenizer(br.readLine());\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n public long nextLong()\n {\n return Long.parseLong(next());\n }\n \n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n \n public boolean hasNext()\n {\n String next=null;\n try\n {\n next=br.readLine();\n }\n catch(Exception e)\n {\n }\n if(next==null)\n {\n return false;\n }\n st=new StringTokenizer(next);\n return true;\n }\n } \n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main
{
static PrintWriter out=new PrintWriter((System.out));
public static void main(String args[])throws IOException
{
Reader sc=new Reader();
int k=sc.nextInt();
int n=sc.nextInt();
int m=sc.nextInt();
boolean found=false;
for(int x=n;x<=m;x++)
{
if(x%k==0)
{
found=true;
break;
}
}
out.println(found?"OK":"NG");
out.close();
}
public static void solve()
{
}
static class Reader
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
public String next()
{
while(!st.hasMoreTokens())
{
try
{
st=new StringTokenizer(br.readLine());
}
catch(Exception e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
public int nextInt()
{
return Integer.parseInt(next());
}
public long nextLong()
{
return Long.parseLong(next());
}
public double nextDouble()
{
return Double.parseDouble(next());
}
public String nextLine()
{
try
{
return br.readLine();
}
catch(Exception e)
{
e.printStackTrace();
}
return null;
}
public boolean hasNext()
{
String next=null;
try
{
next=br.readLine();
}
catch(Exception e)
{
}
if(next==null)
{
return false;
}
st=new StringTokenizer(next);
return true;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
0,
13,
2,
2,
13,
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
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
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
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
47,
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;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint k,a,b,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tk = Integer.parseInt(sc.next());\n\t\ta = Integer.parseInt(sc.next());\n\t\tb = Integer.parseInt(sc.next());\n\t\t\n\t\tsc.close();\n\t\t\n\t\tx = (b / k) * k;\n\t\tif(a <= x) {\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\tint k,a,b,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tk = Integer.parseInt(sc.next());\n\t\ta = Integer.parseInt(sc.next());\n\t\tb = Integer.parseInt(sc.next());\n\t\t\n\t\tsc.close();\n\t\t\n\t\tx = (b / k) * k;\n\t\tif(a <= x) {\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\tint k,a,b,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tk = Integer.parseInt(sc.next());\n\t\ta = Integer.parseInt(sc.next());\n\t\tb = Integer.parseInt(sc.next());\n\t\t\n\t\tsc.close();\n\t\t\n\t\tx = (b / k) * k;\n\t\tif(a <= x) {\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\tint k,a,b,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tk = Integer.parseInt(sc.next());\n\t\ta = Integer.parseInt(sc.next());\n\t\tb = Integer.parseInt(sc.next());\n\t\t\n\t\tsc.close();\n\t\t\n\t\tx = (b / k) * k;\n\t\tif(a <= x) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"int k",
"k",
"a",
"a",
"b",
"b",
"x;",
"x",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"k = Integer.parseInt(sc.next())",
"k",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"a = Integer.parseInt(sc.next())",
"a",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"b = Integer.parseInt(sc.next())",
"b",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"x = (b / k) * k",
"x",
"(b / k) * k",
"(b / k)",
"b",
"k",
"k",
"if(a <= x) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"a <= x",
"a",
"x",
"{\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\tint k,a,b,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tk = Integer.parseInt(sc.next());\n\t\ta = Integer.parseInt(sc.next());\n\t\tb = Integer.parseInt(sc.next());\n\t\t\n\t\tsc.close();\n\t\t\n\t\tx = (b / k) * k;\n\t\tif(a <= x) {\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\tint k,a,b,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tk = Integer.parseInt(sc.next());\n\t\ta = Integer.parseInt(sc.next());\n\t\tb = Integer.parseInt(sc.next());\n\t\t\n\t\tsc.close();\n\t\t\n\t\tx = (b / k) * k;\n\t\tif(a <= x) {\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) {
int k,a,b,x;
Scanner sc = new Scanner(System.in);
k = Integer.parseInt(sc.next());
a = Integer.parseInt(sc.next());
b = Integer.parseInt(sc.next());
sc.close();
x = (b / k) * k;
if(a <= x) {
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
] |
[
[
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
],
[
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
]
] |
[
"import java.util.*;\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 boolean ans=false;\n for (int d=a;d<=b;d++){\n if(d%k==0){\n ans=true;\n break;\n }\n }\n if(ans){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean ans=false;\n for (int d=a;d<=b;d++){\n if(d%k==0){\n ans=true;\n break;\n }\n }\n if(ans){\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 boolean ans=false;\n for (int d=a;d<=b;d++){\n if(d%k==0){\n ans=true;\n break;\n }\n }\n if(ans){\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 boolean ans=false;\n for (int d=a;d<=b;d++){\n if(d%k==0){\n ans=true;\n break;\n }\n }\n if(ans){\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",
"boolean ans=false;",
"ans",
"false",
"for (int d=a;d<=b;d++){\n if(d%k==0){\n ans=true;\n break;\n }\n }",
"int d=a;",
"int d=a;",
"d",
"a",
"d<=b",
"d",
"b",
"d++",
"d++",
"d",
"{\n if(d%k==0){\n ans=true;\n break;\n }\n }",
"{\n if(d%k==0){\n ans=true;\n break;\n }\n }",
"if(d%k==0){\n ans=true;\n break;\n }",
"d%k==0",
"d%k",
"d",
"k",
"0",
"{\n ans=true;\n break;\n }",
"ans=true",
"ans",
"true",
"break;",
"if(ans){\n System.out.println(\"OK\");\n }\n else{\n System.out.println(\"NG\");\n }",
"ans",
"{\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();
boolean ans=false;
for (int d=a;d<=b;d++){
if(d%k==0){
ans=true;
break;
}
}
if(ans){
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,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
13,
17,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
37,
20,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
29,
17,
0,
13,
20,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
13,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
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
],
[
232,
32
],
[
232,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
55,
60
],
[
35,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
232,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
70,
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
],
[
107,
108
],
[
106,
109
],
[
105,
110
],
[
70,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
68,
115
],
[
115,
116
],
[
68,
117
],
[
117,
118
],
[
68,
119
],
[
119,
120
],
[
232,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
121,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
121,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
130,
136
],
[
136,
137
],
[
121,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
138,
144
],
[
144,
145
],
[
121,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
160,
160
],
[
160,
161
],
[
160,
162
],
[
160,
163
],
[
148,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
164,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
177,
181
],
[
181,
182
],
[
174,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
183,
195
],
[
195,
196
],
[
195,
197
],
[
148,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
148,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
215,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
215,
219
],
[
148,
220
],
[
220,
221
],
[
121,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
0,
231
],
[
231,
232
],
[
231,
233
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.PrintStream;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Eric\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\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",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"AWeLoveGolf solver = new AWeLoveGolf();",
"solver",
"new AWeLoveGolf()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AWeLoveGolf {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\n }\n\n }",
"AWeLoveGolf",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\n }",
"solve",
"{\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\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",
"for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n 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 out.println(\"OK\");\n return;\n }\n }",
"{\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }",
"if (i % k == 0) {\n out.println(\"OK\");\n return;\n }",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n out.println(\"OK\");\n return;\n }",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"return;",
"out.print(\"NG\")",
"out.print",
"out",
"\"NG\"",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"FastReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"String context = null;",
"context",
"null",
"public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }",
"FastReader",
"{\n this(new InputStreamReader(in));\n }",
"this(new InputStreamReader(in))",
"this",
"new InputStreamReader(in)",
"InputStream in",
"in",
"public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }",
"FastReader",
"{\n br = new BufferedReader(input);\n }",
"br = new BufferedReader(input)",
"br",
"new BufferedReader(input)",
"InputStreamReader input",
"input",
"public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }",
"next",
"{\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }",
"if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }",
"context != null",
"context",
"null",
"{\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }",
"System.err.print(\"[\" + context + \"] Wait for input ...\")",
"System.err.print",
"System.err",
"System",
"System.err",
"\"[\" + context + \"] Wait for input ...\"",
"\"[\" + context + \"] Wait for input ...\"",
"\"[\"",
"context",
"\"] Wait for input ...\"",
"while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }",
"try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"IOException e",
"{\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"throw new RuntimeException(\"Could not read\");",
"new RuntimeException(\"Could not read\")",
"{\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"if (s == null)\n return null;",
"s == null",
"s",
"null",
"return null;",
"null",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"String res = st.nextToken();",
"res",
"st.nextToken()",
"st.nextToken",
"st",
"if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }",
"context != null",
"context",
"null",
"{\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }",
"System.err.println(\"[\" + context + \"] ... received : \" + res)",
"System.err.println",
"System.err",
"System",
"System.err",
"\"[\" + context + \"] ... received : \" + res",
"\"] ... received : \"",
"\"[\" + context + \"] ... received : \" + res",
"\"[\"",
"context",
"\"] ... received : \"",
"res",
"return res;",
"res",
"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 class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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 FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AWeLoveGolf solver = new AWeLoveGolf();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AWeLoveGolf {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n for (int i = a; i <= b; i++) {\n if (i % k == 0) {\n out.println(\"OK\");\n return;\n }\n }\n out.print(\"NG\");\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Eric
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
AWeLoveGolf solver = new AWeLoveGolf();
solver.solve(1, in, out);
out.close();
}
static class AWeLoveGolf {
public void solve(int testNumber, FastReader in, PrintWriter out) {
int k = in.nextInt();
int a = in.nextInt();
int b = in.nextInt();
for (int i = a; i <= b; i++) {
if (i % k == 0) {
out.println("OK");
return;
}
}
out.print("NG");
}
}
static class FastReader {
public BufferedReader br;
public StringTokenizer st;
String context = null;
public FastReader(InputStream in) {
this(new InputStreamReader(in));
}
public FastReader(InputStreamReader input) {
br = new BufferedReader(input);
}
public String next() {
if (context != null) {
System.err.print("[" + context + "] Wait for input ...");
}
while (st == null || !st.hasMoreElements()) {
try {
String s = br.readLine();
if (s == null)
return null;
st = new StringTokenizer(s);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not read");
}
}
String res = st.nextToken();
if (context != null) {
System.err.println("[" + context + "] ... received : " + res);
}
return res;
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
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,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
40,
13,
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
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
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
],
[
47,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint dif = b - a;\n\t\tdif += 1;\n\t\tfor(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(\"NG\");\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 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\n\t\tint dif = b - a;\n\t\tdif += 1;\n\t\tfor(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\n\t}\n\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\n\t\tint dif = b - a;\n\t\tdif += 1;\n\t\tfor(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\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\n\t\tint dif = b - a;\n\t\tdif += 1;\n\t\tfor(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}\n\t\tSystem.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",
"int dif = b - a;",
"dif",
"b - a",
"b",
"a",
"dif += 1",
"dif",
"1",
"for(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < dif",
"i",
"dif",
"i++",
"i++",
"i",
"{\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}",
"{\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}",
"if(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}",
"a % k == 0",
"a % k",
"a",
"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;",
"a++",
"a",
"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\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\n\t\tint dif = b - a;\n\t\tdif += 1;\n\t\tfor(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\n\t}\n\n}",
"public class Main {\n\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\n\t\tint dif = b - a;\n\t\tdif += 1;\n\t\tfor(int i = 0; i < dif; i++) {\n\t\t\tif(a % k == 0) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(\"NG\");\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int dif = b - a;
dif += 1;
for(int i = 0; i < dif; i++) {
if(a % k == 0) {
System.out.println("OK");
return;
}
a++;
}
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,
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,
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,
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,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
0,
13,
17,
40,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
14,
13,
0,
13,
17,
0,
13,
2,
4,
18,
13,
4,
18,
13,
13,
29,
2,
13,
8,
13,
40,
17,
17,
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
],
[
248,
17
],
[
248,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
39,
41
],
[
20,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
20,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
18,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
77,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
77,
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
],
[
103,
105
],
[
93,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
77,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
77,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
77,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
77,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
145,
147
],
[
137,
148
],
[
148,
149
],
[
148,
150
],
[
137,
151
],
[
151,
152
],
[
151,
153
],
[
137,
154
],
[
154,
155
],
[
154,
156
],
[
137,
157
],
[
157,
158
],
[
157,
159
],
[
137,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
161,
166
],
[
160,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
137,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
173,
183
],
[
183,
184
],
[
184,
185
],
[
173,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
188,
193
],
[
187,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
201,
202
],
[
194,
203
],
[
203,
204
],
[
203,
205
],
[
194,
206
],
[
206,
207
],
[
206,
208
],
[
187,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
209,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
137,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
228,
229
],
[
229,
230
],
[
224,
231
],
[
137,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
235,
239
],
[
77,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
0,
247
],
[
247,
248
],
[
247,
249
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt(), a = s.nextInt(),b=s.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 System.out.println(flag?\"OK\":\"NG\");\n\n\n }\n\n}\n\n\n\n\nclass Scanner\n{\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n\n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt(), a = s.nextInt(),b=s.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 System.out.println(flag?\"OK\":\"NG\");\n\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt(), a = s.nextInt(),b=s.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 System.out.println(flag?\"OK\":\"NG\");\n\n\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int k = s.nextInt(), a = s.nextInt(),b=s.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 System.out.println(flag?\"OK\":\"NG\");\n\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int k = s.nextInt()",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"a = s.nextInt()",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"b=s.nextInt();",
"b",
"s.nextInt()",
"s.nextInt",
"s",
"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;",
"System.out.println(flag?\"OK\":\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"flag?\"OK\":\"NG\"",
"flag",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"class Scanner\n{\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n\n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{\tbr = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }",
"nextDouble",
"{\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }",
"String x = next();",
"x",
"next()",
"next",
"StringBuilder sb = new StringBuilder(\"0\");",
"sb",
"new StringBuilder(\"0\")",
"double res = 0",
"res",
"0",
"f = 1;",
"f",
"1",
"boolean dec = false",
"dec",
"false",
"neg = false;",
"neg",
"false",
"int start = 0;",
"start",
"0",
"if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }",
"x.charAt(0) == '-'",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"'-'",
"{\n neg = true;\n start++;\n }",
"neg = true",
"neg",
"true",
"start++",
"start",
"for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"int i = start;",
"int i = start;",
"i",
"start",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"x.charAt(i) == '.'",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"'.'",
"{\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }",
"res = Long.parseLong(sb.toString())",
"res",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"sb = new StringBuilder(\"0\")",
"sb",
"new StringBuilder(\"0\")",
"dec = true",
"dec",
"true",
"{\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"sb.append(x.charAt(i))",
"sb.append",
"sb",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(dec)\n f *= 10;",
"dec",
"f *= 10",
"f",
"10",
"res += Long.parseLong(sb.toString()) / f",
"res",
"Long.parseLong(sb.toString()) / f",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"f",
"return res * (neg?-1:1);",
"res * (neg?-1:1)",
"res",
"(neg?-1:1)",
"neg",
"-1",
"1",
"1",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt(), a = s.nextInt(),b=s.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 System.out.println(flag?\"OK\":\"NG\");\n\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt(), a = s.nextInt(),b=s.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 System.out.println(flag?\"OK\":\"NG\");\n\n\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner s = new Scanner(System.in);
int k = s.nextInt(), a = s.nextInt(),b=s.nextInt();
boolean flag= false;
for(int i=a;i<=b;i++){
if(i%k==0){
flag = true;
break;
}
}
System.out.println(flag?"OK":"NG");
}
}
class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public double nextDouble() throws IOException
{
String x = next();
StringBuilder sb = new StringBuilder("0");
double res = 0, f = 1;
boolean dec = false, neg = false;
int start = 0;
if(x.charAt(0) == '-')
{
neg = true;
start++;
}
for(int i = start; i < x.length(); i++)
if(x.charAt(i) == '.')
{
res = Long.parseLong(sb.toString());
sb = new StringBuilder("0");
dec = true;
}
else
{
sb.append(x.charAt(i));
if(dec)
f *= 10;
}
res += Long.parseLong(sb.toString()) / f;
return res * (neg?-1:1);
}
public boolean ready() throws IOException {return br.ready();}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
4,
18,
13,
17,
13,
41,
13,
2,
4,
18,
13,
13,
14,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
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,
4,
13,
17,
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,
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,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
252,
8
],
[
252,
9
],
[
9,
10
],
[
252,
11
],
[
11,
12
],
[
252,
13
],
[
13,
14
],
[
252,
15
],
[
15,
16
],
[
252,
17
],
[
17,
18
],
[
252,
19
],
[
19,
20
],
[
19,
21
],
[
252,
22
],
[
22,
23
],
[
252,
24
],
[
24,
25
],
[
252,
26
],
[
26,
27
],
[
252,
28
],
[
28,
29
],
[
252,
30
],
[
30,
31
],
[
252,
32
],
[
32,
33
],
[
252,
34
],
[
34,
35
],
[
252,
36
],
[
36,
37
],
[
252,
38
],
[
38,
39
],
[
252,
40
],
[
40,
41
],
[
252,
42
],
[
42,
43
],
[
252,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
46,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
60,
66
],
[
46,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
69,
73
],
[
46,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
46,
90
],
[
90,
91
],
[
91,
92
],
[
44,
93
],
[
93,
94
],
[
252,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
95,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
95,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
109,
115
],
[
115,
116
],
[
95,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
120,
129
],
[
129,
130
],
[
129,
131
],
[
119,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
95,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
95,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
150,
151
],
[
95,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
95,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
165,
169
],
[
95,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
95,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
186,
194
],
[
194,
195
],
[
195,
196
],
[
186,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
181,
204
],
[
204,
205
],
[
179,
206
],
[
206,
207
],
[
95,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
215,
223
],
[
223,
224
],
[
224,
225
],
[
215,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
210,
233
],
[
233,
234
],
[
208,
235
],
[
235,
236
],
[
95,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
95,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
0,
251
],
[
251,
252
],
[
251,
253
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic boolean[] vis, taken;\n\tstatic int[] occ, ans;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t int l=(sc.nextInt()-1)/n;\n\t int r=(sc.nextInt())/n;\n\t if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic boolean[] vis, taken;\n\tstatic int[] occ, ans;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t int l=(sc.nextInt()-1)/n;\n\t int r=(sc.nextInt())/n;\n\t if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"Main",
"static PrintWriter out;",
"out",
"static StringBuilder sb;",
"sb",
"static int n",
"n",
"m",
"m",
"k;",
"k",
"static long mod = 998244353;",
"mod",
"998244353",
"static Boolean[][][] memo;",
"memo",
"static String s;",
"s",
"static HashSet<Integer> nodes;",
"nodes",
"static ArrayList<Integer>[] ad;",
"ad",
"static boolean[] vis",
"vis",
"taken;",
"taken",
"static int[] occ",
"occ",
"ans;",
"ans",
"static TreeSet<Long> al;",
"al",
"static long[] val;",
"val",
"static char[] b;",
"b",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t int l=(sc.nextInt()-1)/n;\n\t int r=(sc.nextInt())/n;\n\t if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t int l=(sc.nextInt()-1)/n;\n\t int r=(sc.nextInt())/n;\n\t if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");\n\t\tout.flush();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l=(sc.nextInt()-1)/n;",
"l",
"(sc.nextInt()-1)/n",
"(sc.nextInt()-1)",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"n",
"int r=(sc.nextInt())/n;",
"r",
"(sc.nextInt())/n",
"(sc.nextInt())",
"sc.nextInt",
"sc",
"n",
"if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");",
"r>l",
"r",
"l",
"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\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}",
"nextChar",
"{\n\t\t\treturn next().charAt(0);\n\t\t}",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"nextArrInt",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"nextArrLong",
"{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}",
"waitForInput",
"{\n\t\t\tThread.sleep(3000);\n\t\t}",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic boolean[] vis, taken;\n\tstatic int[] occ, ans;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t int l=(sc.nextInt()-1)/n;\n\t int r=(sc.nextInt())/n;\n\t if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashSet<Integer> nodes;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic boolean[] vis, taken;\n\tstatic int[] occ, ans;\n\tstatic TreeSet<Long> al;\n\tstatic long[] val;\n\tstatic char[] b;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t int l=(sc.nextInt()-1)/n;\n\t int r=(sc.nextInt())/n;\n\t if(r>l)\n\t\t System.out.println(\"OK\");\n\t else\n\t\t System.out.println(\"NG\");\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
static PrintWriter out;
static StringBuilder sb;
static int n, m, k;
static long mod = 998244353;
static Boolean[][][] memo;
static String s;
static HashSet<Integer> nodes;
static ArrayList<Integer>[] ad;
static boolean[] vis, taken;
static int[] occ, ans;
static TreeSet<Long> al;
static long[] val;
static char[] b;
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
out = new PrintWriter(System.out);
int n=sc.nextInt();
int l=(sc.nextInt()-1)/n;
int r=(sc.nextInt())/n;
if(r>l)
System.out.println("OK");
else
System.out.println("NG");
out.flush();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public Scanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public Long nextLong() throws IOException {
return Long.parseLong(next());
}
public int[] nextArrInt(int n) throws IOException {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextArrLong(int n) throws IOException {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
}
|
[
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,
0,
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,
0,
13,
17,
14,
40,
13,
30,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
45,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.*;\npublic class Main {\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\tint a = sc.nextInt();\n \tint b = sc.nextInt();\n\t\tint i = 0;\n boolean iketaka = false;\n \tfor(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }\n\t\tif(!iketaka){\n System.out.println(\"NG\");\n }\n\t\t\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\t// 整数の入力(スペース改行関係なし)\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n \tint b = sc.nextInt();\n\t\tint i = 0;\n boolean iketaka = false;\n \tfor(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }\n\t\tif(!iketaka){\n System.out.println(\"NG\");\n }\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\tint a = sc.nextInt();\n \tint b = sc.nextInt();\n\t\tint i = 0;\n boolean iketaka = false;\n \tfor(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }\n\t\tif(!iketaka){\n System.out.println(\"NG\");\n }\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\tint a = sc.nextInt();\n \tint b = sc.nextInt();\n\t\tint i = 0;\n boolean iketaka = false;\n \tfor(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }\n\t\tif(!iketaka){\n System.out.println(\"NG\");\n }\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 i = 0;",
"i",
"0",
"boolean iketaka = false;",
"iketaka",
"false",
"for(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }",
"i = a ;",
"i = a",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }",
"{\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }",
"if(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }",
"i%k == 0",
"i%k",
"i",
"k",
"0",
"{\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"iketaka = true",
"iketaka",
"true",
"break;",
"i += 1",
"i",
"1",
"if(!iketaka){\n System.out.println(\"NG\");\n }",
"!iketaka",
"iketaka",
"{\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\t// 整数の入力(スペース改行関係なし)\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n \tint b = sc.nextInt();\n\t\tint i = 0;\n boolean iketaka = false;\n \tfor(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }\n\t\tif(!iketaka){\n System.out.println(\"NG\");\n }\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\t// 整数の入力(スペース改行関係なし)\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n \tint b = sc.nextInt();\n\t\tint i = 0;\n boolean iketaka = false;\n \tfor(i = a ; i <= b ; i++){\n \tif(i%k == 0){\n \tSystem.out.println(\"OK\");\n \tiketaka = true;\n \tbreak;\n }\n \ti += 1;\n }\n\t\tif(!iketaka){\n System.out.println(\"NG\");\n }\n\t\t\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();
int i = 0;
boolean iketaka = false;
for(i = a ; i <= b ; i++){
if(i%k == 0){
System.out.println("OK");
iketaka = true;
break;
}
i += 1;
}
if(!iketaka){
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,
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
],
[
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
],
[
29,
31
],
[
31,
32
],
[
31,
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.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner in = new Scanner(System.in);\n int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();\n if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner in = new Scanner(System.in);\n int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();\n if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner in = new Scanner(System.in);\n int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();\n if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n // TODO Auto-generated method stub\n Scanner in = new Scanner(System.in);\n int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();\n if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int x = in.nextInt()",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"m = in.nextInt();",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"x * (m / x) >= n",
"x * (m / x)",
"x",
"(m / x)",
"m",
"x",
"n",
"{\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 // TODO Auto-generated method stub\n Scanner in = new Scanner(System.in);\n int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();\n if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner in = new Scanner(System.in);\n int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();\n if (x * (m / x) >= n) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int x = in.nextInt(), n = in.nextInt(), m = in.nextInt();
if (x * (m / x) >= n) {
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,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
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
],
[
75,
5
],
[
75,
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
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.next());\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n scan.close();\n\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.next());\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n scan.close();\n\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 scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.next());\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n scan.close();\n\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 }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.next());\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n scan.close();\n\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 }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = Integer.parseInt(scan.next());",
"k",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int a = Integer.parseInt(scan.next());",
"a",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int b = Integer.parseInt(scan.next());",
"b",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"scan.close()",
"scan.close",
"scan",
"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\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.next());\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n scan.close();\n\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}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.next());\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n scan.close();\n\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"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = Integer.parseInt(scan.next());
int a = Integer.parseInt(scan.next());
int b = Integer.parseInt(scan.next());
scan.close();
for (int i = a; i <= b; i++) {
if (i % k == 0) {
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,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
86,
11
],
[
86,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
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
],
[
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
],
[
73,
75
],
[
72,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
12,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString[] array = br.readLine().split(\" \");\n\n\tint A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);\n\n\tString result = \"NG\";\n\tfor (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}\n\tSystem.out.println(result);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString[] array = br.readLine().split(\" \");\n\n\tint A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);\n\n\tString result = \"NG\";\n\tfor (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}\n\tSystem.out.println(result);\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString[] array = br.readLine().split(\" \");\n\n\tint A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);\n\n\tString result = \"NG\";\n\tfor (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}\n\tSystem.out.println(result);\n }",
"main",
"{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString[] array = br.readLine().split(\" \");\n\n\tint A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);\n\n\tString result = \"NG\";\n\tfor (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}\n\tSystem.out.println(result);\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[] array = br.readLine().split(\" \");",
"array",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int A = Integer.parseInt(array[0])",
"A",
"Integer.parseInt(array[0])",
"Integer.parseInt",
"Integer",
"array[0]",
"array",
"0",
"B = Integer.parseInt(array[1]);",
"B",
"Integer.parseInt(array[1])",
"Integer.parseInt",
"Integer",
"array[1]",
"array",
"1",
"String result = \"NG\";",
"result",
"\"NG\"",
"for (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}",
"int i = A;",
"int i = A;",
"i",
"A",
"i <= B",
"i",
"B",
"i++",
"i++",
"i",
"{\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}",
"{\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}",
"if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }",
"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[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString[] array = br.readLine().split(\" \");\n\n\tint A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);\n\n\tString result = \"NG\";\n\tfor (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}\n\tSystem.out.println(result);\n }\n}",
"public class Main {\n public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString[] array = br.readLine().split(\" \");\n\n\tint A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);\n\n\tString result = \"NG\";\n\tfor (int i = A; i <= B; i++) {\n\t if (i % K == 0) {\n\t\tresult = \"OK\";\n\t\tbreak;\n\t }\n\t}\n\tSystem.out.println(result);\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[] array = br.readLine().split(" ");
int A = Integer.parseInt(array[0]), B = Integer.parseInt(array[1]);
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,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
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
],
[
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
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
37,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
8,
69
],
[
69,
70
],
[
70,
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 s = new Scanner(System.in);\n int K = s.nextInt();\n int A = s.nextInt();\n int B = s.nextInt();\n\n double A_div = A / K;\n double B_div = B / K;\n\n if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n s.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n int A = s.nextInt();\n int B = s.nextInt();\n\n double A_div = A / K;\n double B_div = B / K;\n\n if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n s.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n int A = s.nextInt();\n int B = s.nextInt();\n\n double A_div = A / K;\n double B_div = B / K;\n\n if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n s.close();\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n int A = s.nextInt();\n int B = s.nextInt();\n\n double A_div = A / K;\n double B_div = B / K;\n\n if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n s.close();\n }",
"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",
"double A_div = A / K;",
"A_div",
"A / K",
"A",
"K",
"double B_div = B / K;",
"B_div",
"B / K",
"B",
"K",
"if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"B_div - A_div >= 1 || A % K == 0 || B % K == 0",
"B_div - A_div >= 1 || A % K == 0 || B % K == 0",
"B_div - A_div >= 1",
"B_div - A_div",
"B_div",
"A_div",
"1",
"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 System.out.println(\"NG\");\n }",
"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 public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n int A = s.nextInt();\n int B = s.nextInt();\n\n double A_div = A / K;\n double B_div = B / K;\n\n if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n s.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n int A = s.nextInt();\n int B = s.nextInt();\n\n double A_div = A / K;\n double B_div = B / K;\n\n if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n s.close();\n }\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();
double A_div = A / K;
double B_div = B / K;
if (B_div - A_div >= 1 || A % K == 0 || B % K == 0) {
System.out.println("OK");
} else {
System.out.println("NG");
}
s.close();
}
}
|
[
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,
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,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
0,
13,
13,
29,
13,
23,
13,
23,
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,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
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,
6,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
12,
13,
30,
4,
18,
13,
2,
17,
13,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
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
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
],
[
0,
70
],
[
315,
71
],
[
315,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
78,
90
],
[
90,
91
],
[
91,
92
],
[
78,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
74,
110
],
[
110,
111
],
[
72,
112
],
[
112,
113
],
[
72,
114
],
[
114,
115
],
[
315,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
118,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
118,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
118,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
118,
140
],
[
140,
141
],
[
140,
142
],
[
118,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
143,
154
],
[
155,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
118,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
167,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
118,
180
],
[
180,
181
],
[
181,
182
],
[
116,
183
],
[
183,
184
],
[
315,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
185,
189
],
[
189,
190
],
[
185,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
185,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
200,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
210,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
199,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
185,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
232,
233
],
[
185,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
238,
241
],
[
241,
242
],
[
185,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
250,
251
],
[
185,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
258,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
254,
271
],
[
271,
272
],
[
315,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
273,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
288,
291
],
[
291,
292
],
[
291,
293
],
[
285,
294
],
[
294,
295
],
[
273,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
298,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
296,
306
],
[
306,
307
],
[
273,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
0,
314
],
[
314,
315
],
[
314,
316
]
] |
[
"import java.io.BufferedOutputStream;\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.OutputStreamWriter;\nimport java.util.Scanner;\nimport java.lang.*;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Collections;\nimport static java.util.Collections.list;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.Iterator;\nimport java.util.Random;\nimport java.util.Set;\nimport java.util.StringTokenizer;\nimport java.util.TreeSet;\npublic class Main {\n \n \n 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 } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n public static void main(String[] args) throws IOException{\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n \n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean flag=false;\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }\n if(flag==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");\n\n\n\n bp.close();\n \n }\n \n}",
"import java.io.BufferedOutputStream;",
"BufferedOutputStream",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.*;",
"lang.*",
"java",
"import java.nio.file.Files;",
"Files",
"java.nio.file",
"import java.nio.file.Paths;",
"Paths",
"java.nio.file",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collection;",
"Collection",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import static java.util.Collections.list;",
"import static java.util.Collections.list;",
"import static java.util.Collections.list;",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Iterator;",
"Iterator",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.TreeSet;",
"TreeSet",
"java.util",
"public class Main {\n \n \n 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 } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n public static void main(String[] args) throws IOException{\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n \n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean flag=false;\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }\n if(flag==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");\n\n\n\n bp.close();\n \n }\n \n}",
"Main",
"public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}",
"GCD",
"{\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}",
"int gcd=1;",
"gcd",
"1",
"for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= l && i <= r",
"i <= l",
"i",
"l",
"i <= r",
"i",
"r",
"++i",
"++i",
"i",
"{\n if(l % i==0 && r % i==0)\n gcd = i;\n }",
"{\n if(l % i==0 && r % i==0)\n gcd = i;\n }",
"if(l % i==0 && r % i==0)\n gcd = i;",
"l % i==0 && r % i==0",
"l % i==0",
"l % i",
"l",
"i",
"0",
"r % i==0",
"r % i",
"r",
"i",
"0",
"gcd = i",
"gcd",
"i",
"return gcd;",
"gcd",
"int l",
"l",
"int r",
"r",
"public static void main(String[] args) throws IOException{\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n \n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean flag=false;\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }\n if(flag==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");\n\n\n\n bp.close();\n \n }",
"main",
"{\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n \n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean flag=false;\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }\n if(flag==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");\n\n\n\n bp.close();\n \n }",
"FastReader sc=new FastReader();",
"sc",
"new FastReader()",
"BufPrint bp=new BufPrint();",
"bp",
"new BufPrint()",
"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 flag=false;",
"flag",
"false",
"for(int i=a;i<=b;i++){\n if(i%k==0)\n {\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 {\n flag=true;\n break;\n }\n }",
"{\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }",
"if(i%k==0)\n {\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==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");",
"flag==true",
"flag",
"true",
"{\n bp.println(\"OK\");\n }",
"bp.println(\"OK\")",
"bp.println",
"bp",
"\"OK\"",
"bp.println(\"NG\")",
"bp.println",
"bp",
"\"NG\"",
"bp.close()",
"bp.close",
"bp",
"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",
"static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }",
"BufPrint",
"final BufferedWriter bw;",
"bw",
"public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }",
"BufPrint",
"{\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }",
"this.bw=new BufferedWriter(new OutputStreamWriter(System.out))",
"this.bw",
"this",
"this.bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }",
"print",
"{\n bw.append(\"\"+object);\n }",
"bw.append(\"\"+object)",
"bw.append",
"bw",
"\"\"+object",
"\"\"",
"object",
"Object object",
"object",
"public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }",
"println",
"{\n print(object);\n bw.append(\"\\n\");\n }",
"print(object)",
"print",
"object",
"bw.append(\"\\n\")",
"bw.append",
"bw",
"\"\\n\"",
"Object object",
"object",
"public void close()throws IOException\n {\n bw.close();\n }",
"close",
"{\n bw.close();\n }",
"bw.close()",
"bw.close",
"bw",
"public class Main {\n \n \n 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 } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n public static void main(String[] args) throws IOException{\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n \n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean flag=false;\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }\n if(flag==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");\n\n\n\n bp.close();\n \n }\n \n}",
"public class Main {\n \n \n 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 } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n public static void main(String[] args) throws IOException{\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n \n int k=sc.nextInt();\n int a=sc.nextInt();\n int b=sc.nextInt();\n boolean flag=false;\n for(int i=a;i<=b;i++){\n if(i%k==0)\n {\n flag=true;\n break;\n }\n }\n if(flag==true)\n {\n bp.println(\"OK\");\n }\n else\n bp.println(\"NG\");\n\n\n\n bp.close();\n \n }\n \n}",
"Main"
] |
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.Scanner;
import java.lang.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import static java.util.Collections.list;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;
public 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;
}
}
static class BufPrint
{
final BufferedWriter bw;
public BufPrint()
{
this.bw=new BufferedWriter(new OutputStreamWriter(System.out));
}
public void print(Object object)throws IOException
{
bw.append(""+object);
}
public void println(Object object)throws IOException
{
print(object);
bw.append("\n");
}
public void close()throws IOException
{
bw.close();
}
}
public static int GCD(int l,int r) {
int gcd=1;
for(int i = 1; i <= l && i <= r; ++i)
{
if(l % i==0 && r % i==0)
gcd = i;
}
return gcd;
}
public static void main(String[] args) throws IOException{
FastReader sc=new FastReader();
BufPrint bp=new BufPrint();
int k=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
boolean flag=false;
for(int i=a;i<=b;i++){
if(i%k==0)
{
flag=true;
break;
}
}
if(flag==true)
{
bp.println("OK");
}
else
bp.println("NG");
bp.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
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,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
98,
14
],
[
98,
15
],
[
15,
16
],
[
15,
17
],
[
98,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
20,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
20,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
20,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
20,
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
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
81,
88
],
[
20,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
18,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\n\npublic class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n Integer k = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n\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\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 int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n Integer k = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n\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\n\n}",
"Main",
"private static int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n Integer k = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n\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 }",
"main",
"{\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n Integer k = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n\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 }",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"Integer k = Integer.parseInt(br.readLine());",
"k",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] s = str.split(\" \");",
"s",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int a = Integer.parseInt(s[0]);",
"a",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"int b = Integer.parseInt(s[1]);",
"b",
"Integer.parseInt(s[1])",
"Integer.parseInt",
"Integer",
"s[1]",
"s",
"1",
"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\"",
"String[] args",
"args",
"public class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n Integer k = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n\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\n\n}",
"public class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n Integer k = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n\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\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
private static int MOD = 1000000007;
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
Integer k = Integer.parseInt(br.readLine());
String str = br.readLine();
String[] s = str.split(" ");
int a = Integer.parseInt(s[0]);
int b = Integer.parseInt(s[1]);
for (int i = a; i <= b; i++) {
if(i % k == 0 ){
System.out.println("OK");
return;
}
}
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,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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
],
[
69,
14
],
[
69,
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
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
17,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
60,
65
],
[
15,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"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 StringTokenizer st = new StringTokenizer(in.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\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 StringTokenizer st = new StringTokenizer(in.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\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 StringTokenizer st = new StringTokenizer(in.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\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 StringTokenizer st = new StringTokenizer(in.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\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",
"StringTokenizer st = new StringTokenizer(in.readLine());",
"st",
"new StringTokenizer(in.readLine())",
"int a = Integer.parseInt(st.nextToken());",
"a",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int b = Integer.parseInt(st.nextToken());",
"b",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"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 StringTokenizer st = new StringTokenizer(in.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\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 StringTokenizer st = new StringTokenizer(in.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\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());
StringTokenizer st = new StringTokenizer(in.readLine());
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
int largest = (b/k) * k;
System.out.println(a<=largest?"OK":"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,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
8,
2,
2,
2,
13,
13,
13,
13,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
71,
11
],
[
71,
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
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
52,
60
],
[
52,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
12,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tString[] array = sc.nextLine().split(\" \");\n\t\tint min = Integer.parseInt(array[0]);\n\t\tint max = Integer.parseInt(array[1]);\n\t\tString result = max/input*input >= min ? \"OK\" : \"NG\";\n\t System.out.println(result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tString[] array = sc.nextLine().split(\" \");\n\t\tint min = Integer.parseInt(array[0]);\n\t\tint max = Integer.parseInt(array[1]);\n\t\tString result = max/input*input >= min ? \"OK\" : \"NG\";\n\t System.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tString[] array = sc.nextLine().split(\" \");\n\t\tint min = Integer.parseInt(array[0]);\n\t\tint max = Integer.parseInt(array[1]);\n\t\tString result = max/input*input >= min ? \"OK\" : \"NG\";\n\t System.out.println(result);\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tString[] array = sc.nextLine().split(\" \");\n\t\tint min = Integer.parseInt(array[0]);\n\t\tint max = Integer.parseInt(array[1]);\n\t\tString result = max/input*input >= min ? \"OK\" : \"NG\";\n\t System.out.println(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int input = Integer.parseInt(sc.nextLine());",
"input",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] array = sc.nextLine().split(\" \");",
"array",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int min = Integer.parseInt(array[0]);",
"min",
"Integer.parseInt(array[0])",
"Integer.parseInt",
"Integer",
"array[0]",
"array",
"0",
"int max = Integer.parseInt(array[1]);",
"max",
"Integer.parseInt(array[1])",
"Integer.parseInt",
"Integer",
"array[1]",
"array",
"1",
"String result = max/input*input >= min ? \"OK\" : \"NG\";",
"result",
"max/input*input >= min ? \"OK\" : \"NG\"",
"max/input*input >= min",
"max/input*input",
"max/input",
"max",
"input",
"input",
"min",
"\"OK\"",
"\"NG\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tString[] array = sc.nextLine().split(\" \");\n\t\tint min = Integer.parseInt(array[0]);\n\t\tint max = Integer.parseInt(array[1]);\n\t\tString result = max/input*input >= min ? \"OK\" : \"NG\";\n\t System.out.println(result);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tString[] array = sc.nextLine().split(\" \");\n\t\tint min = Integer.parseInt(array[0]);\n\t\tint max = Integer.parseInt(array[1]);\n\t\tString result = max/input*input >= min ? \"OK\" : \"NG\";\n\t System.out.println(result);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int input = Integer.parseInt(sc.nextLine());
String[] array = sc.nextLine().split(" ");
int min = Integer.parseInt(array[0]);
int max = Integer.parseInt(array[1]);
String result = max/input*input >= min ? "OK" : "NG";
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,
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,
4,
18,
18,
13,
13,
17,
3,
14,
2,
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
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
49,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
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;\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 int flag = 0;\n for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }\n if (flag == 0){\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){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n int flag = 0;\n for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }\n if (flag == 0){\n System.out.println(\"NG\");\n }\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 int flag = 0;\n for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }\n if (flag == 0){\n System.out.println(\"NG\");\n }\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 int flag = 0;\n for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }\n if (flag == 0){\n System.out.println(\"NG\");\n }\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",
"int flag = 0;",
"flag",
"0",
"for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\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 flag++;\n System.out.println(\"OK\");\n break;\n }\n }",
"{\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }",
"if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n flag++;\n System.out.println(\"OK\");\n break;\n }",
"flag++",
"flag",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if (flag == 0){\n System.out.println(\"NG\");\n }",
"flag == 0",
"flag",
"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 scan = new Scanner(System.in);\n int k = scan.nextInt();\n int a = scan.nextInt();\n int b = scan.nextInt();\n int flag = 0;\n for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }\n if (flag == 0){\n System.out.println(\"NG\");\n }\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 int flag = 0;\n for (int i = a; i <=b; i++){\n if (i%k==0){\n flag++;\n System.out.println(\"OK\");\n break;\n }\n }\n if (flag == 0){\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 k = scan.nextInt();
int a = scan.nextInt();
int b = scan.nextInt();
int flag = 0;
for (int i = a; i <=b; i++){
if (i%k==0){
flag++;
System.out.println("OK");
break;
}
}
if (flag == 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,
42,
2,
13,
13,
30,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
30,
0,
13,
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
],
[
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
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
39,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
35,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
]
] |
[
"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 temp=K;\n while(B>=temp){\n if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\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 sc=new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int temp=K;\n while(B>=temp){\n if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\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 int temp=K;\n while(B>=temp){\n if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\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 int temp=K;\n while(B>=temp){\n if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\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",
"int temp=K;",
"temp",
"K",
"while(B>=temp){\n if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\n }\n }",
"B>=temp",
"B",
"temp",
"{\n if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\n }\n }",
"if(A<=temp){\n System.out.println(\"OK\");\n System.exit(0);\n }else{\n temp+=K;\n }",
"A<=temp",
"A",
"temp",
"{\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",
"{\n temp+=K;\n }",
"temp+=K",
"temp",
"K",
"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 temp=K;
while(B>=temp){
if(A<=temp){
System.out.println("OK");
System.exit(0);
}else{
temp+=K;
}
}
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,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
13,
13,
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
],
[
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
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
36,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
52,
59
],
[
45,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
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.Scanner;\n\npublic class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n int N2 = Integer.parseInt(sc.next());\n int N3 = Integer.parseInt(sc.next());\n for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }\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 int N = Integer.parseInt(sc.next());\n int N2 = Integer.parseInt(sc.next());\n int N3 = Integer.parseInt(sc.next());\n for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }\n\n }\n}",
"Main",
"public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n int N2 = Integer.parseInt(sc.next());\n int N3 = Integer.parseInt(sc.next());\n for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n int N2 = Integer.parseInt(sc.next());\n int N3 = Integer.parseInt(sc.next());\n for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = Integer.parseInt(sc.next());",
"N",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int N2 = Integer.parseInt(sc.next());",
"N2",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int N3 = Integer.parseInt(sc.next());",
"N3",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }",
";",
"N2 <= N3",
"N2",
"N3",
"N2++",
"N2++",
"N2",
"{\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }",
"{\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }",
"if(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}",
"N2 % N == 0",
"N2 % N",
"N2",
"N",
"0",
"{\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}",
"N2 == N3",
"N2",
"N3",
"{\n\t\t\tSystem.out.println(\"NG\");\n \t}",
"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 int N = Integer.parseInt(sc.next());\n int N2 = Integer.parseInt(sc.next());\n int N3 = Integer.parseInt(sc.next());\n for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n int N2 = Integer.parseInt(sc.next());\n int N3 = Integer.parseInt(sc.next());\n for(; N2 <= N3; N2++) {\n \tif(N2 % N == 0) {\n \t\tSystem.out.println(\"OK\");\n \t\tbreak;\n \t}\n\n \tif(N2 == N3) {\n\t\t\tSystem.out.println(\"NG\");\n \t}\n }\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 N = Integer.parseInt(sc.next());
int N2 = Integer.parseInt(sc.next());
int N3 = Integer.parseInt(sc.next());
for(; N2 <= N3; N2++) {
if(N2 % N == 0) {
System.out.println("OK");
break;
}
if(N2 == N3) {
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,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
13,
30,
4,
18,
13,
2,
13,
13,
30,
4,
18,
13,
2,
13,
13,
14,
2,
4,
18,
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
],
[
97,
11
],
[
97,
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
],
[
36,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
54,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
74,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
12,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] |
[
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n\t\tList<Integer> X = new ArrayList<Integer>();\n\t\tList<Integer> Y = new ArrayList<Integer>();\n\t\tfor(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}\n\t\tif(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"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\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n\t\tList<Integer> X = new ArrayList<Integer>();\n\t\tList<Integer> Y = new ArrayList<Integer>();\n\t\tfor(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}\n\t\tif(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n\t\tList<Integer> X = new ArrayList<Integer>();\n\t\tList<Integer> Y = new ArrayList<Integer>();\n\t\tfor(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}\n\t\tif(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n\t\tList<Integer> X = new ArrayList<Integer>();\n\t\tList<Integer> Y = new ArrayList<Integer>();\n\t\tfor(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}\n\t\tif(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t}",
"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",
"List<Integer> X = new ArrayList<Integer>();",
"X",
"new ArrayList<Integer>()",
"List<Integer> Y = new ArrayList<Integer>();",
"Y",
"new ArrayList<Integer>()",
"for(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i*K <= B",
"i*K",
"i",
"K",
"B",
"i++",
"i++",
"i",
"{\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}",
"if(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}",
"i*K >= A",
"i*K",
"i",
"K",
"A",
"{\n\t\t\tX.add(i*K);\n\t\t\t}",
"X.add(i*K)",
"X.add",
"X",
"i*K",
"i",
"K",
"{\n\t\t\tY.add(i*K);\n\t\t\t}",
"Y.add(i*K)",
"Y.add",
"Y",
"i*K",
"i",
"K",
"if(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"X.size()==0",
"X.size()",
"X.size",
"X",
"0",
"{\n\t\t\tSystem.out.println(\"NG\");\n\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\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n\t\tList<Integer> X = new ArrayList<Integer>();\n\t\tList<Integer> Y = new ArrayList<Integer>();\n\t\tfor(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}\n\t\tif(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n\t\tList<Integer> X = new ArrayList<Integer>();\n\t\tList<Integer> Y = new ArrayList<Integer>();\n\t\tfor(int i = 0; i*K <= B; i++) {\n\t\t\tif(i*K >= A) {\n\t\t\tX.add(i*K);\n\t\t\t}else {\n\t\t\tY.add(i*K);\n\t\t\t}\n\t\t}\n\t\tif(X.size()==0) {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}else {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.List;
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();
List<Integer> X = new ArrayList<Integer>();
List<Integer> Y = new ArrayList<Integer>();
for(int i = 0; i*K <= B; i++) {
if(i*K >= A) {
X.add(i*K);
}else {
Y.add(i*K);
}
}
if(X.size()==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,
4,
18,
18,
13,
13,
17,
0,
13,
17,
3,
14,
13,
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
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
8,
60
],
[
60,
61
],
[
60,
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 public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n Boolean flag = true;\n for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }\n if(flag){\n System.out.print(\"NG\");\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n Boolean flag = true;\n for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }\n if(flag){\n System.out.print(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n Boolean flag = true;\n for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }\n if(flag){\n System.out.print(\"NG\");\n }\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n Boolean flag = true;\n for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }\n if(flag){\n System.out.print(\"NG\");\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 flag = true;",
"flag",
"true",
"for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"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.print(\"OK\");\n flag = false;\n break;\n }\n }",
"{\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }",
"if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }",
"i%K==0",
"i%K",
"i",
"K",
"0",
"{\n System.out.print(\"OK\");\n flag = false;\n break;\n }",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"flag = false",
"flag",
"false",
"break;",
"if(flag){\n System.out.print(\"NG\");\n }",
"flag",
"{\n System.out.print(\"NG\");\n }",
"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 in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n Boolean flag = true;\n for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }\n if(flag){\n System.out.print(\"NG\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int K = in.nextInt();\n int A = in.nextInt();\n int B = in.nextInt();\n Boolean flag = true;\n for(int i = A; i <= B; i++){\n if(i%K==0){\n System.out.print(\"OK\");\n flag = false;\n break;\n }\n }\n if(flag){\n System.out.print(\"NG\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
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 flag = true;
for(int i = A; i <= B; i++){
if(i%K==0){
System.out.print("OK");
flag = false;
break;
}
}
if(flag){
System.out.print("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,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
2,
13,
13,
41,
13,
2,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
101,
11
],
[
101,
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
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
50,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
63,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
76,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
12,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
] |
[
"import java.math.BigInteger;\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(in.readLine());\n String[] s = in.readLine().split(\" \");\n int A = Integer.parseInt(s[0]);\n int B = Integer.parseInt(s[1]);\n if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(in.readLine());\n String[] s = in.readLine().split(\" \");\n int A = Integer.parseInt(s[0]);\n int B = Integer.parseInt(s[1]);\n if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(in.readLine());\n String[] s = in.readLine().split(\" \");\n int A = Integer.parseInt(s[0]);\n int B = Integer.parseInt(s[1]);\n if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(in.readLine());\n String[] s = in.readLine().split(\" \");\n int A = Integer.parseInt(s[0]);\n int B = Integer.parseInt(s[1]);\n if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\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[] s = in.readLine().split(\" \");",
"s",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int A = Integer.parseInt(s[0]);",
"A",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"int B = Integer.parseInt(s[1]);",
"B",
"Integer.parseInt(s[1])",
"Integer.parseInt",
"Integer",
"s[1]",
"s",
"1",
"if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"A % K == 0",
"A % K",
"A",
"K",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"int mod = A % K;",
"mod",
"A % K",
"A",
"K",
"int num = A + (K - mod);",
"num",
"A + (K - mod)",
"A",
"(K - mod)",
"K",
"mod",
"if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"num <= B && num >= A",
"num <= B",
"num",
"B",
"num >= A",
"num",
"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\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(in.readLine());\n String[] s = in.readLine().split(\" \");\n int A = Integer.parseInt(s[0]);\n int B = Integer.parseInt(s[1]);\n if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int K = Integer.parseInt(in.readLine());\n String[] s = in.readLine().split(\" \");\n int A = Integer.parseInt(s[0]);\n int B = Integer.parseInt(s[1]);\n if(A % K == 0) {\n System.out.println(\"OK\");\n } else {\n int mod = A % K;\n int num = A + (K - mod);\n if(num <= B && num >= A) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }\n}",
"Main"
] |
import java.math.BigInteger;
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int K = Integer.parseInt(in.readLine());
String[] s = in.readLine().split(" ");
int A = Integer.parseInt(s[0]);
int B = Integer.parseInt(s[1]);
if(A % K == 0) {
System.out.println("OK");
} else {
int mod = A % K;
int num = A + (K - mod);
if(num <= B && num >= A) {
System.out.println("OK");
} else {
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,
38,
30,
41,
13,
20,
4,
18,
20,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
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,
13,
17,
30,
4,
18,
13,
17,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
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,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
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,
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,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
15,
32
],
[
32,
33
],
[
13,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
40,
53
],
[
53,
54
],
[
40,
55
],
[
55,
56
],
[
34,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
59,
75
],
[
75,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
77,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
75,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
75,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
13,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
105,
112
],
[
112,
113
],
[
112,
114
],
[
105,
116
],
[
116,
117
],
[
116,
118
],
[
105,
119
],
[
119,
120
],
[
119,
121
],
[
105,
122
],
[
122,
123
],
[
122,
124
],
[
105,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
128,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
135,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
127,
160
],
[
160,
161
],
[
105,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
105,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
184,
186
],
[
176,
187
],
[
187,
188
],
[
105,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
192,
202
],
[
202,
203
],
[
191,
204
],
[
204,
205
],
[
205,
206
],
[
105,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
210,
214
],
[
214,
215
],
[
209,
216
],
[
216,
217
],
[
216,
218
],
[
209,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
209,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
228,
231
],
[
227,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
209,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
105,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
243,
247
],
[
247,
248
],
[
242,
249
],
[
249,
250
],
[
249,
251
],
[
242,
252
],
[
252,
253
],
[
252,
254
],
[
242,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
242,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
242,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
276,
278
],
[
271,
279
],
[
279,
280
],
[
280,
281
],
[
242,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
290,
292
],
[
285,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
285,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
303,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
302,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
314,
318
],
[
302,
319
],
[
319,
320
],
[
320,
321
],
[
284,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
105,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
328,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
337,
339
],
[
334,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
342,
344
],
[
333,
345
],
[
345,
346
],
[
328,
347
],
[
347,
348
],
[
105,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
353,
356
],
[
356,
357
],
[
105,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
365,
370
],
[
370,
371
],
[
370,
372
],
[
365,
373
],
[
373,
374
],
[
374,
375
],
[
365,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
377,
381
],
[
381,
382
],
[
360,
383
],
[
383,
384
],
[
358,
385
],
[
385,
386
],
[
105,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
389,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
394,
399
],
[
399,
400
],
[
399,
401
],
[
394,
402
],
[
402,
403
],
[
403,
404
],
[
394,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
406,
410
],
[
410,
411
],
[
389,
412
],
[
412,
413
],
[
387,
414
],
[
414,
415
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.NoSuchElementException;\n\nclass Main {\n\n static class Solver {\n final FastScanner sc;\n final PrintWriter writer;\n\n Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }\n\n void run() {\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 writer.println(\"NG\");\n } else {\n writer.println(\"OK\");\n }\n }\n }\n\n public static void main(final String[] args) {\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }\n\n // FastScanner\n static 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\n public FastScanner() {\n }\n\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 (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final 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\n public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\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.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"class Main {\n\n static class Solver {\n final FastScanner sc;\n final PrintWriter writer;\n\n Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }\n\n void run() {\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 writer.println(\"NG\");\n } else {\n writer.println(\"OK\");\n }\n }\n }\n\n public static void main(final String[] args) {\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }\n\n // FastScanner\n static 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\n public FastScanner() {\n }\n\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 (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final 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\n public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}",
"Main",
"public static void main(final String[] args) {\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }",
"main",
"{\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }",
"final FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }",
"{\n new Solver(sc, w).run();\n w.flush();\n }",
"final PrintWriter w = new PrintWriter(System.out)",
"final PrintWriter w = new PrintWriter(System.out)",
"new PrintWriter(System.out)",
"new Solver(sc, w).run()",
"new Solver(sc, w).run",
"new Solver(sc, w)",
"w.flush()",
"w.flush",
"w",
"final String[] args",
"args",
"static class Solver {\n final FastScanner sc;\n final PrintWriter writer;\n\n Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }\n\n void run() {\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 writer.println(\"NG\");\n } else {\n writer.println(\"OK\");\n }\n }\n }",
"Solver",
"final FastScanner sc;",
"sc",
"final PrintWriter writer;",
"writer",
"Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }",
"Solver",
"{\n this.sc = sc;\n this.writer = writer;\n }",
"this.sc = sc",
"this.sc",
"this",
"this.sc",
"sc",
"this.writer = writer",
"this.writer",
"this",
"this.writer",
"writer",
"final FastScanner sc",
"sc",
"final PrintWriter writer",
"writer",
"void run() {\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 writer.println(\"NG\");\n } else {\n writer.println(\"OK\");\n }\n }",
"run",
"{\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 writer.println(\"NG\");\n } else {\n writer.println(\"OK\");\n }\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",
"if (a / k == b / k && a % k > 0 && b % k > 0) {\n writer.println(\"NG\");\n } else {\n writer.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 writer.println(\"NG\");\n }",
"writer.println(\"NG\")",
"writer.println",
"writer",
"\"NG\"",
"{\n writer.println(\"OK\");\n }",
"writer.println(\"OK\")",
"writer.println",
"writer",
"\"OK\"",
"static 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\n public FastScanner() {\n }\n\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 (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final 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\n public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\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",
"public FastScanner() {\n }",
"FastScanner",
"{\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 (final 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 (final 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 (final 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 (final 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 (final IOException e) {\n e.printStackTrace();\n }",
"catch (final IOException e) {\n e.printStackTrace();\n }",
"final 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() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }",
"readByte",
"{\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }",
"if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }",
"isPrintableChar",
"{\n return 33 <= c && c <= 126;\n }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"final int c",
"c",
"public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }",
"hasNext",
"{\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }",
"while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n 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())\n throw new NoSuchElementException();\n final 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())\n throw new NoSuchElementException();\n final 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())\n throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"final 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 long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"nextLong",
"{\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"if (!hasNext())\n throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n return minus ? -n : n;\n }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }",
"nextInt",
"{\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }",
"final long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public 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",
"public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"nextIntArray",
"{\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"final int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"final int n",
"n",
"public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"nextLongArray",
"{\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"final long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"final int n",
"n"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;
class Main {
static class Solver {
final FastScanner sc;
final PrintWriter writer;
Solver(final FastScanner sc, final PrintWriter writer) {
this.sc = sc;
this.writer = writer;
}
void run() {
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
if (a / k == b / k && a % k > 0 && b % k > 0) {
writer.println("NG");
} else {
writer.println("OK");
}
}
}
public static void main(final String[] args) {
final FastScanner sc = new FastScanner();
try (final PrintWriter w = new PrintWriter(System.out)) {
new Solver(sc, w).run();
w.flush();
}
}
// FastScanner
static class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
public FastScanner() {
}
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (final IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte())
return buffer[ptr++];
else
return -1;
}
private boolean isPrintableChar(final 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();
final StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext())
throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
final long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() {
return Double.parseDouble(next());
}
public int[] nextIntArray(final int n) {
final int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextLongArray(final int n) {
final long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
18,
13,
13,
17,
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
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
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
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.Scanner;\n \npublic class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\" \");\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint largest = (B / K) * K;\n\t\t\n\t\tif (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\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 scanner = new Scanner(System.in);\n\t\tSystem.out.print(\" \");\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint largest = (B / K) * K;\n\t\t\n\t\tif (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\" \");\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint largest = (B / K) * K;\n\t\t\n\t\tif (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\" \");\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint largest = (B / K) * K;\n\t\t\n\t\tif (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"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",
"int largest = (B / K) * K;",
"largest",
"(B / K) * K",
"(B / K)",
"B",
"K",
"K",
"if (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"A <= largest",
"A",
"largest",
"{\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\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\" \");\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint largest = (B / K) * K;\n\t\t\n\t\tif (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\n}",
"public class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\" \");\n \n\t\tint K = scanner.nextInt();\n\t\tint A = scanner.nextInt();\n\t\tint B = scanner.nextInt();\n \n\t\tint largest = (B / K) * K;\n\t\t\n\t\tif (A <= largest) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\tscanner.close();\n \n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scanner = new Scanner(System.in);
System.out.print(" ");
int K = scanner.nextInt();
int A = scanner.nextInt();
int B = scanner.nextInt();
int largest = (B / K) * K;
if (A <= largest) {
System.out.println("OK");
} else {
System.out.println("NG");
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
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,
12,
13,
30,
12,
13,
30,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
120,
11
],
[
120,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
12,
30
],
[
30,
31
],
[
120,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
37,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
53,
58
],
[
34,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
34,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
34,
75
],
[
75,
76
],
[
75,
77
],
[
34,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
34,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
32,
111
],
[
111,
112
],
[
120,
113
],
[
113,
114
],
[
113,
115
],
[
120,
116
],
[
116,
117
],
[
116,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint K = Integer.parseInt(tokens[0]);\n\t\ttokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tboolean enable = false;\n\t\tfor (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((enable ? \"OK\" : \"NG\"));\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint K = Integer.parseInt(tokens[0]);\n\t\ttokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tboolean enable = false;\n\t\tfor (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((enable ? \"OK\" : \"NG\"));\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"main",
"{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);",
"reader",
"new InputStreamReader(System.in, StandardCharsets.UTF_8)",
"BufferedReader in = new BufferedReader(reader);",
"in",
"new BufferedReader(reader)",
"Main ins = new Main(in);",
"ins",
"new Main(in)",
"ins.calc()",
"ins.calc",
"ins",
"ins.showResult()",
"ins.showResult",
"ins",
"String[] args",
"args",
"Main(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint K = Integer.parseInt(tokens[0]);\n\t\ttokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tboolean enable = false;\n\t\tfor (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((enable ? \"OK\" : \"NG\"));\n\n\t}",
"Main",
"{\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint K = Integer.parseInt(tokens[0]);\n\t\ttokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tboolean enable = false;\n\t\tfor (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((enable ? \"OK\" : \"NG\"));\n\n\t}",
"String[] tokens = in.readLine().split(\" \");",
"tokens",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int K = Integer.parseInt(tokens[0]);",
"K",
"Integer.parseInt(tokens[0])",
"Integer.parseInt",
"Integer",
"tokens[0]",
"tokens",
"0",
"tokens = in.readLine().split(\" \")",
"tokens",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int A = Integer.parseInt(tokens[0]);",
"A",
"Integer.parseInt(tokens[0])",
"Integer.parseInt",
"Integer",
"tokens[0]",
"tokens",
"0",
"int B = Integer.parseInt(tokens[1]);",
"B",
"Integer.parseInt(tokens[1])",
"Integer.parseInt",
"Integer",
"tokens[1]",
"tokens",
"1",
"boolean enable = false;",
"enable",
"false",
"for (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = 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\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}",
"enable = true",
"enable",
"true",
"break;",
"System.out.println((enable ? \"OK\" : \"NG\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"(enable ? \"OK\" : \"NG\")",
"enable",
"\"OK\"",
"\"NG\"",
"BufferedReader in",
"in",
"void calc() {\n\t}",
"calc",
"{\n\t}",
"void showResult() {\n\t}",
"showResult",
"{\n\t}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint K = Integer.parseInt(tokens[0]);\n\t\ttokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tboolean enable = false;\n\t\tfor (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((enable ? \"OK\" : \"NG\"));\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint K = Integer.parseInt(tokens[0]);\n\t\ttokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tboolean enable = false;\n\t\tfor (int i = A; i <= B; ++i) {\n\t\t\tif (i % K == 0) {\n\t\t\t\tenable = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((enable ? \"OK\" : \"NG\"));\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
Main ins = new Main(in);
ins.calc();
ins.showResult();
}
Main(BufferedReader in) throws IOException {
String[] tokens = in.readLine().split(" ");
int K = Integer.parseInt(tokens[0]);
tokens = in.readLine().split(" ");
int A = Integer.parseInt(tokens[0]);
int B = Integer.parseInt(tokens[1]);
boolean enable = false;
for (int i = A; i <= B; ++i) {
if (i % K == 0) {
enable = true;
break;
}
}
System.out.println((enable ? "OK" : "NG"));
}
void calc() {
}
void showResult() {
}
}
|
[
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,
2,
13,
13,
13,
13,
17,
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
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
32,
40
],
[
32,
41
],
[
6,
42
],
[
42,
43
]
] |
[
"import java.util.*;\nclass Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int k=sc.nextInt();\n System.out.println((k/n*n)>=m?\"OK\":\"NG\");\n}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int k=sc.nextInt();\n System.out.println((k/n*n)>=m?\"OK\":\"NG\");\n}\n}",
"Main",
"public static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int k=sc.nextInt();\n System.out.println((k/n*n)>=m?\"OK\":\"NG\");\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int k=sc.nextInt();\n System.out.println((k/n*n)>=m?\"OK\":\"NG\");\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println((k/n*n)>=m?\"OK\":\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(k/n*n)>=m?\"OK\":\"NG\"",
"(k/n*n)>=m",
"(k/n*n)",
"k/n",
"k",
"n",
"n",
"m",
"\"OK\"",
"\"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 m=sc.nextInt();
int k=sc.nextInt();
System.out.println((k/n*n)>=m?"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,
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,
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
],
[
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
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
]
] |
[
"import java.util.*;\n\nclass Main{\n \n public static void main(String args[])\n {\n\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n int flag=0;\n for(int i=n;i<=m;i++)\n {\n if(i%k==0){\n flag=1;\n break;\n }\n }\n \n if(flag==1)\n {\n System.out.println(\"OK\");\n }\n else\n System.out.println(\"NG\");\n }\n}\n \n \n \n \n \n ",
"import java.util.*;",
"util.*",
"java",
"class Main{\n \n public static void main(String args[])\n {\n\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n int flag=0;\n for(int i=n;i<=m;i++)\n {\n if(i%k==0){\n flag=1;\n break;\n }\n }\n \n if(flag==1)\n {\n System.out.println(\"OK\");\n }\n else\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String args[])\n {\n\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n int flag=0;\n for(int i=n;i<=m;i++)\n {\n if(i%k==0){\n flag=1;\n break;\n }\n }\n \n if(flag==1)\n {\n System.out.println(\"OK\");\n }\n else\n System.out.println(\"NG\");\n }",
"main",
"{\n\n Scanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n int n=sc.nextInt();\n int m=sc.nextInt();\n int flag=0;\n for(int i=n;i<=m;i++)\n {\n if(i%k==0){\n flag=1;\n break;\n }\n }\n \n if(flag==1)\n {\n System.out.println(\"OK\");\n }\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 n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int flag=0;",
"flag",
"0",
"for(int i=n;i<=m;i++)\n {\n if(i%k==0){\n flag=1;\n break;\n }\n }",
"int i=n;",
"int i=n;",
"i",
"n",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n flag=1;\n break;\n }\n }",
"{\n if(i%k==0){\n flag=1;\n break;\n }\n }",
"if(i%k==0){\n flag=1;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n flag=1;\n break;\n }",
"flag=1",
"flag",
"1",
"break;",
"if(flag==1)\n {\n System.out.println(\"OK\");\n }\n else\n System.out.println(\"NG\");",
"flag==1",
"flag",
"1",
"{\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"
] |
import java.util.*;
class Main{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int k=sc.nextInt();
int n=sc.nextInt();
int m=sc.nextInt();
int flag=0;
for(int i=n;i<=m;i++)
{
if(i%k==0){
flag=1;
break;
}
}
if(flag==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,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
27,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
27,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
47,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
66,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n\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==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }}\n \n\n\n\n }\n\n\n}\n\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n\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==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }}\n \n\n\n\n }\n\n\n}",
"Main",
"public static void main(String[] args) {\n\n\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==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }}\n \n\n\n\n }",
"main",
"{\n\n\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==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\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",
"if(A%K==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\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\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }}",
"if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }",
"(B-A)>=K",
"(B-A)",
"B",
"A",
"K",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }",
"int p = A%K;",
"p",
"A%K",
"A",
"K",
"if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }",
"(K-p)<=(B-A)",
"(K-p)",
"K",
"p",
"(B-A)",
"B",
"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\n public static void main(String[] args) {\n\n\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==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }}\n \n\n\n\n }\n\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n\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==0 || B%K==0){\n System.out.println(\"OK\");\n }else{\n\n if((B-A)>=K){\n System.out.println(\"OK\");\n }else{\n int p = A%K;\n if((K-p)<=(B-A)){\n System.out.println(\"OK\");\n }else {\n System.out.println(\"NG\");\n }\n }}\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();
if(A%K==0 || B%K==0){
System.out.println("OK");
}else{
if((B-A)>=K){
System.out.println("OK");
}else{
int p = A%K;
if((K-p)<=(B-A)){
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
13,
14,
2,
13,
13,
30,
4,
18,
13,
17,
30,
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
],
[
99,
17
],
[
99,
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
],
[
99,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
55,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
55,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
78,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
53,
92
],
[
92,
93
],
[
53,
94
],
[
94,
95
],
[
53,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"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 A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\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 A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\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 A solver = new A();\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 A solver = new A();\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)",
"A solver = new A();",
"solver",
"new A()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\n\n\n }\n\n }",
"A",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\n\n\n }",
"solve",
"{\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\n\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",
"int ans = b / k * k;",
"ans",
"b / k * k",
"b / k",
"b",
"k",
"k",
"if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }",
"ans >= a",
"ans",
"a",
"{\n out.println(\"OK\");\n }",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"{\n out.println(\"NG\");\n }",
"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 A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\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 A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n int a = in.nextInt();\n int b = in.nextInt();\n\n int ans = b / k * k;\n if (ans >= a) {\n out.println(\"OK\");\n } else {\n out.println(\"NG\");\n }\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);
A solver = new A();
solver.solve(1, in, out);
out.close();
}
static class A {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int k = in.nextInt();
int a = in.nextInt();
int b = in.nextInt();
int ans = b / k * k;
if (ans >= a) {
out.println("OK");
} else {
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,
42,
2,
13,
13,
30,
0,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
0,
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
],
[
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
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
60,
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\tpublic static void main(String[] args) {\n\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\t\tint temp = 0;\n\t\tboolean flag = false;\n\n\t\twhile (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) System.out.println(\"NG\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner 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\t\tint temp = 0;\n\t\tboolean flag = false;\n\n\t\twhile (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) System.out.println(\"NG\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\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\t\tint temp = 0;\n\t\tboolean flag = false;\n\n\t\twhile (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) System.out.println(\"NG\");\n\t}",
"main",
"{\n\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\t\tint temp = 0;\n\t\tboolean flag = false;\n\n\t\twhile (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) System.out.println(\"NG\");\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 temp = 0;",
"temp",
"0",
"boolean flag = false;",
"flag",
"false",
"while (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"temp <= B",
"temp",
"B",
"{\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"temp += K",
"temp",
"K",
"if (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}",
"A <= temp && temp <= B",
"A <= temp",
"A",
"temp",
"temp <= B",
"temp",
"B",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"flag = true",
"flag",
"true",
"break;",
"if (!flag) System.out.println(\"NG\");",
"!flag",
"flag",
"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\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\t\tint temp = 0;\n\t\tboolean flag = false;\n\n\t\twhile (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) System.out.println(\"NG\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\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\t\tint temp = 0;\n\t\tboolean flag = false;\n\n\t\twhile (temp <= B) {\n\t\t\ttemp += K;\n\t\t\tif (A <= temp && temp <= B) {\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) System.out.println(\"NG\");\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 temp = 0;
boolean flag = false;
while (temp <= B) {
temp += K;
if (A <= temp && temp <= B) {
System.out.println("OK");
flag = true;
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,
11,
1,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
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
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
27,
34
],
[
34,
35
],
[
35,
36
],
[
27,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
45,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
57,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
" import java.util.*;\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(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\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 for(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\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 for(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\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 for(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\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(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\n }\n }",
";",
"a <= b+1",
"a",
"b+1",
"b",
"1",
"a++",
"a++",
"a",
"{\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\n }\n }",
"{\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\n }\n }",
"if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\n }",
"a % k == 0",
"a % k",
"a",
"k",
"0",
"{\n System.out.println(\"OK\");\n break;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"break;",
"if(a == b){\n System.out.println(\"NG\");\n break;\n }",
"a == b",
"a",
"b",
"{\n System.out.println(\"NG\");\n break;\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"break;",
"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(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\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 for(; a <= b+1; a++){\n if(a % k == 0){\n System.out.println(\"OK\");\n break;\n } else if(a == b){\n System.out.println(\"NG\");\n break;\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(; a <= b+1; a++){
if(a % k == 0){
System.out.println("OK");
break;
} else if(a == b){
System.out.println("NG");
break;
}
}
}
}
|
[
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,
4,
13,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
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,
29,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
29,
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
],
[
90,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
53,
81
],
[
81,
82
],
[
51,
83
],
[
83,
84
],
[
51,
85
],
[
85,
86
],
[
51,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"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\t\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\t\n\t\tif (Check(K, A, B) == true) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\t\n\tpublic static boolean Check(int k, int a, int b) {\n\t\tboolean result = false;\n\t\t\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\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\t\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\t\n\t\tif (Check(K, A, B) == true) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\t\n\tpublic static boolean Check(int k, int a, int b) {\n\t\tboolean result = false;\n\t\t\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\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\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\t\n\t\tif (Check(K, A, B) == true) {\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\t\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\t\n\t\tif (Check(K, A, B) == true) {\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",
"if (Check(K, A, B) == true) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"Check(K, A, B) == true",
"Check(K, A, B)",
"Check",
"K",
"A",
"B",
"true",
"{\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 static boolean Check(int k, int a, int b) {\n\t\tboolean result = false;\n\t\t\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"Check",
"{\n\t\tboolean result = false;\n\t\t\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"boolean result = false;",
"result",
"false",
"for (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = 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\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"{\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}",
"result = true",
"result",
"true",
"break;",
"return result;",
"result",
"int k",
"k",
"int a",
"a",
"int b",
"b",
"public class Main {\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\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\t\n\t\tif (Check(K, A, B) == true) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\t\n\tpublic static boolean Check(int k, int a, int b) {\n\t\tboolean result = false;\n\t\t\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}\n}",
"public class Main {\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\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\t\n\t\tif (Check(K, A, B) == true) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\t\n\tpublic static boolean Check(int k, int a, int b) {\n\t\tboolean result = false;\n\t\t\n\t\tfor (int i = a; i <= b; i++) {\n\t\t\tif (i % k == 0) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\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();
if (Check(K, A, B) == true) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
public static boolean Check(int k, int a, int b) {
boolean result = false;
for (int i = a; i <= b; i++) {
if (i % k == 0) {
result = true;
break;
}
}
return 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,
41,
13,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
0,
13,
13,
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
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
37,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.*;\npublic class Main {\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\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint c=k;\n\t\tint flag=0;\n\t\t\n\t\twhile(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}\n\t\t//System.out.println(c);\n\t\tSystem.out.println(\"NG\");\n\t\t\n\t\t\n\n\t\t\n\t}\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\t\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint c=k;\n\t\tint flag=0;\n\t\t\n\t\twhile(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}\n\t\t//System.out.println(c);\n\t\tSystem.out.println(\"NG\");\n\t\t\n\t\t\n\n\t\t\n\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\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint c=k;\n\t\tint flag=0;\n\t\t\n\t\twhile(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}\n\t\t//System.out.println(c);\n\t\tSystem.out.println(\"NG\");\n\t\t\n\t\t\n\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\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint c=k;\n\t\tint flag=0;\n\t\t\n\t\twhile(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}\n\t\t//System.out.println(c);\n\t\tSystem.out.println(\"NG\");\n\t\t\n\t\t\n\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 c=k;",
"c",
"k",
"int flag=0;",
"flag",
"0",
"while(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}",
"c<=b",
"c",
"b",
"{\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}",
"if(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}",
"a<=c && c<=b",
"a<=c",
"a",
"c",
"c<=b",
"c",
"b",
"{\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"c+=k",
"c",
"k",
"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\t\n\t\tint k=sc.nextInt();\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint c=k;\n\t\tint flag=0;\n\t\t\n\t\twhile(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}\n\t\t//System.out.println(c);\n\t\tSystem.out.println(\"NG\");\n\t\t\n\t\t\n\n\t\t\n\t}\n\t\n}",
"public class Main {\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\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\t\n\t\tint c=k;\n\t\tint flag=0;\n\t\t\n\t\twhile(c<=b){\n\t\t\t\n\t\t\tif(a<=c && c<=b){\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t\tc+=k;\n\t\t\t\n\t\t}\n\t\t//System.out.println(c);\n\t\tSystem.out.println(\"NG\");\n\t\t\n\t\t\n\n\t\t\n\t}\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();
int c=k;
int flag=0;
while(c<=b){
if(a<=c && c<=b){
System.out.println("OK");
System.exit(0);
}
c+=k;
}
//System.out.println(c);
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,
4,
18,
13,
13,
13,
13,
23,
13,
6,
13,
12,
13,
30,
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,
4,
18,
13,
17,
30,
0,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
32,
35
],
[
32,
36
],
[
32,
37
],
[
6,
38
],
[
38,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
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
],
[
44,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
44,
81
],
[
81,
82
],
[
42,
83
],
[
83,
84
],
[
42,
85
],
[
85,
86
],
[
42,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"import java.util.Scanner;\npublic class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.print(Logic.run(x,a,b));\n }\n}\nclass Logic{\n public static String run(int x,int a,int b){\n String resMes=\"\";\n for ( int i = a; i<=b;i++){\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }\n if (resMes.equals(\"\")){\n resMes = \"NG\";\n }\n return resMes;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.print(Logic.run(x,a,b));\n }\n}",
"Main",
"public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.print(Logic.run(x,a,b));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.print(Logic.run(x,a,b));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.print(Logic.run(x,a,b))",
"System.out.print",
"System.out",
"System",
"System.out",
"Logic.run(x,a,b)",
"Logic.run",
"Logic",
"x",
"a",
"b",
"String args[]",
"args",
"class Logic{\n public static String run(int x,int a,int b){\n String resMes=\"\";\n for ( int i = a; i<=b;i++){\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }\n if (resMes.equals(\"\")){\n resMes = \"NG\";\n }\n return resMes;\n }\n}",
"Logic",
"public static String run(int x,int a,int b){\n String resMes=\"\";\n for ( int i = a; i<=b;i++){\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }\n if (resMes.equals(\"\")){\n resMes = \"NG\";\n }\n return resMes;\n }",
"run",
"{\n String resMes=\"\";\n for ( int i = a; i<=b;i++){\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }\n if (resMes.equals(\"\")){\n resMes = \"NG\";\n }\n return resMes;\n }",
"String resMes=\"\";",
"resMes",
"\"\"",
"for ( int i = a; i<=b;i++){\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }",
"{\n if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }\n }",
"if ( i%x == 0 ){\n resMes=\"OK\";\n break;\n }",
"i%x == 0",
"i%x",
"i",
"x",
"0",
"{\n resMes=\"OK\";\n break;\n }",
"resMes=\"OK\"",
"resMes",
"\"OK\"",
"break;",
"if (resMes.equals(\"\")){\n resMes = \"NG\";\n }",
"resMes.equals(\"\")",
"resMes.equals",
"resMes",
"\"\"",
"{\n resMes = \"NG\";\n }",
"resMes = \"NG\"",
"resMes",
"\"NG\"",
"return resMes;",
"resMes",
"int x",
"x",
"int a",
"a",
"int b",
"b",
"public class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.print(Logic.run(x,a,b));\n }\n}",
"public class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n System.out.print(Logic.run(x,a,b));\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main (String args[]){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
System.out.print(Logic.run(x,a,b));
}
}
class Logic{
public static String run(int x,int a,int b){
String resMes="";
for ( int i = a; i<=b;i++){
if ( i%x == 0 ){
resMes="OK";
break;
}
}
if (resMes.equals("")){
resMes = "NG";
}
return resMes;
}
}
|
[
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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint K = a.nextInt();\n\t\tint A = a.nextInt();\n\t\tint B = a.nextInt();\n\t\tint num = 0;\n\t\tfor(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tif(num > 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}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint K = a.nextInt();\n\t\tint A = a.nextInt();\n\t\tint B = a.nextInt();\n\t\tint num = 0;\n\t\tfor(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tif(num > 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 a = new Scanner(System.in);\t\t\n\t\tint K = a.nextInt();\n\t\tint A = a.nextInt();\n\t\tint B = a.nextInt();\n\t\tint num = 0;\n\t\tfor(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tif(num > 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 a = new Scanner(System.in);\t\t\n\t\tint K = a.nextInt();\n\t\tint A = a.nextInt();\n\t\tint B = a.nextInt();\n\t\tint num = 0;\n\t\tfor(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tif(num > 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 a = new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"int K = a.nextInt();",
"K",
"a.nextInt()",
"a.nextInt",
"a",
"int A = a.nextInt();",
"A",
"a.nextInt()",
"a.nextInt",
"a",
"int B = a.nextInt();",
"B",
"a.nextInt()",
"a.nextInt",
"a",
"int num = 0;",
"num",
"0",
"for(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\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++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}",
"if(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}",
"i % K == 0",
"i % K",
"i",
"K",
"0",
"{\n\t\t\t\tnum++;\n\t\t\t}",
"num++",
"num",
"if(num > 0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\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\"",
"{\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 a = new Scanner(System.in);\t\t\n\t\tint K = a.nextInt();\n\t\tint A = a.nextInt();\n\t\tint B = a.nextInt();\n\t\tint num = 0;\n\t\tfor(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tif(num > 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\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tint K = a.nextInt();\n\t\tint A = a.nextInt();\n\t\tint B = a.nextInt();\n\t\tint num = 0;\n\t\tfor(int i = A ; i <= B; i++) {\n\t\t\tif(i % K == 0) {\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tif(num > 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"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
int K = a.nextInt();
int A = a.nextInt();
int B = a.nextInt();
int num = 0;
for(int i = A ; i <= B; i++) {
if(i % K == 0) {
num++;
}
}
if(num > 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,
40,
13,
3,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
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
],
[
59,
61
],
[
57,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner 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\t\tint f = 0;\n\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (f == 0) System.out.println(\"NG\");\n\t\tif (f == 1) System.out.println(\"OK\");\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner 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\t\tint f = 0;\n\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (f == 0) System.out.println(\"NG\");\n\t\tif (f == 1) System.out.println(\"OK\");\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\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\t\tint f = 0;\n\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (f == 0) System.out.println(\"NG\");\n\t\tif (f == 1) System.out.println(\"OK\");\n\n\t}",
"main",
"{\n\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\t\tint f = 0;\n\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (f == 0) System.out.println(\"NG\");\n\t\tif (f == 1) System.out.println(\"OK\");\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",
"int f = 0;",
"f",
"0",
"for (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\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\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}",
"i % K ==0",
"i % K",
"i",
"K",
"0",
"{\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}",
"f++",
"f",
"break;",
"if (f == 0) System.out.println(\"NG\");",
"f == 0",
"f",
"0",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"if (f == 1) System.out.println(\"OK\");",
"f == 1",
"f",
"1",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\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\t\tint f = 0;\n\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (f == 0) System.out.println(\"NG\");\n\t\tif (f == 1) System.out.println(\"OK\");\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\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\t\tint f = 0;\n\n\t\tfor (int i = A; i <= B; i++) {\n\t\t\tif (i % K ==0) {\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (f == 0) System.out.println(\"NG\");\n\t\tif (f == 1) System.out.println(\"OK\");\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();
int f = 0;
for (int i = A; i <= B; i++) {
if (i % K ==0) {
f++;
break;
}
}
if (f == 0) System.out.println("NG");
if (f == 1) System.out.println("OK");
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.