node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
2,
17,
17,
12,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
29,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
13,
29,
17,
29,
17,
23,
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,
17,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
0,
13,
17,
14,
40,
4,
13,
4,
18,
13,
13,
0,
13,
17,
14,
4,
13,
4,
18,
13,
13,
30,
40,
13,
4,
18,
13,
13,
38,
5,
13,
30,
29,
17,
30,
29,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
17,
0,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
0,
13,
17,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
17,
13,
2,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
295,
17
],
[
295,
18
],
[
18,
19
],
[
18,
20
],
[
295,
21
],
[
21,
22
],
[
21,
23
],
[
295,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
295,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
44,
51
],
[
51,
52
],
[
51,
53
],
[
42,
54
],
[
54,
55
],
[
31,
56
],
[
56,
57
],
[
29,
58
],
[
58,
59
],
[
29,
60
],
[
60,
61
],
[
295,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
69,
67
],
[
79,
68
],
[
76,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
76,
76
],
[
76,
77
],
[
76,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
69,
82
],
[
82,
83
],
[
82,
84
],
[
62,
85
],
[
85,
86
],
[
295,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
89,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
118,
126
],
[
126,
127
],
[
126,
128
],
[
110,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
129,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
89,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
87,
155
],
[
155,
156
],
[
87,
157
],
[
157,
158
],
[
295,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
161,
168
],
[
168,
169
],
[
168,
170
],
[
161,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
161,
177
],
[
177,
178
],
[
177,
179
],
[
161,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
180,
190
],
[
190,
191
],
[
191,
192
],
[
180,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
161,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
159,
202
],
[
202,
203
],
[
295,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
207,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
207,
217
],
[
217,
218
],
[
218,
219
],
[
207,
220
],
[
221,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
223,
228
],
[
222,
229
],
[
229,
230
],
[
206,
231
],
[
231,
232
],
[
204,
233
],
[
233,
234
],
[
295,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
237,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
237,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
248,
258
],
[
258,
259
],
[
259,
260
],
[
248,
261
],
[
262,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
265,
267
],
[
262,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
274,
276
],
[
269,
277
],
[
268,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
279,
284
],
[
278,
285
],
[
237,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
286,
291
],
[
235,
292
],
[
292,
293
],
[
0,
294
],
[
294,
295
],
[
294,
296
]
]
| [
" import java.io.DataInputStream;\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.util.*;\n\nimport javax.sound.sampled.ReverbType;\n\npublic class Main {\n\n\t static Scanner scan=new Scanner(System.in);\n\t static int cnt=0;\n\t static int M=(int)1e9+7;\n\tstatic boolean issamedi(int i,int j){\n\t\tif(i>0&&j<0)\n\t\t\treturn false;\n\t\tif(i>0&&j>0&&i>j)\n\t\t\treturn false;\n\t\treturn true;\n\t\t\n\t\t\n\t}\n\n\t\n\t\tstatic boolean isvowel(char c) {\n\t\t\treturn c=='a'||c=='e'||c=='i'||c=='o'||c=='u';\n\t\t\t\n\t\t}\n\t public static int maxVowels(String s, int k) {\n\t int i=0;\n\t ArrayList<Integer>lenghts=new ArrayList<Integer>();\n\t for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }\n\t try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}\n\t }\n\t\n\t static int convert(int n) {\n\t\t String s=String.valueOf(n);\n\t\t String s1=\"\";\n\t\t s1+=s.charAt(0);\n\t\t int c=0;\n\t\t for(int i=1;i<s.length();i++)\n\t\t s1+='0';\n\t\t return Integer.parseInt(s1);\n\t }\n\t static boolean ispositive(ArrayList<Integer>ar) {\n\t\t for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }\n\t\t return false;\n\t\t \n\t }\n\tpublic static void main(String[] args) throws IOException {\nint x=scan.nextInt();\nint y=scan.nextInt();\n\n\t\tfor(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t\t}\n\t\t\n \n\n\n\n\n\t\n\t\n\n\t\n\t\n\n\t\n\n\t\n}",
"import java.io.DataInputStream;",
"DataInputStream",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import javax.sound.sampled.ReverbType;",
"ReverbType",
"javax.sound.sampled",
"public class Main {\n\n\t static Scanner scan=new Scanner(System.in);\n\t static int cnt=0;\n\t static int M=(int)1e9+7;\n\tstatic boolean issamedi(int i,int j){\n\t\tif(i>0&&j<0)\n\t\t\treturn false;\n\t\tif(i>0&&j>0&&i>j)\n\t\t\treturn false;\n\t\treturn true;\n\t\t\n\t\t\n\t}\n\n\t\n\t\tstatic boolean isvowel(char c) {\n\t\t\treturn c=='a'||c=='e'||c=='i'||c=='o'||c=='u';\n\t\t\t\n\t\t}\n\t public static int maxVowels(String s, int k) {\n\t int i=0;\n\t ArrayList<Integer>lenghts=new ArrayList<Integer>();\n\t for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }\n\t try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}\n\t }\n\t\n\t static int convert(int n) {\n\t\t String s=String.valueOf(n);\n\t\t String s1=\"\";\n\t\t s1+=s.charAt(0);\n\t\t int c=0;\n\t\t for(int i=1;i<s.length();i++)\n\t\t s1+='0';\n\t\t return Integer.parseInt(s1);\n\t }\n\t static boolean ispositive(ArrayList<Integer>ar) {\n\t\t for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }\n\t\t return false;\n\t\t \n\t }\n\tpublic static void main(String[] args) throws IOException {\nint x=scan.nextInt();\nint y=scan.nextInt();\n\n\t\tfor(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t\t}\n\t\t\n \n\n\n\n\n\t\n\t\n\n\t\n\t\n\n\t\n\n\t\n}",
"Main",
"static Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"static int cnt=0;",
"cnt",
"0",
"static int M=(int)1e9+7;",
"M",
"(int)1e9+7",
"(int)1e9",
"7",
"static boolean issamedi(int i,int j){\n\t\tif(i>0&&j<0)\n\t\t\treturn false;\n\t\tif(i>0&&j>0&&i>j)\n\t\t\treturn false;\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"issamedi",
"{\n\t\tif(i>0&&j<0)\n\t\t\treturn false;\n\t\tif(i>0&&j>0&&i>j)\n\t\t\treturn false;\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"if(i>0&&j<0)\n\t\t\treturn false;",
"i>0&&j<0",
"i>0",
"i",
"0",
"j<0",
"j",
"0",
"return false;",
"false",
"if(i>0&&j>0&&i>j)\n\t\t\treturn false;",
"i>0&&j>0&&i>j",
"i>0&&j>0&&i>j",
"i>0",
"i",
"0",
"j>0",
"j",
"0",
"i>j",
"i",
"j",
"return false;",
"false",
"return true;",
"true",
"int i",
"i",
"int j",
"j",
"static boolean isvowel(char c) {\n\t\t\treturn c=='a'||c=='e'||c=='i'||c=='o'||c=='u';\n\t\t\t\n\t\t}",
"isvowel",
"{\n\t\t\treturn c=='a'||c=='e'||c=='i'||c=='o'||c=='u';\n\t\t\t\n\t\t}",
"return c=='a'||c=='e'||c=='i'||c=='o'||c=='u';",
"c=='a'||c=='e'||c=='i'||c=='o'||c=='u'",
"c=='o'",
"c=='i'",
"c=='a'||c=='e'||c=='i'||c=='o'||c=='u'",
"c=='a'",
"c",
"'a'",
"c=='e'",
"c",
"'e'",
"c=='i'",
"c",
"'i'",
"c=='o'",
"c",
"'o'",
"c=='u'",
"c",
"'u'",
"char c",
"c",
"public static int maxVowels(String s, int k) {\n\t int i=0;\n\t ArrayList<Integer>lenghts=new ArrayList<Integer>();\n\t for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }\n\t try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}\n\t }",
"maxVowels",
"{\n\t int i=0;\n\t ArrayList<Integer>lenghts=new ArrayList<Integer>();\n\t for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }\n\t try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}\n\t }",
"int i=0;",
"i",
"0",
"ArrayList<Integer>lenghts=new ArrayList<Integer>();",
"lenghts",
"new ArrayList<Integer>()",
"for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<s.length()",
"j",
"s.length()",
"s.length",
"s",
"j++",
"j++",
"j",
"{\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }",
"{\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }",
"if(i==k)\n\t \t\ti=0;",
"i==k",
"i",
"k",
"i=0",
"i",
"0",
"if(!isvowel(s.charAt(j)))\n\t \t\ti=0;",
"!isvowel(s.charAt(j))",
"isvowel(s.charAt(j))",
"isvowel",
"s.charAt(j)",
"s.charAt",
"s",
"j",
"i=0",
"i",
"0",
"if(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}",
"isvowel(s.charAt(j))",
"isvowel",
"s.charAt(j)",
"s.charAt",
"s",
"j",
"{\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}",
"i++",
"i",
"lenghts.add(i)",
"lenghts.add",
"lenghts",
"i",
"try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}",
"catch (NoSuchElementException e) {\n\t return 0;}",
"NoSuchElementException e",
"{\n\t return 0;}",
"return 0;",
"0",
"{\n\t return Collections.max(lenghts);\n\t }",
"return Collections.max(lenghts);",
"Collections.max(lenghts)",
"Collections.max",
"Collections",
"lenghts",
"String s",
"s",
"int k",
"k",
"static int convert(int n) {\n\t\t String s=String.valueOf(n);\n\t\t String s1=\"\";\n\t\t s1+=s.charAt(0);\n\t\t int c=0;\n\t\t for(int i=1;i<s.length();i++)\n\t\t s1+='0';\n\t\t return Integer.parseInt(s1);\n\t }",
"convert",
"{\n\t\t String s=String.valueOf(n);\n\t\t String s1=\"\";\n\t\t s1+=s.charAt(0);\n\t\t int c=0;\n\t\t for(int i=1;i<s.length();i++)\n\t\t s1+='0';\n\t\t return Integer.parseInt(s1);\n\t }",
"String s=String.valueOf(n);",
"s",
"String.valueOf(n)",
"String.valueOf",
"String",
"n",
"String s1=\"\";",
"s1",
"\"\"",
"s1+=s.charAt(0)",
"s1",
"s.charAt(0)",
"s.charAt",
"s",
"0",
"int c=0;",
"c",
"0",
"for(int i=1;i<s.length();i++)\n\t\t s1+='0';",
"int i=1;",
"int i=1;",
"i",
"1",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"s1+='0';",
"s1+='0'",
"s1",
"'0'",
"return Integer.parseInt(s1);",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"int n",
"n",
"static boolean ispositive(ArrayList<Integer>ar) {\n\t\t for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }\n\t\t return false;\n\t\t \n\t }",
"ispositive",
"{\n\t\t for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }\n\t\t return false;\n\t\t \n\t }",
"for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<ar.size()",
"i",
"ar.size()",
"ar.size",
"ar",
"i++",
"i++",
"i",
"{\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }",
"{\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }",
"if(ar.get(i)>0)\n\t\t\t\t return true;",
"ar.get(i)>0",
"ar.get(i)",
"ar.get",
"ar",
"i",
"0",
"return true;",
"true",
"return false;",
"false",
"ArrayList<Integer>ar",
"ar",
"public static void main(String[] args) throws IOException {\nint x=scan.nextInt();\nint y=scan.nextInt();\n\n\t\tfor(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t\t}",
"main",
"{\nint x=scan.nextInt();\nint y=scan.nextInt();\n\n\t\tfor(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t\t}",
"int x=scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y=scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x+1",
"i",
"x+1",
"x",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}",
"int a=x-i;",
"a",
"x-i",
"x",
"i",
"if (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}",
"2 * i + 4 * a == y",
"2 * i + 4 * a",
"2 * i",
"2",
"i",
"4 * a",
"4",
"a",
"y",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\t static Scanner scan=new Scanner(System.in);\n\t static int cnt=0;\n\t static int M=(int)1e9+7;\n\tstatic boolean issamedi(int i,int j){\n\t\tif(i>0&&j<0)\n\t\t\treturn false;\n\t\tif(i>0&&j>0&&i>j)\n\t\t\treturn false;\n\t\treturn true;\n\t\t\n\t\t\n\t}\n\n\t\n\t\tstatic boolean isvowel(char c) {\n\t\t\treturn c=='a'||c=='e'||c=='i'||c=='o'||c=='u';\n\t\t\t\n\t\t}\n\t public static int maxVowels(String s, int k) {\n\t int i=0;\n\t ArrayList<Integer>lenghts=new ArrayList<Integer>();\n\t for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }\n\t try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}\n\t }\n\t\n\t static int convert(int n) {\n\t\t String s=String.valueOf(n);\n\t\t String s1=\"\";\n\t\t s1+=s.charAt(0);\n\t\t int c=0;\n\t\t for(int i=1;i<s.length();i++)\n\t\t s1+='0';\n\t\t return Integer.parseInt(s1);\n\t }\n\t static boolean ispositive(ArrayList<Integer>ar) {\n\t\t for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }\n\t\t return false;\n\t\t \n\t }\n\tpublic static void main(String[] args) throws IOException {\nint x=scan.nextInt();\nint y=scan.nextInt();\n\n\t\tfor(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t\t}\n\t\t\n \n\n\n\n\n\t\n\t\n\n\t\n\t\n\n\t\n\n\t\n}",
"public class Main {\n\n\t static Scanner scan=new Scanner(System.in);\n\t static int cnt=0;\n\t static int M=(int)1e9+7;\n\tstatic boolean issamedi(int i,int j){\n\t\tif(i>0&&j<0)\n\t\t\treturn false;\n\t\tif(i>0&&j>0&&i>j)\n\t\t\treturn false;\n\t\treturn true;\n\t\t\n\t\t\n\t}\n\n\t\n\t\tstatic boolean isvowel(char c) {\n\t\t\treturn c=='a'||c=='e'||c=='i'||c=='o'||c=='u';\n\t\t\t\n\t\t}\n\t public static int maxVowels(String s, int k) {\n\t int i=0;\n\t ArrayList<Integer>lenghts=new ArrayList<Integer>();\n\t for(int j=0;j<s.length();j++) {\n\t \tif(i==k)\n\t \t\ti=0;\n\t \tif(!isvowel(s.charAt(j)))\n\t \t\ti=0;\n\t \tif(isvowel(s.charAt(j))) {\n\t \t\ti++;\n\t \t\tlenghts.add(i);\n\t \t\t}\n\t \t\n\t }\n\t try {\n\t return Collections.max(lenghts);\n\t }\n\t catch (NoSuchElementException e) {\n\t return 0;}\n\t }\n\t\n\t static int convert(int n) {\n\t\t String s=String.valueOf(n);\n\t\t String s1=\"\";\n\t\t s1+=s.charAt(0);\n\t\t int c=0;\n\t\t for(int i=1;i<s.length();i++)\n\t\t s1+='0';\n\t\t return Integer.parseInt(s1);\n\t }\n\t static boolean ispositive(ArrayList<Integer>ar) {\n\t\t for(int i=0;i<ar.size();i++) {\n\t\t\t if(ar.get(i)>0)\n\t\t\t\t return true;\n\t\t\t }\n\t\t return false;\n\t\t \n\t }\n\tpublic static void main(String[] args) throws IOException {\nint x=scan.nextInt();\nint y=scan.nextInt();\n\n\t\tfor(int i=0;i<x+1;i++) {\n\t\t\tint a=x-i;\n\t\t\tif (2 * i + 4 * a == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t\t}\n\t\t\n \n\n\n\n\n\t\n\t\n\n\t\n\t\n\n\t\n\n\t\n}",
"Main"
]
| import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.*;
import javax.sound.sampled.ReverbType;
public class Main {
static Scanner scan=new Scanner(System.in);
static int cnt=0;
static int M=(int)1e9+7;
static boolean issamedi(int i,int j){
if(i>0&&j<0)
return false;
if(i>0&&j>0&&i>j)
return false;
return true;
}
static boolean isvowel(char c) {
return c=='a'||c=='e'||c=='i'||c=='o'||c=='u';
}
public static int maxVowels(String s, int k) {
int i=0;
ArrayList<Integer>lenghts=new ArrayList<Integer>();
for(int j=0;j<s.length();j++) {
if(i==k)
i=0;
if(!isvowel(s.charAt(j)))
i=0;
if(isvowel(s.charAt(j))) {
i++;
lenghts.add(i);
}
}
try {
return Collections.max(lenghts);
}
catch (NoSuchElementException e) {
return 0;}
}
static int convert(int n) {
String s=String.valueOf(n);
String s1="";
s1+=s.charAt(0);
int c=0;
for(int i=1;i<s.length();i++)
s1+='0';
return Integer.parseInt(s1);
}
static boolean ispositive(ArrayList<Integer>ar) {
for(int i=0;i<ar.size();i++) {
if(ar.get(i)>0)
return true;
}
return false;
}
public static void main(String[] args) throws IOException {
int x=scan.nextInt();
int y=scan.nextInt();
for(int i=0;i<x+1;i++) {
int a=x-i;
if (2 * i + 4 * a == y) {
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
17,
13,
13,
2,
13,
2,
17,
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
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
16,
19
],
[
19,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
10,
30
],
[
30,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
30,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
30,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"{\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int x = Integer.parseInt(sc.next());",
"x",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int y = Integer.parseInt(sc.next());",
"y",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"y % 2 == 0 && 2*x <= y && y <= 4*x",
"y % 2 == 0 && 2*x <= y && y <= 4*x",
"y % 2 == 0",
"y % 2",
"y",
"2",
"0",
"2*x <= y",
"2*x",
"2",
"x",
"y",
"y <= 4*x",
"y",
"4*x",
"4",
"x",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n // in\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n\n if (y % 2 == 0 && 2*x <= y && y <= 4*x) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
// in
int x = Integer.parseInt(sc.next());
int y = Integer.parseInt(sc.next());
if (y % 2 == 0 && 2*x <= y && y <= 4*x) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
17,
14,
2,
13,
13,
30,
14,
2,
2,
2,
2,
13,
13,
17,
17,
2,
2,
2,
13,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
81,
14
],
[
81,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
17,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
41,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
36,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
15,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
]
| [
"\nimport java.util.Map.Entry;\nimport java.util.*;\nimport java.math.*;\nimport org.w3c.dom.css.Counter;\n \npublic class Main{\n public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n int headSum =sc.nextInt();\n int footSum =sc.nextInt();\n //全部亀\n int kameFoot = headSum * 4;\n if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n\n }\n }\n /* int N =sc.nextInt();\n int K =sc.nextInt();\n Map<Integer,Integer> numMap = new HashMap<>();\n Map<Integer,Integer> newMap = new HashMap<>();\n Map<Integer,Integer> hogeMap = new HashMap<>();\n if(N>41){\n\n }\n for(int i =1;i<=N;i++){\n numMap.put(i, sc.nextInt());\n newMap.put(i,0);\n hogeMap.put(i,0);\n }\n for(int i= 0;i<K;i++){\n //newMap = numMap;\n\n for(int i2= 1; i2<=N;i2++){\n\n for(int i4 =0 ;i4 <=numMap.get(i2)&&i4+i2<=N;i4++){\n newMap.replace(i2+i4, newMap.get(i2+i4)+1);\n if(i4<i2&&i4 != 0){\n newMap.replace(i2-i4, newMap.get(i2-i4)+1);\n }\n }\n /* for(int i4 =1 ;i4<i2&&i4<=numMap.get(i2);i4++){\n newMap.replace(i2-i4, newMap.get(i2-i4)+1);\n } */",
"import java.util.Map.Entry;",
"Entry",
"java.util.Map",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import org.w3c.dom.css.Counter;",
"Counter",
"org.w3c.dom.css",
"public class Main{\n public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n int headSum =sc.nextInt();\n int footSum =sc.nextInt();\n //全部亀\n int kameFoot = headSum * 4;\n if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n\n }\n }",
"Main",
"public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n int headSum =sc.nextInt();\n int footSum =sc.nextInt();\n //全部亀\n int kameFoot = headSum * 4;\n if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n \n final Scanner sc = new Scanner(System.in);\n int headSum =sc.nextInt();\n int footSum =sc.nextInt();\n //全部亀\n int kameFoot = headSum * 4;\n if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int headSum =sc.nextInt();",
"headSum",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int footSum =sc.nextInt();",
"footSum",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kameFoot = headSum * 4;",
"kameFoot",
"headSum * 4",
"headSum",
"4",
"if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }",
"kameFoot >= footSum",
"kameFoot",
"footSum",
"{\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"(kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum",
"(kameFoot-footSum)%2==0",
"(kameFoot-footSum)%2",
"(kameFoot-footSum)",
"kameFoot",
"footSum",
"2",
"0",
"(kameFoot-footSum)/2 <=headSum",
"(kameFoot-footSum)/2",
"(kameFoot-footSum)",
"kameFoot",
"footSum",
"2",
"headSum",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"final String[] args",
"args",
"public class Main{\n public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n int headSum =sc.nextInt();\n int footSum =sc.nextInt();\n //全部亀\n int kameFoot = headSum * 4;\n if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n\n }\n }",
"public class Main{\n public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n int headSum =sc.nextInt();\n int footSum =sc.nextInt();\n //全部亀\n int kameFoot = headSum * 4;\n if(kameFoot >= footSum){\n if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n\n }\n }",
"Main"
]
|
import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
public class Main{
public static void main(final String[] args){
final Scanner sc = new Scanner(System.in);
int headSum =sc.nextInt();
int footSum =sc.nextInt();
//全部亀
int kameFoot = headSum * 4;
if(kameFoot >= footSum){
if((kameFoot-footSum)%2==0&&(kameFoot-footSum)/2 <=headSum){
System.out.println("Yes");
}else{
System.out.println("No");
}
}else{
System.out.println("No");
}
}
}
/* int N =sc.nextInt();
int K =sc.nextInt();
Map<Integer,Integer> numMap = new HashMap<>();
Map<Integer,Integer> newMap = new HashMap<>();
Map<Integer,Integer> hogeMap = new HashMap<>();
if(N>41){
}
for(int i =1;i<=N;i++){
numMap.put(i, sc.nextInt());
newMap.put(i,0);
hogeMap.put(i,0);
}
for(int i= 0;i<K;i++){
//newMap = numMap;
for(int i2= 1; i2<=N;i2++){
for(int i4 =0 ;i4 <=numMap.get(i2)&&i4+i2<=N;i4++){
newMap.replace(i2+i4, newMap.get(i2+i4)+1);
if(i4<i2&&i4 != 0){
newMap.replace(i2-i4, newMap.get(i2-i4)+1);
}
}
/* for(int i4 =1 ;i4<i2&&i4<=numMap.get(i2);i4++){
newMap.replace(i2-i4, newMap.get(i2-i4)+1);
} */
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
41,
13,
2,
2,
13,
13,
17,
41,
13,
2,
13,
17,
41,
13,
2,
2,
13,
13,
17,
14,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13
]
| [
[
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
40,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
40,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
40,
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
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
77,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
6,
91
],
[
91,
92
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = Integer.parseInt(sc.next());\n\t\tint Y = Integer.parseInt(sc.next());\n\t\tfor(int i=1;i<=X; i++) {\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\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 X = Integer.parseInt(sc.next());\n\t\tint Y = Integer.parseInt(sc.next());\n\t\tfor(int i=1;i<=X; i++) {\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = Integer.parseInt(sc.next());\n\t\tint Y = Integer.parseInt(sc.next());\n\t\tfor(int i=1;i<=X; i++) {\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = Integer.parseInt(sc.next());\n\t\tint Y = Integer.parseInt(sc.next());\n\t\tfor(int i=1;i<=X; i++) {\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = Integer.parseInt(sc.next());",
"X",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int Y = Integer.parseInt(sc.next());",
"Y",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for(int i=1;i<=X; i++) {\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=X",
"i",
"X",
"i++",
"i++",
"i",
"{\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint t = i*2;\n\t\t\tint k = (X-i)*4;\n\t\t\tint t2= i*4;\n\t\t\tint k2= (X-i)*2;\n\t\t\tif(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"int t = i*2;",
"t",
"i*2",
"i",
"2",
"int k = (X-i)*4;",
"k",
"(X-i)*4",
"(X-i)",
"X",
"i",
"4",
"int t2= i*4;",
"t2",
"i*4",
"i",
"4",
"int k2= (X-i)*2;",
"k2",
"(X-i)*2",
"(X-i)",
"X",
"i",
"2",
"if(t+k == Y || t2+k2==Y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}",
"t+k == Y || t2+k2==Y",
"t+k == Y",
"t+k",
"t",
"k",
"Y",
"t2+k2==Y",
"t2+k2",
"t2",
"k2",
"Y",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = Integer.parseInt(sc.next());
int Y = Integer.parseInt(sc.next());
for(int i=1;i<=X; i++) {
int t = i*2;
int k = (X-i)*4;
int t2= i*4;
int k2= (X-i)*2;
if(t+k == Y || t2+k2==Y) {
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
2,
13,
2,
17,
13,
17,
2,
2,
2,
13,
2,
17,
13,
17,
17,
2,
2,
2,
17,
13,
13,
17,
2,
2,
2,
2,
17,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
25,
24
],
[
42,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
33,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
25,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
49,
57
],
[
22,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
22,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"(y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0",
"(4*x-y) >= 0",
"(y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0",
"(y-2*x) >= 0",
"(y-2*x)",
"y",
"2*x",
"2",
"x",
"0",
"(y-2*x)%2 == 0",
"(y-2*x)%2",
"(y-2*x)",
"y",
"2*x",
"2",
"x",
"2",
"0",
"(4*x-y) >= 0",
"(4*x-y)",
"4*x",
"4",
"x",
"y",
"0",
"(4*x-y)%2 == 0",
"(4*x-y)%2",
"(4*x-y)",
"4*x",
"4",
"x",
"y",
"2",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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 y = sc.nextInt();\n if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if ((y-2*x) >= 0 && (y-2*x)%2 == 0 && (4*x-y) >= 0 && (4*x-y)%2 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
17,
13,
2,
17,
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
],
[
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int X = scanner.nextInt();\n int Y = scanner.nextInt();\n\n String ans = \"No\";\n\n for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int X = scanner.nextInt();\n int Y = scanner.nextInt();\n\n String ans = \"No\";\n\n for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int X = scanner.nextInt();\n int Y = scanner.nextInt();\n\n String ans = \"No\";\n\n for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int X = scanner.nextInt();\n int Y = scanner.nextInt();\n\n String ans = \"No\";\n\n for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int X = scanner.nextInt();",
"X",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int Y = scanner.nextInt();",
"Y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String ans = \"No\";",
"ans",
"\"No\"",
"for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < X+1",
"a",
"X+1",
"X",
"1",
"a++",
"a++",
"a",
"{\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }",
"{\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }",
"int b = X - a;",
"b",
"X - a",
"X",
"a",
"if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }",
"2*a + 4*b == Y",
"2*a + 4*b",
"2*a",
"2",
"a",
"4*b",
"4",
"b",
"Y",
"{\n ans = \"Yes\";\n }",
"ans = \"Yes\"",
"ans",
"\"Yes\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int X = scanner.nextInt();\n int Y = scanner.nextInt();\n\n String ans = \"No\";\n\n for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int X = scanner.nextInt();\n int Y = scanner.nextInt();\n\n String ans = \"No\";\n\n for (int a = 0; a < X+1; a++) {\n int b = X - a;\n if (2*a + 4*b == Y) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
int Y = scanner.nextInt();
String ans = "No";
for (int a = 0; a < X+1; a++) {
int b = X - a;
if (2*a + 4*b == Y) {
ans = "Yes";
}
}
System.out.println(ans);
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
0,
13,
17,
3,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
92,
8
],
[
92,
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
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
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
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
54,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
11,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
9,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\nimport javax.xml.transform.OutputKeys;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt(), y = sc.nextInt();\n\t\tboolean ok = false;\n\t\tfor (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import javax.xml.transform.OutputKeys;",
"OutputKeys",
"javax.xml.transform",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt(), y = sc.nextInt();\n\t\tboolean ok = false;\n\t\tfor (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt(), y = sc.nextInt();\n\t\tboolean ok = false;\n\t\tfor (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt(), y = sc.nextInt();\n\t\tboolean ok = false;\n\t\tfor (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean ok = false;",
"ok",
"false",
"for (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=100",
"i",
"100",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=100",
"j",
"100",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"i + j == x && i * 2 + j * 4 == y",
"i + j == x",
"i + j",
"i",
"j",
"x",
"i * 2 + j * 4 == y",
"i * 2 + j * 4",
"i * 2",
"i",
"2",
"j * 4",
"j",
"4",
"y",
"{\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"ok = true",
"ok",
"true",
"break;",
"if (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");",
"ok",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"final String[] args",
"args",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt(), y = sc.nextInt();\n\t\tboolean ok = false;\n\t\tfor (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt(), y = sc.nextInt();\n\t\tboolean ok = false;\n\t\tfor (int i=0;i<=100;i++) {\n\t\t\tfor (int j=0;j<=100;j++) {\n\t\t\t\tif (i + j == x && i * 2 + j * 4 == y) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ok)\n\t\tSystem.out.println(\"Yes\");\n\t\telse \n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import javax.xml.transform.OutputKeys;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(), y = sc.nextInt();
boolean ok = false;
for (int i=0;i<=100;i++) {
for (int j=0;j<=100;j++) {
if (i + j == x && i * 2 + j * 4 == y) {
ok = true;
break;
}
}
}
if (ok)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
2,
2,
13,
17,
13,
2,
2,
13,
17,
17,
30,
0,
13,
17,
3,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
33,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
33,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
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 scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\twhile (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}\n\t\t\n\t\tif (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\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 scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\twhile (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}\n\t\t\n\t\tif (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\twhile (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}\n\t\t\n\t\tif (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\twhile (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}\n\t\t\n\t\tif (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int y = scanner.nextInt();",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int flag = 0;",
"flag",
"0",
"while (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}",
"x >= 0 && y >= 0",
"x >= 0",
"x",
"0",
"y >= 0",
"y",
"0",
"{\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}",
"if (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"y / 4 == x && y % 4 == 0",
"y / 4 == x",
"y / 4",
"y",
"4",
"x",
"y % 4 == 0",
"y % 4",
"y",
"4",
"0",
"{\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"flag = 1",
"flag",
"1",
"break;",
"x = x - 1",
"x",
"x - 1",
"x",
"1",
"y = y - 2",
"y",
"y - 2",
"y",
"2",
"if (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"flag == 1",
"flag",
"1",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\twhile (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}\n\t\t\n\t\tif (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\twhile (x >= 0 && y >= 0) {\n\t\t\tif (y / 4 == x && y % 4 == 0) {\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx = x - 1;\n\t\t\ty = y - 2;\n\t\t}\n\t\t\n\t\tif (flag == 1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
int flag = 0;
while (x >= 0 && y >= 0) {
if (y / 4 == x && y % 4 == 0) {
flag = 1;
break;
}
x = x - 1;
y = y - 2;
}
if (flag == 1) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
2,
13,
17,
2,
2,
13,
13,
17,
14,
2,
13,
13,
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
],
[
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
],
[
97,
23
],
[
97,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
26,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
24,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.io.BufferedReader;\nimport java.io.*;\nimport java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\npublic class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int x = sc.nextInt();\n int y = sc.nextInt();\n int count = 0;\n\n for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }\n\n if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Iterator;",
"Iterator",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int x = sc.nextInt();\n int y = sc.nextInt();\n int count = 0;\n\n for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }\n\n if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"Main",
"public static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int x = sc.nextInt();\n int y = sc.nextInt();\n int count = 0;\n\n for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }\n\n if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n int x = sc.nextInt();\n int y = sc.nextInt();\n int count = 0;\n\n for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }\n\n if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < x + 1",
"i",
"x + 1",
"x",
"1",
"i++",
"i++",
"i",
"{\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }",
"{\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }",
"int checker = i * 2 + (x - i) * 4;",
"checker",
"i * 2 + (x - i) * 4",
"i * 2",
"i",
"2",
"(x - i) * 4",
"(x - i)",
"x",
"i",
"4",
"if(checker == y){\n count++;\n }",
"checker == y",
"checker",
"y",
"{\n count++;\n }",
"count++",
"count",
"if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }",
"count == 0",
"count",
"0",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"final String[] args",
"args",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int x = sc.nextInt();\n int y = sc.nextInt();\n int count = 0;\n\n for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }\n\n if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int x = sc.nextInt();\n int y = sc.nextInt();\n int count = 0;\n\n for(int i = 0 ; i < x + 1; i++){\n int checker = i * 2 + (x - i) * 4;\n if(checker == y){\n count++;\n }\n }\n\n if(count == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
public static void main(final String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int count = 0;
for(int i = 0 ; i < x + 1; i++){
int checker = i * 2 + (x - i) * 4;
if(checker == y){
count++;
}
}
if(count == 0){
System.out.println("No");
}else{
System.out.println("Yes");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
2,
13,
17,
2,
13,
2,
13,
17,
2,
2,
13,
17,
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
],
[
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
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
22,
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;\npublic class Main{\n\tpublic static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int legs=sc.nextInt();\n if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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 n=sc.nextInt();\n int legs=sc.nextInt();\n if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int legs=sc.nextInt();\n if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int legs=sc.nextInt();\n if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int legs=sc.nextInt();",
"legs",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0",
"legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0",
"legs<=(n*4)",
"legs",
"(n*4)",
"n",
"4",
"legs>=(n*2)",
"legs",
"(n*2)",
"n",
"2",
"(legs%2)==0",
"(legs%2)",
"legs",
"2",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int legs=sc.nextInt();\n if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int legs=sc.nextInt();\n if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int legs=sc.nextInt();
if(legs<=(n*4)&&legs>=(n*2)&&(legs%2)==0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
2,
2,
13,
17,
2,
13,
17,
14,
2,
13,
13,
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
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
19,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
30,
32
],
[
13,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
13,
41
],
[
41,
42
],
[
41,
43
],
[
13,
44
],
[
44,
45
],
[
44,
46
],
[
13,
47
],
[
47,
48
],
[
47,
49
],
[
13,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
62,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
13,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
9,
102
],
[
102,
103
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n String[] str = br.readLine().split(\" \");\n int X = Integer.parseInt(str[0]);\n int Y = Integer.parseInt(str[1]);\n\n int tmp = 0;\n int result = 0;\n boolean flag = false;\n \n for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main{\n public static void main(String args[])throws IOException{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n String[] str = br.readLine().split(\" \");\n int X = Integer.parseInt(str[0]);\n int Y = Integer.parseInt(str[1]);\n\n int tmp = 0;\n int result = 0;\n boolean flag = false;\n \n for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n\n }\n}",
"Main",
"public static void main(String args[])throws IOException{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n String[] str = br.readLine().split(\" \");\n int X = Integer.parseInt(str[0]);\n int Y = Integer.parseInt(str[1]);\n\n int tmp = 0;\n int result = 0;\n boolean flag = false;\n \n for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n\n }",
"main",
"{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n String[] str = br.readLine().split(\" \");\n int X = Integer.parseInt(str[0]);\n int Y = Integer.parseInt(str[1]);\n\n int tmp = 0;\n int result = 0;\n boolean flag = false;\n \n for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n\n }",
"try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n String[] str = br.readLine().split(\" \");\n int X = Integer.parseInt(str[0]);\n int Y = Integer.parseInt(str[1]);\n\n int tmp = 0;\n int result = 0;\n boolean flag = false;\n \n for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"{\n String[] str = br.readLine().split(\" \");\n int X = Integer.parseInt(str[0]);\n int Y = Integer.parseInt(str[1]);\n\n int tmp = 0;\n int result = 0;\n boolean flag = false;\n \n for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int X = Integer.parseInt(str[0]);",
"X",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int Y = Integer.parseInt(str[1]);",
"Y",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int tmp = 0;",
"tmp",
"0",
"int result = 0;",
"result",
"0",
"boolean flag = false;",
"flag",
"false",
"for(int i = 0; i <= X; i++){\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= X",
"i",
"X",
"i++",
"i++",
"i",
"{\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }",
"{\n tmp = X-i;\n result = i*2 + tmp*4;\n if(result == Y){\n flag = true;\n break;\n }\n }",
"tmp = X-i",
"tmp",
"X-i",
"X",
"i",
"result = i*2 + tmp*4",
"result",
"i*2 + tmp*4",
"i*2",
"i",
"2",
"tmp*4",
"tmp",
"4",
"if(result == Y){\n flag = true;\n break;\n }",
"result == Y",
"result",
"Y",
"{\n flag = true;\n break;\n }",
"flag = true",
"flag",
"true",
"break;",
"if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"flag",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args"
]
| import java.util.*;
import java.io.*;
class Main{
public static void main(String args[])throws IOException{
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
String[] str = br.readLine().split(" ");
int X = Integer.parseInt(str[0]);
int Y = Integer.parseInt(str[1]);
int tmp = 0;
int result = 0;
boolean flag = false;
for(int i = 0; i <= X; i++){
tmp = X-i;
result = i*2 + tmp*4;
if(result == Y){
flag = true;
break;
}
}
if(flag){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
2,
17,
2,
13,
13,
13,
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
],
[
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
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.*;\n \npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean flag = false;\n for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\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 x = sc.nextInt();\n int y = sc.nextInt();\n boolean flag = false;\n for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean flag = false;\n for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean flag = false;\n for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean flag = false;",
"flag",
"false",
"for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }",
"{\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }",
"if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }",
"2 * i + 4 * (x - i) == y",
"2 * i + 4 * (x - i)",
"2 * i",
"2",
"i",
"4 * (x - i)",
"4",
"(x - i)",
"x",
"i",
"y",
"{\n flag = true;\n break;\n }",
"flag = true",
"flag",
"true",
"break;",
"if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"flag",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean flag = false;\n for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\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 y = sc.nextInt();\n boolean flag = false;\n for(int i = 0;i <= x;i++){\n if(2 * i + 4 * (x - i) == y){\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
boolean flag = false;
for(int i = 0;i <= x;i++){
if(2 * i + 4 * (x - i) == y){
flag = true;
break;
}
}
if(flag){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
2,
17,
13,
2,
17,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
76,
8
],
[
76,
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
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
69,
72
],
[
9,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"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\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean possible = false;\n for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }\n System.out.println(possible ? \"Yes\" : \"No\");\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\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean possible = false;\n for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }\n System.out.println(possible ? \"Yes\" : \"No\");\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean possible = false;\n for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }\n System.out.println(possible ? \"Yes\" : \"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean possible = false;\n for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }\n System.out.println(possible ? \"Yes\" : \"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean possible = false;",
"possible",
"false",
"for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }",
"{\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }",
"int crane = i;",
"crane",
"i",
"int turtle = x - i;",
"turtle",
"x - i",
"x",
"i",
"if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }",
"2*crane + 4*turtle == y",
"2*crane + 4*turtle",
"2*crane",
"2",
"crane",
"4*turtle",
"4",
"turtle",
"y",
"{\n possible = true;\n break;\n }",
"possible = true",
"possible",
"true",
"break;",
"System.out.println(possible ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"possible ? \"Yes\" : \"No\"",
"possible",
"\"Yes\"",
"\"No\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean possible = false;\n for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }\n System.out.println(possible ? \"Yes\" : \"No\");\n }\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n boolean possible = false;\n for(int i = 0; i <= x; i++){\n int crane = i;\n int turtle = x - i;\n if(2*crane + 4*turtle == y){\n possible = true;\n break;\n }\n }\n System.out.println(possible ? \"Yes\" : \"No\");\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 x = sc.nextInt();
int y = sc.nextInt();
boolean possible = false;
for(int i = 0; i <= x; i++){
int crane = i;
int turtle = x - i;
if(2*crane + 4*turtle == y){
possible = true;
break;
}
}
System.out.println(possible ? "Yes" : "No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
13,
2,
2,
13,
17,
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
],
[
64,
5
],
[
64,
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
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
31,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
31,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int a,l,j,p=0;\n a=tan.nextInt();\n l=tan.nextInt();\n if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int a,l,j,p=0;\n a=tan.nextInt();\n l=tan.nextInt();\n if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int a,l,j,p=0;\n a=tan.nextInt();\n l=tan.nextInt();\n if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner tan = new Scanner(System.in);\n int a,l,j,p=0;\n a=tan.nextInt();\n l=tan.nextInt();\n if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"Scanner tan = new Scanner(System.in);",
"tan",
"new Scanner(System.in)",
"int a",
"a",
"l",
"l",
"j",
"j",
"p=0;",
"p",
"0",
"a=tan.nextInt()",
"a",
"tan.nextInt()",
"tan.nextInt",
"tan",
"l=tan.nextInt()",
"l",
"tan.nextInt()",
"tan.nextInt",
"tan",
"if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"l%2==0 && (a*2<=l && a*4>=l)",
"l%2==0",
"l%2",
"l",
"2",
"0",
"(a*2<=l && a*4>=l)",
"a*2<=l",
"a*2",
"a",
"2",
"l",
"a*4>=l",
"a*4",
"a",
"4",
"l",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int a,l,j,p=0;\n a=tan.nextInt();\n l=tan.nextInt();\n if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int a,l,j,p=0;\n a=tan.nextInt();\n l=tan.nextInt();\n if(l%2==0 && (a*2<=l && a*4>=l))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner tan = new Scanner(System.in);
int a,l,j,p=0;
a=tan.nextInt();
l=tan.nextInt();
if(l%2==0 && (a*2<=l && a*4>=l))
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
2,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
2,
17,
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
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
54,
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 public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int X =sc.nextInt();int Y =sc.nextInt();\n if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\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 X =sc.nextInt();int Y =sc.nextInt();\n if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int X =sc.nextInt();int Y =sc.nextInt();\n if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }\n }",
"main",
"{\n Scanner sc =new Scanner(System.in);\n int X =sc.nextInt();int Y =sc.nextInt();\n if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X =sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y =sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }",
"Y%2==1",
"Y%2",
"Y",
"2",
"1",
"{System.out.println(\"No\");}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }",
"int y =Y/2;",
"y",
"Y/2",
"Y",
"2",
"if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}",
"y-X<0",
"y-X",
"y",
"X",
"0",
"{System.out.println(\"No\");}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}",
"y-2*X>0",
"y-2*X",
"y",
"2*X",
"2",
"X",
"0",
"{System.out.println(\"No\");}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{System.out.println(\"Yes\");}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int X =sc.nextInt();int Y =sc.nextInt();\n if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int X =sc.nextInt();int Y =sc.nextInt();\n if(Y%2==1){System.out.println(\"No\");}\n else{ int y =Y/2;\n if(y-X<0){System.out.println(\"No\");}\n else if(y-2*X>0){System.out.println(\"No\");}\n else{System.out.println(\"Yes\");}\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
int X =sc.nextInt();int Y =sc.nextInt();
if(Y%2==1){System.out.println("No");}
else{ int y =Y/2;
if(y-X<0){System.out.println("No");}
else if(y-2*X>0){System.out.println("No");}
else{System.out.println("Yes");}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
29,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
2,
13,
17,
13,
41,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
4,
18,
13,
13,
2,
13,
4,
18,
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
],
[
120,
11
],
[
120,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
26,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
26,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
26,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
26,
66
],
[
66,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
68,
79
],
[
79,
80
],
[
79,
81
],
[
66,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
66,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
90,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
89,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
89,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
12,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\t\t\t\t\t\t\t\t\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tInputStreamReader rd = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(rd);\n\t\ttry{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tInputStreamReader rd = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(rd);\n\t\ttry{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tInputStreamReader rd = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(rd);\n\t\ttry{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader rd = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(rd);\n\t\ttry{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}",
"InputStreamReader rd = new InputStreamReader(System.in);",
"rd",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(rd);",
"br",
"new BufferedReader(rd)",
"try{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}",
"catch(Exception e){\n\t\t\treturn;\n\t\t}",
"Exception e",
"{\n\t\t\treturn;\n\t\t}",
"return;",
"{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String initial[] = str.split(\" \");",
"initial",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int number = Integer.parseInt(initial[0]);",
"number",
"Integer.parseInt(initial[0])",
"Integer.parseInt",
"Integer",
"initial[0]",
"initial",
"0",
"int legs = Integer.parseInt(initial[1]);",
"legs",
"Integer.parseInt(initial[1])",
"Integer.parseInt",
"Integer",
"initial[1]",
"initial",
"1",
"float t = (float)legs/2-(float)number;",
"t",
"(float)legs/2-(float)number",
"(float)legs/2",
"(float)legs",
"2",
"(float)number",
"float c = (float)number-t;",
"c",
"(float)number-t",
"(float)number",
"t",
"if((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}",
"(c==0 && t==0)||c<0||t<0",
"(c==0 && t==0)||c<0||t<0",
"(c==0 && t==0)",
"c==0",
"c",
"0",
"t==0",
"t",
"0",
"c<0",
"c",
"0",
"t<0",
"t",
"0",
"{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}",
"(c == Math.floor(c))&&(t==Math.floor(t))",
"(c == Math.floor(c))",
"c",
"Math.floor(c)",
"Math.floor",
"Math",
"c",
"(t==Math.floor(t))",
"t",
"Math.floor(t)",
"Math.floor",
"Math",
"t",
"{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tInputStreamReader rd = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(rd);\n\t\ttry{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tInputStreamReader rd = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(rd);\n\t\ttry{\n\t\t\t\tString str = br.readLine();\n\t\t\t\tString initial[] = str.split(\" \");\n\t\t\t\t\n\t\t\t\tint number = Integer.parseInt(initial[0]);\n\t\t\t\tint legs = Integer.parseInt(initial[1]);\n\t\t\t\tfloat t = (float)legs/2-(float)number;\n\t\t\t\tfloat c = (float)number-t;\n\t\t\t\t\n\t\t\t\tif((c==0 && t==0)||c<0||t<0){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\telse if((c == Math.floor(c))&&(t==Math.floor(t))){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
public class Main{
public static void main(String args[]){
InputStreamReader rd = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(rd);
try{
String str = br.readLine();
String initial[] = str.split(" ");
int number = Integer.parseInt(initial[0]);
int legs = Integer.parseInt(initial[1]);
float t = (float)legs/2-(float)number;
float c = (float)number-t;
if((c==0 && t==0)||c<0||t<0){
System.out.println("No");
}
else if((c == Math.floor(c))&&(t==Math.floor(t))){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
catch(Exception e){
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
2,
40,
17,
13,
2,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int X = sc.nextInt();\n\t\t int Y = sc.nextInt();\n\t\t String ans = \"No\";\n\t\t for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }\n\t\t System.out.print(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int X = sc.nextInt();\n\t\t int Y = sc.nextInt();\n\t\t String ans = \"No\";\n\t\t for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }\n\t\t System.out.print(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int X = sc.nextInt();\n\t\t int Y = sc.nextInt();\n\t\t String ans = \"No\";\n\t\t for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }\n\t\t System.out.print(ans);\n\t}",
"main",
"{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int X = sc.nextInt();\n\t\t int Y = sc.nextInt();\n\t\t String ans = \"No\";\n\t\t for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }\n\t\t System.out.print(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"No\";",
"ans",
"\"No\"",
"for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= X",
"i",
"X",
"i++",
"i++",
"i",
"{\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }",
"{\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }",
"if (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t}",
"Y == -2*i + 4*X",
"Y",
"-2*i + 4*X",
"-2*i",
"-2",
"2",
"i",
"4*X",
"4",
"X",
"{ \n\t\t\t\tans=\"Yes\";\n\t\t\t}",
"ans=\"Yes\"",
"ans",
"\"Yes\"",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int X = sc.nextInt();\n\t\t int Y = sc.nextInt();\n\t\t String ans = \"No\";\n\t\t for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }\n\t\t System.out.print(ans);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int X = sc.nextInt();\n\t\t int Y = sc.nextInt();\n\t\t String ans = \"No\";\n\t\t for (int i = 0; i <= X; i++) {\n\t\t\tif (Y == -2*i + 4*X) { \n\t\t\t\tans=\"Yes\";\n\t\t\t} \n\t\t }\n\t\t System.out.print(ans);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
String ans = "No";
for (int i = 0; i <= X; i++) {
if (Y == -2*i + 4*X) {
ans="Yes";
}
}
System.out.print(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
29,
4,
18,
18,
13,
13,
17,
4,
18,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
52,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
71,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
8,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n int craneLeg, turtleLeg, headTotal, legTotal; \n int craneCnt, turtleCnt;\n \n craneLeg = 2;\n turtleLeg = 4;\n headTotal = scan.nextInt();\n legTotal = scan.nextInt();\n \n for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }\n System.out.println(\"No\");\n scan.close();\n return;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n int craneLeg, turtleLeg, headTotal, legTotal; \n int craneCnt, turtleCnt;\n \n craneLeg = 2;\n turtleLeg = 4;\n headTotal = scan.nextInt();\n legTotal = scan.nextInt();\n \n for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }\n System.out.println(\"No\");\n scan.close();\n return;\n }\n}",
"Main",
"public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n int craneLeg, turtleLeg, headTotal, legTotal; \n int craneCnt, turtleCnt;\n \n craneLeg = 2;\n turtleLeg = 4;\n headTotal = scan.nextInt();\n legTotal = scan.nextInt();\n \n for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }\n System.out.println(\"No\");\n scan.close();\n return;\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int craneLeg, turtleLeg, headTotal, legTotal; \n int craneCnt, turtleCnt;\n \n craneLeg = 2;\n turtleLeg = 4;\n headTotal = scan.nextInt();\n legTotal = scan.nextInt();\n \n for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }\n System.out.println(\"No\");\n scan.close();\n return;\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int craneLeg",
"craneLeg",
"turtleLeg",
"turtleLeg",
"headTotal",
"headTotal",
"legTotal;",
"legTotal",
"int craneCnt",
"craneCnt",
"turtleCnt;",
"turtleCnt",
"craneLeg = 2",
"craneLeg",
"2",
"turtleLeg = 4",
"turtleLeg",
"4",
"headTotal = scan.nextInt()",
"headTotal",
"scan.nextInt()",
"scan.nextInt",
"scan",
"legTotal = scan.nextInt()",
"legTotal",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= headTotal",
"i",
"headTotal",
"i++",
"i++",
"i",
"{\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }",
"{\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }",
"craneCnt = i",
"craneCnt",
"i",
"turtleCnt = headTotal - i",
"turtleCnt",
"headTotal - i",
"headTotal",
"i",
"if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }",
"craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal",
"craneCnt * craneLeg + turtleCnt * turtleLeg",
"craneCnt * craneLeg",
"craneCnt",
"craneLeg",
"turtleCnt * turtleLeg",
"turtleCnt",
"turtleLeg",
"legTotal",
"{\n System.out.println(\"Yes\");\n scan.close();\n return;\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"scan.close()",
"scan.close",
"scan",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"scan.close()",
"scan.close",
"scan",
"return;",
"String[] arg",
"arg",
"public class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n int craneLeg, turtleLeg, headTotal, legTotal; \n int craneCnt, turtleCnt;\n \n craneLeg = 2;\n turtleLeg = 4;\n headTotal = scan.nextInt();\n legTotal = scan.nextInt();\n \n for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }\n System.out.println(\"No\");\n scan.close();\n return;\n }\n}",
"public class Main {\n public static void main(String[] arg) {\n Scanner scan = new Scanner(System.in);\n int craneLeg, turtleLeg, headTotal, legTotal; \n int craneCnt, turtleCnt;\n \n craneLeg = 2;\n turtleLeg = 4;\n headTotal = scan.nextInt();\n legTotal = scan.nextInt();\n \n for(int i = 0; i <= headTotal; i++) {\n craneCnt = i;\n turtleCnt = headTotal - i;\n\n if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n }\n System.out.println(\"No\");\n scan.close();\n return;\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] arg) {
Scanner scan = new Scanner(System.in);
int craneLeg, turtleLeg, headTotal, legTotal;
int craneCnt, turtleCnt;
craneLeg = 2;
turtleLeg = 4;
headTotal = scan.nextInt();
legTotal = scan.nextInt();
for(int i = 0; i <= headTotal; i++) {
craneCnt = i;
turtleCnt = headTotal - i;
if(craneCnt * craneLeg + turtleCnt * turtleLeg == legTotal) {
System.out.println("Yes");
scan.close();
return;
}
}
System.out.println("No");
scan.close();
return;
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
2,
2,
17,
13,
2,
13,
17,
41,
13,
2,
2,
13,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
4,
18,
13,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
13,
23,
13,
23,
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,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
0,
18,
13,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
2,
18,
13,
2,
13,
17,
13,
13,
0,
18,
13,
13,
2,
13,
2,
2,
18,
13,
2,
13,
13,
2,
13,
13,
13,
0,
18,
13,
13,
2,
2,
18,
13,
2,
13,
17,
18,
13,
13,
13,
12,
13,
30,
14,
2,
2,
2,
13,
13,
2,
13,
17,
2,
13,
17,
29,
17,
29,
2,
2,
18,
13,
13,
2,
2,
18,
13,
13,
18,
13,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
17,
2,
13,
4,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
408,
5
],
[
408,
6
],
[
6,
7
],
[
408,
8
],
[
8,
9
],
[
8,
10
],
[
408,
11
],
[
11,
12
],
[
11,
13
],
[
408,
14
],
[
14,
15
],
[
14,
16
],
[
408,
18
],
[
18,
19
],
[
18,
20
],
[
408,
22
],
[
22,
23
],
[
22,
24
],
[
408,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
28,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
28,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
28,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
28,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
64,
71
],
[
28,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
72,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
72,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
26,
106
],
[
106,
107
],
[
408,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
108,
117
],
[
117,
118
],
[
408,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
119,
128
],
[
128,
129
],
[
408,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
133,
139
],
[
130,
140
],
[
140,
141
],
[
130,
142
],
[
142,
143
],
[
408,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
152,
153
],
[
408,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
161,
162
],
[
162,
163
],
[
408,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
172,
173
],
[
408,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
182,
183
],
[
408,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
192,
193
],
[
408,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
408,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
408,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
408,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
408,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
408,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
240,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
248,
250
],
[
243,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
255,
257
],
[
236,
258
],
[
258,
259
],
[
236,
260
],
[
260,
261
],
[
236,
262
],
[
262,
263
],
[
236,
264
],
[
264,
265
],
[
408,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
268,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
268,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
268,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
292,
297
],
[
297,
298
],
[
297,
299
],
[
292,
300
],
[
300,
301
],
[
301,
302
],
[
292,
303
],
[
304,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
313,
315
],
[
310,
316
],
[
309,
317
],
[
304,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
328,
330
],
[
325,
331
],
[
331,
332
],
[
331,
333
],
[
324,
334
],
[
304,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
335,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
343,
345
],
[
340,
346
],
[
346,
347
],
[
346,
348
],
[
339,
349
],
[
408,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
355,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
355,
359
],
[
359,
360
],
[
359,
361
],
[
355,
362
],
[
362,
363
],
[
362,
364
],
[
353,
365
],
[
365,
366
],
[
352,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
380,
382
],
[
373,
383
],
[
368,
384
],
[
350,
385
],
[
385,
386
],
[
350,
387
],
[
387,
388
],
[
408,
389
],
[
389,
390
],
[
389,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
394,
396
],
[
393,
397
],
[
393,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
402,
404
],
[
389,
405
],
[
405,
406
],
[
0,
407
],
[
407,
408
],
[
407,
409
]
]
| [
"\nimport java.util.*;\n\npublic class Main {\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n int x = nextInt();\n int y = nextInt();\n double turu = 2 * x - y / 2.0;\n double kame = y / 2.0 - x ;\n if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }\n if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n public static void println(Object o) {\n System.out.println(o);\n }\n\n public static void print(Object o) {\n System.out.print(o);\n }\n\n public static void printf(String format, Object... o) {\n System.out.printf(format, o);\n }\n\n public static int nextInt() {\n return Integer.parseInt(scanner.next());\n }\n\n public static long nextLong() {\n return Long.parseLong(scanner.next());\n }\n\n public static double nextDouble() {\n return Double.parseDouble(scanner.next());\n }\n\n public static short nextShort() {\n return Short.parseShort(scanner.next());\n }\n\n public static float nextFloat() {\n return Float.parseFloat(scanner.next());\n }\n\n public static void printYes() {\n System.out.println(\"Yes\");\n }\n\n public static void printYES() {\n System.out.println(\"YES\");\n }\n\n public static void printNo() {\n System.out.println(\"No\");\n }\n\n public static void printNO() {\n System.out.println(\"NO\");\n }\n\n public static void nextLine() {\n scanner.nextLine();\n }\n\n public static double distance(double x, double y, double x2, double y2) {\n return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));\n }\n\n public static int MOD = 1_000_000_007;\n public static int MAX = 100000;\n public static long[] fac = new long[MAX];\n public static long[] finv = new long[MAX];\n public static long[] inv = new long[MAX];\n\n public static void combinit() {\n fac[0] = fac[1] = 1;\n finv[0] = finv[1] = 1;\n inv[1] = 1;\n for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }\n }\n\n public static long combination(int n, int k) {\n if (n < k || n < 0 || k < 0) return 0;\n return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;\n }\n\n public static long factorial(long n) {\n return n <= 0 ? 1 : n * factorial(n - 1);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n int x = nextInt();\n int y = nextInt();\n double turu = 2 * x - y / 2.0;\n double kame = y / 2.0 - x ;\n if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }\n if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n public static void println(Object o) {\n System.out.println(o);\n }\n\n public static void print(Object o) {\n System.out.print(o);\n }\n\n public static void printf(String format, Object... o) {\n System.out.printf(format, o);\n }\n\n public static int nextInt() {\n return Integer.parseInt(scanner.next());\n }\n\n public static long nextLong() {\n return Long.parseLong(scanner.next());\n }\n\n public static double nextDouble() {\n return Double.parseDouble(scanner.next());\n }\n\n public static short nextShort() {\n return Short.parseShort(scanner.next());\n }\n\n public static float nextFloat() {\n return Float.parseFloat(scanner.next());\n }\n\n public static void printYes() {\n System.out.println(\"Yes\");\n }\n\n public static void printYES() {\n System.out.println(\"YES\");\n }\n\n public static void printNo() {\n System.out.println(\"No\");\n }\n\n public static void printNO() {\n System.out.println(\"NO\");\n }\n\n public static void nextLine() {\n scanner.nextLine();\n }\n\n public static double distance(double x, double y, double x2, double y2) {\n return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));\n }\n\n public static int MOD = 1_000_000_007;\n public static int MAX = 100000;\n public static long[] fac = new long[MAX];\n public static long[] finv = new long[MAX];\n public static long[] inv = new long[MAX];\n\n public static void combinit() {\n fac[0] = fac[1] = 1;\n finv[0] = finv[1] = 1;\n inv[1] = 1;\n for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }\n }\n\n public static long combination(int n, int k) {\n if (n < k || n < 0 || k < 0) return 0;\n return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;\n }\n\n public static long factorial(long n) {\n return n <= 0 ? 1 : n * factorial(n - 1);\n }\n}",
"Main",
"static Scanner scanner;",
"scanner",
"public static int MOD = 1_000_000_007;",
"MOD",
"1_000_000_007",
"public static int MAX = 100000;",
"MAX",
"100000",
"public static long[] fac = new long[MAX];",
"fac",
"new long[MAX]",
"MAX",
"public static long[] finv = new long[MAX];",
"finv",
"new long[MAX]",
"MAX",
"public static long[] inv = new long[MAX];",
"inv",
"new long[MAX]",
"MAX",
"public static void main(String[] args) {\n scanner = new Scanner(System.in);\n int x = nextInt();\n int y = nextInt();\n double turu = 2 * x - y / 2.0;\n double kame = y / 2.0 - x ;\n if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }\n if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n scanner = new Scanner(System.in);\n int x = nextInt();\n int y = nextInt();\n double turu = 2 * x - y / 2.0;\n double kame = y / 2.0 - x ;\n if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }\n if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"scanner = new Scanner(System.in)",
"scanner",
"new Scanner(System.in)",
"int x = nextInt();",
"x",
"nextInt()",
"nextInt",
"int y = nextInt();",
"y",
"nextInt()",
"nextInt",
"double turu = 2 * x - y / 2.0;",
"turu",
"2 * x - y / 2.0",
"2 * x",
"2",
"x",
"y / 2.0",
"y",
"2.0",
"double kame = y / 2.0 - x ;",
"kame",
"y / 2.0 - x",
"y / 2.0",
"y",
"2.0",
"x",
"if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }",
"turu < 0 || kame < 0",
"turu < 0",
"turu",
"0",
"kame < 0",
"kame",
"0",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)",
"Math.ceil(turu) == Math.floor(turu)",
"Math.ceil(turu)",
"Math.ceil",
"Math",
"turu",
"Math.floor(turu)",
"Math.floor",
"Math",
"turu",
"Math.ceil(kame) == Math.floor(kame)",
"Math.ceil(kame)",
"Math.ceil",
"Math",
"kame",
"Math.floor(kame)",
"Math.floor",
"Math",
"kame",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public static void println(Object o) {\n System.out.println(o);\n }",
"println",
"{\n System.out.println(o);\n }",
"System.out.println(o)",
"System.out.println",
"System.out",
"System",
"System.out",
"o",
"Object o",
"o",
"public static void print(Object o) {\n System.out.print(o);\n }",
"print",
"{\n System.out.print(o);\n }",
"System.out.print(o)",
"System.out.print",
"System.out",
"System",
"System.out",
"o",
"Object o",
"o",
"public static void printf(String format, Object... o) {\n System.out.printf(format, o);\n }",
"printf",
"{\n System.out.printf(format, o);\n }",
"System.out.printf(format, o)",
"System.out.printf",
"System.out",
"System",
"System.out",
"format",
"o",
"String format",
"format",
"Object... o",
"o",
"public static int nextInt() {\n return Integer.parseInt(scanner.next());\n }",
"nextInt",
"{\n return Integer.parseInt(scanner.next());\n }",
"return Integer.parseInt(scanner.next());",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"public static long nextLong() {\n return Long.parseLong(scanner.next());\n }",
"nextLong",
"{\n return Long.parseLong(scanner.next());\n }",
"return Long.parseLong(scanner.next());",
"Long.parseLong(scanner.next())",
"Long.parseLong",
"Long",
"scanner.next()",
"scanner.next",
"scanner",
"public static double nextDouble() {\n return Double.parseDouble(scanner.next());\n }",
"nextDouble",
"{\n return Double.parseDouble(scanner.next());\n }",
"return Double.parseDouble(scanner.next());",
"Double.parseDouble(scanner.next())",
"Double.parseDouble",
"Double",
"scanner.next()",
"scanner.next",
"scanner",
"public static short nextShort() {\n return Short.parseShort(scanner.next());\n }",
"nextShort",
"{\n return Short.parseShort(scanner.next());\n }",
"return Short.parseShort(scanner.next());",
"Short.parseShort(scanner.next())",
"Short.parseShort",
"Short",
"scanner.next()",
"scanner.next",
"scanner",
"public static float nextFloat() {\n return Float.parseFloat(scanner.next());\n }",
"nextFloat",
"{\n return Float.parseFloat(scanner.next());\n }",
"return Float.parseFloat(scanner.next());",
"Float.parseFloat(scanner.next())",
"Float.parseFloat",
"Float",
"scanner.next()",
"scanner.next",
"scanner",
"public static void printYes() {\n System.out.println(\"Yes\");\n }",
"printYes",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"public static void printYES() {\n System.out.println(\"YES\");\n }",
"printYES",
"{\n System.out.println(\"YES\");\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"public static void printNo() {\n System.out.println(\"No\");\n }",
"printNo",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"public static void printNO() {\n System.out.println(\"NO\");\n }",
"printNO",
"{\n System.out.println(\"NO\");\n }",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"public static void nextLine() {\n scanner.nextLine();\n }",
"nextLine",
"{\n scanner.nextLine();\n }",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"public static double distance(double x, double y, double x2, double y2) {\n return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));\n }",
"distance",
"{\n return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));\n }",
"return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));",
"Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y))",
"Math.sqrt",
"Math",
"(x2 - x) * (x2 - x) + (y2 - y) * (y2 - y)",
"(x2 - x) * (x2 - x)",
"(x2 - x)",
"x2",
"x",
"(x2 - x)",
"x2",
"x",
"(y2 - y) * (y2 - y)",
"(y2 - y)",
"y2",
"y",
"(y2 - y)",
"y2",
"y",
"double x",
"x",
"double y",
"y",
"double x2",
"x2",
"double y2",
"y2",
"public static void combinit() {\n fac[0] = fac[1] = 1;\n finv[0] = finv[1] = 1;\n inv[1] = 1;\n for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }\n }",
"combinit",
"{\n fac[0] = fac[1] = 1;\n finv[0] = finv[1] = 1;\n inv[1] = 1;\n for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }\n }",
"fac[0] = fac[1] = 1",
"fac[0]",
"fac",
"0",
"fac[1] = 1",
"fac[1]",
"fac",
"1",
"1",
"finv[0] = finv[1] = 1",
"finv[0]",
"finv",
"0",
"finv[1] = 1",
"finv[1]",
"finv",
"1",
"1",
"inv[1] = 1",
"inv[1]",
"inv",
"1",
"1",
"for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i < MAX",
"i",
"MAX",
"i++",
"i++",
"i",
"{\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }",
"{\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }",
"fac[i] = fac[i - 1] * i % MOD",
"fac[i]",
"fac",
"i",
"fac[i - 1] * i % MOD",
"fac[i - 1] * i",
"fac[i - 1]",
"fac",
"i - 1",
"i",
"1",
"i",
"MOD",
"inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD",
"inv[i]",
"inv",
"i",
"MOD - inv[MOD % i] * (MOD / i) % MOD",
"MOD",
"inv[MOD % i] * (MOD / i) % MOD",
"inv[MOD % i] * (MOD / i)",
"inv[MOD % i]",
"inv",
"MOD % i",
"MOD",
"i",
"(MOD / i)",
"MOD",
"i",
"MOD",
"finv[i] = finv[i - 1] * inv[i] % MOD",
"finv[i]",
"finv",
"i",
"finv[i - 1] * inv[i] % MOD",
"finv[i - 1] * inv[i]",
"finv[i - 1]",
"finv",
"i - 1",
"i",
"1",
"inv[i]",
"inv",
"i",
"MOD",
"public static long combination(int n, int k) {\n if (n < k || n < 0 || k < 0) return 0;\n return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;\n }",
"combination",
"{\n if (n < k || n < 0 || k < 0) return 0;\n return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;\n }",
"if (n < k || n < 0 || k < 0) return 0;",
"n < k || n < 0 || k < 0",
"n < k || n < 0 || k < 0",
"n < k",
"n",
"k",
"n < 0",
"n",
"0",
"k < 0",
"k",
"0",
"return 0;",
"0",
"return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;",
"fac[n] * (finv[k] * finv[n - k] % MOD) % MOD",
"fac[n] * (finv[k] * finv[n - k] % MOD)",
"fac[n]",
"fac",
"n",
"(finv[k] * finv[n - k] % MOD)",
"finv[k] * finv[n - k]",
"finv[k]",
"finv",
"k",
"finv[n - k]",
"finv",
"n - k",
"n",
"k",
"MOD",
"MOD",
"int n",
"n",
"int k",
"k",
"public static long factorial(long n) {\n return n <= 0 ? 1 : n * factorial(n - 1);\n }",
"factorial",
"{\n return n <= 0 ? 1 : n * factorial(n - 1);\n }",
"return n <= 0 ? 1 : n * factorial(n - 1);",
"n <= 0 ? 1 : n * factorial(n - 1)",
"n <= 0",
"n",
"0",
"1",
"n * factorial(n - 1)",
"n",
"factorial(n - 1)",
"factorial",
"n - 1",
"n",
"1",
"long n",
"n",
"public class Main {\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n int x = nextInt();\n int y = nextInt();\n double turu = 2 * x - y / 2.0;\n double kame = y / 2.0 - x ;\n if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }\n if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n public static void println(Object o) {\n System.out.println(o);\n }\n\n public static void print(Object o) {\n System.out.print(o);\n }\n\n public static void printf(String format, Object... o) {\n System.out.printf(format, o);\n }\n\n public static int nextInt() {\n return Integer.parseInt(scanner.next());\n }\n\n public static long nextLong() {\n return Long.parseLong(scanner.next());\n }\n\n public static double nextDouble() {\n return Double.parseDouble(scanner.next());\n }\n\n public static short nextShort() {\n return Short.parseShort(scanner.next());\n }\n\n public static float nextFloat() {\n return Float.parseFloat(scanner.next());\n }\n\n public static void printYes() {\n System.out.println(\"Yes\");\n }\n\n public static void printYES() {\n System.out.println(\"YES\");\n }\n\n public static void printNo() {\n System.out.println(\"No\");\n }\n\n public static void printNO() {\n System.out.println(\"NO\");\n }\n\n public static void nextLine() {\n scanner.nextLine();\n }\n\n public static double distance(double x, double y, double x2, double y2) {\n return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));\n }\n\n public static int MOD = 1_000_000_007;\n public static int MAX = 100000;\n public static long[] fac = new long[MAX];\n public static long[] finv = new long[MAX];\n public static long[] inv = new long[MAX];\n\n public static void combinit() {\n fac[0] = fac[1] = 1;\n finv[0] = finv[1] = 1;\n inv[1] = 1;\n for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }\n }\n\n public static long combination(int n, int k) {\n if (n < k || n < 0 || k < 0) return 0;\n return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;\n }\n\n public static long factorial(long n) {\n return n <= 0 ? 1 : n * factorial(n - 1);\n }\n}",
"public class Main {\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n int x = nextInt();\n int y = nextInt();\n double turu = 2 * x - y / 2.0;\n double kame = y / 2.0 - x ;\n if (turu < 0 || kame < 0) {\n System.out.println(\"No\");\n return;\n }\n if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n public static void println(Object o) {\n System.out.println(o);\n }\n\n public static void print(Object o) {\n System.out.print(o);\n }\n\n public static void printf(String format, Object... o) {\n System.out.printf(format, o);\n }\n\n public static int nextInt() {\n return Integer.parseInt(scanner.next());\n }\n\n public static long nextLong() {\n return Long.parseLong(scanner.next());\n }\n\n public static double nextDouble() {\n return Double.parseDouble(scanner.next());\n }\n\n public static short nextShort() {\n return Short.parseShort(scanner.next());\n }\n\n public static float nextFloat() {\n return Float.parseFloat(scanner.next());\n }\n\n public static void printYes() {\n System.out.println(\"Yes\");\n }\n\n public static void printYES() {\n System.out.println(\"YES\");\n }\n\n public static void printNo() {\n System.out.println(\"No\");\n }\n\n public static void printNO() {\n System.out.println(\"NO\");\n }\n\n public static void nextLine() {\n scanner.nextLine();\n }\n\n public static double distance(double x, double y, double x2, double y2) {\n return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));\n }\n\n public static int MOD = 1_000_000_007;\n public static int MAX = 100000;\n public static long[] fac = new long[MAX];\n public static long[] finv = new long[MAX];\n public static long[] inv = new long[MAX];\n\n public static void combinit() {\n fac[0] = fac[1] = 1;\n finv[0] = finv[1] = 1;\n inv[1] = 1;\n for (int i = 2; i < MAX; i++) {\n fac[i] = fac[i - 1] * i % MOD;\n inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;\n finv[i] = finv[i - 1] * inv[i] % MOD;\n }\n }\n\n public static long combination(int n, int k) {\n if (n < k || n < 0 || k < 0) return 0;\n return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;\n }\n\n public static long factorial(long n) {\n return n <= 0 ? 1 : n * factorial(n - 1);\n }\n}",
"Main"
]
|
import java.util.*;
public class Main {
static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
int x = nextInt();
int y = nextInt();
double turu = 2 * x - y / 2.0;
double kame = y / 2.0 - x ;
if (turu < 0 || kame < 0) {
System.out.println("No");
return;
}
if (Math.ceil(turu) == Math.floor(turu) && Math.ceil(kame) == Math.floor(kame)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
public static void println(Object o) {
System.out.println(o);
}
public static void print(Object o) {
System.out.print(o);
}
public static void printf(String format, Object... o) {
System.out.printf(format, o);
}
public static int nextInt() {
return Integer.parseInt(scanner.next());
}
public static long nextLong() {
return Long.parseLong(scanner.next());
}
public static double nextDouble() {
return Double.parseDouble(scanner.next());
}
public static short nextShort() {
return Short.parseShort(scanner.next());
}
public static float nextFloat() {
return Float.parseFloat(scanner.next());
}
public static void printYes() {
System.out.println("Yes");
}
public static void printYES() {
System.out.println("YES");
}
public static void printNo() {
System.out.println("No");
}
public static void printNO() {
System.out.println("NO");
}
public static void nextLine() {
scanner.nextLine();
}
public static double distance(double x, double y, double x2, double y2) {
return Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));
}
public static int MOD = 1_000_000_007;
public static int MAX = 100000;
public static long[] fac = new long[MAX];
public static long[] finv = new long[MAX];
public static long[] inv = new long[MAX];
public static void combinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < MAX; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
finv[i] = finv[i - 1] * inv[i] % MOD;
}
}
public static long combination(int n, int k) {
if (n < k || n < 0 || k < 0) return 0;
return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
public static long factorial(long n) {
return n <= 0 ? 1 : n * factorial(n - 1);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
40,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
29,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
13,
17,
14,
2,
13,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
29,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
68,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
8,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }\n int a=0;\n for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n return;\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 int x=sc.nextInt();\n int y=sc.nextInt();\n if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }\n int a=0;\n for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n return;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }\n int a=0;\n for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n return;\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }\n int a=0;\n for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n return;\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }",
"!(y%2==0)",
"(y%2==0)",
"y%2",
"y",
"2",
"0",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"int a=0;",
"a",
"0",
"for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }",
"{\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }",
"a=y-(i*4)",
"a",
"y-(i*4)",
"y",
"(i*4)",
"i",
"4",
"if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }",
"a==(x-i)*2",
"a",
"(x-i)*2",
"(x-i)",
"x",
"i",
"2",
"{\n \tSystem.out.println(\"Yes\");\n return;\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }\n int a=0;\n for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n return;\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n if(!(y%2==0)){\n System.out.println(\"No\");\n return;\n }\n int a=0;\n for(int i=0;i<=x;i++){\n \ta=y-(i*4);\n if(a==(x-i)*2){\n \tSystem.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n return;\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
if(!(y%2==0)){
System.out.println("No");
return;
}
int a=0;
for(int i=0;i<=x;i++){
a=y-(i*4);
if(a==(x-i)*2){
System.out.println("Yes");
return;
}
}
System.out.println("No");
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
17,
13,
2,
17,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
43,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String result = \"No\";\n\n for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }\n System.out.println(result);\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 y = sc.nextInt();\n String result = \"No\";\n\n for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String result = \"No\";\n\n for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String result = \"No\";\n\n for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String result = \"No\";",
"result",
"\"No\"",
"for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }",
"{\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }",
"int j = x - i;",
"j",
"x - i",
"x",
"i",
"if (2 * i + 4 * j == y) result = \"Yes\";",
"2 * i + 4 * j == y",
"2 * i + 4 * j",
"2 * i",
"2",
"i",
"4 * j",
"4",
"j",
"y",
"result = \"Yes\"",
"result",
"\"Yes\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String result = \"No\";\n\n for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }\n System.out.println(result);\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 y = sc.nextInt();\n String result = \"No\";\n\n for (int i = 0; i <= x; i++) {\n int j = x - i;\n if (2 * i + 4 * j == y) result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String result = "No";
for (int i = 0; i <= x; i++) {
int j = x - i;
if (2 * i + 4 * j == y) result = "Yes";
}
System.out.println(result);
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
4,
18,
13,
17,
29,
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
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
96,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
112,
117
],
[
59,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
13,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
122,
129
],
[
129,
130
],
[
129,
131
],
[
122,
133
],
[
133,
134
],
[
133,
135
],
[
122,
136
],
[
136,
137
],
[
136,
138
],
[
122,
139
],
[
139,
140
],
[
139,
141
],
[
122,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
145,
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
],
[
166,
169
],
[
152,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
175,
176
],
[
144,
177
],
[
177,
178
],
[
122,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
122,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
201,
203
],
[
193,
204
],
[
204,
205
],
[
122,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
209,
219
],
[
219,
220
],
[
208,
221
],
[
221,
222
],
[
222,
223
],
[
122,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
227,
231
],
[
231,
232
],
[
226,
233
],
[
233,
234
],
[
233,
235
],
[
226,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
226,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
244,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
226,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
122,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
260,
264
],
[
264,
265
],
[
259,
266
],
[
266,
267
],
[
266,
268
],
[
259,
269
],
[
269,
270
],
[
269,
271
],
[
259,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
259,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
259,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
293,
294
],
[
293,
295
],
[
288,
296
],
[
296,
297
],
[
297,
298
],
[
259,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
307,
309
],
[
302,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
316,
318
],
[
302,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
320,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
319,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
331,
335
],
[
319,
336
],
[
336,
337
],
[
337,
338
],
[
301,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
122,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
345,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
354,
356
],
[
351,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
350,
362
],
[
362,
363
],
[
345,
364
],
[
364,
365
],
[
122,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
370,
373
],
[
373,
374
],
[
122,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
377,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
384,
386
],
[
382,
387
],
[
387,
388
],
[
387,
389
],
[
382,
390
],
[
390,
391
],
[
391,
392
],
[
382,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
377,
400
],
[
400,
401
],
[
375,
402
],
[
402,
403
],
[
122,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
406,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
411,
416
],
[
416,
417
],
[
416,
418
],
[
411,
419
],
[
419,
420
],
[
420,
421
],
[
411,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
424,
426
],
[
423,
427
],
[
427,
428
],
[
406,
429
],
[
429,
430
],
[
404,
431
],
[
431,
432
]
]
| [
"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 x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= 100; i++) {\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }\n writer.println(\"No\");\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 x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= 100; i++) {\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }\n writer.println(\"No\");\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 x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= 100; i++) {\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }\n writer.println(\"No\");\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 x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= 100; i++) {\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }\n writer.println(\"No\");\n }",
"run",
"{\n int x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= 100; i++) {\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }\n writer.println(\"No\");\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i <= 100; i++) {\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 100",
"i",
"100",
"i++",
"i++",
"i",
"{\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }",
"{\n for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }\n }",
"for (int j = 0; j <= 100; j++) {\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= 100",
"j",
"100",
"j++",
"j++",
"j",
"{\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }",
"{\n if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }\n }",
"if (i + j == x && i * 2 + j * 4 == y) {\n writer.println(\"Yes\");\n return;\n }",
"i + j == x && i * 2 + j * 4 == y",
"i + j == x",
"i + j",
"i",
"j",
"x",
"i * 2 + j * 4 == y",
"i * 2 + j * 4",
"i * 2",
"i",
"2",
"j * 4",
"j",
"4",
"y",
"{\n writer.println(\"Yes\");\n return;\n }",
"writer.println(\"Yes\")",
"writer.println",
"writer",
"\"Yes\"",
"return;",
"writer.println(\"No\")",
"writer.println",
"writer",
"\"No\"",
"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 x = sc.nextInt();
int y = sc.nextInt();
for (int i = 0; i <= 100; i++) {
for (int j = 0; j <= 100; j++) {
if (i + j == x && i * 2 + j * 4 == y) {
writer.println("Yes");
return;
}
}
}
writer.println("No");
}
}
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
2,
2,
13,
13,
17,
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
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
36,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
47,
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.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int all = sc.nextInt();\n int leg = sc.nextInt();\n for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int all = sc.nextInt();\n int leg = sc.nextInt();\n for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int all = sc.nextInt();\n int leg = sc.nextInt();\n for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int all = sc.nextInt();\n int leg = sc.nextInt();\n for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int all = sc.nextInt();",
"all",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int leg = sc.nextInt();",
"leg",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<= all",
"i",
"all",
"i++",
"i++",
"i",
"{\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }",
"{\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }",
"if(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }",
"((i*2) + (all-i)*4) == leg",
"((i*2) + (all-i)*4)",
"(i*2)",
"i",
"2",
"(all-i)*4",
"(all-i)",
"all",
"i",
"4",
"leg",
"{\n System.out.println(\"Yes\");\n return;\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int all = sc.nextInt();\n int leg = sc.nextInt();\n for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int all = sc.nextInt();\n int leg = sc.nextInt();\n for(int i = 0; i<= all; i++){\n \tif(((i*2) + (all-i)*4) == leg){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int all = sc.nextInt();
int leg = sc.nextInt();
for(int i = 0; i<= all; i++){
if(((i*2) + (all-i)*4) == leg){
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
30,
41,
13,
2,
2,
13,
17,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
14,
2,
2,
2,
17,
13,
2,
17,
13,
13,
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
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
31,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
44,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
25,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
6,
83
],
[
83,
84
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextByte();\n int y = sc.nextByte();\n sc.close();\n if((y & 1) == 0) {\n int t = (y/2) - x;\n int c = x - t;\n if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }\n } else {\n System.out.println(\"No\"); \n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextByte();\n int y = sc.nextByte();\n sc.close();\n if((y & 1) == 0) {\n int t = (y/2) - x;\n int c = x - t;\n if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }\n } else {\n System.out.println(\"No\"); \n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextByte();\n int y = sc.nextByte();\n sc.close();\n if((y & 1) == 0) {\n int t = (y/2) - x;\n int c = x - t;\n if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }\n } else {\n System.out.println(\"No\"); \n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextByte();\n int y = sc.nextByte();\n sc.close();\n if((y & 1) == 0) {\n int t = (y/2) - x;\n int c = x - t;\n if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }\n } else {\n System.out.println(\"No\"); \n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextByte();",
"x",
"sc.nextByte()",
"sc.nextByte",
"sc",
"int y = sc.nextByte();",
"y",
"sc.nextByte()",
"sc.nextByte",
"sc",
"sc.close()",
"sc.close",
"sc",
"if((y & 1) == 0) {\n int t = (y/2) - x;\n int c = x - t;\n if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }\n } else {\n System.out.println(\"No\"); \n }",
"(y & 1) == 0",
"(y & 1)",
"y",
"1",
"0",
"{\n int t = (y/2) - x;\n int c = x - t;\n if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }\n }",
"int t = (y/2) - x;",
"t",
"(y/2) - x",
"(y/2)",
"y",
"2",
"x",
"int c = x - t;",
"c",
"x - t",
"x",
"t",
"if(c < 0 || t < 0) {\n System.out.println(\"No\");\n } else {\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }",
"c < 0 || t < 0",
"c < 0",
"c",
"0",
"t < 0",
"t",
"0",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");\n }",
"if(((4*t) + (2*c)) == y) System.out.println(\"Yes\");",
"((4*t) + (2*c)) == y",
"((4*t) + (2*c))",
"(4*t)",
"4",
"t",
"(2*c)",
"2",
"c",
"y",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\"); \n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextByte();
int y = sc.nextByte();
sc.close();
if((y & 1) == 0) {
int t = (y/2) - x;
int c = x - t;
if(c < 0 || t < 0) {
System.out.println("No");
} else {
if(((4*t) + (2*c)) == y) System.out.println("Yes");
}
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
14,
2,
2,
13,
2,
17,
13,
2,
2,
17,
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
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
]
| [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tString ans = \"Yes\";\n\n\t\tif (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tString ans = \"Yes\";\n\n\t\tif (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tString ans = \"Yes\";\n\n\t\tif (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tString ans = \"Yes\";\n\n\t\tif (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"Yes\";",
"ans",
"\"Yes\"",
"if (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}",
"y % 2 != 0",
"y % 2",
"y",
"2",
"0",
"{\n\t\t\tans = \"No\";\n\t\t}",
"ans = \"No\"",
"ans",
"\"No\"",
"if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}",
"y < 2 * x || 4 * x < y",
"y < 2 * x",
"y",
"2 * x",
"2",
"x",
"4 * x < y",
"4 * x",
"4",
"x",
"y",
"{\n\t\t\tans = \"No\";\n\t\t}",
"ans = \"No\"",
"ans",
"\"No\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tString ans = \"Yes\";\n\n\t\tif (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tString ans = \"Yes\";\n\n\t\tif (y % 2 != 0) {\n\t\t\tans = \"No\";\n\t\t} else if (y < 2 * x || 4 * x < y) {\n\t\t\tans = \"No\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String ans = "Yes";
if (y % 2 != 0) {
ans = "No";
} else if (y < 2 * x || 4 * x < y) {
ans = "No";
}
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,
2,
17,
13,
41,
13,
2,
17,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
17,
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
],
[
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
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
32,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
32,
53
],
[
53,
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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int numAnimals = sc.nextInt();\n int numFeet = sc.nextInt();\n\n int maxFeet = 4 * numAnimals;\n int minFeet = 2 * numAnimals;\n\n if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int numAnimals = sc.nextInt();\n int numFeet = sc.nextInt();\n\n int maxFeet = 4 * numAnimals;\n int minFeet = 2 * numAnimals;\n\n if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int numAnimals = sc.nextInt();\n int numFeet = sc.nextInt();\n\n int maxFeet = 4 * numAnimals;\n int minFeet = 2 * numAnimals;\n\n if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int numAnimals = sc.nextInt();\n int numFeet = sc.nextInt();\n\n int maxFeet = 4 * numAnimals;\n int minFeet = 2 * numAnimals;\n\n if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int numAnimals = sc.nextInt();",
"numAnimals",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int numFeet = sc.nextInt();",
"numFeet",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int maxFeet = 4 * numAnimals;",
"maxFeet",
"4 * numAnimals",
"4",
"numAnimals",
"int minFeet = 2 * numAnimals;",
"minFeet",
"2 * numAnimals",
"2",
"numAnimals",
"if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0",
"minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0",
"minFeet <= numFeet",
"minFeet",
"numFeet",
"numFeet <= maxFeet",
"numFeet",
"maxFeet",
"numFeet % 2 == 0",
"numFeet % 2",
"numFeet",
"2",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int numAnimals = sc.nextInt();\n int numFeet = sc.nextInt();\n\n int maxFeet = 4 * numAnimals;\n int minFeet = 2 * numAnimals;\n\n if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int numAnimals = sc.nextInt();\n int numFeet = sc.nextInt();\n\n int maxFeet = 4 * numAnimals;\n int minFeet = 2 * numAnimals;\n\n if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int numAnimals = sc.nextInt();
int numFeet = sc.nextInt();
int maxFeet = 4 * numAnimals;
int minFeet = 2 * numAnimals;
if(minFeet <= numFeet && numFeet <= maxFeet && numFeet % 2 == 0){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
} |
[
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,
14,
2,
2,
2,
13,
2,
17,
13,
2,
2,
17,
13,
13,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
29,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
2,
17,
2,
13,
13,
13,
30,
4,
18,
13,
17,
29,
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
],
[
132,
17
],
[
132,
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
],
[
132,
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
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
55,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
104,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
115,
120
],
[
55,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
53,
125
],
[
125,
126
],
[
53,
127
],
[
127,
128
],
[
53,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"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 CraneAndTurtle solver = new CraneAndTurtle();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CraneAndTurtle {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\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 CraneAndTurtle solver = new CraneAndTurtle();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CraneAndTurtle {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\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 CraneAndTurtle solver = new CraneAndTurtle();\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 CraneAndTurtle solver = new CraneAndTurtle();\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)",
"CraneAndTurtle solver = new CraneAndTurtle();",
"solver",
"new CraneAndTurtle()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class CraneAndTurtle {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\n\");\n }\n\n }",
"CraneAndTurtle",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\n\");\n }",
"solve",
"{\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\n\");\n }",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }",
"y < 2 * x || 4 * x < y || y % 2 == 1",
"y < 2 * x || 4 * x < y || y % 2 == 1",
"y < 2 * x",
"y",
"2 * x",
"2",
"x",
"4 * x < y",
"4 * x",
"4",
"x",
"y",
"y % 2 == 1",
"y % 2",
"y",
"2",
"1",
"{\n out.append(\"No\\n\");\n return;\n }",
"out.append(\"No\\n\")",
"out.append",
"out",
"\"No\\n\"",
"return;",
"for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }",
"{\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }",
"if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }",
"(2 * i + 4 * (x - i)) == y",
"(2 * i + 4 * (x - i))",
"2 * i",
"2",
"i",
"4 * (x - i)",
"4",
"(x - i)",
"x",
"i",
"y",
"{\n out.append(\"Yes\\n\");\n return;\n }",
"out.append(\"Yes\\n\")",
"out.append",
"out",
"\"Yes\\n\"",
"return;",
"out.append(\"No\\n\")",
"out.append",
"out",
"\"No\\n\"",
"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 CraneAndTurtle solver = new CraneAndTurtle();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CraneAndTurtle {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\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 CraneAndTurtle solver = new CraneAndTurtle();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CraneAndTurtle {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int x = in.nextInt();\n int y = in.nextInt();\n\n if (y < 2 * x || 4 * x < y || y % 2 == 1) {\n out.append(\"No\\n\");\n return;\n }\n\n for (int i = 0; i <= x; i++) {\n if ((2 * i + 4 * (x - i)) == y) {\n out.append(\"Yes\\n\");\n return;\n }\n\n }\n out.append(\"No\\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);
CraneAndTurtle solver = new CraneAndTurtle();
solver.solve(1, in, out);
out.close();
}
static class CraneAndTurtle {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int x = in.nextInt();
int y = in.nextInt();
if (y < 2 * x || 4 * x < y || y % 2 == 1) {
out.append("No\n");
return;
}
for (int i = 0; i <= x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
out.append("Yes\n");
return;
}
}
out.append("No\n");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
2,
2,
2,
13,
17,
17,
2,
2,
17,
13,
13,
2,
13,
2,
17,
13,
17,
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
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
27,
45
],
[
27,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" );\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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" );\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" );\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" );\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\"",
"y%2==0 && 2*x<=y && y<=4*x",
"y%2==0 && 2*x<=y && y<=4*x",
"y%2==0",
"y%2",
"y",
"2",
"0",
"2*x<=y",
"2*x",
"2",
"x",
"y",
"y<=4*x",
"y",
"4*x",
"4",
"x",
"\"Yes\"",
"\"No\"",
"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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" );\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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tSystem.out.println(y%2==0 && 2*x<=y && y<=4*x ? \"Yes\" : \"No\" );\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println(y%2==0 && 2*x<=y && y<=4*x ? "Yes" : "No" );
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
30,
4,
13,
17,
29,
14,
2,
2,
13,
17,
13,
30,
4,
13,
17,
29,
14,
2,
2,
13,
17,
13,
30,
4,
13,
17,
29,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
2,
13,
17,
17,
2,
13,
13,
30,
0,
13,
17,
3,
4,
13,
8,
13,
17,
17,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
8,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
75,
83
],
[
83,
84
],
[
83,
85
],
[
74,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
8,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
6,
97
],
[
97,
98
],
[
111,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
99,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tsc.close();\n\t\tif(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tboolean ok = false;\n\t\tfor(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprtln(ok ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tsc.close();\n\t\tif(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tboolean ok = false;\n\t\tfor(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprtln(ok ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tsc.close();\n\t\tif(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tboolean ok = false;\n\t\tfor(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprtln(ok ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tsc.close();\n\t\tif(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tboolean ok = false;\n\t\tfor(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprtln(ok ? \"Yes\" : \"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"if(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}",
"Y % 2 != 0",
"Y % 2",
"Y",
"2",
"0",
"{\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}",
"prtln(\"No\")",
"prtln",
"\"No\"",
"return;",
"if(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}",
"X * 4 == Y",
"X * 4",
"X",
"4",
"Y",
"{\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}",
"prtln(\"Yes\")",
"prtln",
"\"Yes\"",
"return;",
"if(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}",
"X * 2 == Y",
"X * 2",
"X",
"2",
"Y",
"{\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}",
"prtln(\"Yes\")",
"prtln",
"\"Yes\"",
"return;",
"boolean ok = false;",
"ok",
"false",
"for(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= X",
"i",
"X",
"i++",
"i++",
"i",
"{\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}",
"(Y - (i * 4)) / 2 == (X - i)",
"(Y - (i * 4)) / 2",
"(Y - (i * 4))",
"Y",
"(i * 4)",
"i",
"4",
"2",
"(X - i)",
"X",
"i",
"{\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}",
"ok = true",
"ok",
"true",
"break;",
"prtln(ok ? \"Yes\" : \"No\")",
"prtln",
"ok ? \"Yes\" : \"No\"",
"ok",
"\"Yes\"",
"\"No\"",
"final String[] args",
"args",
"public static <T> void prtln(T t) { System.out.println(t); }",
"prtln",
"{ System.out.println(t); }",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"T t",
"t",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tsc.close();\n\t\tif(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tboolean ok = false;\n\t\tfor(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprtln(ok ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tsc.close();\n\t\tif(Y % 2 != 0) {\n\t\t\tprtln(\"No\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 4 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tif(X * 2 == Y) {\n\t\t\tprtln(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tboolean ok = false;\n\t\tfor(int i = 1; i <= X; i++) {\n\t\t\t// System.out.println((Y - (i * 4)) / 2 +\" == \"+ (X - i));\n\t\t\tif((Y - (i * 4)) / 2 == (X - i)) {\n\t\t\t\tok = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprtln(ok ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
sc.close();
if(Y % 2 != 0) {
prtln("No");
return;
}
if(X * 4 == Y) {
prtln("Yes");
return;
}
if(X * 2 == Y) {
prtln("Yes");
return;
}
boolean ok = false;
for(int i = 1; i <= X; i++) {
// System.out.println((Y - (i * 4)) / 2 +" == "+ (X - i));
if((Y - (i * 4)) / 2 == (X - i)) {
ok = true;
break;
}
}
prtln(ok ? "Yes" : "No");
}
public static <T> void prtln(T t) { System.out.println(t); }
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
0,
13,
17,
3,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
8,
58
],
[
58,
59
],
[
59,
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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tfor(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(s);\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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tfor(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(s);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tfor(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(s);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tfor(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(s);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = \"No\";",
"s",
"\"No\"",
"for(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=X",
"i",
"X",
"i++",
"i++",
"i",
"{\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int j = X-i;",
"j",
"X-i",
"X",
"i",
"if(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}",
"i*2 + j*4 == Y",
"i*2 + j*4",
"i*2",
"i",
"2",
"j*4",
"j",
"4",
"Y",
"{\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}",
"s = \"Yes\"",
"s",
"\"Yes\"",
"break;",
"sc.close()",
"sc.close",
"sc",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tfor(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(s);\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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tfor(int i=0; i<=X; i++) {\n\t\t\tint j = X-i;\n\t\t\tif(i*2 + j*4 == Y) {\n\t\t\t\ts = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(s);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
String s = "No";
for(int i=0; i<=X; i++) {
int j = X-i;
if(i*2 + j*4 == Y) {
s = "Yes";
break;
}
}
sc.close();
System.out.println(s);
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
2,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
88,
9
],
[
9,
10
],
[
9,
11
],
[
88,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
88,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
88,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
88,
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
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
65,
72
],
[
29,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
88,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tfor(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tfor(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tfor(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"doIt",
"{\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tfor(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= X",
"i",
"X",
"i++",
"i++",
"i",
"{\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"if(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}",
"Y == i * 2 + (X - i) * 4",
"Y",
"i * 2 + (X - i) * 4",
"i * 2",
"i",
"2",
"(X - i) * 4",
"(X - i)",
"X",
"i",
"4",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tfor(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tfor(int i = 0; i <= X; i++) {\n\t\t\tif(Y == i * 2 + (X - i) * 4) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\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 X = sc.nextInt();
int Y = sc.nextInt();
for(int i = 0; i <= X; i++) {
if(Y == i * 2 + (X - i) * 4) {
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
public static void main(String[] args) {
new Main().doIt();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
54,
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;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String ans = \"No\";\n for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String ans = \"No\";\n for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String ans = \"No\";\n for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String ans = \"No\";\n for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"No\";",
"ans",
"\"No\"",
"for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<=x",
"a",
"x",
"a++",
"a++",
"a",
"{\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }",
"{\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }",
"int b = x-a;",
"b",
"x-a",
"x",
"a",
"if(a*2+b*4==y){\n ans=\"Yes\";\n }",
"a*2+b*4==y",
"a*2+b*4",
"a*2",
"a",
"2",
"b*4",
"b",
"4",
"y",
"{\n ans=\"Yes\";\n }",
"ans=\"Yes\"",
"ans",
"\"Yes\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String ans = \"No\";\n for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n String ans = \"No\";\n for(int a=0;a<=x;a++){\n int b = x-a;\n if(a*2+b*4==y){\n ans=\"Yes\";\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String ans = "No";
for(int a=0;a<=x;a++){
int b = x-a;
if(a*2+b*4==y){
ans="Yes";
}
}
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
2,
13,
17,
17,
17,
30,
41,
13,
2,
2,
13,
2,
13,
17,
17,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
36,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
]
| [
"import java.util.*;\npublic class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint k=in.nextInt();\n\t\tfor(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\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\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint k=in.nextInt();\n\t\tfor(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint k=in.nextInt();\n\t\tfor(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint k=in.nextInt();\n\t\tfor(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int k=in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"(k-(i*2))%4==0",
"(k-(i*2))%4",
"(k-(i*2))",
"k",
"(i*2)",
"i",
"2",
"4",
"0",
"{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"int b=(k-(i*2))/4;",
"b",
"(k-(i*2))/4",
"(k-(i*2))",
"k",
"(i*2)",
"i",
"2",
"4",
"if((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"(b+i)==n",
"(b+i)",
"b",
"i",
"n",
"{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint k=in.nextInt();\n\t\tfor(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main{\n \n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint k=in.nextInt();\n\t\tfor(int i=0;i<=n;i++)\n\t\t{\n\t\t\tif((k-(i*2))%4==0)\n\t\t\t{\n\t\t\t\tint b=(k-(i*2))/4;\n\t\t\t\tif((b+i)==n)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int n=in.nextInt();
int k=in.nextInt();
for(int i=0;i<=n;i++)
{
if((k-(i*2))%4==0)
{
int b=(k-(i*2))/4;
if((b+i)==n)
{
System.out.println("Yes");
System.exit(0);
}
}
}
System.out.println("No");
}
}
|
[
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,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
17,
13,
2,
17,
13,
13,
30,
0,
13,
17,
3,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13
]
| [
[
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
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
17,
45
],
[
45,
46
],
[
45,
47
],
[
17,
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
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
17,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
15,
95
],
[
95,
96
],
[
13,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
97,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
97,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
112,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
122,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
111,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
97,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
97,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
97,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
97,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
170,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
166,
183
],
[
183,
184
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\nclass Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\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 static void main(String[] args) {\n FastReader in = new FastReader();\n String[] s =in.nextLine().split(\" \");\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n boolean ans = false;\n for(int i=0;i<=x;i++){\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }\n if(ans)\n System.out.println(\"Yes\");\n else System.out.println(\"No\");\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",
"class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\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 static void main(String[] args) {\n FastReader in = new FastReader();\n String[] s =in.nextLine().split(\" \");\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n boolean ans = false;\n for(int i=0;i<=x;i++){\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }\n if(ans)\n System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader in = new FastReader();\n String[] s =in.nextLine().split(\" \");\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n boolean ans = false;\n for(int i=0;i<=x;i++){\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }\n if(ans)\n System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"main",
"{\n FastReader in = new FastReader();\n String[] s =in.nextLine().split(\" \");\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n boolean ans = false;\n for(int i=0;i<=x;i++){\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }\n if(ans)\n System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"String[] s =in.nextLine().split(\" \");",
"s",
"in.nextLine().split(\" \")",
"in.nextLine().split",
"in.nextLine()",
"in.nextLine",
"in",
"\" \"",
"int x = Integer.parseInt(s[0]);",
"x",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"int y = Integer.parseInt(s[1]);",
"y",
"Integer.parseInt(s[1])",
"Integer.parseInt",
"Integer",
"s[1]",
"s",
"1",
"boolean ans = false;",
"ans",
"false",
"for(int i=0;i<=x;i++){\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }",
"{\n int j = x-i;\n if(2*i+4*j==y){\n ans = true;\n break;\n }\n }",
"int j = x-i;",
"j",
"x-i",
"x",
"i",
"if(2*i+4*j==y){\n ans = true;\n break;\n }",
"2*i+4*j==y",
"2*i+4*j",
"2*i",
"2",
"i",
"4*j",
"4",
"j",
"y",
"{\n ans = true;\n break;\n }",
"ans = true",
"ans",
"true",
"break;",
"if(ans)\n System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"ans",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\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"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
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 in = new FastReader();
String[] s =in.nextLine().split(" ");
int x = Integer.parseInt(s[0]);
int y = Integer.parseInt(s[1]);
boolean ans = false;
for(int i=0;i<=x;i++){
int j = x-i;
if(2*i+4*j==y){
ans = true;
break;
}
}
if(ans)
System.out.println("Yes");
else System.out.println("No");
}
} |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
2,
17,
13,
2,
17,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
44,
54
],
[
54,
55
],
[
55,
56
],
[
44,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
59,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n String ans = \"No\";\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }\n\n System.out.println(ans);\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 x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n String ans = \"No\";\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }\n\n System.out.println(ans);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n String ans = \"No\";\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }\n\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n String ans = \"No\";\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }\n\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = Integer.parseInt(sc.next());",
"x",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int y = Integer.parseInt(sc.next());",
"y",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String ans = \"No\";",
"ans",
"\"No\"",
"for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }",
"{\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }",
"for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= (x - i)",
"j",
"(x - i)",
"x",
"i",
"j++",
"j++",
"j",
"{\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }",
"{\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }",
"if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }",
"((i + j) == x) && (((2 * i) + (4 * j)) == y)",
"((i + j) == x)",
"(i + j)",
"i",
"j",
"x",
"(((2 * i) + (4 * j)) == y)",
"((2 * i) + (4 * j))",
"(2 * i)",
"2",
"i",
"(4 * j)",
"4",
"j",
"y",
"{\n ans = \"Yes\";\n break;\n }",
"ans = \"Yes\"",
"ans",
"\"Yes\"",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n String ans = \"No\";\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }\n\n System.out.println(ans);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = Integer.parseInt(sc.next());\n int y = Integer.parseInt(sc.next());\n String ans = \"No\";\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= (x - i); j++) {\n if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {\n ans = \"Yes\";\n break;\n }\n\n }\n }\n\n System.out.println(ans);\n }\n\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = Integer.parseInt(sc.next());
int y = Integer.parseInt(sc.next());
String ans = "No";
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= (x - i); j++) {
if (((i + j) == x) && (((2 * i) + (4 * j)) == y)) {
ans = "Yes";
break;
}
}
}
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,
14,
2,
2,
2,
2,
17,
13,
13,
2,
13,
2,
17,
13,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
22,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
6,
57
],
[
57,
58
]
]
| [
"//package test;\n\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tif (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tif (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tif (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tif (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"2 * X <= Y && Y <= 4 * X && Y % 2 == 0",
"2 * X <= Y && Y <= 4 * X && Y % 2 == 0",
"2 * X <= Y",
"2 * X",
"2",
"X",
"Y",
"Y <= 4 * X",
"Y",
"4 * X",
"4",
"X",
"Y % 2 == 0",
"Y % 2",
"Y",
"2",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args"
]
| //package test;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
if (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
13,
30,
41,
13,
2,
2,
13,
17,
2,
13,
17,
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
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
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
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
54,
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
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }\n System.out.println(\"No\");\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 y = sc.nextInt();\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }",
"{\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }",
"for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= x",
"j",
"x",
"j++",
"j++",
"j",
"{\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }",
"{\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }",
"if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }",
"i + j == x",
"i + j",
"i",
"j",
"x",
"{\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }",
"int tmp = (i * 2) + (j * 4);",
"tmp",
"(i * 2) + (j * 4)",
"(i * 2)",
"i",
"2",
"(j * 4)",
"j",
"4",
"if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }",
"tmp == y",
"tmp",
"y",
"{\n System.out.println(\"Yes\");\n return;\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }\n System.out.println(\"No\");\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 y = sc.nextInt();\n for (int i = 0; i <= x; i++) {\n for (int j = 0; j <= x; j++) {\n if(i + j == x) {\n int tmp = (i * 2) + (j * 4);\n if(tmp == y) {\n System.out.println(\"Yes\");\n return;\n }\n }\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if(i + j == x) {
int tmp = (i * 2) + (j * 4);
if(tmp == y) {
System.out.println("Yes");
return;
}
}
}
}
System.out.println("No");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
41,
13,
2,
17,
17,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
2,
2,
2,
2,
13,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
13,
13,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
4,
18,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
20,
29,
2,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
11,
1,
41,
13,
2,
17,
13,
2,
13,
17,
1,
0,
13,
13,
30,
0,
18,
13,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
30,
41,
13,
2,
17,
13,
41,
13,
2,
17,
13,
14,
2,
2,
13,
13,
2,
13,
13,
4,
18,
13,
17,
4,
18,
13,
17,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
30,
4,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
20,
17,
41,
13,
17,
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
],
[
407,
17
],
[
407,
18
],
[
18,
19
],
[
18,
20
],
[
407,
21
],
[
21,
22
],
[
21,
23
],
[
407,
24
],
[
24,
25
],
[
407,
26
],
[
26,
27
],
[
26,
28
],
[
407,
29
],
[
29,
30
],
[
29,
31
],
[
407,
33
],
[
33,
34
],
[
33,
35
],
[
407,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
407,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
43,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
407,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
407,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
407,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
90,
98
],
[
86,
99
],
[
99,
100
],
[
86,
101
],
[
101,
102
],
[
407,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
103,
112
],
[
112,
113
],
[
103,
114
],
[
114,
115
],
[
407,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
120,
130
],
[
116,
131
],
[
131,
132
],
[
116,
133
],
[
133,
134
],
[
407,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
139,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
135,
148
],
[
148,
149
],
[
407,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
167,
168
],
[
167,
169
],
[
160,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
172,
174
],
[
160,
175
],
[
175,
176
],
[
175,
177
],
[
152,
178
],
[
178,
179
],
[
150,
180
],
[
180,
181
],
[
150,
182
],
[
182,
183
],
[
407,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
186,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
199,
204
],
[
184,
205
],
[
205,
206
],
[
407,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
209,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
215,
223
],
[
223,
224
],
[
224,
225
],
[
215,
226
],
[
227,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
234,
241
],
[
241,
242
],
[
241,
243
],
[
234,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
234,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
407,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
256,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
263,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
263,
273
],
[
273,
274
],
[
274,
275
],
[
263,
276
],
[
277,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
278,
284
],
[
284,
285
],
[
256,
286
],
[
286,
287
],
[
254,
288
],
[
288,
289
],
[
407,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
297,
298
],
[
292,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
300,
303
],
[
303,
304
],
[
303,
305
],
[
290,
306
],
[
306,
307
],
[
290,
308
],
[
308,
309
],
[
407,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
317,
318
],
[
313,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
320,
323
],
[
323,
324
],
[
323,
325
],
[
310,
326
],
[
326,
327
],
[
310,
328
],
[
328,
329
],
[
407,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
332,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
332,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
342,
346
],
[
341,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
341,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
354,
356
],
[
351,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
351,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
363,
367
],
[
367,
368
],
[
367,
369
],
[
362,
370
],
[
370,
371
],
[
371,
372
],
[
370,
373
],
[
362,
374
],
[
374,
375
],
[
375,
376
],
[
374,
377
],
[
407,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
380,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
385,
388
],
[
384,
389
],
[
389,
390
],
[
390,
391
],
[
380,
392
],
[
392,
393
],
[
393,
394
],
[
378,
395
],
[
395,
396
],
[
407,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
399,
401
],
[
397,
403
],
[
403,
404
],
[
403,
405
],
[
0,
406
],
[
406,
407
],
[
406,
408
]
]
| [
"import javax.swing.plaf.metal.MetalInternalFrameTitlePane;\nimport java.math.BigInteger;\nimport java.util.*;\nimport java.io.*;\nimport java.text.*;\n\npublic class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n static long mod = (long) 1000000007;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static int modpow(int x, int y) {\n int res = 1;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }\n\n// static class pair {\n// String a;\n// int b;\n//\n// pair(String x, int y) {\n// a = x;\n// b = y;\n// }\n// }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s) % mod;\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n\n static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");\n\n static class trie {\n trie a[] = new trie[26];\n int cnt = 0;\n }\n\n static int maxn = (int) 3e5 + 5;\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n else\n return gcd(b, a % b);\n }\n\n static void solve() {\n int x = ni();\n int y = ni();\n if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n}\n",
"import javax.swing.plaf.metal.MetalInternalFrameTitlePane;",
"MetalInternalFrameTitlePane",
"javax.swing.plaf.metal",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.text.*;",
"text.*",
"java",
"public class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n static long mod = (long) 1000000007;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static int modpow(int x, int y) {\n int res = 1;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }\n\n// static class pair {\n// String a;\n// int b;\n//\n// pair(String x, int y) {\n// a = x;\n// b = y;\n// }\n// }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s) % mod;\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n\n static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");\n\n static class trie {\n trie a[] = new trie[26];\n int cnt = 0;\n }\n\n static int maxn = (int) 3e5 + 5;\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n else\n return gcd(b, a % b);\n }\n\n static void solve() {\n int x = ni();\n int y = ni();\n if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n}",
"Main",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);",
"br",
"new BufferedReader(new InputStreamReader(System.in), 32768)",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static StringTokenizer t;",
"t",
"static long mod = (long) 1000000007;",
"mod",
"(long) 1000000007",
"static boolean v[] = new boolean[1000005];",
"v",
"new boolean[1000005]",
"1000005",
"static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");",
"df",
"new DecimalFormat(\"0.000000000000000000000\")",
"static int maxn = (int) 3e5 + 5;",
"maxn",
"(int) 3e5 + 5",
"(int) 3e5",
"5",
"static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }",
"sn",
"{\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }",
"while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"t == null || !t.hasMoreTokens()",
"t == null",
"t",
"null",
"!t.hasMoreTokens()",
"t.hasMoreTokens()",
"t.hasMoreTokens",
"t",
"{\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }",
"catch (IOException e) {\n throw new RuntimeException();\n }",
"IOException e",
"{\n throw new RuntimeException();\n }",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n t = new StringTokenizer(br.readLine());\n }",
"t = new StringTokenizer(br.readLine())",
"t",
"new StringTokenizer(br.readLine())",
"return t.nextToken();",
"t.nextToken()",
"t.nextToken",
"t",
"static int ni() {\n return Integer.parseInt(sn());\n }",
"ni",
"{\n return Integer.parseInt(sn());\n }",
"return Integer.parseInt(sn());",
"Integer.parseInt(sn())",
"Integer.parseInt",
"Integer",
"sn()",
"sn",
"static long nlo() {\n return Long.parseLong(sn());\n }",
"nlo",
"{\n return Long.parseLong(sn());\n }",
"return Long.parseLong(sn());",
"Long.parseLong(sn())",
"Long.parseLong",
"Long",
"sn()",
"sn",
"static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }",
"pro",
"{\n return (a % mod * b % mod) % mod;\n }",
"return (a % mod * b % mod) % mod;",
"(a % mod * b % mod) % mod",
"(a % mod * b % mod)",
"a % mod * b",
"a % mod",
"a",
"mod",
"b",
"mod",
"mod",
"long a",
"a",
"long b",
"b",
"static long add(long a, long b) {\n return (a + b) % mod;\n }",
"add",
"{\n return (a + b) % mod;\n }",
"return (a + b) % mod;",
"(a + b) % mod",
"(a + b)",
"a",
"b",
"mod",
"long a",
"a",
"long b",
"b",
"static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }",
"sub",
"{\n return ((a % mod - b % mod) + mod) % mod;\n }",
"return ((a % mod - b % mod) + mod) % mod;",
"((a % mod - b % mod) + mod) % mod",
"((a % mod - b % mod) + mod)",
"(a % mod - b % mod)",
"a % mod",
"a",
"mod",
"b % mod",
"b",
"mod",
"mod",
"mod",
"long a",
"a",
"long b",
"b",
"static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }",
"pow",
"{\n return (int) (Math.log10(n) / Math.log10(2));\n }",
"return (int) (Math.log10(n) / Math.log10(2));",
"(int) (Math.log10(n) / Math.log10(2))",
"Math.log10(n)",
"Math.log10",
"Math",
"n",
"Math.log10(2)",
"Math.log10",
"Math",
"2",
"int n",
"n",
"static int modpow(int x, int y) {\n int res = 1;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }",
"modpow",
"{\n int res = 1;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }",
"int res = 1;",
"res",
"1",
"while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }",
"y > 0",
"y",
"0",
"{\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }",
"if (y % 2 != 0)\n res *= x;",
"y % 2 != 0",
"y % 2",
"y",
"2",
"0",
"res *= x",
"res",
"x",
"x = x * x",
"x",
"x * x",
"x",
"x",
"y /= 2",
"y",
"2",
"return res;",
"res",
"int x",
"x",
"int y",
"y",
"static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s) % mod;\n }",
"modInverse",
"{\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s) % mod;\n }",
"BigInteger n1 = new BigInteger(Long.toString(n));",
"n1",
"new BigInteger(Long.toString(n))",
"String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();",
"s",
"(n1.modInverse(new BigInteger(Long.toString(mod)))).toString()",
"(n1.modInverse(new BigInteger(Long.toString(mod)))).toString",
"(n1.modInverse(new BigInteger(Long.toString(mod))))",
"n1.modInverse",
"n1",
"new BigInteger(Long.toString(mod))",
"return Long.parseLong(s) % mod;",
"Long.parseLong(s) % mod",
"Long.parseLong(s)",
"Long.parseLong",
"Long",
"s",
"mod",
"long n",
"n",
"static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }",
"seive",
"{\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }",
"v[1] = true",
"v[1]",
"v",
"1",
"true",
"for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i < 1000005",
"i",
"1000005",
"i++",
"i++",
"i",
"{\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }",
"{\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }",
"if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }",
"!v[i]",
"v[i]",
"v",
"i",
"{\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }",
"for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;",
"int j = 2 * i;",
"int j = 2 * i;",
"j",
"2 * i",
"2",
"i",
"j < 1000005",
"j",
"1000005",
"j += i",
"j += i",
"j",
"i",
"v[j] = true;",
"v[j] = true",
"v[j]",
"v",
"j",
"true",
"static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"isprime",
"{\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"if (n == 1)\n return false;",
"n == 1",
"n",
"1",
"return false;",
"false",
"for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i * i <= n",
"i * i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\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",
"long n",
"n",
"static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }",
"gcd",
"{\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }",
"if (b == 0)\n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static long gcd(long a, long b) {\n if (b == 0)\n return a;\n else\n return gcd(b, a % b);\n }",
"gcd",
"{\n if (b == 0)\n return a;\n else\n return gcd(b, a % b);\n }",
"if (b == 0)\n return a;\n else\n return gcd(b, a % b);",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static void solve() {\n int x = ni();\n int y = ni();\n if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }",
"solve",
"{\n int x = ni();\n int y = ni();\n if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }",
"int x = ni();",
"x",
"ni()",
"ni",
"int y = ni();",
"y",
"ni()",
"ni",
"if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"y % 2 == 1",
"y % 2",
"y",
"2",
"1",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"{\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"int l = 2 * x;",
"l",
"2 * x",
"2",
"x",
"int r = 4 * x;",
"r",
"4 * x",
"4",
"x",
"if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");",
"y >= l && y <= r",
"y >= l",
"y",
"l",
"y <= r",
"y",
"r",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }",
"main",
"{\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }",
"int t = 1;",
"t",
"1",
"while (t-- > 0) {\n solve();\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n solve();\n }",
"solve()",
"solve",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"static class trie {\n trie a[] = new trie[26];\n int cnt = 0;\n }",
"trie",
"trie a[] = new trie[26];",
"a",
"new trie[26]",
"26",
"int cnt = 0;",
"cnt",
"0",
"public class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n static long mod = (long) 1000000007;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static int modpow(int x, int y) {\n int res = 1;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }\n\n// static class pair {\n// String a;\n// int b;\n//\n// pair(String x, int y) {\n// a = x;\n// b = y;\n// }\n// }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s) % mod;\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n\n static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");\n\n static class trie {\n trie a[] = new trie[26];\n int cnt = 0;\n }\n\n static int maxn = (int) 3e5 + 5;\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n else\n return gcd(b, a % b);\n }\n\n static void solve() {\n int x = ni();\n int y = ni();\n if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n}",
"public class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n static long mod = (long) 1000000007;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static int modpow(int x, int y) {\n int res = 1;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }\n\n// static class pair {\n// String a;\n// int b;\n//\n// pair(String x, int y) {\n// a = x;\n// b = y;\n// }\n// }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s) % mod;\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n\n static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");\n\n static class trie {\n trie a[] = new trie[26];\n int cnt = 0;\n }\n\n static int maxn = (int) 3e5 + 5;\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n else\n return gcd(b, a % b);\n }\n\n static void solve() {\n int x = ni();\n int y = ni();\n if (y % 2 == 1)\n out.println(\"No\");\n else {\n int l = 2 * x;\n int r = 4 * x;\n if (y >= l && y <= r)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n}",
"Main"
]
| import javax.swing.plaf.metal.MetalInternalFrameTitlePane;
import java.math.BigInteger;
import java.util.*;
import java.io.*;
import java.text.*;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);
static PrintWriter out = new PrintWriter(System.out);
static StringTokenizer t;
static String sn() {
while (t == null || !t.hasMoreTokens()) {
try {
t = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException();
}
}
return t.nextToken();
}
static int ni() {
return Integer.parseInt(sn());
}
static long nlo() {
return Long.parseLong(sn());
}
static long mod = (long) 1000000007;
static long pro(long a, long b) {
return (a % mod * b % mod) % mod;
}
static long add(long a, long b) {
return (a + b) % mod;
}
static long sub(long a, long b) {
return ((a % mod - b % mod) + mod) % mod;
}
static int pow(int n) {
return (int) (Math.log10(n) / Math.log10(2));
}
static int modpow(int x, int y) {
int res = 1;
// x %= mod;
while (y > 0) {
if (y % 2 != 0)
res *= x;
x = x * x;
y /= 2;
}
return res;
}
// static class pair {
// String a;
// int b;
//
// pair(String x, int y) {
// a = x;
// b = y;
// }
// }
static long modInverse(long n) {
BigInteger n1 = new BigInteger(Long.toString(n));
String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();
return Long.parseLong(s) % mod;
}
static boolean v[] = new boolean[1000005];
static void seive() {
v[1] = true;
for (int i = 2; i < 1000005; i++) {
if (!v[i]) {
for (int j = 2 * i; j < 1000005; j += i)
v[j] = true;
}
}
}
static boolean isprime(long n) {
if (n == 1)
return false;
for (int i = 2; i * i <= n; i++) {
if (n % i == 0)
return false;
}
return true;
}
static int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
static DecimalFormat df = new DecimalFormat("0.000000000000000000000");
static class trie {
trie a[] = new trie[26];
int cnt = 0;
}
static int maxn = (int) 3e5 + 5;
static long gcd(long a, long b) {
if (b == 0)
return a;
else
return gcd(b, a % b);
}
static void solve() {
int x = ni();
int y = ni();
if (y % 2 == 1)
out.println("No");
else {
int l = 2 * x;
int r = 4 * x;
if (y >= l && y <= r)
out.println("Yes");
else
out.println("No");
}
}
public static void main(String args[]) {
int t = 1;
while (t-- > 0) {
solve();
}
out.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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
2,
2,
13,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
42,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int x,y,asi;\n x=scan.nextInt();\n y=scan.nextInt();\n \n for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int x,y,asi;\n x=scan.nextInt();\n y=scan.nextInt();\n \n for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int x,y,asi;\n x=scan.nextInt();\n y=scan.nextInt();\n \n for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int x,y,asi;\n x=scan.nextInt();\n y=scan.nextInt();\n \n for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x",
"x",
"y",
"y",
"asi;",
"asi",
"x=scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y=scan.nextInt()",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"int c=0;",
"int c=0;",
"c",
"0",
"c<=x",
"c",
"x",
"c++",
"c++",
"c",
"{\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"{\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"c*2+(x-c)*4==y",
"c*2+(x-c)*4",
"c*2",
"c",
"2",
"(x-c)*4",
"(x-c)",
"x",
"c",
"4",
"y",
"{\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int x,y,asi;\n x=scan.nextInt();\n y=scan.nextInt();\n \n for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n int x,y,asi;\n x=scan.nextInt();\n y=scan.nextInt();\n \n for(int c=0; c<=x; c++){\n if(c*2+(x-c)*4==y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int x,y,asi;
x=scan.nextInt();
y=scan.nextInt();
for(int c=0; c<=x; c++){
if(c*2+(x-c)*4==y){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
41,
13,
2,
2,
17,
13,
2,
17,
13,
14,
2,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
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
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
42,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.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 Y = sc.nextInt();\n String ans = \"No\";\n if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }\n System.out.println(ans);\n } \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"No\";\n if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }\n System.out.println(ans);\n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"No\";\n if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"No\";\n if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }\n System.out.println(ans);\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"No\";",
"ans",
"\"No\"",
"if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }",
"X < 51",
"X",
"51",
"{\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }",
"for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= X",
"i",
"X",
"i++",
"i++",
"i",
"{\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }",
"{\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }",
"int j = X - i;",
"j",
"X - i",
"X",
"i",
"int leg = 2 * i + 4 * j;",
"leg",
"2 * i + 4 * j",
"2 * i",
"2",
"i",
"4 * j",
"4",
"j",
"if(leg == Y) ans = \"Yes\";",
"leg == Y",
"leg",
"Y",
"ans = \"Yes\"",
"ans",
"\"Yes\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"No\";\n if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }\n System.out.println(ans);\n } \n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"No\";\n if(X < 51){\n for(int i = 0; i <= X; i++){\n int j = X - i;\n int leg = 2 * i + 4 * j;\n if(leg == Y) ans = \"Yes\";\n }\n }\n System.out.println(ans);\n } \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
String ans = "No";
if(X < 51){
for(int i = 0; i <= X; i++){
int j = X - i;
int leg = 2 * i + 4 * j;
if(leg == Y) ans = "Yes";
}
}
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,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
2,
13,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
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
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
8,
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//import java.util.Arrays;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tif(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tif(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tif(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tif(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = \"No\";",
"s",
"\"No\"",
"if(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"y % 2 == 0",
"y % 2",
"y",
"2",
"0",
"{\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"y /= 2",
"y",
"2",
"for(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"2 * i + (x - i) == y",
"2 * i + (x - i)",
"2 * i",
"2",
"i",
"(x - i)",
"x",
"i",
"y",
"{\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"s = \"Yes\"",
"s",
"\"Yes\"",
"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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tif(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\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 x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tString s = \"No\";\n\t\tif(y % 2 == 0){\n\t\t\ty /= 2;\n\t\t\tfor(int i=0; i<=x; i++){\n\t\t\t\tif(2 * i + (x - i) == y){\n\t\t\t\t\ts = \"Yes\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
//import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String s = "No";
if(y % 2 == 0){
y /= 2;
for(int i=0; i<=x; i++){
if(2 * i + (x - i) == y){
s = "Yes";
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,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
14,
2,
13,
2,
17,
13,
30,
0,
13,
17,
14,
2,
13,
2,
17,
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
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\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString res = \"Yes\";\n\n\t\tif(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tSystem.out.print(res);\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\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString res = \"Yes\";\n\n\t\tif(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tSystem.out.print(res);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString res = \"Yes\";\n\n\t\tif(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tSystem.out.print(res);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString res = \"Yes\";\n\n\t\tif(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tSystem.out.print(res);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String res = \"Yes\";",
"res",
"\"Yes\"",
"if(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}",
"Y%2 != 0",
"Y%2",
"Y",
"2",
"0",
"{\n\t\t\tres = \"No\";\n\t\t}",
"res = \"No\"",
"res",
"\"No\"",
"if(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}",
"Y < 2*X",
"Y",
"2*X",
"2",
"X",
"{\n\t\t\tres = \"No\";\n\t\t}",
"res = \"No\"",
"res",
"\"No\"",
"if(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}",
"Y > 4*X",
"Y",
"4*X",
"4",
"X",
"{\n\t\t\tres = \"No\";\n\t\t}",
"res = \"No\"",
"res",
"\"No\"",
"System.out.print(res)",
"System.out.print",
"System.out",
"System",
"System.out",
"res",
"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 X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString res = \"Yes\";\n\n\t\tif(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tSystem.out.print(res);\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\n\t\tint X = sc.nextInt();\n\t\tint Y = sc.nextInt();\n\t\tString res = \"Yes\";\n\n\t\tif(Y%2 != 0) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y < 2*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tif(Y > 4*X) {\n\t\t\tres = \"No\";\n\t\t}\n\n\t\tSystem.out.print(res);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
String res = "Yes";
if(Y%2 != 0) {
res = "No";
}
if(Y < 2*X) {
res = "No";
}
if(Y > 4*X) {
res = "No";
}
System.out.print(res);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
2,
17,
13,
2,
13,
2,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
25,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.util.*;\n\npublic class Main {\n \n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n String result = \"No\";\n if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n String result = \"No\";\n if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n String result = \"No\";\n if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }\n System.out.println(result);\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n String result = \"No\";\n if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String result = \"No\";",
"result",
"\"No\"",
"if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }",
"(y%2 == 0) && (y >= 2*x) && (y <= 4*x)",
"(y%2 == 0) && (y >= 2*x) && (y <= 4*x)",
"(y%2 == 0)",
"y%2",
"y",
"2",
"0",
"(y >= 2*x)",
"y",
"2*x",
"2",
"x",
"(y <= 4*x)",
"y",
"4*x",
"4",
"x",
"{\n result = \"Yes\";\n }",
"result = \"Yes\"",
"result",
"\"Yes\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n String result = \"No\";\n if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int y = sc.nextInt();\n \n String result = \"No\";\n if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String result = "No";
if ((y%2 == 0) && (y >= 2*x) && (y <= 4*x)) {
result = "Yes";
}
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,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
14,
2,
2,
2,
13,
17,
13,
2,
2,
2,
13,
2,
13,
17,
17,
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
42,
50
],
[
35,
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.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"Yes\";\n if(Y%2==1){\n ans = \"No\";\n }\n if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }\n System.out.println(ans);\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 X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"Yes\";\n if(Y%2==1){\n ans = \"No\";\n }\n if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"Yes\";\n if(Y%2==1){\n ans = \"No\";\n }\n if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"Yes\";\n if(Y%2==1){\n ans = \"No\";\n }\n if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"Yes\";",
"ans",
"\"Yes\"",
"if(Y%2==1){\n ans = \"No\";\n }",
"Y%2==1",
"Y%2",
"Y",
"2",
"1",
"{\n ans = \"No\";\n }",
"ans = \"No\"",
"ans",
"\"No\"",
"if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }",
"X*2>Y || (Y-X*2)/2>X",
"X*2>Y",
"X*2",
"X",
"2",
"Y",
"(Y-X*2)/2>X",
"(Y-X*2)/2",
"(Y-X*2)",
"Y",
"X*2",
"X",
"2",
"2",
"X",
"{\n ans = \"No\";\n }",
"ans = \"No\"",
"ans",
"\"No\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"Yes\";\n if(Y%2==1){\n ans = \"No\";\n }\n if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n String ans = \"Yes\";\n if(Y%2==1){\n ans = \"No\";\n }\n if(X*2>Y || (Y-X*2)/2>X){\n ans = \"No\";\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
String ans = "Yes";
if(Y%2==1){
ans = "No";
}
if(X*2>Y || (Y-X*2)/2>X){
ans = "No";
}
System.out.println(ans);
}
} |
[
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,
2,
2,
13,
17,
13,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
13,
13,
2,
2,
2,
17,
13,
2,
17,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
90,
17
],
[
90,
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
],
[
37,
39
],
[
36,
40
],
[
20,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
20,
49
],
[
49,
50
],
[
52,
51
],
[
59,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
49,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
49,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
18,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.text.*;\nimport java.math.*;\nimport java.util.regex.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint legs = sc.nextInt();\n\t\tint turtles = (legs/2) - n;\n\t\tint cranes = Math.abs(n-turtles);\n\t\tif(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.regex.*;",
"regex.*",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint legs = sc.nextInt();\n\t\tint turtles = (legs/2) - n;\n\t\tint cranes = Math.abs(n-turtles);\n\t\tif(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint legs = sc.nextInt();\n\t\tint turtles = (legs/2) - n;\n\t\tint cranes = Math.abs(n-turtles);\n\t\tif(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint legs = sc.nextInt();\n\t\tint turtles = (legs/2) - n;\n\t\tint cranes = Math.abs(n-turtles);\n\t\tif(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int legs = sc.nextInt();",
"legs",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int turtles = (legs/2) - n;",
"turtles",
"(legs/2) - n",
"(legs/2)",
"legs",
"2",
"n",
"int cranes = Math.abs(n-turtles);",
"cranes",
"Math.abs(n-turtles)",
"Math.abs",
"Math",
"n-turtles",
"n",
"turtles",
"if(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs",
"turtles+cranes==n",
"turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs",
"turtles>=0",
"turtles",
"0",
"cranes >=0",
"cranes",
"0",
"turtles+cranes==n",
"turtles+cranes",
"turtles",
"cranes",
"n",
"((2*cranes)+(4*turtles)) == legs",
"((2*cranes)+(4*turtles))",
"(2*cranes)",
"2",
"cranes",
"(4*turtles)",
"4",
"turtles",
"legs",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint legs = sc.nextInt();\n\t\tint turtles = (legs/2) - n;\n\t\tint cranes = Math.abs(n-turtles);\n\t\tif(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint legs = sc.nextInt();\n\t\tint turtles = (legs/2) - n;\n\t\tint cranes = Math.abs(n-turtles);\n\t\tif(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Main {
public static void main(String[] args) {
// code to read values
// code to call required method
// code to display the result
// System.out.println(Math.ceil(2.5));
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int legs = sc.nextInt();
int turtles = (legs/2) - n;
int cranes = Math.abs(n-turtles);
if(turtles>=0 && cranes >=0 && turtles+cranes==n && ((2*cranes)+(4*turtles)) == legs ){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
2,
13,
17,
2,
13,
17,
13,
0,
13,
17,
4,
18,
13,
8,
13,
17,
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
],
[
137,
17
],
[
137,
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
],
[
137,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
55,
72
],
[
72,
73
],
[
72,
74
],
[
55,
75
],
[
75,
76
],
[
75,
77
],
[
55,
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
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
104,
120
],
[
120,
121
],
[
120,
122
],
[
55,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
126,
128
],
[
126,
129
],
[
53,
130
],
[
130,
131
],
[
53,
132
],
[
132,
133
],
[
53,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
]
| [
"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 B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\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 B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\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 B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"B solver = new B();",
"solver",
"new B()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\n\n }\n\n }",
"B",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\n\n }",
"solve",
"{\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\n\n }",
"int x = Integer.parseInt(in.next());",
"x",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"int y = Integer.parseInt(in.next());",
"y",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"int turtle = 0;",
"turtle",
"0",
"boolean ok = false;",
"ok",
"false",
"for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 101",
"i",
"101",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }",
"{\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }",
"for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 101",
"j",
"101",
"j++",
"j++",
"j",
"{\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }",
"{\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }",
"if (i + j == x && i * 2 + j * 4 == y) ok = true;",
"i + j == x && i * 2 + j * 4 == y",
"i + j == x",
"i + j",
"i",
"j",
"x",
"i * 2 + j * 4 == y",
"i * 2 + j * 4",
"i * 2",
"i",
"2",
"j * 4",
"j",
"4",
"y",
"ok = true",
"ok",
"true",
"out.println(ok ? \"Yes\" : \"No\")",
"out.println",
"out",
"ok ? \"Yes\" : \"No\"",
"ok",
"\"Yes\"",
"\"No\"",
"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 B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\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 B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int x = Integer.parseInt(in.next());\n int y = Integer.parseInt(in.next());\n int turtle = 0;\n\n boolean ok = false;\n\n for (int i = 0; i < 101; i++) {\n for (int j = 0; j < 101; j++) {\n if (i + j == x && i * 2 + j * 4 == y) ok = true;\n }\n }\n\n out.println(ok ? \"Yes\" : \"No\");\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);
B solver = new B();
solver.solve(1, in, out);
out.close();
}
static class B {
public void solve(int testNumber, Scanner in, PrintWriter out) {
// 入力
int x = Integer.parseInt(in.next());
int y = Integer.parseInt(in.next());
int turtle = 0;
boolean ok = false;
for (int i = 0; i < 101; i++) {
for (int j = 0; j < 101; j++) {
if (i + j == x && i * 2 + j * 4 == y) ok = true;
}
}
out.println(ok ? "Yes" : "No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
2,
13,
17,
13,
2,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
22,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
53,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
46,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble x = sc.nextDouble();\n\t\tdouble y = sc.nextDouble();\n \n if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\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\tdouble x = sc.nextDouble();\n\t\tdouble y = sc.nextDouble();\n \n if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n }\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble x = sc.nextDouble();\n\t\tdouble y = sc.nextDouble();\n \n if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n }\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble x = sc.nextDouble();\n\t\tdouble y = sc.nextDouble();\n \n if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n }\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double x = sc.nextDouble();",
"x",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double y = sc.nextDouble();",
"y",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n }",
"x==0",
"x",
"0",
"{\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"y==0",
"y",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\n }",
"if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }",
"y%2==0",
"y%2",
"y",
"2",
"0",
"{\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"(y/2) >= x && (y/4) <= x",
"(y/2) >= x",
"(y/2)",
"y",
"2",
"x",
"(y/4) <= x",
"(y/4)",
"y",
"4",
"x",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble x = sc.nextDouble();\n\t\tdouble y = sc.nextDouble();\n \n if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\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\tdouble x = sc.nextDouble();\n\t\tdouble y = sc.nextDouble();\n \n if(x==0){\n if(y==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n if(y%2==0){\n if((y/2) >= x && (y/4) <= x){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }else{\n System.out.println(\"No\");\n }\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);
double x = sc.nextDouble();
double y = sc.nextDouble();
if(x==0){
if(y==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}else{
if(y%2==0){
if((y/2) >= x && (y/4) <= x){
System.out.println("Yes");
}else{
System.out.println("No");
}
}else{
System.out.println("No");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
17,
41,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
2,
13,
13,
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
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
44,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
]
]
| [
"import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int p=sc.nextInt();\n int ll=n*2;\n int ul=4*n;\n if(p%2!=0)\n System.out.println(\"No\");\n else if(p>=ll && p<=ul)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int p=sc.nextInt();\n int ll=n*2;\n int ul=4*n;\n if(p%2!=0)\n System.out.println(\"No\");\n else if(p>=ll && p<=ul)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int p=sc.nextInt();\n int ll=n*2;\n int ul=4*n;\n if(p%2!=0)\n System.out.println(\"No\");\n else if(p>=ll && p<=ul)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int p=sc.nextInt();\n int ll=n*2;\n int ul=4*n;\n if(p%2!=0)\n System.out.println(\"No\");\n else if(p>=ll && p<=ul)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int p=sc.nextInt();",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ll=n*2;",
"ll",
"n*2",
"n",
"2",
"int ul=4*n;",
"ul",
"4*n",
"4",
"n",
"if(p%2!=0)\n System.out.println(\"No\");\n else if(p>=ll && p<=ul)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"p%2!=0",
"p%2",
"p",
"2",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"if(p>=ll && p<=ul)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"p>=ll && p<=ul",
"p>=ll",
"p",
"ll",
"p<=ul",
"p",
"ul",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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 p=sc.nextInt();
int ll=n*2;
int ul=4*n;
if(p%2!=0)
System.out.println("No");
else if(p>=ll && p<=ul)
System.out.println("Yes");
else
System.out.println("No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
13,
41,
13,
17,
14,
2,
2,
13,
2,
13,
17,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
13,
17,
0,
13,
2,
2,
13,
2,
13,
13,
17,
14,
2,
13,
13,
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
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
31,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
63,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
63,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
50,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
89,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"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 X = sc.nextInt();\n int Y = sc.nextInt();\n int leg = 0;\n int count = X;\n boolean flag = false;\n\n if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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 X = sc.nextInt();\n int Y = sc.nextInt();\n int leg = 0;\n int count = X;\n boolean flag = false;\n\n if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n }",
"Main",
"public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n int leg = 0;\n int count = X;\n boolean flag = false;\n\n if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n int leg = 0;\n int count = X;\n boolean flag = false;\n\n if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int leg = 0;",
"leg",
"0",
"int count = X;",
"count",
"X",
"boolean flag = false;",
"flag",
"false",
"if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Y == X*2 || Y == X*4",
"Y == X*2",
"Y",
"X*2",
"X",
"2",
"Y == X*4",
"Y",
"X*4",
"X",
"4",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= X",
"i",
"X",
"i++",
"i++",
"i",
"{\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }",
"{\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }",
"leg = (count - i) * 2",
"leg",
"(count - i) * 2",
"(count - i)",
"count",
"i",
"2",
"leg += (count - (count - i))*4",
"leg",
"(count - (count - i))*4",
"(count - (count - i))",
"count",
"(count - i)",
"count",
"i",
"4",
"if (leg == Y) {\n flag = true;\n break;\n }",
"leg == Y",
"leg",
"Y",
"{\n flag = true;\n break;\n }",
"flag = true",
"flag",
"true",
"break;",
"if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"flag",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n int leg = 0;\n int count = X;\n boolean flag = false;\n\n if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 X = sc.nextInt();\n int Y = sc.nextInt();\n int leg = 0;\n int count = X;\n boolean flag = false;\n\n if(Y == X*2 || Y == X*4){\n System.out.println(\"Yes\");\n } else {\n for(int i = 1;i <= X;i++) {\n leg = (count - i) * 2;\n leg += (count - (count - i))*4;\n if (leg == Y) {\n flag = true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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 X = sc.nextInt();
int Y = sc.nextInt();
int leg = 0;
int count = X;
boolean flag = false;
if(Y == X*2 || Y == X*4){
System.out.println("Yes");
} else {
for(int i = 1;i <= X;i++) {
leg = (count - i) * 2;
leg += (count - (count - i))*4;
if (leg == Y) {
flag = true;
break;
}
}
if(flag){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
2,
2,
17,
13,
2,
13,
17,
41,
13,
2,
2,
13,
2,
17,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
6,
8
],
[
96,
9
],
[
9,
10
],
[
9,
11
],
[
96,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
14,
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
],
[
37,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
14,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
67,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
79,
86
],
[
14,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
12,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n static final String YES = \"Yes\";\n static final String NO = \"No\";\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int X = scan.nextInt();\n int Y = scan.nextInt();\n\n scan.close();\n\n if (Y%2 != 0){\n System.out.println(NO);\n return;\n }\n\n int crane = 2*X - Y/2;\n int turtle = (Y-2*X)/2;\n\n if (crane < 0 ){\n System.out.println(NO);\n return;\n }\n\n if( turtle < 0){\n System.out.println(NO);\n return;\n }\n\n System.out.println(YES);\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static final String YES = \"Yes\";\n static final String NO = \"No\";\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int X = scan.nextInt();\n int Y = scan.nextInt();\n\n scan.close();\n\n if (Y%2 != 0){\n System.out.println(NO);\n return;\n }\n\n int crane = 2*X - Y/2;\n int turtle = (Y-2*X)/2;\n\n if (crane < 0 ){\n System.out.println(NO);\n return;\n }\n\n if( turtle < 0){\n System.out.println(NO);\n return;\n }\n\n System.out.println(YES);\n \n }\n}",
"Main",
"static final String YES = \"Yes\";",
"YES",
"\"Yes\"",
"static final String NO = \"No\";",
"NO",
"\"No\"",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int X = scan.nextInt();\n int Y = scan.nextInt();\n\n scan.close();\n\n if (Y%2 != 0){\n System.out.println(NO);\n return;\n }\n\n int crane = 2*X - Y/2;\n int turtle = (Y-2*X)/2;\n\n if (crane < 0 ){\n System.out.println(NO);\n return;\n }\n\n if( turtle < 0){\n System.out.println(NO);\n return;\n }\n\n System.out.println(YES);\n \n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int X = scan.nextInt();\n int Y = scan.nextInt();\n\n scan.close();\n\n if (Y%2 != 0){\n System.out.println(NO);\n return;\n }\n\n int crane = 2*X - Y/2;\n int turtle = (Y-2*X)/2;\n\n if (crane < 0 ){\n System.out.println(NO);\n return;\n }\n\n if( turtle < 0){\n System.out.println(NO);\n return;\n }\n\n System.out.println(YES);\n \n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int X = scan.nextInt();",
"X",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int Y = scan.nextInt();",
"Y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"if (Y%2 != 0){\n System.out.println(NO);\n return;\n }",
"Y%2 != 0",
"Y%2",
"Y",
"2",
"0",
"{\n System.out.println(NO);\n return;\n }",
"System.out.println(NO)",
"System.out.println",
"System.out",
"System",
"System.out",
"NO",
"return;",
"int crane = 2*X - Y/2;",
"crane",
"2*X - Y/2",
"2*X",
"2",
"X",
"Y/2",
"Y",
"2",
"int turtle = (Y-2*X)/2;",
"turtle",
"(Y-2*X)/2",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"2",
"if (crane < 0 ){\n System.out.println(NO);\n return;\n }",
"crane < 0",
"crane",
"0",
"{\n System.out.println(NO);\n return;\n }",
"System.out.println(NO)",
"System.out.println",
"System.out",
"System",
"System.out",
"NO",
"return;",
"if( turtle < 0){\n System.out.println(NO);\n return;\n }",
"turtle < 0",
"turtle",
"0",
"{\n System.out.println(NO);\n return;\n }",
"System.out.println(NO)",
"System.out.println",
"System.out",
"System",
"System.out",
"NO",
"return;",
"System.out.println(YES)",
"System.out.println",
"System.out",
"System",
"System.out",
"YES",
"String[] args",
"args",
"public class Main {\n static final String YES = \"Yes\";\n static final String NO = \"No\";\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int X = scan.nextInt();\n int Y = scan.nextInt();\n\n scan.close();\n\n if (Y%2 != 0){\n System.out.println(NO);\n return;\n }\n\n int crane = 2*X - Y/2;\n int turtle = (Y-2*X)/2;\n\n if (crane < 0 ){\n System.out.println(NO);\n return;\n }\n\n if( turtle < 0){\n System.out.println(NO);\n return;\n }\n\n System.out.println(YES);\n \n }\n}",
"public class Main {\n static final String YES = \"Yes\";\n static final String NO = \"No\";\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int X = scan.nextInt();\n int Y = scan.nextInt();\n\n scan.close();\n\n if (Y%2 != 0){\n System.out.println(NO);\n return;\n }\n\n int crane = 2*X - Y/2;\n int turtle = (Y-2*X)/2;\n\n if (crane < 0 ){\n System.out.println(NO);\n return;\n }\n\n if( turtle < 0){\n System.out.println(NO);\n return;\n }\n\n System.out.println(YES);\n \n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static final String YES = "Yes";
static final String NO = "No";
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int X = scan.nextInt();
int Y = scan.nextInt();
scan.close();
if (Y%2 != 0){
System.out.println(NO);
return;
}
int crane = 2*X - Y/2;
int turtle = (Y-2*X)/2;
if (crane < 0 ){
System.out.println(NO);
return;
}
if( turtle < 0){
System.out.println(NO);
return;
}
System.out.println(YES);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
17,
13,
13,
2,
13,
2,
17,
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
],
[
57,
5
],
[
57,
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
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
24,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
22,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"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 X = scan.nextInt();\n\t\tint Y = scan.nextInt();\n\n\t\tif (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint X = scan.nextInt();\n\t\tint Y = scan.nextInt();\n\n\t\tif (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\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 X = scan.nextInt();\n\t\tint Y = scan.nextInt();\n\n\t\tif (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint X = scan.nextInt();\n\t\tint Y = scan.nextInt();\n\n\t\tif (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int X = scan.nextInt();",
"X",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int Y = scan.nextInt();",
"Y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"Y%2 == 0 && 2*X <= Y && Y <= 4*X",
"Y%2 == 0 && 2*X <= Y && Y <= 4*X",
"Y%2 == 0",
"Y%2",
"Y",
"2",
"0",
"2*X <= Y",
"2*X",
"2",
"X",
"Y",
"Y <= 4*X",
"Y",
"4*X",
"4",
"X",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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 X = scan.nextInt();\n\t\tint Y = scan.nextInt();\n\n\t\tif (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\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 X = scan.nextInt();\n\t\tint Y = scan.nextInt();\n\n\t\tif (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int X = scan.nextInt();
int Y = scan.nextInt();
if (Y%2 == 0 && 2*X <= Y && Y <= 4*X) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
17,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
13,
30,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
13,
17,
2,
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
],
[
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
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
24,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
45,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
8,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n float x = sc.nextFloat();\n float y = sc.nextFloat();\n\n float b = (y-2*x) / 2;\n float a = (x-b);\n\n if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }\n\n if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }\n return;\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 float x = sc.nextFloat();\n float y = sc.nextFloat();\n\n float b = (y-2*x) / 2;\n float a = (x-b);\n\n if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }\n\n if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }\n return;\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n float x = sc.nextFloat();\n float y = sc.nextFloat();\n\n float b = (y-2*x) / 2;\n float a = (x-b);\n\n if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }\n\n if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }\n return;\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n float x = sc.nextFloat();\n float y = sc.nextFloat();\n\n float b = (y-2*x) / 2;\n float a = (x-b);\n\n if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }\n\n if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }\n return;\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"float x = sc.nextFloat();",
"x",
"sc.nextFloat()",
"sc.nextFloat",
"sc",
"float y = sc.nextFloat();",
"y",
"sc.nextFloat()",
"sc.nextFloat",
"sc",
"float b = (y-2*x) / 2;",
"b",
"(y-2*x) / 2",
"(y-2*x)",
"y",
"2*x",
"2",
"x",
"2",
"float a = (x-b);",
"a",
"(x-b)",
"x",
"b",
"if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }",
"b>=0 && b==(int)b",
"b>=0",
"b",
"0",
"b==(int)b",
"b",
"(int)b",
"{\n\n }",
"{\n System.out.print(\"No\");\n return;\n }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }",
"a>=0 && a==(int)a",
"a>=0",
"a",
"0",
"a==(int)a",
"a",
"(int)a",
"{\n System.out.print(\"Yes\");\n }",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.print(\"No\");\n }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n float x = sc.nextFloat();\n float y = sc.nextFloat();\n\n float b = (y-2*x) / 2;\n float a = (x-b);\n\n if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }\n\n if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }\n return;\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n float x = sc.nextFloat();\n float y = sc.nextFloat();\n\n float b = (y-2*x) / 2;\n float a = (x-b);\n\n if(b>=0 && b==(int)b) {\n\n } else {\n System.out.print(\"No\");\n return;\n }\n\n if(a>=0 && a==(int)a) {\n System.out.print(\"Yes\");\n } else {\n System.out.print(\"No\");\n }\n return;\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
float x = sc.nextFloat();
float y = sc.nextFloat();
float b = (y-2*x) / 2;
float a = (x-b);
if(b>=0 && b==(int)b) {
} else {
System.out.print("No");
return;
}
if(a>=0 && a==(int)a) {
System.out.print("Yes");
} else {
System.out.print("No");
}
return;
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
2,
17,
13,
2,
17,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
9,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint x = in.nextInt();\n\t\tint y = in.nextInt();\n\n\n\t\tfor (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint x = in.nextInt();\n\t\tint y = in.nextInt();\n\n\n\t\tfor (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint x = in.nextInt();\n\t\tint y = in.nextInt();\n\n\n\t\tfor (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint x = in.nextInt();\n\t\tint y = in.nextInt();\n\n\n\t\tfor (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"for (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"int a=0;",
"int a=0;",
"a",
"0",
"a<=x",
"a",
"x",
"a++",
"a++",
"a",
"{\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"{\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"int b = x - a;",
"b",
"x - a",
"x",
"a",
"if (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"2*a + 4*b == y",
"2*a + 4*b",
"2*a",
"2",
"a",
"4*b",
"4",
"b",
"y",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint x = in.nextInt();\n\t\tint y = in.nextInt();\n\n\n\t\tfor (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint x = in.nextInt();\n\t\tint y = in.nextInt();\n\n\n\t\tfor (int a=0; a<=x; a++) {\n\t\t\tint b = x - a;\n\t\t\tif (2*a + 4*b == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int x = in.nextInt();
int y = in.nextInt();
for (int a=0; a<=x; a++) {
int b = x - a;
if (2*a + 4*b == y) {
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
51,
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
]
]
| [
"import java.util.*;\n \nclass Main {\n public static void main(String[] args) {\n \t\tScanner sc = new Scanner(System.in);\n\t\tint intKazu = sc.nextInt();\n \tint intAshi = sc.nextInt();\n\n// intKazu 3\n// intAshi 6,8,10,12\n// intKazu 5\n// intAshi 10,12,14,16,18,20\n\t\n\t\tint OKflag = 0;\n for(int i=0;i<(intKazu+1);i++){\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }\n \n \n\t\tif ( OKflag == 1 ) {\n\t System.out.println(\"Yes\"); \n\t\t} else {\n\t System.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n \t\tScanner sc = new Scanner(System.in);\n\t\tint intKazu = sc.nextInt();\n \tint intAshi = sc.nextInt();\n\n// intKazu 3\n// intAshi 6,8,10,12\n// intKazu 5\n// intAshi 10,12,14,16,18,20\n\t\n\t\tint OKflag = 0;\n for(int i=0;i<(intKazu+1);i++){\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }\n \n \n\t\tif ( OKflag == 1 ) {\n\t System.out.println(\"Yes\"); \n\t\t} else {\n\t System.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n \t\tScanner sc = new Scanner(System.in);\n\t\tint intKazu = sc.nextInt();\n \tint intAshi = sc.nextInt();\n\n// intKazu 3\n// intAshi 6,8,10,12\n// intKazu 5\n// intAshi 10,12,14,16,18,20\n\t\n\t\tint OKflag = 0;\n for(int i=0;i<(intKazu+1);i++){\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }\n \n \n\t\tif ( OKflag == 1 ) {\n\t System.out.println(\"Yes\"); \n\t\t} else {\n\t System.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n \t\tScanner sc = new Scanner(System.in);\n\t\tint intKazu = sc.nextInt();\n \tint intAshi = sc.nextInt();\n\n// intKazu 3\n// intAshi 6,8,10,12\n// intKazu 5\n// intAshi 10,12,14,16,18,20\n\t\n\t\tint OKflag = 0;\n for(int i=0;i<(intKazu+1);i++){\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }\n \n \n\t\tif ( OKflag == 1 ) {\n\t System.out.println(\"Yes\"); \n\t\t} else {\n\t System.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int intKazu = sc.nextInt();",
"intKazu",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int intAshi = sc.nextInt();",
"intAshi",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int OKflag = 0;",
"OKflag",
"0",
"for(int i=0;i<(intKazu+1);i++){\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<(intKazu+1)",
"i",
"(intKazu+1)",
"intKazu",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }",
"{\n\t\t\tif ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}\n }",
"if ( ((intKazu * 2) + (i *2)) == intAshi ) {\n\t\t\tOKflag = 1;\n\t\t\t}",
"((intKazu * 2) + (i *2)) == intAshi",
"((intKazu * 2) + (i *2))",
"(intKazu * 2)",
"intKazu",
"2",
"(i *2)",
"i",
"2",
"intAshi",
"{\n\t\t\tOKflag = 1;\n\t\t\t}",
"OKflag = 1",
"OKflag",
"1",
"if ( OKflag == 1 ) {\n\t System.out.println(\"Yes\"); \n\t\t} else {\n\t System.out.println(\"No\");\n\t\t}",
"OKflag == 1",
"OKflag",
"1",
"{\n\t System.out.println(\"Yes\"); \n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t System.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int intKazu = sc.nextInt();
int intAshi = sc.nextInt();
// intKazu 3
// intAshi 6,8,10,12
// intKazu 5
// intAshi 10,12,14,16,18,20
int OKflag = 0;
for(int i=0;i<(intKazu+1);i++){
if ( ((intKazu * 2) + (i *2)) == intAshi ) {
OKflag = 1;
}
}
if ( OKflag == 1 ) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
2,
17,
13,
2,
13,
2,
17,
13,
2,
2,
13,
17,
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
],
[
57,
5
],
[
57,
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
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
22,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int total=sc.nextInt();\n int totalleg=sc.nextInt();\n if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n } \n }\n}\n \n ",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int total=sc.nextInt();\n int totalleg=sc.nextInt();\n if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n } \n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int total=sc.nextInt();\n int totalleg=sc.nextInt();\n if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n } \n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int total=sc.nextInt();\n int totalleg=sc.nextInt();\n if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n } \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int total=sc.nextInt();",
"total",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int totalleg=sc.nextInt();",
"totalleg",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0",
"totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0",
"totalleg>=2*total",
"totalleg",
"2*total",
"2",
"total",
"totalleg<=4*total",
"totalleg",
"4*total",
"4",
"total",
"totalleg%2==0",
"totalleg%2",
"totalleg",
"2",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int total=sc.nextInt();\n int totalleg=sc.nextInt();\n if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n } \n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int total=sc.nextInt();\n int totalleg=sc.nextInt();\n if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n } \n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int total=sc.nextInt();
int totalleg=sc.nextInt();
if(totalleg>=2*total&&totalleg<=4*total&&totalleg%2==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
41,
13,
13,
2,
2,
2,
13,
13,
2,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
25,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
25,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x=sc.nextInt();\n int y=sc.nextInt();\n String ans=\"No\";\n for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x=sc.nextInt();\n int y=sc.nextInt();\n String ans=\"No\";\n for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x=sc.nextInt();\n int y=sc.nextInt();\n String ans=\"No\";\n for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int x=sc.nextInt();\n int y=sc.nextInt();\n String ans=\"No\";\n for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans=\"No\";",
"ans",
"\"No\"",
"for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }",
"int i=0,j=x;",
"int i=0",
"i",
"0",
"j=x;",
"j",
"x",
"i<=x&&j>=0&&(i+j)==x",
"i<=x&&j>=0&&(i+j)==x",
"i<=x",
"i",
"x",
"j>=0",
"j",
"0",
"(i+j)==x",
"(i+j)",
"i",
"j",
"x",
"i++,j--",
"i++",
"i",
"j--",
"j",
"{\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }",
"{\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }",
"if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }",
"i*4+j*2==y",
"i*4+j*2",
"i*4",
"i",
"4",
"j*2",
"j",
"2",
"y",
"{\n ans=\"Yes\";\n break;\n }",
"ans=\"Yes\"",
"ans",
"\"Yes\"",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x=sc.nextInt();\n int y=sc.nextInt();\n String ans=\"No\";\n for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x=sc.nextInt();\n int y=sc.nextInt();\n String ans=\"No\";\n for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){\n if(i*4+j*2==y){\n ans=\"Yes\";\n break;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
String ans="No";
for(int i=0,j=x;i<=x&&j>=0&&(i+j)==x; i++,j--){
if(i*4+j*2==y){
ans="Yes";
break;
}
}
System.out.println(ans);
System.out.flush();
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
17,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
2,
13,
2,
17,
13,
17,
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
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
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
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
39,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
14,
51
],
[
51,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
60,
68
],
[
51,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
51,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
12,
81
],
[
81,
82
]
]
| [
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int X = Integer.parseInt(st.nextToken());\n int Y = Integer.parseInt(st.nextToken());\n\n int y = (Y-2*X)/2;\n int x = X-y;\n if(y<0 || x<0 || (Y-2*X)%2!=0)\n System.out.println(\"No\");\n else\n System.out.println(\"Yes\");\n\n }\n\n\n\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int X = Integer.parseInt(st.nextToken());\n int Y = Integer.parseInt(st.nextToken());\n\n int y = (Y-2*X)/2;\n int x = X-y;\n if(y<0 || x<0 || (Y-2*X)%2!=0)\n System.out.println(\"No\");\n else\n System.out.println(\"Yes\");\n\n }\n\n\n\n\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int X = Integer.parseInt(st.nextToken());\n int Y = Integer.parseInt(st.nextToken());\n\n int y = (Y-2*X)/2;\n int x = X-y;\n if(y<0 || x<0 || (Y-2*X)%2!=0)\n System.out.println(\"No\");\n else\n System.out.println(\"Yes\");\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int X = Integer.parseInt(st.nextToken());\n int Y = Integer.parseInt(st.nextToken());\n\n int y = (Y-2*X)/2;\n int x = X-y;\n if(y<0 || x<0 || (Y-2*X)%2!=0)\n System.out.println(\"No\");\n else\n System.out.println(\"Yes\");\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int X = Integer.parseInt(st.nextToken());",
"X",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int Y = Integer.parseInt(st.nextToken());",
"Y",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int y = (Y-2*X)/2;",
"y",
"(Y-2*X)/2",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"2",
"int x = X-y;",
"x",
"X-y",
"X",
"y",
"if(y<0 || x<0 || (Y-2*X)%2!=0)\n System.out.println(\"No\");\n else\n System.out.println(\"Yes\");",
"y<0 || x<0 || (Y-2*X)%2!=0",
"y<0 || x<0 || (Y-2*X)%2!=0",
"y<0",
"y",
"0",
"x<0",
"x",
"0",
"(Y-2*X)%2!=0",
"(Y-2*X)%2",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"2",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args"
]
| /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int X = Integer.parseInt(st.nextToken());
int Y = Integer.parseInt(st.nextToken());
int y = (Y-2*X)/2;
int x = X-y;
if(y<0 || x<0 || (Y-2*X)%2!=0)
System.out.println("No");
else
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
13,
2,
13,
17,
30,
14,
2,
13,
2,
13,
17,
4,
18,
18,
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
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
25,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.util.*;\npublic class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\"); \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\"); \n }\n}",
"Main",
"public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\"); \n }",
"main",
"{\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\"); \n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int temp=y;",
"temp",
"y",
"if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\");",
"y%2==0 && y>=(x*2)",
"y%2==0",
"y%2",
"y",
"2",
"0",
"y>=(x*2)",
"y",
"(x*2)",
"x",
"2",
"{\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }",
"if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");",
"y<=x*4",
"y",
"x*4",
"x",
"4",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String []args",
"args",
"public class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\"); \n }\n}",
"public class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2))\n {\n \n if(y<=x*4)\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\nelse\n System.out.print(\"No\"); \n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
int temp=y;
if(y%2==0 && y>=(x*2))
{
if(y<=x*4)
System.out.print("Yes");
else
System.out.print("No");
}
else
System.out.print("No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
40,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
2,
17,
2,
13,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
22,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
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
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
31,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
22,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\t\n\t\tif(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\t\n\t\tif(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}\n\t\t\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 x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\t\n\t\tif(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\t\n\t\tif(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}",
"!(x==0&&y==0)",
"(x==0&&y==0)",
"x==0",
"x",
"0",
"y==0",
"y",
"0",
"{\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}",
"int judge = 0;",
"judge",
"0",
"for(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"4*i+2*(x-i)==y",
"4*i+2*(x-i)",
"4*i",
"4",
"i",
"2*(x-i)",
"2",
"(x-i)",
"x",
"i",
"y",
"{\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"judge = 1",
"judge",
"1",
"break;",
"if(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}",
"judge==1",
"judge",
"1",
"{\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\t\n\t\tif(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}\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\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\t\t\n\t\tif(!(x==0&&y==0)) {\n\t\t\tint judge = 0;\n\t\t\tfor(int i=0;i<=x;i++) {\n\t\t\t\tif(4*i+2*(x-i)==y) {\n\t\t\t\t\tjudge = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(judge==1) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}\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 x = scan.nextInt();
int y = scan.nextInt();
if(!(x==0&&y==0)) {
int judge = 0;
for(int i=0;i<=x;i++) {
if(4*i+2*(x-i)==y) {
judge = 1;
break;
}
}
if(judge==1) {
System.out.print("Yes");
}else {
System.out.print("No");
}
}
else {
System.out.print("Yes");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
13,
30,
0,
13,
17,
14,
2,
2,
13,
17,
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
8,
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\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt(); //ноги\n\t\t\n\t\tString reString = \"Yes\";\n\t\t\n\t\tif (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\tif(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\tif(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(reString);\n\n\t}}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt(); //ноги\n\t\t\n\t\tString reString = \"Yes\";\n\t\t\n\t\tif (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\tif(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\tif(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(reString);\n\n\t}}",
"Main",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt(); //ноги\n\t\t\n\t\tString reString = \"Yes\";\n\t\t\n\t\tif (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\tif(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\tif(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(reString);\n\n\t}",
"main",
"{\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt(); //ноги\n\t\t\n\t\tString reString = \"Yes\";\n\t\t\n\t\tif (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\tif(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\tif(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(reString);\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int y = scanner.nextInt();",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String reString = \"Yes\";",
"reString",
"\"Yes\"",
"if (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}",
"y % 2 != 0",
"y % 2",
"y",
"2",
"0",
"{\n\t\t\treString = \"No\";\n\t\t}",
"reString = \"No\"",
"reString",
"\"No\"",
"if(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}",
"x * 4 < y",
"x * 4",
"x",
"4",
"y",
"{\n\t\t\treString = \"No\";\n\t\t}",
"reString = \"No\"",
"reString",
"\"No\"",
"if(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}",
"x * 2 > y",
"x * 2",
"x",
"2",
"y",
"{\n\t\t\treString = \"No\";\n\t\t}",
"reString = \"No\"",
"reString",
"\"No\"",
"System.out.println(reString)",
"System.out.println",
"System.out",
"System",
"System.out",
"reString",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt(); //ноги\n\t\t\n\t\tString reString = \"Yes\";\n\t\t\n\t\tif (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\tif(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\tif(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(reString);\n\n\t}}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint y = scanner.nextInt(); //ноги\n\t\t\n\t\tString reString = \"Yes\";\n\t\t\n\t\tif (y % 2 != 0) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\tif(x * 4 < y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\tif(x * 2 > y) {\n\t\t\treString = \"No\";\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(reString);\n\n\t}}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt(); //ноги
String reString = "Yes";
if (y % 2 != 0) {
reString = "No";
}
if(x * 4 < y) {
reString = "No";
}
if(x * 2 > y) {
reString = "No";
}
System.out.println(reString);
}} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
2,
2,
17,
13,
2,
17,
13,
2,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
53,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n sc.close();\n\n for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n sc.close();\n\n for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n sc.close();\n\n for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n sc.close();\n\n for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }",
"{\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }",
"for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=x-i",
"j",
"x-i",
"x",
"i",
"j++",
"j++",
"j",
"{\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"{\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"y == 2*i + 4*j && x == i + j",
"y == 2*i + 4*j",
"y",
"2*i + 4*j",
"2*i",
"2",
"i",
"4*j",
"4",
"j",
"x == i + j",
"x",
"i + j",
"i",
"j",
"{\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n sc.close();\n\n for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n int y = sc.nextInt();\n sc.close();\n\n for(int i=0; i<=x; i++) {\n for(int j=0; j<=x-i; j++) {\n if(y == 2*i + 4*j && x == i + j) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
sc.close();
for(int i=0; i<=x; i++) {
for(int j=0; j<=x-i; j++) {
if(y == 2*i + 4*j && x == i + j) {
System.out.println("Yes");
System.exit(0);
}
}
}
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
2,
17,
13,
2,
17,
2,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
0,
13,
17,
3,
14,
13,
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
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
8,
69
],
[
69,
70
],
[
69,
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\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tboolean flag = true;\n\t\tfor(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag) System.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tboolean flag = true;\n\t\tfor(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag) System.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tboolean flag = true;\n\t\tfor(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag) System.out.println(\"No\");\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tboolean flag = true;\n\t\tfor(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag) System.out.println(\"No\");\n\t\t\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"boolean flag = true;",
"flag",
"true",
"for(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x + 1",
"i",
"x + 1",
"x",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"count = 2 * i + 4 * (x - i)",
"count",
"2 * i + 4 * (x - i)",
"2 * i",
"2",
"i",
"4 * (x - i)",
"4",
"(x - i)",
"x",
"i",
"if(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}",
"count == y",
"count",
"y",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"flag = false",
"flag",
"false",
"break;",
"if(flag) System.out.println(\"No\");",
"flag",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tboolean flag = true;\n\t\tfor(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag) System.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\t\n\t\tint count = 0;\n\t\tboolean flag = true;\n\t\tfor(int i = 0; i < x + 1; i++) {\n\t\t\tcount = 2 * i + 4 * (x - i);\n\t\t\tif(count == y) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag) System.out.println(\"No\");\n\t\t\n\t\t\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 x = sc.nextInt();
int y = sc.nextInt();
int count = 0;
boolean flag = true;
for(int i = 0; i < x + 1; i++) {
count = 2 * i + 4 * (x - i);
if(count == y) {
System.out.println("Yes");
flag = false;
break;
}
}
if(flag) System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
2,
13,
17,
2,
13,
2,
13,
17,
30,
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
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
25,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
25,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.*;\npublic class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\"); \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\"); \n }\n}",
"Main",
"public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\"); \n }",
"main",
"{\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\"); \n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int temp=y;",
"temp",
"y",
"if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\");",
"y%2==0 && y>=(x*2) && y<=x*4",
"y%2==0 && y>=(x*2) && y<=x*4",
"y%2==0",
"y%2",
"y",
"2",
"0",
"y>=(x*2)",
"y",
"(x*2)",
"x",
"2",
"y<=x*4",
"y",
"x*4",
"x",
"4",
"{\n \n System.out.print(\"Yes\");\n }",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String []args",
"args",
"public class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\"); \n }\n}",
"public class Main{\n\n public static void main(String []args){\n \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n int temp=y;\n if(y%2==0 && y>=(x*2) && y<=x*4)\n {\n \n System.out.print(\"Yes\");\n }\n else\n System.out.print(\"No\"); \n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
int temp=y;
if(y%2==0 && y>=(x*2) && y<=x*4)
{
System.out.print("Yes");
}
else
System.out.print("No");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
2,
13,
2,
17,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
29,
41,
13,
2,
2,
13,
2,
17,
13,
17,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
29,
23,
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,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
138,
8
],
[
138,
9
],
[
9,
10
],
[
138,
11
],
[
11,
12
],
[
138,
13
],
[
13,
14
],
[
138,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
35,
42
],
[
17,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
44,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
17,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
17,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
74,
81
],
[
17,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
17,
88
],
[
15,
89
],
[
89,
90
],
[
138,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
138,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
138,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
138,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
121,
130
],
[
130,
131
],
[
130,
132
],
[
120,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int X = nextInt();\n int Y = nextInt();\n\n //We also consider the case in which there are only cranes or only turtles.\n if(Y<2*X){\n System.out.println(\"No\");\n return;\n }\n if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }\n\n int turtle = (Y-2*X)/2;\n if(turtle > X){\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n return;\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int X = nextInt();\n int Y = nextInt();\n\n //We also consider the case in which there are only cranes or only turtles.\n if(Y<2*X){\n System.out.println(\"No\");\n return;\n }\n if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }\n\n int turtle = (Y-2*X)/2;\n if(turtle > X){\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n return;\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int X = nextInt();\n int Y = nextInt();\n\n //We also consider the case in which there are only cranes or only turtles.\n if(Y<2*X){\n System.out.println(\"No\");\n return;\n }\n if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }\n\n int turtle = (Y-2*X)/2;\n if(turtle > X){\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n return;\n \n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int X = nextInt();\n int Y = nextInt();\n\n //We also consider the case in which there are only cranes or only turtles.\n if(Y<2*X){\n System.out.println(\"No\");\n return;\n }\n if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }\n\n int turtle = (Y-2*X)/2;\n if(turtle > X){\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n return;\n \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int X = nextInt();",
"X",
"nextInt()",
"nextInt",
"int Y = nextInt();",
"Y",
"nextInt()",
"nextInt",
"if(Y<2*X){\n System.out.println(\"No\");\n return;\n }",
"Y<2*X",
"Y",
"2*X",
"2",
"X",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }",
"(Y-2*X)%2 == 1",
"(Y-2*X)%2",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"2",
"1",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"int turtle = (Y-2*X)/2;",
"turtle",
"(Y-2*X)/2",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"2",
"if(turtle > X){\n System.out.println(\"No\");\n return;\n }",
"turtle > X",
"turtle",
"X",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"String[] args",
"args",
"public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int X = nextInt();\n int Y = nextInt();\n\n //We also consider the case in which there are only cranes or only turtles.\n if(Y<2*X){\n System.out.println(\"No\");\n return;\n }\n if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }\n\n int turtle = (Y-2*X)/2;\n if(turtle > X){\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n return;\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int X = nextInt();\n int Y = nextInt();\n\n //We also consider the case in which there are only cranes or only turtles.\n if(Y<2*X){\n System.out.println(\"No\");\n return;\n }\n if((Y-2*X)%2 == 1){\n System.out.println(\"No\");\n return;\n }\n\n int turtle = (Y-2*X)/2;\n if(turtle > X){\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n return;\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
int X = nextInt();
int Y = nextInt();
//We also consider the case in which there are only cranes or only turtles.
if(Y<2*X){
System.out.println("No");
return;
}
if((Y-2*X)%2 == 1){
System.out.println("No");
return;
}
int turtle = (Y-2*X)/2;
if(turtle > X){
System.out.println("No");
return;
}
System.out.println("Yes");
return;
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
} |
[
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,
2,
2,
2,
17,
13,
13,
17,
4,
18,
18,
13,
13,
8,
2,
2,
2,
2,
13,
17,
17,
2,
13,
13,
2,
13,
17,
17,
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
],
[
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
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
42,
56
],
[
42,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x, y, a;\n x = input.nextInt();\n y = input.nextInt();\n a = (4 * x - y) / 2;\n System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x, y, a;\n x = input.nextInt();\n y = input.nextInt();\n a = (4 * x - y) / 2;\n System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x, y, a;\n x = input.nextInt();\n y = input.nextInt();\n a = (4 * x - y) / 2;\n System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\");\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int x, y, a;\n x = input.nextInt();\n y = input.nextInt();\n a = (4 * x - y) / 2;\n System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\");\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int x",
"x",
"y",
"y",
"a;",
"a",
"x = input.nextInt()",
"x",
"input.nextInt()",
"input.nextInt",
"input",
"y = input.nextInt()",
"y",
"input.nextInt()",
"input.nextInt",
"input",
"a = (4 * x - y) / 2",
"a",
"(4 * x - y) / 2",
"(4 * x - y)",
"4 * x",
"4",
"x",
"y",
"2",
"System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\"",
"y % 2 == 0 && a <= x && a >= 0",
"y % 2 == 0 && a <= x && a >= 0",
"y % 2 == 0",
"y % 2",
"y",
"2",
"0",
"a <= x",
"a",
"x",
"a >= 0",
"a",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x, y, a;\n x = input.nextInt();\n y = input.nextInt();\n a = (4 * x - y) / 2;\n System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\");\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x, y, a;\n x = input.nextInt();\n y = input.nextInt();\n a = (4 * x - y) / 2;\n System.out.println(y % 2 == 0 && a <= x && a >= 0? \"Yes\" : \"No\");\n }\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int x, y, a;
x = input.nextInt();
y = input.nextInt();
a = (4 * x - y) / 2;
System.out.println(y % 2 == 0 && a <= x && a >= 0? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
2,
13,
2,
17,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
13,
2,
2,
2,
2,
13,
17,
13,
2,
2,
13,
13,
17,
2,
2,
13,
2,
17,
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
],
[
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
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
45,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
45,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
]
]
| [
"import java.util.*;\nclass Main{\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int count=0;\n int temp=0;\n int m=sc.nextInt();\n int l=sc.nextInt();\n count=l-2*m;\n count=count/2;\n temp=m-count;\n\n if(count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\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 count=0;\n int temp=0;\n int m=sc.nextInt();\n int l=sc.nextInt();\n count=l-2*m;\n count=count/2;\n temp=m-count;\n\n if(count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }\n \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int count=0;\n int temp=0;\n int m=sc.nextInt();\n int l=sc.nextInt();\n count=l-2*m;\n count=count/2;\n temp=m-count;\n\n if(count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int count=0;\n int temp=0;\n int m=sc.nextInt();\n int l=sc.nextInt();\n count=l-2*m;\n count=count/2;\n temp=m-count;\n\n if(count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count=0;",
"count",
"0",
"int temp=0;",
"temp",
"0",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"count=l-2*m",
"count",
"l-2*m",
"l",
"2*m",
"2",
"m",
"count=count/2",
"count",
"count/2",
"count",
"2",
"temp=m-count",
"temp",
"m-count",
"m",
"count",
"if(count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");",
"count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))",
"count*4+temp*2==l",
"count*4+temp*2",
"count*4",
"count",
"4",
"temp*2",
"temp",
"2",
"l",
"(m*4>=l&&(m-count>=0)&&(l-2*m>=0))",
"m*4>=l&&(m-count>=0)&&(l-2*m>=0)",
"m*4>=l",
"m*4",
"m",
"4",
"l",
"(m-count>=0)",
"m-count",
"m",
"count",
"0",
"(l-2*m>=0)",
"l-2*m",
"l",
"2*m",
"2",
"m",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int count=0;
int temp=0;
int m=sc.nextInt();
int l=sc.nextInt();
count=l-2*m;
count=count/2;
temp=m-count;
if(count*4+temp*2==l&&(m*4>=l&&(m-count>=0)&&(l-2*m>=0))){
System.out.println("Yes");
}
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
2,
2,
13,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
38,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
56,
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 public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n \n int num = sc.nextInt();\n \n int leg = sc.nextInt();\n \n for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(\"No\");\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\t\t// 整数の入力\n \n int num = sc.nextInt();\n \n int leg = sc.nextInt();\n \n for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(\"No\");\n\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n \n int num = sc.nextInt();\n \n int leg = sc.nextInt();\n \n for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(\"No\");\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n \n int num = sc.nextInt();\n \n int leg = sc.nextInt();\n \n for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(\"No\");\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int leg = sc.nextInt();",
"leg",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num + 1",
"i",
"num + 1",
"num",
"1",
"i++",
"i++",
"i",
"{\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"{\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }",
"if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"(i*2 + (num-i)*4) == leg",
"(i*2 + (num-i)*4)",
"i*2",
"i",
"2",
"(num-i)*4",
"(num-i)",
"num",
"i",
"4",
"leg",
"{\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n \n int num = sc.nextInt();\n \n int leg = sc.nextInt();\n \n for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(\"No\");\n\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n \n int num = sc.nextInt();\n \n int leg = sc.nextInt();\n \n for(int i = 0;i < num + 1;i++){\n if((i*2 + (num-i)*4) == leg) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(\"No\");\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 num = sc.nextInt();
int leg = sc.nextInt();
for(int i = 0;i < num + 1;i++){
if((i*2 + (num-i)*4) == leg) {
System.out.println("Yes");
System.exit(0);
}
}
// 出力
System.out.println("No");
}
} |
[
7,
6,
12,
13,
30,
29,
2,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
2,
13,
13,
2,
13,
4,
13,
2,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
40,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
41,
13,
4,
13,
13,
2,
13,
17,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
17,
17,
29,
13,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
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,
13,
29,
13,
23,
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,
20,
4,
18,
13,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
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,
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,
6,
13,
12,
13,
30,
4,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
2,
3
],
[
2,
4
],
[
4,
5
],
[
5,
6
],
[
6,
7
],
[
7,
8
],
[
7,
9
],
[
6,
10
],
[
10,
11
],
[
10,
12
],
[
2,
13
],
[
13,
14
],
[
2,
15
],
[
15,
16
],
[
0,
17
],
[
17,
18
],
[
17,
19
],
[
0,
20
],
[
20,
21
],
[
20,
22
],
[
0,
23
],
[
458,
24
],
[
458,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
458,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
45,
46
],
[
458,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
50,
64
],
[
64,
65
],
[
49,
66
],
[
66,
67
],
[
47,
68
],
[
68,
69
],
[
47,
70
],
[
70,
71
],
[
47,
72
],
[
72,
73
],
[
458,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
78,
83
],
[
83,
84
],
[
74,
85
],
[
85,
86
],
[
458,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
87,
97
],
[
97,
98
],
[
87,
99
],
[
99,
100
],
[
458,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
103,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
103,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
103,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
101,
139
],
[
139,
140
],
[
101,
141
],
[
141,
142
],
[
458,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
145,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
145,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
161,
171
],
[
171,
172
],
[
172,
173
],
[
161,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
143,
183
],
[
183,
184
],
[
458,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
192,
200
],
[
200,
201
],
[
201,
202
],
[
192,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
187,
209
],
[
209,
210
],
[
185,
211
],
[
211,
212
],
[
185,
213
],
[
213,
214
],
[
458,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
215,
219
],
[
219,
220
],
[
215,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
221,
234
],
[
234,
235
],
[
221,
236
],
[
236,
237
],
[
215,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
244,
248
],
[
240,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
249,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
249,
259
],
[
259,
260
],
[
260,
261
],
[
249,
262
],
[
263,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
269,
270
],
[
268,
271
],
[
238,
272
],
[
272,
273
],
[
458,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
274,
278
],
[
278,
279
],
[
274,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
286,
288
],
[
280,
289
],
[
289,
290
],
[
274,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
294,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
293,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
274,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
316,
319
],
[
319,
320
],
[
274,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
328,
329
],
[
274,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
337,
342
],
[
342,
343
],
[
342,
344
],
[
337,
345
],
[
345,
346
],
[
346,
347
],
[
337,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
353,
354
],
[
332,
355
],
[
355,
356
],
[
330,
357
],
[
357,
358
],
[
274,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
361,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
371,
372
],
[
371,
373
],
[
366,
374
],
[
374,
375
],
[
375,
376
],
[
366,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
382,
383
],
[
361,
384
],
[
384,
385
],
[
359,
386
],
[
386,
387
],
[
458,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
390,
396
],
[
396,
397
],
[
388,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
401,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
408,
410
],
[
401,
411
],
[
411,
412
],
[
412,
413
],
[
401,
414
],
[
415,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
400,
423
],
[
423,
424
],
[
398,
425
],
[
425,
426
],
[
388,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
430,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
437,
439
],
[
430,
440
],
[
440,
441
],
[
441,
442
],
[
430,
443
],
[
444,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
429,
452
],
[
452,
453
],
[
427,
454
],
[
454,
455
],
[
388,
456
],
[
0,
457
],
[
457,
458
],
[
457,
459
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint x=in.nextInt();\n\t\t\tint y=in.nextInt();\n\t\t\tfor(int i=0; i<=x; i++) {\n\t\t\t\tint l=y-i*4;\n\t\t\t\tint r=x-i;\n\t\t\t\tif(l>=0 && l==2*r) {\n\t\t\t\t\tout.println(\"Yes\");\n\t\t\t\t\tcontinue outer;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.println(\"No\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"public int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"compare",
"{\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"return p1.u-p2.u;",
"p1.u-p2.u",
"p1.u",
"p1",
"p1.u",
"p2.u",
"p2",
"p2.u",
"Pair p1",
"p1",
"Pair p2",
"p2",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint x=in.nextInt();\n\t\t\tint y=in.nextInt();\n\t\t\tfor(int i=0; i<=x; i++) {\n\t\t\t\tint l=y-i*4;\n\t\t\t\tint r=x-i;\n\t\t\t\tif(l>=0 && l==2*r) {\n\t\t\t\t\tout.println(\"Yes\");\n\t\t\t\t\tcontinue outer;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.println(\"No\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main",
"static long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint x=in.nextInt();\n\t\t\tint y=in.nextInt();\n\t\t\tfor(int i=0; i<=x; i++) {\n\t\t\t\tint l=y-i*4;\n\t\t\t\tint r=x-i;\n\t\t\t\tif(l>=0 && l==2*r) {\n\t\t\t\t\tout.println(\"Yes\");\n\t\t\t\t\tcontinue outer;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.println(\"No\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"main",
"{\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint x=in.nextInt();\n\t\t\tint y=in.nextInt();\n\t\t\tfor(int i=0; i<=x; i++) {\n\t\t\t\tint l=y-i*4;\n\t\t\t\tint r=x-i;\n\t\t\t\tif(l>=0 && l==2*r) {\n\t\t\t\t\tout.println(\"Yes\");\n\t\t\t\t\tcontinue outer;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.println(\"No\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"Writer out=new Writer(System.out);",
"out",
"new Writer(System.out)",
"Reader in=new Reader(System.in);",
"in",
"new Reader(System.in)",
"int ts=1;",
"ts",
"1",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}",
"tri",
"{\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}",
"if(c<a+b && c>abs(a-b)) return true;",
"c<a+b && c>abs(a-b)",
"c<a+b",
"c",
"a+b",
"a",
"b",
"c>abs(a-b)",
"c",
"abs(a-b)",
"abs",
"a-b",
"a",
"b",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}",
"abs",
"{\n\t\treturn a>0 ? a : -a;\n\t}",
"return a>0 ? a : -a;",
"a>0 ? a : -a",
"a>0",
"a",
"0",
"a",
"-a",
"a",
"int a",
"a",
"static int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}",
"max",
"{\n\t\treturn a>b ? a : b;\n\t}",
"return a>b ? a : b;",
"a>b ? a : b",
"a>b",
"a",
"b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"pow",
"{\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"if(m==0) return 1;",
"m==0",
"m",
"0",
"return 1;",
"1",
"int temp=pow(n,m/2);",
"temp",
"pow(n,m/2)",
"pow",
"n",
"m/2",
"m",
"2",
"long res=(((long)temp*temp)%mod);",
"res",
"(((long)temp*temp)%mod)",
"((long)temp*temp)",
"(long)temp",
"temp",
"mod",
"if(m%2==0) return (int)res;",
"m%2==0",
"m%2",
"m",
"2",
"0",
"return (int)res;",
"(int)res",
"return (int)((res*n)%mod);",
"(int)((res*n)%mod)",
"(res*n)",
"res",
"n",
"mod",
"int n",
"n",
"int m",
"m",
"static void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"ArrayList<Integer> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i:a) list.add(i);",
"int i",
"a",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for (int i=0; i<a.length; i++) a[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=list.get(i);",
"a[i]=list.get(i)",
"a[i]",
"a",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"int[] a",
"a",
"static int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"array",
"{\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n; i++) a[i]=value;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=value;",
"a[i]=value",
"a[i]",
"a",
"i",
"value",
"return a;",
"a",
"int n",
"n",
"int value",
"value",
"static class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Pair",
"int u",
"u",
"v;",
"v",
"Pair(int u, int v){this.u=u; this.v=v;}",
"Pair",
"{this.u=u; this.v=v;}",
"this.u=u",
"this.u",
"this",
"this.u",
"u",
"this.v=v",
"this.v",
"this",
"this.v",
"v",
"int u",
"u",
"int v",
"v",
"static void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"sort",
"{\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"List<Pair> al=new ArrayList<>(Arrays.asList(coll));",
"al",
"new ArrayList<>(Arrays.asList(coll))",
"Collections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t})",
"Collections.sort",
"Collections",
"al",
"new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"for(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<al.size()",
"i",
"al.size()",
"al.size",
"al",
"i++",
"i++",
"i",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"coll[i]=al.get(i)",
"coll[i]",
"coll",
"i",
"al.get(i)",
"al.get",
"al",
"i",
"Pair [] coll",
"coll",
"static class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"Reader",
"BufferedReader br;",
"br",
"StringTokenizer to;",
"to",
"Reader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"Reader",
"{\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"br=new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"to=new StringTokenizer(\"\")",
"to",
"new StringTokenizer(\"\")",
"InputStream stream",
"stream",
"String next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"next",
"{\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"while(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"!to.hasMoreTokens()",
"to.hasMoreTokens()",
"to.hasMoreTokens",
"to",
"{\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"try {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}",
"catch(IOException e) {}",
"IOException e",
"{}",
"{\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}",
"to=new StringTokenizer(br.readLine())",
"to",
"new StringTokenizer(br.readLine())",
"return to.nextToken();",
"to.nextToken()",
"to.nextToken",
"to",
"int nextInt() {\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",
"long nextLong() {\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",
"int [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[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++) 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",
"int n",
"n",
"long [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"readLongArray",
"{\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[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++) 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",
"int n",
"n",
"static class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}",
"Writer",
"Writer(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}",
"Writer",
"{\n\t\t\tsuper(stream);\n\t\t}",
"super(stream)",
"super",
"stream",
"OutputStream stream",
"stream",
"void println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"int [] array",
"array",
"void println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"long [] array",
"array",
"PrintWriter",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint x=in.nextInt();\n\t\t\tint y=in.nextInt();\n\t\t\tfor(int i=0; i<=x; i++) {\n\t\t\t\tint l=y-i*4;\n\t\t\t\tint r=x-i;\n\t\t\t\tif(l>=0 && l==2*r) {\n\t\t\t\t\tout.println(\"Yes\");\n\t\t\t\t\tcontinue outer;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.println(\"No\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint x=in.nextInt();\n\t\t\tint y=in.nextInt();\n\t\t\tfor(int i=0; i<=x; i++) {\n\t\t\t\tint l=y-i*4;\n\t\t\t\tint r=x-i;\n\t\t\t\tif(l>=0 && l==2*r) {\n\t\t\t\t\tout.println(\"Yes\");\n\t\t\t\t\tcontinue outer;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.println(\"No\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
static long mod=(long)1e9+7;
public static void main(String[] args) throws IOException {
Writer out=new Writer(System.out);
Reader in=new Reader(System.in);
int ts=1;
outer: while(ts-->0) {
int x=in.nextInt();
int y=in.nextInt();
for(int i=0; i<=x; i++) {
int l=y-i*4;
int r=x-i;
if(l>=0 && l==2*r) {
out.println("Yes");
continue outer;
}
}
out.println("No");
}
out.close();
}
static boolean tri(int a, int b, int c) {
if(c<a+b && c>abs(a-b)) return true;
return false;
}
/*********************************** UTILITY CODE BELOW **************************************/
static int abs(int a) {
return a>0 ? a : -a;
}
static int max(int a, int b) {
return a>b ? a : b;
}
static int pow(int n, int m) {
if(m==0) return 1;
int temp=pow(n,m/2);
long res=(((long)temp*temp)%mod);
if(m%2==0) return (int)res;
return (int)((res*n)%mod);
}
static class Pair{
int u, v;
Pair(int u, int v){this.u=u; this.v=v;}
static void sort(Pair [] coll) {
List<Pair> al=new ArrayList<>(Arrays.asList(coll));
Collections.sort(al,new Comparator<Pair>() {
public int compare(Pair p1, Pair p2) {
return p1.u-p2.u;
}
});
for(int i=0; i<al.size(); i++) {
coll[i]=al.get(i);
}
}
}
static void sort(int[] a) {
ArrayList<Integer> list=new ArrayList<>();
for (int i:a) list.add(i);
Collections.sort(list);
for (int i=0; i<a.length; i++) a[i]=list.get(i);
}
static int [] array(int n, int value) {
int a[]=new int[n];
for(int i=0; i<n; i++) a[i]=value;
return a;
}
static class Reader{
BufferedReader br;
StringTokenizer to;
Reader(InputStream stream){
br=new BufferedReader(new InputStreamReader(stream));
to=new StringTokenizer("");
}
String next() {
while(!to.hasMoreTokens()) {
try {
to=new StringTokenizer(br.readLine());
}catch(IOException e) {}
}
return to.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
int [] readArray(int n) {
int a[]=new int[n];
for(int i=0; i<n ;i++) a[i]=nextInt();
return a;
}
long [] readLongArray(int n) {
long a[]=new long[n];
for(int i=0; i<n ;i++) a[i]=nextLong();
return a;
}
}
static class Writer extends PrintWriter{
Writer(OutputStream stream){
super(stream);
}
void println(int [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
void println(long [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
41,
13,
2,
17,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
17,
13,
30,
4,
18,
13,
17,
29,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
4,
18,
13,
12,
13,
30,
38,
30,
41,
13,
20,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
4,
18,
13,
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
],
[
179,
23
],
[
179,
24
],
[
24,
25
],
[
24,
26
],
[
179,
27
],
[
27,
28
],
[
27,
29
],
[
179,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
55,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
55,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
32,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
179,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
179,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
107,
108
],
[
179,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
109,
113
],
[
113,
114
],
[
109,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
115,
124
],
[
124,
125
],
[
109,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
129,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
128,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
109,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
109,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
109,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
179,
177
],
[
0,
178
],
[
178,
179
],
[
178,
180
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.Closeable;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int x = in.ni(), y = in.ni();\n for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.Closeable;",
"Closeable",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int x = in.ni(), y = in.ni();\n for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"Main",
"private InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"private PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public void solve() {\n int x = in.ni(), y = in.ni();\n for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }",
"solve",
"{\n int x = in.ni(), y = in.ni();\n for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }",
"int x = in.ni()",
"x",
"in.ni()",
"in.ni",
"in",
"y = in.ni();",
"y",
"in.ni()",
"in.ni",
"in",
"for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }",
"int cranes = 0;",
"int cranes = 0;",
"cranes",
"0",
"cranes <= x",
"cranes",
"x",
"cranes++",
"cranes++",
"cranes",
"{\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }",
"{\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }",
"int turtles = x - cranes;",
"turtles",
"x - cranes",
"x",
"cranes",
"int legs = 2 * cranes;",
"legs",
"2 * cranes",
"2",
"cranes",
"int remaining = y - legs;",
"remaining",
"y - legs",
"y",
"legs",
"if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }",
"turtles * 4 == remaining",
"turtles * 4",
"turtles",
"4",
"remaining",
"{\n out.println(\"Yes\");\n return;\n }",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"return;",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"@Override\n public void close() throws IOException {\n in.close();\n out.close();\n }",
"close",
"{\n in.close();\n out.close();\n }",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }",
"main",
"{\n try (Main instance = new Main()) {\n instance.solve();\n }\n }",
"try (Main instance = new Main()) {\n instance.solve();\n }",
"{\n instance.solve();\n }",
"Main instance = new Main()",
"Main instance = new Main()",
"new Main()",
"instance.solve()",
"instance.solve",
"instance",
"String[] args",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int ni() {\n return Integer.parseInt(next());\n }",
"ni",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nl() {\n return Long.parseLong(next());\n }",
"nl",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public void close() throws IOException {\n reader.close();\n }",
"close",
"{\n reader.close();\n }",
"reader.close()",
"reader.close",
"reader",
"Closeable",
"public class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int x = in.ni(), y = in.ni();\n for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"public class Main implements Closeable {\n\n private InputReader in = new InputReader(System.in);\n private PrintWriter out = new PrintWriter(System.out);\n\n public void solve() {\n int x = in.ni(), y = in.ni();\n for (int cranes = 0; cranes <= x; cranes++) {\n int turtles = x - cranes;\n int legs = 2 * cranes;\n int remaining = y - legs;\n if (turtles * 4 == remaining) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n @Override\n public void close() throws IOException {\n in.close();\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ni() {\n return Integer.parseInt(next());\n }\n\n public long nl() {\n return Long.parseLong(next());\n }\n\n public void close() throws IOException {\n reader.close();\n }\n }\n\n public static void main(String[] args) throws IOException {\n try (Main instance = new Main()) {\n instance.solve();\n }\n }\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main implements Closeable {
private InputReader in = new InputReader(System.in);
private PrintWriter out = new PrintWriter(System.out);
public void solve() {
int x = in.ni(), y = in.ni();
for (int cranes = 0; cranes <= x; cranes++) {
int turtles = x - cranes;
int legs = 2 * cranes;
int remaining = y - legs;
if (turtles * 4 == remaining) {
out.println("Yes");
return;
}
}
out.println("No");
}
@Override
public void close() throws IOException {
in.close();
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int ni() {
return Integer.parseInt(next());
}
public long nl() {
return Long.parseLong(next());
}
public void close() throws IOException {
reader.close();
}
}
public static void main(String[] args) throws IOException {
try (Main instance = new Main()) {
instance.solve();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
2,
13,
17,
41,
13,
2,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
17,
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
],
[
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
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
39,
60
],
[
60,
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 scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\n\t\tint sa = y - (x * 2);\n\t\tint kame = sa /2;\n\t\tint turu = x -kame;\n\t\tif( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\n\t\tint sa = y - (x * 2);\n\t\tint kame = sa /2;\n\t\tint turu = x -kame;\n\t\tif( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\n\t\tint sa = y - (x * 2);\n\t\tint kame = sa /2;\n\t\tint turu = x -kame;\n\t\tif( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\n\t\tint sa = y - (x * 2);\n\t\tint kame = sa /2;\n\t\tint turu = x -kame;\n\t\tif( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int sa = y - (x * 2);",
"sa",
"y - (x * 2)",
"y",
"(x * 2)",
"x",
"2",
"int kame = sa /2;",
"kame",
"sa /2",
"sa",
"2",
"int turu = x -kame;",
"turu",
"x -kame",
"x",
"kame",
"if( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"(sa%2==0) && kame >= 0&& turu >= 0",
"(sa%2==0) && kame >= 0&& turu >= 0",
"(sa%2==0)",
"sa%2",
"sa",
"2",
"0",
"kame >= 0",
"kame",
"0",
"turu >= 0",
"turu",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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 x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\n\t\tint sa = y - (x * 2);\n\t\tint kame = sa /2;\n\t\tint turu = x -kame;\n\t\tif( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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 x = scan.nextInt();\n\t\tint y = scan.nextInt();\n\n\n\t\tint sa = y - (x * 2);\n\t\tint kame = sa /2;\n\t\tint turu = x -kame;\n\t\tif( (sa%2==0) && kame >= 0&& turu >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
int sa = y - (x * 2);
int kame = sa /2;
int turu = x -kame;
if( (sa%2==0) && kame >= 0&& turu >= 0) {
System.out.println("Yes");
} else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
2,
2,
2,
17,
13,
13,
17,
17,
2,
2,
17,
13,
13,
2,
2,
2,
13,
2,
17,
13,
17,
17,
2,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
25,
24
],
[
40,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
26,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
40,
48
],
[
25,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
22,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
22,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"(4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x",
"(y-2*x)%2==0",
"(4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x",
"(4*x-y)%2==0",
"(4*x-y)%2",
"(4*x-y)",
"4*x",
"4",
"x",
"y",
"2",
"0",
"4*x>=y",
"4*x",
"4",
"x",
"y",
"(y-2*x)%2==0",
"(y-2*x)%2",
"(y-2*x)",
"y",
"2*x",
"2",
"x",
"2",
"0",
"y>=2*x",
"y",
"2*x",
"2",
"x",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tif((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if((4*x-y)%2==0 && 4*x>=y && (y-2*x)%2==0 && y>=2*x) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
2,
17,
2,
13,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
14,
40,
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
]
]
| [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n Scanner in = new Scanner(System.in); \n int x = in.nextInt();\n int y = in.nextInt();\n boolean flag = false;\n for (int i = 0; i <= x; i++){\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }\n \n if (!flag)\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String args[]){\n Scanner in = new Scanner(System.in); \n int x = in.nextInt();\n int y = in.nextInt();\n boolean flag = false;\n for (int i = 0; i <= x; i++){\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }\n \n if (!flag)\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner in = new Scanner(System.in); \n int x = in.nextInt();\n int y = in.nextInt();\n boolean flag = false;\n for (int i = 0; i <= x; i++){\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }\n \n if (!flag)\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner in = new Scanner(System.in); \n int x = in.nextInt();\n int y = in.nextInt();\n boolean flag = false;\n for (int i = 0; i <= x; i++){\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }\n \n if (!flag)\n System.out.println(\"No\");\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int y = in.nextInt();",
"y",
"in.nextInt()",
"in.nextInt",
"in",
"boolean flag = false;",
"flag",
"false",
"for (int i = 0; i <= x; i++){\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }",
"{\n if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }\n }",
"if (2 * i + 4 * (x - i) == y){\n flag = true;\n System.out.println(\"Yes\");\n }",
"2 * i + 4 * (x - i) == y",
"2 * i + 4 * (x - i)",
"2 * i",
"2",
"i",
"4 * (x - i)",
"4",
"(x - i)",
"x",
"i",
"y",
"{\n flag = true;\n System.out.println(\"Yes\");\n }",
"flag = true",
"flag",
"true",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"if (!flag)\n System.out.println(\"No\");",
"!flag",
"flag",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args"
]
| import java.util.*;
class Main{
public static void main(String args[]){
Scanner in = new Scanner(System.in);
int x = in.nextInt();
int y = in.nextInt();
boolean flag = false;
for (int i = 0; i <= x; i++){
if (2 * i + 4 * (x - i) == y){
flag = true;
System.out.println("Yes");
}
}
if (!flag)
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
41,
13,
2,
2,
13,
17,
2,
13,
17,
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
],
[
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
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
34,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
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\t\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t \n\t \n \n\t System.out.println(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t \n\t \n \n\t System.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t \n\t \n \n\t System.out.println(\"No\");\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t \n\t \n \n\t System.out.println(\"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<=x",
"k",
"x",
"k++",
"k++",
"k",
"{\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"int z = x-k;",
"z",
"x-k",
"x",
"k",
"int total = k * 2 + z * 4;",
"total",
"k * 2 + z * 4",
"k * 2",
"k",
"2",
"z * 4",
"z",
"4",
"if(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}",
"total == y",
"total",
"y",
"{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t \n\t \n \n\t System.out.println(\"No\");\n\t}\n}",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k<=x; k++) {\n\t\t\t\tint z = x-k;\n\t\t\t\tint total = k * 2 + z * 4;\n\t\t\t\tif(total == y) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t \n\t \n \n\t System.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
for(int k = 0; k<=x; k++) {
int z = x-k;
int total = k * 2 + z * 4;
if(total == y) {
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
2,
13,
17,
2,
2,
13,
17,
17,
29,
17,
14,
2,
2,
2,
17,
13,
13,
2,
2,
17,
13,
13,
29,
17,
14,
2,
2,
2,
2,
13,
17,
13,
17,
2,
2,
2,
17,
13,
2,
13,
17,
17,
29,
17,
29,
17,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
6,
37
],
[
37,
38
],
[
97,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
54,
55
],
[
41,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
56,
68
],
[
68,
69
],
[
41,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
70,
88
],
[
88,
89
],
[
41,
90
],
[
90,
91
],
[
39,
92
],
[
92,
93
],
[
39,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.*;\n\npublic class Main{\npublic static void main(String[] args)\n{ \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n boolean flag=solve(x,y);\n System.out.println(flag?\"Yes\":\"No\");\n}\n static boolean solve(int x,int y)\n { if(y>x*4 || y%2==1) return false;\n \n if(2*x==y || 4*x==y)\n return true;\n \n if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;\n \n return false;\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\npublic static void main(String[] args)\n{ \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n boolean flag=solve(x,y);\n System.out.println(flag?\"Yes\":\"No\");\n}\n static boolean solve(int x,int y)\n { if(y>x*4 || y%2==1) return false;\n \n if(2*x==y || 4*x==y)\n return true;\n \n if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;\n \n return false;\n \n }\n}",
"Main",
"public static void main(String[] args)\n{ \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n boolean flag=solve(x,y);\n System.out.println(flag?\"Yes\":\"No\");\n}",
"main",
"{ \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n boolean flag=solve(x,y);\n System.out.println(flag?\"Yes\":\"No\");\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean flag=solve(x,y);",
"flag",
"solve(x,y)",
"solve",
"x",
"y",
"System.out.println(flag?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"flag?\"Yes\":\"No\"",
"flag",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"static boolean solve(int x,int y)\n { if(y>x*4 || y%2==1) return false;\n \n if(2*x==y || 4*x==y)\n return true;\n \n if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;\n \n return false;\n \n }",
"solve",
"{ if(y>x*4 || y%2==1) return false;\n \n if(2*x==y || 4*x==y)\n return true;\n \n if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;\n \n return false;\n \n }",
"if(y>x*4 || y%2==1) return false;",
"y>x*4 || y%2==1",
"y>x*4",
"y",
"x*4",
"x",
"4",
"y%2==1",
"y%2",
"y",
"2",
"1",
"return false;",
"false",
"if(2*x==y || 4*x==y)\n return true;",
"2*x==y || 4*x==y",
"2*x==y",
"2*x",
"2",
"x",
"y",
"4*x==y",
"4*x",
"4",
"x",
"y",
"return true;",
"true",
"if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;",
"y/2-x >=0 && 2*x -y/2 >=0",
"y/2-x >=0",
"y/2-x",
"y/2",
"y",
"2",
"x",
"0",
"2*x -y/2 >=0",
"2*x -y/2",
"2*x",
"2",
"x",
"y/2",
"y",
"2",
"0",
"return true;",
"true",
"return false;",
"false",
"int x",
"x",
"int y",
"y",
"public class Main{\npublic static void main(String[] args)\n{ \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n boolean flag=solve(x,y);\n System.out.println(flag?\"Yes\":\"No\");\n}\n static boolean solve(int x,int y)\n { if(y>x*4 || y%2==1) return false;\n \n if(2*x==y || 4*x==y)\n return true;\n \n if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;\n \n return false;\n \n }\n}",
"public class Main{\npublic static void main(String[] args)\n{ \n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n int y=sc.nextInt();\n boolean flag=solve(x,y);\n System.out.println(flag?\"Yes\":\"No\");\n}\n static boolean solve(int x,int y)\n { if(y>x*4 || y%2==1) return false;\n \n if(2*x==y || 4*x==y)\n return true;\n \n if(y/2-x >=0 && 2*x -y/2 >=0)\n return true;\n \n return false;\n \n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
boolean flag=solve(x,y);
System.out.println(flag?"Yes":"No");
}
static boolean solve(int x,int y)
{ if(y>x*4 || y%2==1) return false;
if(2*x==y || 4*x==y)
return true;
if(y/2-x >=0 && 2*x -y/2 >=0)
return true;
return false;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
17,
13,
2,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
13,
2,
13,
13,
2,
13,
2,
2,
17,
13,
2,
17,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
123,
5
],
[
123,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
36,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
68,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
68,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
91,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
36,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
6,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"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 numX = sc.nextInt();\n\t\tint numY = sc.nextInt();\n\t\t\n int numC = (2 * numX) - (numY / 2);\n\t int numT = numX - numC;\n\t\t\n\t\tif ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\t}\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 numX = sc.nextInt();\n\t\tint numY = sc.nextInt();\n\t\t\n int numC = (2 * numX) - (numY / 2);\n\t int numT = numX - numC;\n\t\t\n\t\tif ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint numX = sc.nextInt();\n\t\tint numY = sc.nextInt();\n\t\t\n int numC = (2 * numX) - (numY / 2);\n\t int numT = numX - numC;\n\t\t\n\t\tif ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint numX = sc.nextInt();\n\t\tint numY = sc.nextInt();\n\t\t\n int numC = (2 * numX) - (numY / 2);\n\t int numT = numX - numC;\n\t\t\n\t\tif ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\t}\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int numX = sc.nextInt();",
"numX",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int numY = sc.nextInt();",
"numY",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int numC = (2 * numX) - (numY / 2);",
"numC",
"(2 * numX) - (numY / 2)",
"(2 * numX)",
"2",
"numX",
"(numY / 2)",
"numY",
"2",
"int numT = numX - numC;",
"numT",
"numX - numC",
"numX",
"numC",
"if ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\t}",
"(numX == numC + numT) && (numY == 2 * numC + 4 * numT)",
"(numX == numC + numT)",
"numX",
"numC + numT",
"numC",
"numT",
"(numY == 2 * numC + 4 * numT)",
"numY",
"2 * numC + 4 * numT",
"2 * numC",
"2",
"numC",
"4 * numT",
"4",
"numT",
"{\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t}",
"if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }",
"(numC < 0) || (numT < 0)",
"(numC < 0)",
"numC",
"0",
"(numT < 0)",
"numT",
"0",
"{\n\t\t System.out.println(\"No\");\n\t\t }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }",
"((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))",
"((numC > 0) && (numC < 1))",
"(numC > 0)",
"numC",
"0",
"(numC < 1)",
"numC",
"1",
"((numT > 0) && (numT < 1))",
"(numT > 0)",
"numT",
"0",
"(numT < 1)",
"numT",
"1",
"{\n\t\t System.out.println(\"No\");\n\t\t }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }",
"(numC >= 0) && (numT >= 0)",
"(numC >= 0)",
"numC",
"0",
"(numT >= 0)",
"numT",
"0",
"{\n\t\t System.out.println(\"Yes\");\n\t\t }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t System.out.println(\"No\");\n\t\t }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n\t\t System.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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 numX = sc.nextInt();\n\t\tint numY = sc.nextInt();\n\t\t\n int numC = (2 * numX) - (numY / 2);\n\t int numT = numX - numC;\n\t\t\n\t\tif ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\t}\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 numX = sc.nextInt();\n\t\tint numY = sc.nextInt();\n\t\t\n int numC = (2 * numX) - (numY / 2);\n\t int numT = numX - numC;\n\t\t\n\t\tif ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {\n\t\t if ((numC < 0) || (numT < 0)) {\n\t\t System.out.println(\"No\");\n\t\t }else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {\n\t\t System.out.println(\"No\");\n\t\t } else if ((numC >= 0) && (numT >= 0)) {\n\t\t System.out.println(\"Yes\");\n\t\t } else {\n\t\t System.out.println(\"No\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"No\");\n\t\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 numX = sc.nextInt();
int numY = sc.nextInt();
int numC = (2 * numX) - (numY / 2);
int numT = numX - numC;
if ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {
if ((numC < 0) || (numT < 0)) {
System.out.println("No");
}else if (((numC > 0) && (numC < 1)) || ((numT > 0) && (numT < 1))) {
System.out.println("No");
} else if ((numC >= 0) && (numT >= 0)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
2,
2,
17,
13,
13,
17,
2,
2,
2,
2,
17,
13,
13,
17,
17,
2,
2,
13,
2,
17,
13,
17,
2,
2,
2,
13,
2,
17,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
25,
24
],
[
42,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
33,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
25,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
50,
56
],
[
49,
57
],
[
22,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
22,
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.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 X = sc.nextInt();\n int Y = sc.nextInt();\n if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Y = sc.nextInt();",
"Y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"(4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0",
"(Y-2*X)>=0",
"(4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0",
"(4*X-Y)>=0",
"(4*X-Y)",
"4*X",
"4",
"X",
"Y",
"0",
"(4*X-Y)%2==0",
"(4*X-Y)%2",
"(4*X-Y)",
"4*X",
"4",
"X",
"Y",
"2",
"0",
"(Y-2*X)>=0",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"0",
"(Y-2*X)%2==0",
"(Y-2*X)%2",
"(Y-2*X)",
"Y",
"2*X",
"2",
"X",
"2",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int Y = sc.nextInt();\n if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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 Y = sc.nextInt();\n if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
if ((4*X-Y)>=0 && (4*X-Y)%2==0 && (Y-2*X)>=0 && (Y-2*X)%2==0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
17,
13,
13,
2,
2,
17,
13,
13,
2,
2,
13,
17,
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
],
[
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
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
22,
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\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt(), y = scn.nextInt();\n\t\tif (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt(), y = scn.nextInt();\n\t\tif (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt(), y = scn.nextInt();\n\t\tif (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt(), y = scn.nextInt();\n\t\tif (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int x = scn.nextInt()",
"x",
"scn.nextInt()",
"scn.nextInt",
"scn",
"y = scn.nextInt();",
"y",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"2 * x <= y && 4 * x >= y && y % 2 == 0",
"2 * x <= y && 4 * x >= y && y % 2 == 0",
"2 * x <= y",
"2 * x",
"2",
"x",
"y",
"4 * x >= y",
"4 * x",
"4",
"x",
"y",
"y % 2 == 0",
"y % 2",
"y",
"2",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt(), y = scn.nextInt();\n\t\tif (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint x = scn.nextInt(), y = scn.nextInt();\n\t\tif (2 * x <= y && 4 * x >= y && y % 2 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int x = scn.nextInt(), y = scn.nextInt();
if (2 * x <= y && 4 * x >= y && y % 2 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
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,
17,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
40,
13,
40,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
70,
8
],
[
70,
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
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
35,
57
],
[
57,
58
],
[
35,
59
],
[
59,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
9,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.*;\nimport java.math.BigDecimal;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint x = sc.nextInt();\n int y = sc.nextInt();\n int turu = 0, kame = x;\n \n while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }\n\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint x = sc.nextInt();\n int y = sc.nextInt();\n int turu = 0, kame = x;\n \n while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }\n\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint x = sc.nextInt();\n int y = sc.nextInt();\n int turu = 0, kame = x;\n \n while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }\n\n System.out.println(\"No\");\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint x = sc.nextInt();\n int y = sc.nextInt();\n int turu = 0, kame = x;\n \n while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }\n\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int turu = 0",
"turu",
"0",
"kame = x;",
"kame",
"x",
"while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }",
"kame >= 0",
"kame",
"0",
"{\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }",
"if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"turu * 2 + kame * 4 == y",
"turu * 2 + kame * 4",
"turu * 2",
"turu",
"2",
"kame * 4",
"kame",
"4",
"y",
"{\n System.out.println(\"Yes\");\n System.exit(0);\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"kame--",
"kame",
"turu++",
"turu",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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 x = sc.nextInt();\n int y = sc.nextInt();\n int turu = 0, kame = x;\n \n while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }\n\n System.out.println(\"No\");\n }\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 x = sc.nextInt();\n int y = sc.nextInt();\n int turu = 0, kame = x;\n \n while(kame >= 0){\n if(turu * 2 + kame * 4 == y){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n kame--;\n turu++;\n }\n\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.*;
import java.math.BigDecimal;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int x = sc.nextInt();
int y = sc.nextInt();
int turu = 0, kame = x;
while(kame >= 0){
if(turu * 2 + kame * 4 == y){
System.out.println("Yes");
System.exit(0);
}
kame--;
turu++;
}
System.out.println("No");
}
} |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
2,
17,
2,
13,
13,
13,
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
],
[
80,
5
],
[
80,
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
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
61,
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.*;\n\npublic class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner( System.in );\n\n int x = Integer.parseInt( scan.next() );\n int y = Integer.parseInt( scan.next() );\n\n boolean flag = false;\n for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner( System.in );\n\n int x = Integer.parseInt( scan.next() );\n int y = Integer.parseInt( scan.next() );\n\n boolean flag = false;\n for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner scan = new Scanner( System.in );\n\n int x = Integer.parseInt( scan.next() );\n int y = Integer.parseInt( scan.next() );\n\n boolean flag = false;\n for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n\n Scanner scan = new Scanner( System.in );\n\n int x = Integer.parseInt( scan.next() );\n int y = Integer.parseInt( scan.next() );\n\n boolean flag = false;\n for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner scan = new Scanner( System.in );",
"scan",
"new Scanner( System.in )",
"int x = Integer.parseInt( scan.next() );",
"x",
"Integer.parseInt( scan.next() )",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int y = Integer.parseInt( scan.next() );",
"y",
"Integer.parseInt( scan.next() )",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"boolean flag = false;",
"flag",
"false",
"for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }",
"{\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }",
"if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }",
"( 2*i + 4*(x-i) ) == y",
"( 2*i + 4*(x-i) )",
"2*i",
"2",
"i",
"4*(x-i)",
"4",
"(x-i)",
"x",
"i",
"y",
"{\n flag = true;\n break;\n }",
"flag = true",
"flag",
"true",
"break;",
"if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"flag",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner( System.in );\n\n int x = Integer.parseInt( scan.next() );\n int y = Integer.parseInt( scan.next() );\n\n boolean flag = false;\n for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner( System.in );\n\n int x = Integer.parseInt( scan.next() );\n int y = Integer.parseInt( scan.next() );\n\n boolean flag = false;\n for(int i=0; i<= x; i++){\n if( ( 2*i + 4*(x-i) ) == y ){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner( System.in );
int x = Integer.parseInt( scan.next() );
int y = Integer.parseInt( scan.next() );
boolean flag = false;
for(int i=0; i<= x; i++){
if( ( 2*i + 4*(x-i) ) == y ){
flag = true;
break;
}
}
if(flag){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
28,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
42,
49
],
[
8,
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
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
]
]
| [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scn = new Scanner(System.in);\n \tint x = scn.nextInt();\n \tint y = scn.nextInt();\n \tif(y % 2 == 1){\n System.out.println(\"No\");\n return;\n }\n \tif(x*2>y){\n System.out.println(\"No\");\n return;\n }\n if(x*4<y){\n System.out.println(\"No\");\n return;\n }\n \tSystem.out.println(\"Yes\");\n\t}\n}\n",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scn = new Scanner(System.in);\n \tint x = scn.nextInt();\n \tint y = scn.nextInt();\n \tif(y % 2 == 1){\n System.out.println(\"No\");\n return;\n }\n \tif(x*2>y){\n System.out.println(\"No\");\n return;\n }\n if(x*4<y){\n System.out.println(\"No\");\n return;\n }\n \tSystem.out.println(\"Yes\");\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scn = new Scanner(System.in);\n \tint x = scn.nextInt();\n \tint y = scn.nextInt();\n \tif(y % 2 == 1){\n System.out.println(\"No\");\n return;\n }\n \tif(x*2>y){\n System.out.println(\"No\");\n return;\n }\n if(x*4<y){\n System.out.println(\"No\");\n return;\n }\n \tSystem.out.println(\"Yes\");\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n \tint x = scn.nextInt();\n \tint y = scn.nextInt();\n \tif(y % 2 == 1){\n System.out.println(\"No\");\n return;\n }\n \tif(x*2>y){\n System.out.println(\"No\");\n return;\n }\n if(x*4<y){\n System.out.println(\"No\");\n return;\n }\n \tSystem.out.println(\"Yes\");\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int x = scn.nextInt();",
"x",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int y = scn.nextInt();",
"y",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if(y % 2 == 1){\n System.out.println(\"No\");\n return;\n }",
"y % 2 == 1",
"y % 2",
"y",
"2",
"1",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if(x*2>y){\n System.out.println(\"No\");\n return;\n }",
"x*2>y",
"x*2",
"x",
"2",
"y",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if(x*4<y){\n System.out.println(\"No\");\n return;\n }",
"x*4<y",
"x*4",
"x",
"4",
"y",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner scn = new Scanner(System.in);
int x = scn.nextInt();
int y = scn.nextInt();
if(y % 2 == 1){
System.out.println("No");
return;
}
if(x*2>y){
System.out.println("No");
return;
}
if(x*4<y){
System.out.println("No");
return;
}
System.out.println("Yes");
}
}
|
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
13,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
91,
11
],
[
91,
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
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
14,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
12,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int l = sc.nextInt();\n\n String ans = \"No\";\n\n for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }\n\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int l = sc.nextInt();\n\n String ans = \"No\";\n\n for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int l = sc.nextInt();\n\n String ans = \"No\";\n\n for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }\n\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int l = sc.nextInt();\n\n String ans = \"No\";\n\n for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }\n\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"No\";",
"ans",
"\"No\"",
"for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<(a+1)",
"i",
"(a+1)",
"a",
"1",
"i++",
"i++",
"i",
"{\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }",
"{\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }",
"for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<(a+1)",
"j",
"(a+1)",
"a",
"1",
"j++",
"j++",
"j",
"{\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }",
"{\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }",
"if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }",
"(i+j) == a",
"(i+j)",
"i",
"j",
"a",
"{\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }",
"if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }",
"(i*2)+(j*4) == l",
"(i*2)+(j*4)",
"(i*2)",
"i",
"2",
"(j*4)",
"j",
"4",
"l",
"{\n ans = \"Yes\";\n }",
"ans = \"Yes\"",
"ans",
"\"Yes\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int l = sc.nextInt();\n\n String ans = \"No\";\n\n for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }\n\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int l = sc.nextInt();\n\n String ans = \"No\";\n\n for (int i = 0; i<(a+1); i++){\n for (int j = 0; j<(a+1); j++){\n if ((i+j) == a){\n if ( (i*2)+(j*4) == l ){\n ans = \"Yes\";\n }\n }\n }\n }\n\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.lang.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int l = sc.nextInt();
String ans = "No";
for (int i = 0; i<(a+1); i++){
for (int j = 0; j<(a+1); j++){
if ((i+j) == a){
if ( (i*2)+(j*4) == l ){
ans = "Yes";
}
}
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
17,
42,
2,
40,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
41,
13,
13,
41,
13,
18,
13,
13,
41,
13,
13,
42,
17,
30,
41,
13,
2,
13,
13,
14,
2,
40,
4,
18,
13,
13,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
3,
40,
13,
0,
13,
13,
42,
17,
30,
41,
13,
2,
13,
13,
14,
2,
40,
4,
18,
13,
13,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
3,
40,
13,
4,
18,
4,
18,
13,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
11,
1,
0,
13,
13,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
2,
18,
13,
13,
17,
4,
18,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
4,
18,
13,
13,
17,
0,
18,
13,
17,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
11,
1,
41,
13,
2,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
0,
18,
13,
13,
17,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
2,
2,
13,
13,
17,
0,
13,
2,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
18,
13,
2,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
18,
13,
2,
2,
13,
17,
13,
0,
13,
17,
0,
13,
17,
0,
13,
13,
42,
2,
2,
13,
13,
2,
13,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
40,
13,
42,
2,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
40,
13,
42,
2,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
40,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
14,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
17,
4,
13,
13,
13,
13,
4,
13,
13,
2,
13,
17,
13,
4,
13,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
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
],
[
690,
11
],
[
690,
12
],
[
12,
13
],
[
690,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
16,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
16,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
50,
52
],
[
39,
54
],
[
54,
55
],
[
54,
56
],
[
39,
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
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
39,
83
],
[
83,
84
],
[
83,
85
],
[
39,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
39,
91
],
[
91,
92
],
[
91,
93
],
[
39,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
103,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
96,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
96,
124
],
[
124,
125
],
[
39,
126
],
[
126,
127
],
[
126,
128
],
[
39,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
138,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
131,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
131,
159
],
[
159,
160
],
[
39,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
161,
167
],
[
16,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
171,
175
],
[
16,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
14,
180
],
[
180,
181
],
[
690,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
184,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
191,
202
],
[
202,
203
],
[
203,
204
],
[
191,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
207,
213
],
[
213,
214
],
[
184,
215
],
[
215,
216
],
[
182,
217
],
[
217,
218
],
[
690,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
221,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
229,
230
],
[
229,
231
],
[
224,
232
],
[
232,
233
],
[
233,
234
],
[
224,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
236,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
221,
244
],
[
244,
245
],
[
245,
246
],
[
219,
247
],
[
247,
248
],
[
219,
249
],
[
249,
250
],
[
219,
251
],
[
251,
252
],
[
690,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
264,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
272,
280
],
[
263,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
283,
285
],
[
263,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
293,
294
],
[
293,
295
],
[
288,
296
],
[
255,
297
],
[
297,
298
],
[
253,
299
],
[
299,
300
],
[
253,
301
],
[
301,
302
],
[
253,
303
],
[
303,
304
],
[
690,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
311,
312
],
[
311,
313
],
[
307,
314
],
[
314,
315
],
[
315,
316
],
[
314,
317
],
[
314,
318
],
[
307,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
307,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
328,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
328,
338
],
[
338,
339
],
[
339,
340
],
[
328,
341
],
[
342,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
343,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
352,
354
],
[
348,
355
],
[
355,
356
],
[
355,
357
],
[
348,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
348,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
363,
367
],
[
307,
368
],
[
368,
369
],
[
305,
370
],
[
370,
371
],
[
690,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
380,
383
],
[
378,
384
],
[
384,
385
],
[
385,
386
],
[
384,
387
],
[
372,
388
],
[
388,
389
],
[
372,
390
],
[
390,
391
],
[
690,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
394,
397
],
[
397,
398
],
[
394,
399
],
[
399,
400
],
[
394,
401
],
[
401,
402
],
[
394,
403
],
[
403,
404
],
[
394,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
411
],
[
394,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
414,
416
],
[
394,
417
],
[
417,
418
],
[
417,
419
],
[
394,
421
],
[
421,
422
],
[
421,
423
],
[
394,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
425,
430
],
[
430,
431
],
[
430,
432
],
[
425,
433
],
[
433,
434
],
[
434,
435
],
[
425,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
437,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
443,
445
],
[
394,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
446,
451
],
[
451,
452
],
[
451,
453
],
[
446,
454
],
[
454,
455
],
[
455,
456
],
[
446,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
459,
461
],
[
458,
462
],
[
462,
463
],
[
462,
464
],
[
465,
465
],
[
465,
466
],
[
465,
467
],
[
465,
468
],
[
394,
469
],
[
469,
470
],
[
469,
471
],
[
394,
472
],
[
472,
473
],
[
472,
474
],
[
394,
475
],
[
475,
476
],
[
475,
477
],
[
394,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
483,
484
],
[
483,
485
],
[
478,
486
],
[
486,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
489,
491
],
[
488,
492
],
[
492,
493
],
[
492,
494
],
[
487,
495
],
[
495,
496
],
[
496,
497
],
[
497,
498
],
[
497,
499
],
[
496,
500
],
[
500,
501
],
[
500,
502
],
[
495,
503
],
[
503,
504
],
[
487,
505
],
[
505,
506
],
[
506,
507
],
[
507,
508
],
[
507,
509
],
[
506,
510
],
[
510,
511
],
[
510,
512
],
[
505,
513
],
[
513,
514
],
[
486,
515
],
[
515,
516
],
[
394,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
517,
521
],
[
521,
522
],
[
522,
523
],
[
523,
524
],
[
523,
525
],
[
522,
526
],
[
526,
527
],
[
526,
528
],
[
521,
529
],
[
529,
530
],
[
521,
531
],
[
531,
532
],
[
394,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
533,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
538,
542
],
[
542,
543
],
[
542,
544
],
[
537,
545
],
[
545,
546
],
[
537,
547
],
[
547,
548
],
[
392,
549
],
[
549,
550
],
[
392,
551
],
[
551,
552
],
[
392,
553
],
[
553,
554
],
[
392,
555
],
[
555,
556
],
[
690,
557
],
[
557,
558
],
[
557,
559
],
[
559,
560
],
[
560,
561
],
[
559,
562
],
[
562,
563
],
[
563,
564
],
[
563,
565
],
[
562,
566
],
[
566,
567
],
[
567,
568
],
[
567,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
566,
574
],
[
574,
575
],
[
574,
576
],
[
574,
577
],
[
574,
578
],
[
566,
579
],
[
579,
580
],
[
579,
581
],
[
579,
582
],
[
582,
583
],
[
582,
584
],
[
579,
585
],
[
566,
586
],
[
586,
587
],
[
586,
588
],
[
586,
589
],
[
586,
590
],
[
586,
591
],
[
557,
592
],
[
592,
593
],
[
557,
594
],
[
594,
595
],
[
557,
596
],
[
596,
597
],
[
690,
598
],
[
598,
599
],
[
598,
600
],
[
600,
601
],
[
598,
602
],
[
602,
603
],
[
598,
604
],
[
604,
605
],
[
604,
606
],
[
606,
607
],
[
607,
608
],
[
607,
609
],
[
606,
610
],
[
610,
611
],
[
610,
612
],
[
598,
613
],
[
613,
614
],
[
613,
615
],
[
615,
616
],
[
616,
617
],
[
617,
618
],
[
618,
619
],
[
618,
620
],
[
617,
621
],
[
621,
622
],
[
622,
623
],
[
623,
624
],
[
616,
625
],
[
625,
626
],
[
626,
627
],
[
627,
628
],
[
627,
629
],
[
629,
630
],
[
630,
631
],
[
631,
632
],
[
626,
633
],
[
633,
634
],
[
634,
635
],
[
634,
636
],
[
615,
637
],
[
637,
638
],
[
638,
639
],
[
639,
640
],
[
598,
641
],
[
641,
642
],
[
641,
643
],
[
643,
644
],
[
644,
645
],
[
645,
646
],
[
646,
647
],
[
645,
648
],
[
648,
649
],
[
598,
650
],
[
650,
651
],
[
650,
652
],
[
652,
653
],
[
653,
654
],
[
654,
655
],
[
655,
656
],
[
654,
657
],
[
657,
658
],
[
598,
659
],
[
659,
660
],
[
659,
661
],
[
661,
662
],
[
662,
663
],
[
663,
664
],
[
664,
665
],
[
663,
666
],
[
666,
667
],
[
598,
668
],
[
668,
669
],
[
668,
670
],
[
670,
671
],
[
671,
672
],
[
671,
673
],
[
670,
674
],
[
674,
675
],
[
675,
676
],
[
675,
677
],
[
677,
678
],
[
678,
679
],
[
679,
680
],
[
674,
681
],
[
681,
682
],
[
682,
683
],
[
682,
684
],
[
684,
685
],
[
685,
686
],
[
670,
687
],
[
687,
688
],
[
0,
689
],
[
689,
690
],
[
689,
691
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main{\n\n\tpublic static void main(String args[]){\n\t\tFastReader sc = new FastReader();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tint t,i,n,x;\n\t\tt=1;\n\t\twhile(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tout.println(sb);\n\t}\n\n\tstatic PrintWriter out;\n\tstatic class FastReader{\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastReader(){\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}\n\t\tString next(){\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt(){\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong(){\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble(){\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tString nextLine(){\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n\n\tpublic static boolean isPrime(int n) {\n\t\tif(n<2) return false;\n\t\tfor(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic static void print(int a[],int l,int r){\n\t\tint i;\n\t\tfor(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");\n\t\tout.println();\n\t}\n\n\tpublic static long fastexpo(long x, long y, long p){\n\t\tlong res=1;\n\t\twhile(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic static boolean[] sieve (int n) {\n\t\tboolean primes[]=new boolean[n+1];\n\t\tArrays.fill(primes,true);\n\t\tprimes[0]=primes[1]=false;\n\t\tfor(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}\n\n\tpublic static long gcd(long a,long b){\n return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();\n }\n\n public static void merge(long a[],int l,int m,int r){\n int n1,n2,i,j,k;\n n1=m-l+1;\n n2=r-m;\n\n long L[]=new long[n1];\n long R[]=new long[n2];\n\n for(i=0;i<n1;i++)\n L[i]=a[l+i];\n for(j=0;j<n2;j++)\n R[j]=a[m+1+j];\n\n i=0;j=0;\n\n k=l;\n while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }\n\n while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }\n while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }\n }\n public static void sort(long a[],int l,int r){\n int m;\n if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n\n\tpublic static void main(String args[]){\n\t\tFastReader sc = new FastReader();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tint t,i,n,x;\n\t\tt=1;\n\t\twhile(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tout.println(sb);\n\t}\n\n\tstatic PrintWriter out;\n\tstatic class FastReader{\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastReader(){\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}\n\t\tString next(){\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt(){\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong(){\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble(){\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tString nextLine(){\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n\n\tpublic static boolean isPrime(int n) {\n\t\tif(n<2) return false;\n\t\tfor(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic static void print(int a[],int l,int r){\n\t\tint i;\n\t\tfor(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");\n\t\tout.println();\n\t}\n\n\tpublic static long fastexpo(long x, long y, long p){\n\t\tlong res=1;\n\t\twhile(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic static boolean[] sieve (int n) {\n\t\tboolean primes[]=new boolean[n+1];\n\t\tArrays.fill(primes,true);\n\t\tprimes[0]=primes[1]=false;\n\t\tfor(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}\n\n\tpublic static long gcd(long a,long b){\n return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();\n }\n\n public static void merge(long a[],int l,int m,int r){\n int n1,n2,i,j,k;\n n1=m-l+1;\n n2=r-m;\n\n long L[]=new long[n1];\n long R[]=new long[n2];\n\n for(i=0;i<n1;i++)\n L[i]=a[l+i];\n for(j=0;j<n2;j++)\n R[j]=a[m+1+j];\n\n i=0;j=0;\n\n k=l;\n while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }\n\n while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }\n while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }\n }\n public static void sort(long a[],int l,int r){\n int m;\n if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }\n }\n}",
"Main",
"static PrintWriter out;",
"out",
"public static void main(String args[]){\n\t\tFastReader sc = new FastReader();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tint t,i,n,x;\n\t\tt=1;\n\t\twhile(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tout.println(sb);\n\t}",
"main",
"{\n\t\tFastReader sc = new FastReader();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tint t,i,n,x;\n\t\tt=1;\n\t\twhile(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tout.println(sb);\n\t}",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"int t",
"t",
"i",
"i",
"n",
"n",
"x;",
"x",
"t=1",
"t",
"1",
"while(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}",
"t-->0",
"t--",
"t",
"0",
"{\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}",
"x=sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"HashSet<Integer> set=new HashSet<>();",
"set",
"new HashSet<>()",
"for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i]=sc.nextInt();\n set.add(a[i]);\n }",
"{\n a[i]=sc.nextInt();\n set.add(a[i]);\n }",
"a[i]=sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"set.add(a[i])",
"set.add",
"set",
"a[i]",
"a",
"i",
"int temp=x;",
"temp",
"x",
"int min=Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"int num=x;",
"num",
"x",
"while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }",
"true",
"{\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }",
"int val=x-temp;",
"val",
"x-temp",
"x",
"temp",
"if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }",
"!set.contains(temp)&&val<min",
"!set.contains(temp)",
"set.contains(temp)",
"set.contains",
"set",
"temp",
"val<min",
"val",
"min",
"{\n min=val;\n num=temp;\n }",
"min=val",
"min",
"val",
"num=temp",
"num",
"temp",
"if(val>min)\n break;",
"val>min",
"val",
"min",
"break;",
"temp--",
"temp",
"temp=x",
"temp",
"x",
"while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }",
"true",
"{\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }",
"int val=temp-x;",
"val",
"temp-x",
"temp",
"x",
"if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }",
"!set.contains(temp)&&val<min",
"!set.contains(temp)",
"set.contains(temp)",
"set.contains",
"set",
"temp",
"val<min",
"val",
"min",
"{\n min=val;\n num=temp;\n }",
"min=val",
"min",
"val",
"num=temp",
"num",
"temp",
"if(val>min)\n break;",
"val>min",
"val",
"min",
"break;",
"temp++",
"temp",
"sb.append(num).append('\\n')",
"sb.append(num).append",
"sb.append(num)",
"sb.append",
"sb",
"num",
"'\\n'",
"sb.deleteCharAt(sb.length()-1)",
"sb.deleteCharAt",
"sb",
"sb.length()-1",
"sb.length()",
"sb.length",
"sb",
"1",
"out.println(sb)",
"out.println",
"out",
"sb",
"String args[]",
"args",
"public static boolean isPrime(int n) {\n\t\tif(n<2) return false;\n\t\tfor(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}\n\t\treturn true;\n\t}",
"isPrime",
"{\n\t\tif(n<2) return false;\n\t\tfor(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}\n\t\treturn true;\n\t}",
"if(n<2) return false;",
"n<2",
"n",
"2",
"return false;",
"false",
"for(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=(int)Math.sqrt(n)",
"i",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(n%i==0) return false;\n\t\t}",
"{\n\t\t\tif(n%i==0) return false;\n\t\t}",
"if(n%i==0) return false;",
"n%i==0",
"n%i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"public static void print(int a[],int l,int r){\n\t\tint i;\n\t\tfor(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");\n\t\tout.println();\n\t}",
"print",
"{\n\t\tint i;\n\t\tfor(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");\n\t\tout.println();\n\t}",
"int i;",
"i",
"for(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");",
"i=l;",
"i=l",
"i",
"l",
"i<=r",
"i",
"r",
"i++",
"i++",
"i",
"out.print(a[i]+\" \");",
"out.print(a[i]+\" \")",
"out.print",
"out",
"a[i]+\" \"",
"a[i]",
"a",
"i",
"\" \"",
"out.println()",
"out.println",
"out",
"int a[]",
"a",
"int l",
"l",
"int r",
"r",
"public static long fastexpo(long x, long y, long p){\n\t\tlong res=1;\n\t\twhile(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}\n\t\treturn res;\n\t}",
"fastexpo",
"{\n\t\tlong res=1;\n\t\twhile(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}\n\t\treturn res;\n\t}",
"long res=1;",
"res",
"1",
"while(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}",
"y > 0",
"y",
"0",
"{\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}",
"if((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;",
"(y & 1)==1",
"(y & 1)",
"y",
"1",
"1",
"res= ((res%p)*(x%p))%p",
"res",
"((res%p)*(x%p))%p",
"((res%p)*(x%p))",
"(res%p)",
"res",
"p",
"(x%p)",
"x",
"p",
"p",
"y= y >> 1",
"y",
"y >> 1",
"y",
"1",
"x = ((x%p)*(x%p))%p",
"x",
"((x%p)*(x%p))%p",
"((x%p)*(x%p))",
"(x%p)",
"x",
"p",
"(x%p)",
"x",
"p",
"p",
"return res;",
"res",
"long x",
"x",
"long y",
"y",
"long p",
"p",
"public static boolean[] sieve (int n) {\n\t\tboolean primes[]=new boolean[n+1];\n\t\tArrays.fill(primes,true);\n\t\tprimes[0]=primes[1]=false;\n\t\tfor(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}",
"sieve",
"{\n\t\tboolean primes[]=new boolean[n+1];\n\t\tArrays.fill(primes,true);\n\t\tprimes[0]=primes[1]=false;\n\t\tfor(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}",
"boolean primes[]=new boolean[n+1];",
"primes",
"new boolean[n+1]",
"n+1",
"n",
"1",
"Arrays.fill(primes,true)",
"Arrays.fill",
"Arrays",
"primes",
"true",
"primes[0]=primes[1]=false",
"primes[0]",
"primes",
"0",
"primes[1]=false",
"primes[1]",
"primes",
"1",
"false",
"for(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i*i<=n",
"i*i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}",
"if(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}",
"primes[i]",
"primes",
"i",
"{\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}",
"for(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;",
"int j=i*i;",
"int j=i*i;",
"j",
"i*i",
"i",
"i",
"j<=n",
"j",
"n",
"j+=i",
"j+=i",
"j",
"i",
"primes[j]=false;",
"primes[j]=false",
"primes[j]",
"primes",
"j",
"false",
"return primes;",
"primes",
"int n",
"n",
"public static long gcd(long a,long b){\n return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();\n }",
"gcd",
"{\n return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();\n }",
"return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();",
"(BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue()",
"(BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue",
"(BigInteger.valueOf(a).gcd(BigInteger.valueOf(b)))",
"BigInteger.valueOf(a).gcd",
"BigInteger.valueOf(a)",
"BigInteger.valueOf",
"BigInteger",
"a",
"BigInteger.valueOf(b)",
"BigInteger.valueOf",
"BigInteger",
"b",
"long a",
"a",
"long b",
"b",
"public static void merge(long a[],int l,int m,int r){\n int n1,n2,i,j,k;\n n1=m-l+1;\n n2=r-m;\n\n long L[]=new long[n1];\n long R[]=new long[n2];\n\n for(i=0;i<n1;i++)\n L[i]=a[l+i];\n for(j=0;j<n2;j++)\n R[j]=a[m+1+j];\n\n i=0;j=0;\n\n k=l;\n while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }\n\n while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }\n while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }\n }",
"merge",
"{\n int n1,n2,i,j,k;\n n1=m-l+1;\n n2=r-m;\n\n long L[]=new long[n1];\n long R[]=new long[n2];\n\n for(i=0;i<n1;i++)\n L[i]=a[l+i];\n for(j=0;j<n2;j++)\n R[j]=a[m+1+j];\n\n i=0;j=0;\n\n k=l;\n while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }\n\n while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }\n while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }\n }",
"int n1",
"n1",
"n2",
"n2",
"i",
"i",
"j",
"j",
"k;",
"k",
"n1=m-l+1",
"n1",
"m-l+1",
"m-l",
"m",
"l",
"1",
"n2=r-m",
"n2",
"r-m",
"r",
"m",
"long L[]=new long[n1];",
"L",
"new long[n1]",
"n1",
"long R[]=new long[n2];",
"R",
"new long[n2]",
"n2",
"for(i=0;i<n1;i++)\n L[i]=a[l+i];",
"i=0;",
"i=0",
"i",
"0",
"i<n1",
"i",
"n1",
"i++",
"i++",
"i",
"L[i]=a[l+i];",
"L[i]=a[l+i]",
"L[i]",
"L",
"i",
"a[l+i]",
"a",
"l+i",
"l",
"i",
"for(j=0;j<n2;j++)\n R[j]=a[m+1+j];",
"j=0;",
"j=0",
"j",
"0",
"j<n2",
"j",
"n2",
"j++",
"j++",
"j",
"R[j]=a[m+1+j];",
"R[j]=a[m+1+j]",
"R[j]",
"R",
"j",
"a[m+1+j]",
"a",
"m+1+j",
"m+1+j",
"m",
"1",
"j",
"i=0",
"i",
"0",
"j=0",
"j",
"0",
"k=l",
"k",
"l",
"while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }",
"i<n1&&j<n2",
"i<n1",
"i",
"n1",
"j<n2",
"j",
"n2",
"{\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }",
"if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }",
"L[i]<=R[j]",
"L[i]",
"L",
"i",
"R[j]",
"R",
"j",
"{\n a[k]=L[i];\n i++;\n }",
"a[k]=L[i]",
"a[k]",
"a",
"k",
"L[i]",
"L",
"i",
"i++",
"i",
"{\n a[k]=R[j];\n j++;\n }",
"a[k]=R[j]",
"a[k]",
"a",
"k",
"R[j]",
"R",
"j",
"j++",
"j",
"k++",
"k",
"while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }",
"i<n1",
"i",
"n1",
"{\n a[k]=L[i];\n i++;\n k++;\n }",
"a[k]=L[i]",
"a[k]",
"a",
"k",
"L[i]",
"L",
"i",
"i++",
"i",
"k++",
"k",
"while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }",
"j<n2",
"j",
"n2",
"{\n a[k]=R[j];\n j++;\n k++;\n }",
"a[k]=R[j]",
"a[k]",
"a",
"k",
"R[j]",
"R",
"j",
"j++",
"j",
"k++",
"k",
"long a[]",
"a",
"int l",
"l",
"int m",
"m",
"int r",
"r",
"public static void sort(long a[],int l,int r){\n int m;\n if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }\n }",
"sort",
"{\n int m;\n if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }\n }",
"int m;",
"m",
"if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }",
"l<r",
"l",
"r",
"{\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }",
"m=(l+r)/2",
"m",
"(l+r)/2",
"(l+r)",
"l",
"r",
"2",
"sort(a,l,m)",
"sort",
"a",
"l",
"m",
"sort(a,m+1,r)",
"sort",
"a",
"m+1",
"m",
"1",
"r",
"merge(a,l,m,r)",
"merge",
"a",
"l",
"m",
"r",
"long a[]",
"a",
"int l",
"l",
"int r",
"r",
"static class FastReader{\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastReader(){\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}\n\t\tString next(){\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt(){\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong(){\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble(){\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tString nextLine(){\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader(){\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}",
"FastReader",
"{\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}",
"br=new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"out=new PrintWriter(System.out,true)",
"out",
"new PrintWriter(System.out,true)",
"String next(){\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st==null || !st.hasMoreElements()",
"st==null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"try{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st= new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt(){\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",
"long nextLong(){\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",
"double nextDouble(){\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",
"String nextLine(){\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"nextLine",
"{\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(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\tstr=br.readLine();\n\t\t\t}",
"str=br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main{\n\n\tpublic static void main(String args[]){\n\t\tFastReader sc = new FastReader();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tint t,i,n,x;\n\t\tt=1;\n\t\twhile(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tout.println(sb);\n\t}\n\n\tstatic PrintWriter out;\n\tstatic class FastReader{\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastReader(){\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}\n\t\tString next(){\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt(){\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong(){\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble(){\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tString nextLine(){\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n\n\tpublic static boolean isPrime(int n) {\n\t\tif(n<2) return false;\n\t\tfor(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic static void print(int a[],int l,int r){\n\t\tint i;\n\t\tfor(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");\n\t\tout.println();\n\t}\n\n\tpublic static long fastexpo(long x, long y, long p){\n\t\tlong res=1;\n\t\twhile(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic static boolean[] sieve (int n) {\n\t\tboolean primes[]=new boolean[n+1];\n\t\tArrays.fill(primes,true);\n\t\tprimes[0]=primes[1]=false;\n\t\tfor(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}\n\n\tpublic static long gcd(long a,long b){\n return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();\n }\n\n public static void merge(long a[],int l,int m,int r){\n int n1,n2,i,j,k;\n n1=m-l+1;\n n2=r-m;\n\n long L[]=new long[n1];\n long R[]=new long[n2];\n\n for(i=0;i<n1;i++)\n L[i]=a[l+i];\n for(j=0;j<n2;j++)\n R[j]=a[m+1+j];\n\n i=0;j=0;\n\n k=l;\n while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }\n\n while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }\n while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }\n }\n public static void sort(long a[],int l,int r){\n int m;\n if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }\n }\n}",
"public class Main{\n\n\tpublic static void main(String args[]){\n\t\tFastReader sc = new FastReader();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tint t,i,n,x;\n\t\tt=1;\n\t\twhile(t-->0){\n x=sc.nextInt();\n n=sc.nextInt();\n int a[]=new int[n];\n HashSet<Integer> set=new HashSet<>();\n for(i=0;i<n;i++){\n a[i]=sc.nextInt();\n set.add(a[i]);\n }\n int temp=x;\n int min=Integer.MAX_VALUE;\n int num=x;\n while(true){\n int val=x-temp;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp--;\n }\n temp=x;\n while(true){\n int val=temp-x;\n if(!set.contains(temp)&&val<min){\n min=val;\n num=temp;\n }\n if(val>min)\n break;\n temp++;\n }\n sb.append(num).append('\\n');\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tout.println(sb);\n\t}\n\n\tstatic PrintWriter out;\n\tstatic class FastReader{\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastReader(){\n\t\t\tbr=new BufferedReader(new InputStreamReader(System.in));\n\t\t\tout=new PrintWriter(System.out,true);\n\t\t}\n\t\tString next(){\n\t\t\twhile(st==null || !st.hasMoreElements()){\n\t\t\t\ttry{\n\t\t\t\t\tst= new StringTokenizer(br.readLine());\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tint nextInt(){\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tlong nextLong(){\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble(){\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tString nextLine(){\n\t\t\tString str = \"\";\n\t\t\ttry{\n\t\t\t\tstr=br.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n\n\tpublic static boolean isPrime(int n) {\n\t\tif(n<2) return false;\n\t\tfor(int i=2;i<=(int)Math.sqrt(n);i++) {\n\t\t\tif(n%i==0) return false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic static void print(int a[],int l,int r){\n\t\tint i;\n\t\tfor(i=l;i<=r;i++)\n\t\t\tout.print(a[i]+\" \");\n\t\tout.println();\n\t}\n\n\tpublic static long fastexpo(long x, long y, long p){\n\t\tlong res=1;\n\t\twhile(y > 0){\n\t\t\tif((y & 1)==1)\n\t\t\t\tres= ((res%p)*(x%p))%p;\n\t\t\ty= y >> 1;\t\t\t\n\t\t\tx = ((x%p)*(x%p))%p;\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic static boolean[] sieve (int n) {\n\t\tboolean primes[]=new boolean[n+1];\n\t\tArrays.fill(primes,true);\n\t\tprimes[0]=primes[1]=false;\n\t\tfor(int i=2;i*i<=n;i++){\n\t\t\tif(primes[i]){\n\t\t\t\tfor(int j=i*i;j<=n;j+=i)\n\t\t\t\t\tprimes[j]=false;\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}\n\n\tpublic static long gcd(long a,long b){\n return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();\n }\n\n public static void merge(long a[],int l,int m,int r){\n int n1,n2,i,j,k;\n n1=m-l+1;\n n2=r-m;\n\n long L[]=new long[n1];\n long R[]=new long[n2];\n\n for(i=0;i<n1;i++)\n L[i]=a[l+i];\n for(j=0;j<n2;j++)\n R[j]=a[m+1+j];\n\n i=0;j=0;\n\n k=l;\n while(i<n1&&j<n2){\n if(L[i]<=R[j]){\n a[k]=L[i];\n i++;\n }\n else{\n a[k]=R[j];\n j++;\n }\n k++;\n }\n\n while(i<n1){\n a[k]=L[i];\n i++;\n k++;\n }\n while(j<n2){\n a[k]=R[j];\n j++;\n k++;\n }\n }\n public static void sort(long a[],int l,int r){\n int m;\n if(l<r){\n m=(l+r)/2;\n sort(a,l,m);\n sort(a,m+1,r);\n merge(a,l,m,r);\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.math.*;
public class Main{
public static void main(String args[]){
FastReader sc = new FastReader();
StringBuilder sb=new StringBuilder();
int t,i,n,x;
t=1;
while(t-->0){
x=sc.nextInt();
n=sc.nextInt();
int a[]=new int[n];
HashSet<Integer> set=new HashSet<>();
for(i=0;i<n;i++){
a[i]=sc.nextInt();
set.add(a[i]);
}
int temp=x;
int min=Integer.MAX_VALUE;
int num=x;
while(true){
int val=x-temp;
if(!set.contains(temp)&&val<min){
min=val;
num=temp;
}
if(val>min)
break;
temp--;
}
temp=x;
while(true){
int val=temp-x;
if(!set.contains(temp)&&val<min){
min=val;
num=temp;
}
if(val>min)
break;
temp++;
}
sb.append(num).append('\n');
}
sb.deleteCharAt(sb.length()-1);
out.println(sb);
}
static PrintWriter out;
static class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){
br=new BufferedReader(new InputStreamReader(System.in));
out=new PrintWriter(System.out,true);
}
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 boolean isPrime(int n) {
if(n<2) return false;
for(int i=2;i<=(int)Math.sqrt(n);i++) {
if(n%i==0) return false;
}
return true;
}
public static void print(int a[],int l,int r){
int i;
for(i=l;i<=r;i++)
out.print(a[i]+" ");
out.println();
}
public static long fastexpo(long x, long y, long p){
long res=1;
while(y > 0){
if((y & 1)==1)
res= ((res%p)*(x%p))%p;
y= y >> 1;
x = ((x%p)*(x%p))%p;
}
return res;
}
public static boolean[] sieve (int n) {
boolean primes[]=new boolean[n+1];
Arrays.fill(primes,true);
primes[0]=primes[1]=false;
for(int i=2;i*i<=n;i++){
if(primes[i]){
for(int j=i*i;j<=n;j+=i)
primes[j]=false;
}
}
return primes;
}
public static long gcd(long a,long b){
return (BigInteger.valueOf(a).gcd(BigInteger.valueOf(b))).longValue();
}
public static void merge(long a[],int l,int m,int r){
int n1,n2,i,j,k;
n1=m-l+1;
n2=r-m;
long L[]=new long[n1];
long R[]=new long[n2];
for(i=0;i<n1;i++)
L[i]=a[l+i];
for(j=0;j<n2;j++)
R[j]=a[m+1+j];
i=0;j=0;
k=l;
while(i<n1&&j<n2){
if(L[i]<=R[j]){
a[k]=L[i];
i++;
}
else{
a[k]=R[j];
j++;
}
k++;
}
while(i<n1){
a[k]=L[i];
i++;
k++;
}
while(j<n2){
a[k]=R[j];
j++;
k++;
}
}
public static void sort(long a[],int l,int r){
int m;
if(l<r){
m=(l+r)/2;
sort(a,l,m);
sort(a,m+1,r);
merge(a,l,m,r);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
17,
14,
2,
18,
13,
13,
13,
30,
42,
17,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
4,
18,
13,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
4,
18,
13,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
3,
0,
13,
17,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
164,
5
],
[
164,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
87,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
86,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
71,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
71,
125
],
[
125,
126
],
[
125,
127
],
[
68,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
128,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
62,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
6,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n String input = stdIn.nextLine();\n String[] a = input.split(\" \");\n int x = Integer.parseInt(a[0]);\n int n = Integer.parseInt(a[1]);\n input = stdIn.nextLine();\n int z = x;\n int w = x;\n int c = 0;\n int d = 0;\n String[] b = input.split(\" \");\n\n if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n String input = stdIn.nextLine();\n String[] a = input.split(\" \");\n int x = Integer.parseInt(a[0]);\n int n = Integer.parseInt(a[1]);\n input = stdIn.nextLine();\n int z = x;\n int w = x;\n int c = 0;\n int d = 0;\n String[] b = input.split(\" \");\n\n if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n String input = stdIn.nextLine();\n String[] a = input.split(\" \");\n int x = Integer.parseInt(a[0]);\n int n = Integer.parseInt(a[1]);\n input = stdIn.nextLine();\n int z = x;\n int w = x;\n int c = 0;\n int d = 0;\n String[] b = input.split(\" \");\n\n if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n String input = stdIn.nextLine();\n String[] a = input.split(\" \");\n int x = Integer.parseInt(a[0]);\n int n = Integer.parseInt(a[1]);\n input = stdIn.nextLine();\n int z = x;\n int w = x;\n int c = 0;\n int d = 0;\n String[] b = input.split(\" \");\n\n if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"String input = stdIn.nextLine();",
"input",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"String[] a = input.split(\" \");",
"a",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int x = Integer.parseInt(a[0]);",
"x",
"Integer.parseInt(a[0])",
"Integer.parseInt",
"Integer",
"a[0]",
"a",
"0",
"int n = Integer.parseInt(a[1]);",
"n",
"Integer.parseInt(a[1])",
"Integer.parseInt",
"Integer",
"a[1]",
"a",
"1",
"input = stdIn.nextLine()",
"input",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"int z = x;",
"z",
"x",
"int w = x;",
"w",
"x",
"int c = 0;",
"c",
"0",
"int d = 0;",
"d",
"0",
"String[] b = input.split(\" \");",
"b",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }",
"b.length == n",
"b.length",
"b",
"b.length",
"n",
"{\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }",
"while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }",
"true",
"{\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }",
"for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < b.length",
"i",
"b.length",
"b",
"b.length",
"i++",
"i++",
"i",
"{\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }",
"{\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }",
"if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }",
"w == Integer.parseInt(b[i])",
"w",
"Integer.parseInt(b[i])",
"Integer.parseInt",
"Integer",
"b[i]",
"b",
"i",
"{\n c += 1;\n w -= 1;\n }",
"c += 1",
"c",
"1",
"w -= 1",
"w",
"1",
"if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }",
"z == Integer.parseInt(b[i])",
"z",
"Integer.parseInt(b[i])",
"Integer.parseInt",
"Integer",
"b[i]",
"b",
"i",
"{\n c += 1;\n z += 1;\n }",
"c += 1",
"c",
"1",
"z += 1",
"z",
"1",
"if(c == 0){\n\n break;\n }",
"c == 0",
"c",
"0",
"{\n\n break;\n }",
"break;",
"c = 0",
"c",
"0",
"if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }",
"x - w > z - x",
"x - w",
"x",
"w",
"z - x",
"z",
"x",
"{\n System.out.println(z);\n }",
"System.out.println(z)",
"System.out.println",
"System.out",
"System",
"System.out",
"z",
"{\n System.out.println(w);\n }",
"System.out.println(w)",
"System.out.println",
"System.out",
"System",
"System.out",
"w",
"if(n == 0){\n System.out.println(x);\n }",
"n == 0",
"n",
"0",
"{\n System.out.println(x);\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n String input = stdIn.nextLine();\n String[] a = input.split(\" \");\n int x = Integer.parseInt(a[0]);\n int n = Integer.parseInt(a[1]);\n input = stdIn.nextLine();\n int z = x;\n int w = x;\n int c = 0;\n int d = 0;\n String[] b = input.split(\" \");\n\n if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n String input = stdIn.nextLine();\n String[] a = input.split(\" \");\n int x = Integer.parseInt(a[0]);\n int n = Integer.parseInt(a[1]);\n input = stdIn.nextLine();\n int z = x;\n int w = x;\n int c = 0;\n int d = 0;\n String[] b = input.split(\" \");\n\n if(b.length == n){\n while(true){\n for(int i = 0 ; i < b.length ; i++){\n if(w == Integer.parseInt(b[i])){\n c += 1;\n w -= 1;\n }\n if(z == Integer.parseInt(b[i])){\n c += 1;\n z += 1;\n }\n }\n if(c == 0){\n\n break;\n }\n c = 0;\n }\n if(x - w > z - x){\n System.out.println(z);\n }else{\n System.out.println(w);\n }\n }else if(n == 0){\n System.out.println(x);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
String input = stdIn.nextLine();
String[] a = input.split(" ");
int x = Integer.parseInt(a[0]);
int n = Integer.parseInt(a[1]);
input = stdIn.nextLine();
int z = x;
int w = x;
int c = 0;
int d = 0;
String[] b = input.split(" ");
if(b.length == n){
while(true){
for(int i = 0 ; i < b.length ; i++){
if(w == Integer.parseInt(b[i])){
c += 1;
w -= 1;
}
if(z == Integer.parseInt(b[i])){
c += 1;
z += 1;
}
}
if(c == 0){
break;
}
c = 0;
}
if(x - w > z - x){
System.out.println(z);
}else{
System.out.println(w);
}
}else if(n == 0){
System.out.println(x);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
14,
2,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
17,
17,
42,
2,
13,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
40,
13,
4,
18,
13,
13,
4,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
41,
13,
41,
13,
0,
13,
13,
0,
13,
13,
42,
17,
30,
14,
4,
18,
13,
13,
30,
0,
13,
2,
13,
17,
14,
4,
18,
13,
13,
30,
0,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
30,
4,
18,
18,
13,
13,
13,
3,
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
],
[
213,
14
],
[
213,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
17,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
17,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
47,
53
],
[
47,
54
],
[
17,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
17,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
17,
71
],
[
71,
72
],
[
71,
73
],
[
17,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
82,
88
],
[
82,
89
],
[
79,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
94,
105
],
[
105,
106
],
[
79,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
79,
111
],
[
111,
112
],
[
111,
113
],
[
111,
114
],
[
111,
115
],
[
75,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
17,
123
],
[
123,
124
],
[
124,
125
],
[
15,
126
],
[
126,
127
],
[
213,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
134,
144
],
[
144,
145
],
[
145,
146
],
[
134,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
130,
155
],
[
155,
156
],
[
130,
157
],
[
157,
158
],
[
130,
159
],
[
159,
160
],
[
159,
161
],
[
130,
162
],
[
162,
163
],
[
162,
164
],
[
130,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
168,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
179,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
187,
189
],
[
179,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
190,
197
],
[
168,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
198,
205
],
[
128,
206
],
[
206,
207
],
[
128,
208
],
[
208,
209
],
[
128,
210
],
[
210,
211
],
[
0,
212
],
[
212,
213
],
[
212,
214
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N , X;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n X = Integer.parseInt(List[0]);\n N = Integer.parseInt(List[1]);\n // System.out.println(N);\n int num[] = new int[N];\n if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }\n\n scan.close();\n }\n \n public static void check(int[] num,int x,int n){\n //System.out.println(num[0]);\n List<Integer> numList = new ArrayList<Integer>(num.length);\n for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }\n int s,l;\n s = x;\n l = x;\n while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N , X;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n X = Integer.parseInt(List[0]);\n N = Integer.parseInt(List[1]);\n // System.out.println(N);\n int num[] = new int[N];\n if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }\n\n scan.close();\n }\n \n public static void check(int[] num,int x,int n){\n //System.out.println(num[0]);\n List<Integer> numList = new ArrayList<Integer>(num.length);\n for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }\n int s,l;\n s = x;\n l = x;\n while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N , X;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n X = Integer.parseInt(List[0]);\n N = Integer.parseInt(List[1]);\n // System.out.println(N);\n int num[] = new int[N];\n if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }\n\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N , X;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n X = Integer.parseInt(List[0]);\n N = Integer.parseInt(List[1]);\n // System.out.println(N);\n int num[] = new int[N];\n if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }\n\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"int N",
"N",
"X;",
"X",
"int i = 0;",
"i",
"0",
"while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }",
"scan.hasNextLine()",
"scan.hasNextLine",
"scan",
"{\n String an = scan.nextLine();\n list.add(an);\n }",
"String an = scan.nextLine();",
"an",
"scan.nextLine()",
"scan.nextLine",
"scan",
"list.add(an)",
"list.add",
"list",
"an",
"String List[] = list.get(0).split(\" \",0);",
"List",
"list.get(0).split(\" \",0)",
"list.get(0).split",
"list.get(0)",
"list.get",
"list",
"0",
"\" \"",
"0",
"X = Integer.parseInt(List[0])",
"X",
"Integer.parseInt(List[0])",
"Integer.parseInt",
"Integer",
"List[0]",
"List",
"0",
"N = Integer.parseInt(List[1])",
"N",
"Integer.parseInt(List[1])",
"Integer.parseInt",
"Integer",
"List[1]",
"List",
"1",
"int num[] = new int[N];",
"num",
"new int[N]",
"N",
"if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }",
"N != 0",
"N",
"0",
"{\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }",
"String Atai[] = list.get(1).split(\" \",0);",
"Atai",
"list.get(1).split(\" \",0)",
"list.get(1).split",
"list.get(1)",
"list.get",
"list",
"1",
"\" \"",
"0",
"while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }",
"i < N",
"i",
"N",
"{\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }",
"num[i] = Integer.parseInt(Atai[i])",
"num[i]",
"num",
"i",
"Integer.parseInt(Atai[i])",
"Integer.parseInt",
"Integer",
"Atai[i]",
"Atai",
"i",
"i++",
"i",
"Arrays.sort(num)",
"Arrays.sort",
"Arrays",
"num",
"check(num,X,N)",
"check",
"num",
"X",
"N",
"{\n System.out.println(X);\n }",
"System.out.println(X)",
"System.out.println",
"System.out",
"System",
"System.out",
"X",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public static void check(int[] num,int x,int n){\n //System.out.println(num[0]);\n List<Integer> numList = new ArrayList<Integer>(num.length);\n for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }\n int s,l;\n s = x;\n l = x;\n while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }\n }",
"check",
"{\n //System.out.println(num[0]);\n List<Integer> numList = new ArrayList<Integer>(num.length);\n for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }\n int s,l;\n s = x;\n l = x;\n while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }\n }",
"List<Integer> numList = new ArrayList<Integer>(num.length);",
"numList",
"new ArrayList<Integer>(num.length)",
"for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num.length",
"i",
"num.length",
"num",
"num.length",
"i++",
"i++",
"i",
"{\n numList.add(num[i]);\n }",
"{\n numList.add(num[i]);\n }",
"numList.add(num[i])",
"numList.add",
"numList",
"num[i]",
"num",
"i",
"int s",
"s",
"l;",
"l",
"s = x",
"s",
"x",
"l = x",
"l",
"x",
"while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }",
"true",
"{\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }",
"if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }",
"numList.contains(s)",
"numList.contains",
"numList",
"s",
"{\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }",
"s = s-1",
"s",
"s-1",
"s",
"1",
"if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }",
"numList.contains(l)",
"numList.contains",
"numList",
"l",
"{\n l = l + 1;\n }",
"l = l + 1",
"l",
"l + 1",
"l",
"1",
"{\n System.out.println(l);\n break;\n }",
"System.out.println(l)",
"System.out.println",
"System.out",
"System",
"System.out",
"l",
"break;",
"{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"break;",
"int[] num",
"num",
"int x",
"x",
"int n",
"n",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N , X;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n X = Integer.parseInt(List[0]);\n N = Integer.parseInt(List[1]);\n // System.out.println(N);\n int num[] = new int[N];\n if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }\n\n scan.close();\n }\n \n public static void check(int[] num,int x,int n){\n //System.out.println(num[0]);\n List<Integer> numList = new ArrayList<Integer>(num.length);\n for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }\n int s,l;\n s = x;\n l = x;\n while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N , X;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n X = Integer.parseInt(List[0]);\n N = Integer.parseInt(List[1]);\n // System.out.println(N);\n int num[] = new int[N];\n if(N != 0){\n String Atai[] = list.get(1).split(\" \",0);\n while(i < N){\n num[i] = Integer.parseInt(Atai[i]);\n i++;\n }\n \n Arrays.sort(num);\n check(num,X,N);\n }else{\n System.out.println(X);\n }\n\n scan.close();\n }\n \n public static void check(int[] num,int x,int n){\n //System.out.println(num[0]);\n List<Integer> numList = new ArrayList<Integer>(num.length);\n for (int i = 0; i < num.length; i++) {\n numList.add(num[i]);\n }\n int s,l;\n s = x;\n l = x;\n while(true) {\n if(numList.contains(s)){\n s = s-1;\n if(numList.contains(l)){\n l = l + 1;\n }else{\n System.out.println(l);\n break;\n }\n }else{\n System.out.println(s);\n// System.out.println(\"ok\");\n break;\n }\n \n }\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
ArrayList<String> list = new ArrayList<String>();
int N , X;
int i = 0;
while (scan.hasNextLine()) {
String an = scan.nextLine();
list.add(an);
}
String List[] = list.get(0).split(" ",0);
X = Integer.parseInt(List[0]);
N = Integer.parseInt(List[1]);
// System.out.println(N);
int num[] = new int[N];
if(N != 0){
String Atai[] = list.get(1).split(" ",0);
while(i < N){
num[i] = Integer.parseInt(Atai[i]);
i++;
}
Arrays.sort(num);
check(num,X,N);
}else{
System.out.println(X);
}
scan.close();
}
public static void check(int[] num,int x,int n){
//System.out.println(num[0]);
List<Integer> numList = new ArrayList<Integer>(num.length);
for (int i = 0; i < num.length; i++) {
numList.add(num[i]);
}
int s,l;
s = x;
l = x;
while(true) {
if(numList.contains(s)){
s = s-1;
if(numList.contains(l)){
l = l + 1;
}else{
System.out.println(l);
break;
}
}else{
System.out.println(s);
// System.out.println("ok");
break;
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
14,
40,
4,
18,
13,
2,
13,
13,
30,
4,
18,
13,
2,
13,
13,
29,
14,
40,
4,
18,
13,
2,
13,
13,
30,
4,
18,
13,
2,
13,
13,
29,
40,
13,
23,
13,
23,
13,
6,
13,
41,
13,
17,
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,
14,
2,
13,
40,
17,
30,
29,
40,
17,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
29,
40,
17,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
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,
30,
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,
30,
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,
20,
42,
40,
4,
13,
13,
30,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
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,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
42,
2,
2,
13,
17,
2,
13,
40,
17,
30,
14,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
2,
4,
18,
4,
18,
13,
17,
30,
0,
13,
4,
13,
29,
13,
12,
13,
30,
14,
13,
30,
29,
4,
13,
30,
29,
4,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
29,
20,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
29,
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,
2,
40,
4,
13,
13,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
29,
2,
13,
4,
18,
13,
17,
4,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
29,
2,
13,
4,
18,
13,
17,
4,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
2,
13,
17,
13,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
42,
2,
4,
13,
0,
13,
4,
13,
2,
13,
40,
17,
30,
4,
13,
29,
2,
13,
40,
17,
12,
13,
30,
29,
4,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
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,
41,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
0,
18,
13,
17,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
18,
13,
2,
13,
17,
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,
41,
13,
20,
13,
0,
18,
13,
17,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
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
],
[
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
],
[
970,
26
],
[
970,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
46
],
[
46,
47
],
[
46,
48
],
[
29,
49
],
[
49,
50
],
[
49,
51
],
[
29,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
29,
63
],
[
63,
64
],
[
64,
65
],
[
27,
66
],
[
66,
67
],
[
970,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
83,
84
],
[
83,
85
],
[
72,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
72,
104
],
[
104,
105
],
[
104,
106
],
[
72,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
122,
124
],
[
118,
125
],
[
109,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
138,
140
],
[
134,
141
],
[
109,
142
],
[
142,
143
],
[
70,
144
],
[
144,
145
],
[
70,
146
],
[
146,
147
],
[
970,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
155,
157
],
[
148,
159
],
[
159,
160
],
[
148,
161
],
[
161,
162
],
[
148,
163
],
[
163,
164
],
[
148,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
165,
173
],
[
173,
174
],
[
148,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
178,
183
],
[
183,
184
],
[
184,
185
],
[
177,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
194,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
190,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
177,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
148,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
223,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
222,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
240,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
236,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
222,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
148,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
268,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
268,
282
],
[
282,
283
],
[
282,
284
],
[
268,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
285,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
289,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
268,
298
],
[
298,
299
],
[
298,
300
],
[
268,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
301,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
312
],
[
312,
313
],
[
312,
314
],
[
307,
315
],
[
315,
316
],
[
316,
317
],
[
306,
318
],
[
318,
319
],
[
318,
320
],
[
306,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
323,
325
],
[
306,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
268,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
148,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
336,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
336,
350
],
[
350,
351
],
[
350,
352
],
[
336,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
353,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
357,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
336,
366
],
[
366,
367
],
[
366,
368
],
[
336,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
369,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
380,
381
],
[
380,
382
],
[
375,
383
],
[
383,
384
],
[
384,
385
],
[
374,
386
],
[
386,
387
],
[
386,
388
],
[
374,
389
],
[
389,
390
],
[
389,
391
],
[
391,
392
],
[
391,
393
],
[
374,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
336,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
148,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
404,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
404,
418
],
[
418,
419
],
[
418,
420
],
[
404,
421
],
[
421,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
421,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
429,
430
],
[
428,
431
],
[
427,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
433,
436
],
[
426,
437
],
[
437,
438
],
[
437,
439
],
[
439,
440
],
[
404,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
148,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
448,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
455,
456
],
[
454,
457
],
[
447,
458
],
[
458,
459
],
[
459,
460
],
[
459,
461
],
[
445,
462
],
[
462,
463
],
[
148,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
467,
468
],
[
471,
469
],
[
481,
470
],
[
478,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
471,
475
],
[
475,
476
],
[
475,
477
],
[
478,
478
],
[
478,
479
],
[
478,
480
],
[
481,
481
],
[
481,
482
],
[
481,
483
],
[
471,
484
],
[
484,
485
],
[
484,
486
],
[
486,
487
],
[
464,
488
],
[
488,
489
],
[
148,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
493,
494
],
[
493,
495
],
[
492,
496
],
[
496,
497
],
[
496,
498
],
[
498,
499
],
[
492,
500
],
[
500,
501
],
[
501,
502
],
[
502,
503
],
[
502,
504
],
[
501,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
500,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
511,
513
],
[
510,
514
],
[
514,
515
],
[
515,
516
],
[
516,
517
],
[
515,
518
],
[
509,
519
],
[
519,
520
],
[
519,
521
],
[
521,
522
],
[
492,
523
],
[
523,
524
],
[
524,
525
],
[
525,
526
],
[
148,
527
],
[
527,
528
],
[
527,
529
],
[
529,
530
],
[
530,
531
],
[
530,
532
],
[
532,
533
],
[
529,
534
],
[
534,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
535,
541
],
[
534,
542
],
[
542,
543
],
[
543,
544
],
[
543,
545
],
[
545,
546
],
[
529,
547
],
[
547,
548
],
[
148,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
552,
553
],
[
552,
554
],
[
554,
555
],
[
555,
556
],
[
556,
557
],
[
552,
558
],
[
558,
559
],
[
559,
560
],
[
560,
561
],
[
549,
562
],
[
562,
563
],
[
148,
564
],
[
564,
565
],
[
564,
566
],
[
566,
567
],
[
567,
568
],
[
568,
569
],
[
568,
570
],
[
570,
571
],
[
571,
572
],
[
567,
573
],
[
573,
574
],
[
574,
575
],
[
148,
576
],
[
576,
577
],
[
576,
578
],
[
578,
579
],
[
579,
580
],
[
579,
581
],
[
581,
582
],
[
578,
583
],
[
583,
584
],
[
584,
585
],
[
584,
586
],
[
583,
587
],
[
587,
588
],
[
588,
589
],
[
588,
590
],
[
590,
591
],
[
578,
592
],
[
592,
593
],
[
148,
594
],
[
594,
595
],
[
594,
596
],
[
596,
597
],
[
597,
598
],
[
597,
599
],
[
599,
600
],
[
596,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
601,
605
],
[
605,
606
],
[
606,
607
],
[
606,
608
],
[
608,
609
],
[
596,
610
],
[
610,
611
],
[
610,
612
],
[
596,
613
],
[
613,
614
],
[
614,
615
],
[
614,
616
],
[
613,
617
],
[
617,
618
],
[
618,
619
],
[
618,
620
],
[
620,
621
],
[
617,
622
],
[
622,
623
],
[
622,
624
],
[
624,
625
],
[
596,
626
],
[
626,
627
],
[
626,
628
],
[
596,
629
],
[
629,
630
],
[
630,
631
],
[
631,
632
],
[
632,
633
],
[
632,
634
],
[
630,
635
],
[
635,
636
],
[
635,
637
],
[
629,
638
],
[
638,
639
],
[
639,
640
],
[
640,
641
],
[
641,
642
],
[
641,
643
],
[
640,
644
],
[
644,
645
],
[
644,
646
],
[
639,
647
],
[
647,
648
],
[
648,
649
],
[
649,
650
],
[
649,
651
],
[
651,
652
],
[
652,
653
],
[
651,
654
],
[
651,
655
],
[
655,
656
],
[
638,
657
],
[
657,
658
],
[
658,
659
],
[
659,
660
],
[
659,
661
],
[
658,
662
],
[
662,
663
],
[
662,
664
],
[
657,
665
],
[
665,
666
],
[
666,
667
],
[
638,
668
],
[
668,
669
],
[
668,
670
],
[
638,
671
],
[
671,
672
],
[
671,
673
],
[
673,
674
],
[
673,
675
],
[
638,
676
],
[
676,
677
],
[
676,
678
],
[
678,
679
],
[
596,
680
],
[
680,
681
],
[
681,
682
],
[
681,
683
],
[
680,
684
],
[
684,
685
],
[
685,
686
],
[
685,
687
],
[
687,
688
],
[
684,
689
],
[
689,
690
],
[
689,
691
],
[
684,
692
],
[
692,
693
],
[
693,
694
],
[
694,
695
],
[
694,
696
],
[
692,
697
],
[
697,
698
],
[
698,
699
],
[
699,
700
],
[
700,
701
],
[
700,
702
],
[
699,
703
],
[
703,
704
],
[
703,
705
],
[
698,
706
],
[
706,
707
],
[
707,
708
],
[
708,
709
],
[
708,
710
],
[
710,
711
],
[
711,
712
],
[
710,
713
],
[
710,
714
],
[
714,
715
],
[
697,
716
],
[
716,
717
],
[
717,
718
],
[
718,
719
],
[
718,
720
],
[
717,
721
],
[
721,
722
],
[
721,
723
],
[
716,
724
],
[
724,
725
],
[
725,
726
],
[
697,
727
],
[
727,
728
],
[
727,
729
],
[
697,
730
],
[
730,
731
],
[
730,
732
],
[
732,
733
],
[
733,
734
],
[
733,
735
],
[
732,
736
],
[
697,
737
],
[
737,
738
],
[
737,
739
],
[
739,
740
],
[
596,
741
],
[
741,
742
],
[
742,
743
],
[
742,
744
],
[
148,
745
],
[
745,
746
],
[
745,
747
],
[
747,
748
],
[
748,
749
],
[
747,
750
],
[
750,
751
],
[
751,
752
],
[
752,
753
],
[
752,
754
],
[
754,
755
],
[
754,
756
],
[
756,
757
],
[
751,
758
],
[
758,
759
],
[
758,
760
],
[
760,
761
],
[
750,
762
],
[
762,
763
],
[
763,
764
],
[
747,
765
],
[
765,
766
],
[
766,
767
],
[
766,
768
],
[
768,
769
],
[
148,
770
],
[
770,
771
],
[
770,
772
],
[
772,
773
],
[
773,
774
],
[
774,
775
],
[
148,
776
],
[
776,
777
],
[
776,
778
],
[
778,
779
],
[
779,
780
],
[
148,
781
],
[
781,
782
],
[
781,
783
],
[
783,
784
],
[
784,
785
],
[
785,
786
],
[
785,
787
],
[
784,
788
],
[
781,
789
],
[
789,
790
],
[
148,
791
],
[
791,
792
],
[
791,
793
],
[
793,
794
],
[
794,
795
],
[
794,
796
],
[
793,
798
],
[
798,
799
],
[
799,
800
],
[
800,
801
],
[
800,
802
],
[
798,
803
],
[
803,
804
],
[
803,
805
],
[
798,
806
],
[
806,
807
],
[
807,
808
],
[
798,
809
],
[
809,
810
],
[
810,
811
],
[
811,
812
],
[
811,
813
],
[
810,
814
],
[
814,
815
],
[
793,
816
],
[
816,
817
],
[
791,
818
],
[
818,
819
],
[
148,
820
],
[
820,
821
],
[
820,
822
],
[
822,
823
],
[
823,
824
],
[
823,
825
],
[
825,
826
],
[
825,
827
],
[
822,
828
],
[
828,
829
],
[
829,
830
],
[
828,
831
],
[
822,
832
],
[
832,
833
],
[
820,
834
],
[
834,
835
],
[
148,
836
],
[
836,
837
],
[
836,
838
],
[
838,
839
],
[
839,
840
],
[
839,
841
],
[
838,
843
],
[
843,
844
],
[
844,
845
],
[
844,
846
],
[
843,
847
],
[
847,
848
],
[
838,
849
],
[
849,
850
],
[
850,
851
],
[
851,
852
],
[
851,
853
],
[
849,
854
],
[
854,
855
],
[
854,
856
],
[
849,
857
],
[
857,
858
],
[
858,
859
],
[
849,
860
],
[
860,
861
],
[
861,
862
],
[
862,
863
],
[
862,
864
],
[
861,
865
],
[
865,
866
],
[
866,
867
],
[
866,
868
],
[
868,
869
],
[
868,
870
],
[
865,
871
],
[
871,
872
],
[
838,
873
],
[
873,
874
],
[
836,
875
],
[
875,
876
],
[
148,
877
],
[
877,
878
],
[
877,
879
],
[
879,
880
],
[
880,
881
],
[
880,
882
],
[
879,
884
],
[
884,
885
],
[
885,
886
],
[
886,
887
],
[
886,
888
],
[
884,
889
],
[
889,
890
],
[
889,
891
],
[
884,
892
],
[
892,
893
],
[
893,
894
],
[
884,
895
],
[
895,
896
],
[
896,
897
],
[
897,
898
],
[
897,
899
],
[
896,
900
],
[
900,
901
],
[
879,
902
],
[
902,
903
],
[
877,
904
],
[
904,
905
],
[
148,
906
],
[
906,
907
],
[
906,
908
],
[
908,
909
],
[
909,
910
],
[
909,
911
],
[
908,
913
],
[
913,
914
],
[
914,
915
],
[
914,
916
],
[
913,
917
],
[
917,
918
],
[
908,
919
],
[
919,
920
],
[
920,
921
],
[
921,
922
],
[
921,
923
],
[
919,
924
],
[
924,
925
],
[
924,
926
],
[
919,
927
],
[
927,
928
],
[
928,
929
],
[
919,
930
],
[
930,
931
],
[
931,
932
],
[
932,
933
],
[
932,
934
],
[
931,
935
],
[
935,
936
],
[
936,
937
],
[
936,
938
],
[
938,
939
],
[
938,
940
],
[
935,
941
],
[
941,
942
],
[
908,
943
],
[
943,
944
],
[
906,
945
],
[
945,
946
],
[
148,
947
],
[
947,
948
],
[
947,
949
],
[
949,
950
],
[
950,
951
],
[
950,
952
],
[
952,
953
],
[
952,
954
],
[
949,
955
],
[
955,
956
],
[
956,
957
],
[
955,
958
],
[
949,
959
],
[
959,
960
],
[
947,
961
],
[
961,
962
],
[
148,
963
],
[
963,
964
],
[
963,
965
],
[
965,
966
],
[
965,
967
],
[
967,
968
],
[
0,
969
],
[
969,
970
],
[
969,
971
]
]
| [
"\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.InputMismatchException;\n\n/**\n * @author Mubtasim Shahriar\n */\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader sc = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new Solver();\n//\t\tint t = sc.nextInt();\n\t\tint t = 1;\n\t\twhile(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}\t\t\n\t\tout.close();\n\n\t}\n\n\tstatic class Solver {\n\t\tpublic void solve(InputReader sc, PrintWriter out) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class InputReader { \n\t\tprivate boolean finished = false;\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int peek() {\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}\n\n\t\tpublic static boolean isWhitespace(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tprivate String readLine0() {\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}\n\n\t\tpublic String readLine() {\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\n\t\tpublic String readLine(boolean ignoreEmptyLines) {\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}\n\n\t\tpublic BigInteger readBigInteger() {\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}\n\n\t\tpublic char nextCharacter() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isExhausted() {\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn nextString();\n\t\t}\n\n\t\tpublic SpaceCharFilter getFilter() {\n\t\t\treturn filter;\n\t\t}\n\n\t\tpublic void setFilter(SpaceCharFilter filter) {\n\t\t\tthis.filter = filter;\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t\tpublic int[] nextIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSortedIntArray(int n){\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSumIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSumLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSortedLongArray(int n){\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t}\n\n\n}",
"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.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader sc = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new Solver();\n//\t\tint t = sc.nextInt();\n\t\tint t = 1;\n\t\twhile(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}\t\t\n\t\tout.close();\n\n\t}\n\n\tstatic class Solver {\n\t\tpublic void solve(InputReader sc, PrintWriter out) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class InputReader { \n\t\tprivate boolean finished = false;\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int peek() {\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}\n\n\t\tpublic static boolean isWhitespace(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tprivate String readLine0() {\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}\n\n\t\tpublic String readLine() {\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\n\t\tpublic String readLine(boolean ignoreEmptyLines) {\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}\n\n\t\tpublic BigInteger readBigInteger() {\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}\n\n\t\tpublic char nextCharacter() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isExhausted() {\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn nextString();\n\t\t}\n\n\t\tpublic SpaceCharFilter getFilter() {\n\t\t\treturn filter;\n\t\t}\n\n\t\tpublic void setFilter(SpaceCharFilter filter) {\n\t\t\tthis.filter = filter;\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t\tpublic int[] nextIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSortedIntArray(int n){\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSumIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSumLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSortedLongArray(int n){\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t}\n\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader sc = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new Solver();\n//\t\tint t = sc.nextInt();\n\t\tint t = 1;\n\t\twhile(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}\t\t\n\t\tout.close();\n\n\t}",
"main",
"{\n\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader sc = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new Solver();\n//\t\tint t = sc.nextInt();\n\t\tint t = 1;\n\t\twhile(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}\t\t\n\t\tout.close();\n\n\t}",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader sc = new InputReader(inputStream);",
"sc",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Solver solver = new Solver();",
"solver",
"new Solver()",
"int t = 1;",
"t",
"1",
"while(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}",
"t--!=0",
"t--",
"t",
"0",
"{\n\t\t\tsolver.solve(sc, out);\n\t\t}",
"solver.solve(sc, out)",
"solver.solve",
"solver",
"sc",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solver {\n\t\tpublic void solve(InputReader sc, PrintWriter out) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}\n\t}",
"Solver",
"public void solve(InputReader sc, PrintWriter out) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}",
"solve",
"{\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashSet<Integer> hs = new HashSet();",
"hs",
"new HashSet()",
"for(int i = 0;i < n;i++) hs.add(sc.nextInt());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"hs.add(sc.nextInt());",
"hs.add(sc.nextInt())",
"hs.add",
"hs",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int inc = 0;",
"inc",
"0",
"while(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}",
"true",
"{\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}",
"if(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}",
"!hs.contains(x-inc)",
"hs.contains(x-inc)",
"hs.contains",
"hs",
"x-inc",
"x",
"inc",
"{\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}",
"out.println(x-inc)",
"out.println",
"out",
"x-inc",
"x",
"inc",
"return;",
"if(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}",
"!hs.contains(x+inc)",
"hs.contains(x+inc)",
"hs.contains",
"hs",
"x+inc",
"x",
"inc",
"{\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}",
"out.println(x+inc)",
"out.println",
"out",
"x+inc",
"x",
"inc",
"return;",
"inc++",
"inc",
"InputReader sc",
"sc",
"PrintWriter out",
"out",
"static class InputReader { \n\t\tprivate boolean finished = false;\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int peek() {\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}\n\n\t\tpublic static boolean isWhitespace(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tprivate String readLine0() {\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}\n\n\t\tpublic String readLine() {\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\n\t\tpublic String readLine(boolean ignoreEmptyLines) {\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}\n\n\t\tpublic BigInteger readBigInteger() {\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}\n\n\t\tpublic char nextCharacter() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isExhausted() {\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn nextString();\n\t\t}\n\n\t\tpublic SpaceCharFilter getFilter() {\n\t\t\treturn filter;\n\t\t}\n\n\t\tpublic void setFilter(SpaceCharFilter filter) {\n\t\t\tthis.filter = filter;\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t\tpublic int[] nextIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSortedIntArray(int n){\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSumIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSumLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSortedLongArray(int n){\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t}",
"InputReader",
"private boolean finished = false;",
"finished",
"false",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}",
"InputReader",
"{\n\t\t\tthis.stream = stream;\n\t\t}",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}",
"read",
"{\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}",
"if (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}",
"curChar >= numChars",
"curChar",
"numChars",
"{\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}",
"curChar = 0",
"curChar",
"0",
"try {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t}",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"numChars <= 0",
"numChars",
"0",
"{\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int peek() {\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}",
"peek",
"{\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}",
"if (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n\t\t\t\treturn -1;\n\t\t\t}",
"return -1;",
"-1",
"1",
"if (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}",
"curChar >= numChars",
"curChar",
"numChars",
"{\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}",
"curChar = 0",
"curChar",
"0",
"try {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"return -1;",
"-1",
"1",
"{\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t}",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"numChars <= 0",
"numChars",
"0",
"{\n\t\t\t\t\treturn -1;\n\t\t\t\t}",
"return -1;",
"-1",
"1",
"return buf[curChar];",
"buf[curChar]",
"buf",
"curChar",
"public int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"nextInt",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tc = read();\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"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\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"nextLong",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tc = read();\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"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 nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}",
"nextString",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tc = read();\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}",
"if (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}",
"Character.isValidCodePoint(c)",
"Character.isValidCodePoint",
"Character",
"c",
"{\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}",
"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\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}",
"isSpaceChar",
"{\n\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}",
"if (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}",
"filter != null",
"filter",
"null",
"{\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}",
"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\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"isWhitespace",
"{\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"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 String readLine0() {\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}",
"readLine0",
"{\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}",
"StringBuilder buf = new StringBuilder();",
"buf",
"new StringBuilder()",
"int c = read();",
"c",
"read()",
"read",
"while (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}",
"c != '\\n' && c != -1",
"c != '\\n'",
"c",
"'\\n'",
"c != -1",
"c",
"-1",
"1",
"{\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}",
"if (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}",
"c != '\\r'",
"c",
"'\\r'",
"{\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}",
"buf.appendCodePoint(c)",
"buf.appendCodePoint",
"buf",
"c",
"c = read()",
"c",
"read()",
"read",
"return buf.toString();",
"buf.toString()",
"buf.toString",
"buf",
"public String readLine() {\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}",
"readLine",
"{\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}",
"String s = readLine0();",
"s",
"readLine0()",
"readLine0",
"while (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}",
"s.trim().length() == 0",
"s.trim().length()",
"s.trim().length",
"s.trim()",
"s.trim",
"s",
"0",
"{\n\t\t\t\ts = readLine0();\n\t\t\t}",
"s = readLine0()",
"s",
"readLine0()",
"readLine0",
"return s;",
"s",
"public String readLine(boolean ignoreEmptyLines) {\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}",
"readLine",
"{\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}",
"if (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}",
"ignoreEmptyLines",
"{\n\t\t\t\treturn readLine();\n\t\t\t}",
"return readLine();",
"readLine()",
"readLine",
"{\n\t\t\t\treturn readLine0();\n\t\t\t}",
"return readLine0();",
"readLine0()",
"readLine0",
"boolean ignoreEmptyLines",
"ignoreEmptyLines",
"public BigInteger readBigInteger() {\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}",
"readBigInteger",
"{\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"NumberFormatException e",
"{\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t}",
"return new BigInteger(nextString());",
"new BigInteger(nextString())",
"public char nextCharacter() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}",
"nextCharacter",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tc = read();\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"return (char) c;",
"(char) c",
"public double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}",
"nextDouble",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tc = read();\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"double res = 0;",
"res",
"0",
"while (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"!isSpaceChar(c) && c != '.'",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c != '.'",
"c",
"'.'",
"{\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}",
"c == 'e' || c == 'E'",
"c == 'e'",
"c",
"'e'",
"c == 'E'",
"c",
"'E'",
"{\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}",
"return res * Math.pow(10, nextInt());",
"res * Math.pow(10, nextInt())",
"res",
"Math.pow(10, nextInt())",
"Math.pow",
"Math",
"10",
"nextInt()",
"nextInt",
"if (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"if (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}",
"c == '.'",
"c",
"'.'",
"{\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"double m = 1;",
"m",
"1",
"while (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}",
"if (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}",
"c == 'e' || c == 'E'",
"c == 'e'",
"c",
"'e'",
"c == 'E'",
"c",
"'E'",
"{\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}",
"return res * Math.pow(10, nextInt());",
"res * Math.pow(10, nextInt())",
"res",
"Math.pow(10, nextInt())",
"Math.pow",
"Math",
"10",
"nextInt()",
"nextInt",
"if (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"m /= 10",
"m",
"10",
"res += (c - '0') * m",
"res",
"(c - '0') * m",
"(c - '0')",
"c",
"'0'",
"m",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isExhausted() {\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}",
"isExhausted",
"{\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}",
"int value;",
"value",
"while (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}",
"isSpaceChar(value = peek()) && value != -1",
"isSpaceChar(value = peek())",
"isSpaceChar",
"value = peek()",
"value",
"peek()",
"peek",
"value != -1",
"value",
"-1",
"1",
"{\n\t\t\t\tread();\n\t\t\t}",
"read()",
"read",
"return value == -1;",
"value == -1",
"value",
"-1",
"1",
"public String next() {\n\t\t\treturn nextString();\n\t\t}",
"next",
"{\n\t\t\treturn nextString();\n\t\t}",
"return nextString();",
"nextString()",
"nextString",
"public SpaceCharFilter getFilter() {\n\t\t\treturn filter;\n\t\t}",
"getFilter",
"{\n\t\t\treturn filter;\n\t\t}",
"return filter;",
"filter",
"public void setFilter(SpaceCharFilter filter) {\n\t\t\tthis.filter = filter;\n\t\t}",
"setFilter",
"{\n\t\t\tthis.filter = filter;\n\t\t}",
"this.filter = filter",
"this.filter",
"this",
"this.filter",
"filter",
"SpaceCharFilter filter",
"filter",
"public int[] nextIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}",
"nextIntArray",
"{\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}",
"int[] array=new int[n];",
"array",
"new int[n]",
"n",
"for(int i=0;i<n;++i)array[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"++i",
"++i",
"i",
"array[i]=nextInt();",
"array[i]=nextInt()",
"array[i]",
"array",
"i",
"nextInt()",
"nextInt",
"return array;",
"array",
"int n",
"n",
"public int[] nextSortedIntArray(int n){\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}",
"nextSortedIntArray",
"{\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}",
"int array[]=nextIntArray(n);",
"array",
"nextIntArray(n)",
"nextIntArray",
"n",
"Arrays.sort(array)",
"Arrays.sort",
"Arrays",
"array",
"return array;",
"array",
"int n",
"n",
"public int[] nextSumIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}",
"nextSumIntArray",
"{\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}",
"int[] array=new int[n];",
"array",
"new int[n]",
"n",
"array[0]=nextInt()",
"array[0]",
"array",
"0",
"nextInt()",
"nextInt",
"for(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"++i",
"++i",
"i",
"array[i]=array[i-1]+nextInt();",
"array[i]=array[i-1]+nextInt()",
"array[i]",
"array",
"i",
"array[i-1]+nextInt()",
"array[i-1]",
"array",
"i-1",
"i",
"1",
"nextInt()",
"nextInt",
"return array;",
"array",
"int n",
"n",
"public long[] nextLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}",
"nextLongArray",
"{\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}",
"long[] array=new long[n];",
"array",
"new long[n]",
"n",
"for(int i=0;i<n;++i)array[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"++i",
"++i",
"i",
"array[i]=nextLong();",
"array[i]=nextLong()",
"array[i]",
"array",
"i",
"nextLong()",
"nextLong",
"return array;",
"array",
"int n",
"n",
"public long[] nextSumLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}",
"nextSumLongArray",
"{\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}",
"long[] array=new long[n];",
"array",
"new long[n]",
"n",
"array[0]=nextInt()",
"array[0]",
"array",
"0",
"nextInt()",
"nextInt",
"for(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"++i",
"++i",
"i",
"array[i]=array[i-1]+nextInt();",
"array[i]=array[i-1]+nextInt()",
"array[i]",
"array",
"i",
"array[i-1]+nextInt()",
"array[i-1]",
"array",
"i-1",
"i",
"1",
"nextInt()",
"nextInt",
"return array;",
"array",
"int n",
"n",
"public long[] nextSortedLongArray(int n){\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}",
"nextSortedLongArray",
"{\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}",
"long array[]=nextLongArray(n);",
"array",
"nextLongArray(n)",
"nextLongArray",
"n",
"Arrays.sort(array)",
"Arrays.sort",
"Arrays",
"array",
"return array;",
"array",
"int n",
"n",
"public interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader sc = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new Solver();\n//\t\tint t = sc.nextInt();\n\t\tint t = 1;\n\t\twhile(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}\t\t\n\t\tout.close();\n\n\t}\n\n\tstatic class Solver {\n\t\tpublic void solve(InputReader sc, PrintWriter out) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class InputReader { \n\t\tprivate boolean finished = false;\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int peek() {\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}\n\n\t\tpublic static boolean isWhitespace(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tprivate String readLine0() {\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}\n\n\t\tpublic String readLine() {\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\n\t\tpublic String readLine(boolean ignoreEmptyLines) {\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}\n\n\t\tpublic BigInteger readBigInteger() {\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}\n\n\t\tpublic char nextCharacter() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isExhausted() {\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn nextString();\n\t\t}\n\n\t\tpublic SpaceCharFilter getFilter() {\n\t\t\treturn filter;\n\t\t}\n\n\t\tpublic void setFilter(SpaceCharFilter filter) {\n\t\t\tthis.filter = filter;\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t\tpublic int[] nextIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSortedIntArray(int n){\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSumIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSumLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSortedLongArray(int n){\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t}\n\n\n}",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader sc = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new Solver();\n//\t\tint t = sc.nextInt();\n\t\tint t = 1;\n\t\twhile(t--!=0) {\n\t\t\tsolver.solve(sc, out);\n\t\t}\t\t\n\t\tout.close();\n\n\t}\n\n\tstatic class Solver {\n\t\tpublic void solve(InputReader sc, PrintWriter out) {\n\t\t\tint x = sc.nextInt();\n\t\t\tint n = sc.nextInt();\n\t\t\tHashSet<Integer> hs = new HashSet();\n\t\t\tfor(int i = 0;i < n;i++) hs.add(sc.nextInt());\n\t\t\tint inc = 0;\n\t\t\twhile(true) {\n\t\t\t\tif(!hs.contains(x-inc)) {\n\t\t\t\t\tout.println(x-inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!hs.contains(x+inc)) {\n\t\t\t\t\tout.println(x+inc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tinc++;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class InputReader { \n\t\tprivate boolean finished = false;\n\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[1024];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic int peek() {\n\t\t\tif (numChars == -1) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif (numChars <= 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf[curChar];\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String nextString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tif (Character.isValidCodePoint(c)) {\n\t\t\t\t\tres.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null) {\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\t}\n\t\t\treturn isWhitespace(c);\n\t\t}\n\n\t\tpublic static boolean isWhitespace(int c) {\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tprivate String readLine0() {\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tint c = read();\n\t\t\twhile (c != '\\n' && c != -1) {\n\t\t\t\tif (c != '\\r') {\n\t\t\t\t\tbuf.appendCodePoint(c);\n\t\t\t\t}\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn buf.toString();\n\t\t}\n\n\t\tpublic String readLine() {\n\t\t\tString s = readLine0();\n\t\t\twhile (s.trim().length() == 0) {\n\t\t\t\ts = readLine0();\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\n\t\tpublic String readLine(boolean ignoreEmptyLines) {\n\t\t\tif (ignoreEmptyLines) {\n\t\t\t\treturn readLine();\n\t\t\t} else {\n\t\t\t\treturn readLine0();\n\t\t\t}\n\t\t}\n\n\t\tpublic BigInteger readBigInteger() {\n\t\t\ttry {\n\t\t\t\treturn new BigInteger(nextString());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t}\n\n\t\tpublic char nextCharacter() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn (char) c;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c)) {\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t}\n\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E') {\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\t}\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic boolean isExhausted() {\n\t\t\tint value;\n\t\t\twhile (isSpaceChar(value = peek()) && value != -1) {\n\t\t\t\tread();\n\t\t\t}\n\t\t\treturn value == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn nextString();\n\t\t}\n\n\t\tpublic SpaceCharFilter getFilter() {\n\t\t\treturn filter;\n\t\t}\n\n\t\tpublic void setFilter(SpaceCharFilter filter) {\n\t\t\tthis.filter = filter;\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t\tpublic int[] nextIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSortedIntArray(int n){\n\t\t\tint array[]=nextIntArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t\tpublic int[] nextSumIntArray(int n){\n\t\t\tint[] array=new int[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tfor(int i=0;i<n;++i)array[i]=nextLong();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSumLongArray(int n){\n\t\t\tlong[] array=new long[n];\n\t\t\tarray[0]=nextInt();\n\t\t\tfor(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();\n\t\t\treturn array;\n\t\t}\n\t\tpublic long[] nextSortedLongArray(int n){\n\t\t\tlong array[]=nextLongArray(n);\n\t\t\tArrays.sort(array);\n\t\t\treturn array;\n\t\t}\n\t}\n\n\n}",
"Main"
]
|
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.HashSet;
import java.util.InputMismatchException;
/**
* @author Mubtasim Shahriar
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader sc = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Solver solver = new Solver();
// int t = sc.nextInt();
int t = 1;
while(t--!=0) {
solver.solve(sc, out);
}
out.close();
}
static class Solver {
public void solve(InputReader sc, PrintWriter out) {
int x = sc.nextInt();
int n = sc.nextInt();
HashSet<Integer> hs = new HashSet();
for(int i = 0;i < n;i++) hs.add(sc.nextInt());
int inc = 0;
while(true) {
if(!hs.contains(x-inc)) {
out.println(x-inc);
return;
}
if(!hs.contains(x+inc)) {
out.println(x+inc);
return;
}
inc++;
}
}
}
static class InputReader {
private boolean finished = false;
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private 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 peek() {
if (numChars == -1) {
return -1;
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
return -1;
}
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 nextString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
if (Character.isValidCodePoint(c)) {
res.appendCodePoint(c);
}
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
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;
}
private String readLine0() {
StringBuilder buf = new StringBuilder();
int c = read();
while (c != '\n' && c != -1) {
if (c != '\r') {
buf.appendCodePoint(c);
}
c = read();
}
return buf.toString();
}
public String readLine() {
String s = readLine0();
while (s.trim().length() == 0) {
s = readLine0();
}
return s;
}
public String readLine(boolean ignoreEmptyLines) {
if (ignoreEmptyLines) {
return readLine();
} else {
return readLine0();
}
}
public BigInteger readBigInteger() {
try {
return new BigInteger(nextString());
} catch (NumberFormatException e) {
throw new InputMismatchException();
}
}
public char nextCharacter() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
return (char) c;
}
public double nextDouble() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
double res = 0;
while (!isSpaceChar(c) && c != '.') {
if (c == 'e' || c == 'E') {
return res * Math.pow(10, nextInt());
}
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
}
if (c == '.') {
c = read();
double m = 1;
while (!isSpaceChar(c)) {
if (c == 'e' || c == 'E') {
return res * Math.pow(10, nextInt());
}
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
m /= 10;
res += (c - '0') * m;
c = read();
}
}
return res * sgn;
}
public boolean isExhausted() {
int value;
while (isSpaceChar(value = peek()) && value != -1) {
read();
}
return value == -1;
}
public String next() {
return nextString();
}
public SpaceCharFilter getFilter() {
return filter;
}
public void setFilter(SpaceCharFilter filter) {
this.filter = filter;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
public int[] nextIntArray(int n){
int[] array=new int[n];
for(int i=0;i<n;++i)array[i]=nextInt();
return array;
}
public int[] nextSortedIntArray(int n){
int array[]=nextIntArray(n);
Arrays.sort(array);
return array;
}
public int[] nextSumIntArray(int n){
int[] array=new int[n];
array[0]=nextInt();
for(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();
return array;
}
public long[] nextLongArray(int n){
long[] array=new long[n];
for(int i=0;i<n;++i)array[i]=nextLong();
return array;
}
public long[] nextSumLongArray(int n){
long[] array=new long[n];
array[0]=nextInt();
for(int i=1;i<n;++i)array[i]=array[i-1]+nextInt();
return array;
}
public long[] nextSortedLongArray(int n){
long array[]=nextLongArray(n);
Arrays.sort(array);
return array;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
13,
13,
30,
9,
14,
2,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
30,
29,
18,
13,
40,
13,
30,
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,
38,
5,
13,
30,
30,
4,
18,
13,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
7,
12
],
[
12,
13
],
[
12,
14
],
[
7,
15
],
[
15,
16
],
[
15,
17
],
[
7,
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
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
38,
45
],
[
20,
46
],
[
46,
47
],
[
46,
48
],
[
20,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
20,
68
],
[
68,
69
],
[
68,
70
],
[
20,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
89,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
91,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
20,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
20,
115
],
[
115,
116
],
[
116,
117
],
[
18,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
120,
127
],
[
127,
128
],
[
127,
129
],
[
120,
131
],
[
131,
132
],
[
131,
133
],
[
120,
134
],
[
134,
135
],
[
134,
136
],
[
120,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
140,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
151,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
147,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
139,
172
],
[
172,
173
],
[
120,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
177,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
120,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
198,
200
],
[
190,
201
],
[
201,
202
],
[
120,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
213,
215
],
[
206,
216
],
[
216,
217
],
[
205,
218
],
[
218,
219
],
[
219,
220
],
[
120,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
224,
228
],
[
228,
229
],
[
223,
230
],
[
230,
231
],
[
230,
232
],
[
223,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
223,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
242,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
223,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
120,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
257,
261
],
[
261,
262
],
[
256,
263
],
[
263,
264
],
[
263,
265
],
[
256,
266
],
[
266,
267
],
[
266,
268
],
[
256,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
256,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
256,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
290,
292
],
[
285,
293
],
[
293,
294
],
[
294,
295
],
[
256,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
304,
306
],
[
299,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
307,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
313,
315
],
[
299,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
317,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
316,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
328,
332
],
[
316,
333
],
[
333,
334
],
[
334,
335
],
[
298,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
120,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
342,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
351,
353
],
[
348,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
356,
358
],
[
347,
359
],
[
359,
360
],
[
342,
361
],
[
361,
362
],
[
120,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
367,
370
],
[
370,
371
],
[
120,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
375,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
120,
383
]
]
| [
"import java.io.*;\nimport java.util.*;\nclass Main{\n\tstatic final long MOD = 1_000_000_007; // 10^9+7\n\tstatic final int MAX = 2_147_483_646; // intMax \n\tstatic final int INF = 1_000_000_000; // 10^9 \n\tpublic static void main(String[] args) throws Exception{\n\t\thayami saori = new hayami();\n\t\tint x = saori.saori_hayami();\n\t\tint n = saori.saori_hayami();\n\t\tif(n == 0){\n\t\t\tSystem.out.println(x);\n\t\t\treturn;\n\t\t}\n\t\tHashSet<Integer> p = new HashSet<>();\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tp.add(saori.saori_hayami());\n\t\t}\n\t\tint ans = MAX;\n\t\tfor(int i = 0;i <= 101;i++){\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsaori.close();\n\t}\n}\n\nclass hayami implements Closeable {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] hayami = new byte[1024];\n\tprivate int Hayami = 0;\n\tprivate int saori = 0;\n\tprivate boolean HayamiSaori() {\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\tprivate int SaoriHayami() { \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}\n\tprivate static boolean hayami_saori(int hayami) { \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}\n\tpublic boolean hayamisaori() { \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}\n\tpublic String nextHayami() {\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}\n\tpublic long saorihayami() {//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}\n\tpublic int saori_hayami() {//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}\n\tpublic double Hayamin() { //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}\n\tpublic void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tstatic final long MOD = 1_000_000_007; // 10^9+7\n\tstatic final int MAX = 2_147_483_646; // intMax \n\tstatic final int INF = 1_000_000_000; // 10^9 \n\tpublic static void main(String[] args) throws Exception{\n\t\thayami saori = new hayami();\n\t\tint x = saori.saori_hayami();\n\t\tint n = saori.saori_hayami();\n\t\tif(n == 0){\n\t\t\tSystem.out.println(x);\n\t\t\treturn;\n\t\t}\n\t\tHashSet<Integer> p = new HashSet<>();\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tp.add(saori.saori_hayami());\n\t\t}\n\t\tint ans = MAX;\n\t\tfor(int i = 0;i <= 101;i++){\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsaori.close();\n\t}\n}",
"Main",
"static final long MOD = 1_000_000_007; // 10^9+7",
"MOD",
"1_000_000_007",
"static final int MAX = 2_147_483_646; // intMax ",
"MAX",
"2_147_483_646",
"static final int INF = 1_000_000_000; // 10^9 ",
"INF",
"1_000_000_000",
"public static void main(String[] args) throws Exception{\n\t\thayami saori = new hayami();\n\t\tint x = saori.saori_hayami();\n\t\tint n = saori.saori_hayami();\n\t\tif(n == 0){\n\t\t\tSystem.out.println(x);\n\t\t\treturn;\n\t\t}\n\t\tHashSet<Integer> p = new HashSet<>();\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tp.add(saori.saori_hayami());\n\t\t}\n\t\tint ans = MAX;\n\t\tfor(int i = 0;i <= 101;i++){\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsaori.close();\n\t}",
"main",
"{\n\t\thayami saori = new hayami();\n\t\tint x = saori.saori_hayami();\n\t\tint n = saori.saori_hayami();\n\t\tif(n == 0){\n\t\t\tSystem.out.println(x);\n\t\t\treturn;\n\t\t}\n\t\tHashSet<Integer> p = new HashSet<>();\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tp.add(saori.saori_hayami());\n\t\t}\n\t\tint ans = MAX;\n\t\tfor(int i = 0;i <= 101;i++){\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsaori.close();\n\t}",
"hayami saori = new hayami();",
"saori",
"new hayami()",
"int x = saori.saori_hayami();",
"x",
"saori.saori_hayami()",
"saori.saori_hayami",
"saori",
"int n = saori.saori_hayami();",
"n",
"saori.saori_hayami()",
"saori.saori_hayami",
"saori",
"if(n == 0){\n\t\t\tSystem.out.println(x);\n\t\t\treturn;\n\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\tSystem.out.println(x);\n\t\t\treturn;\n\t\t}",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"return;",
"HashSet<Integer> p = new HashSet<>();",
"p",
"new HashSet<>()",
"for(int i = 0;i < n;i++){\n\t\t\tp.add(saori.saori_hayami());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tp.add(saori.saori_hayami());\n\t\t}",
"{\n\t\t\tp.add(saori.saori_hayami());\n\t\t}",
"p.add(saori.saori_hayami())",
"p.add",
"p",
"saori.saori_hayami()",
"saori.saori_hayami",
"saori",
"int ans = MAX;",
"ans",
"MAX",
"for(int i = 0;i <= 101;i++){\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"{\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}",
"if(p.contains(i)){\n\t\t\t\tcontinue;\n\t\t\t}",
"p.contains(i)",
"p.contains",
"p",
"i",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"if(Math.abs(i-x) < Math.abs(ans - x)){\n\t\t\t\tans = i;\n\t\t\t}",
"Math.abs(i-x) < Math.abs(ans - x)",
"Math.abs(i-x)",
"Math.abs",
"Math",
"i-x",
"i",
"x",
"Math.abs(ans - x)",
"Math.abs",
"Math",
"ans - x",
"ans",
"x",
"{\n\t\t\t\tans = i;\n\t\t\t}",
"ans = i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"saori.close()",
"saori.close",
"saori",
"String[] args",
"args",
"class hayami implements Closeable {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] hayami = new byte[1024];\n\tprivate int Hayami = 0;\n\tprivate int saori = 0;\n\tprivate boolean HayamiSaori() {\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\tprivate int SaoriHayami() { \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}\n\tprivate static boolean hayami_saori(int hayami) { \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}\n\tpublic boolean hayamisaori() { \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}\n\tpublic String nextHayami() {\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}\n\tpublic long saorihayami() {//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}\n\tpublic int saori_hayami() {//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}\n\tpublic double Hayamin() { //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}\n\tpublic void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }\n \n}",
"hayami",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] hayami = new byte[1024];",
"hayami",
"new byte[1024]",
"1024",
"private int Hayami = 0;",
"Hayami",
"0",
"private int saori = 0;",
"saori",
"0",
"private boolean HayamiSaori() {\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"HayamiSaori",
"{\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"if (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"Hayami < saori",
"Hayami",
"saori",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"Hayami = 0",
"Hayami",
"0",
"try {\n\t\t\t\tsaori = in.read(hayami);\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\tsaori = in.read(hayami);\n\t\t\t}",
"saori = in.read(hayami)",
"saori",
"in.read(hayami)",
"in.read",
"in",
"hayami",
"if (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}",
"saori <= 0",
"saori",
"0",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"return true;",
"true",
"private int SaoriHayami() { \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}",
"SaoriHayami",
"{ \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}",
"if (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }",
"HayamiSaori()",
"HayamiSaori",
"{\n return hayami[Hayami++];\n }",
"return hayami[Hayami++];",
"hayami[Hayami++]",
"hayami",
"Hayami++",
"Hayami",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"private static boolean hayami_saori(int hayami) { \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}",
"hayami_saori",
"{ \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}",
"return 33 <= hayami && hayami <= 126;",
"33 <= hayami && hayami <= 126",
"33 <= hayami",
"33",
"hayami",
"hayami <= 126",
"hayami",
"126",
"int hayami",
"hayami",
"public boolean hayamisaori() { \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}",
"hayamisaori",
"{ \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}",
"while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++;",
"HayamiSaori() && !hayami_saori(hayami[Hayami])",
"HayamiSaori()",
"HayamiSaori",
"!hayami_saori(hayami[Hayami])",
"hayami_saori(hayami[Hayami])",
"hayami_saori",
"hayami[Hayami]",
"hayami",
"Hayami",
"Hayami++",
"Hayami",
"return HayamiSaori();",
"HayamiSaori()",
"HayamiSaori",
"public String nextHayami() {\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}",
"nextHayami",
"{\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}",
"if (!hayamisaori()) throw new NoSuchElementException();",
"!hayamisaori()",
"hayamisaori()",
"hayamisaori",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder hayamin = new StringBuilder();",
"hayamin",
"new StringBuilder()",
"int saori = SaoriHayami();",
"saori",
"SaoriHayami()",
"SaoriHayami",
"while(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"hayami_saori(saori)",
"hayami_saori",
"saori",
"{\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"hayamin.appendCodePoint(saori)",
"hayamin.appendCodePoint",
"hayamin",
"saori",
"saori = SaoriHayami()",
"saori",
"SaoriHayami()",
"SaoriHayami",
"return hayamin.toString();",
"hayamin.toString()",
"hayamin.toString",
"hayamin",
"public long saorihayami() {//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}",
"saorihayami",
"{//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}",
"if (!hayamisaori()) throw new NoSuchElementException();",
"!hayamisaori()",
"hayamisaori()",
"hayamisaori",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long hayami = 0;",
"hayami",
"0",
"boolean misao = false;",
"misao",
"false",
"int saori = SaoriHayami();",
"saori",
"SaoriHayami()",
"SaoriHayami",
"if (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"saori == '-'",
"saori",
"'-'",
"{\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"misao = true",
"misao",
"true",
"saori = SaoriHayami()",
"saori",
"SaoriHayami()",
"SaoriHayami",
"if (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"saori < '0' || '9' < saori",
"saori < '0'",
"saori",
"'0'",
"'9' < saori",
"'9'",
"saori",
"{\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"true",
"{\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"if ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"'0' <= saori && saori <= '9'",
"'0' <= saori",
"'0'",
"saori",
"saori <= '9'",
"saori",
"'9'",
"{\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}",
"hayami *= 10",
"hayami",
"10",
"hayami += saori - '0'",
"hayami",
"saori - '0'",
"saori",
"'0'",
"if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"saori == -1 || !hayami_saori(saori)",
"saori == -1",
"saori",
"-1",
"1",
"!hayami_saori(saori)",
"hayami_saori(saori)",
"hayami_saori",
"saori",
"{\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}",
"return misao ? -hayami : hayami;",
"misao ? -hayami : hayami",
"misao",
"-hayami",
"hayami",
"hayami",
"{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"saori = SaoriHayami()",
"saori",
"SaoriHayami()",
"SaoriHayami",
"public int saori_hayami() {//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}",
"saori_hayami",
"{//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}",
"long hayami = saorihayami();",
"hayami",
"saorihayami()",
"saorihayami",
"if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();",
"hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE",
"hayami < Integer.MIN_VALUE",
"hayami",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"hayami > Integer.MAX_VALUE",
"hayami",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) hayami;",
"(int) hayami",
"public double Hayamin() { //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}",
"Hayamin",
"{ //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}",
"return Double.parseDouble(nextHayami());",
"Double.parseDouble(nextHayami())",
"Double.parseDouble",
"Double",
"nextHayami()",
"nextHayami",
"public void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }",
"close",
"{\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }",
"try {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}",
"catch (IOException e) {\n\t\t}",
"IOException e",
"{\n\t\t}",
"{\n\t\t\tin.close();\n\t\t}",
"in.close()",
"in.close",
"in",
"Closeable"
]
| import java.io.*;
import java.util.*;
class Main{
static final long MOD = 1_000_000_007; // 10^9+7
static final int MAX = 2_147_483_646; // intMax
static final int INF = 1_000_000_000; // 10^9
public static void main(String[] args) throws Exception{
hayami saori = new hayami();
int x = saori.saori_hayami();
int n = saori.saori_hayami();
if(n == 0){
System.out.println(x);
return;
}
HashSet<Integer> p = new HashSet<>();
for(int i = 0;i < n;i++){
p.add(saori.saori_hayami());
}
int ans = MAX;
for(int i = 0;i <= 101;i++){
if(p.contains(i)){
continue;
}
if(Math.abs(i-x) < Math.abs(ans - x)){
ans = i;
}
}
System.out.println(ans);
saori.close();
}
}
class hayami implements Closeable {
private final InputStream in = System.in;
private final byte[] hayami = new byte[1024];
private int Hayami = 0;
private int saori = 0;
private boolean HayamiSaori() {
if (Hayami < saori) {
return true;
}else{
Hayami = 0;
try {
saori = in.read(hayami);
} catch (IOException e) {
e.printStackTrace();
}
if (saori <= 0) {
return false;
}
}
return true;
}
private int SaoriHayami() {
if (HayamiSaori()) {
return hayami[Hayami++];
}else{
return -1;
}
}
private static boolean hayami_saori(int hayami) {
return 33 <= hayami && hayami <= 126;
}
public boolean hayamisaori() {
while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();
}
public String nextHayami() {
if (!hayamisaori()) throw new NoSuchElementException();
StringBuilder hayamin = new StringBuilder();
int saori = SaoriHayami();
while(hayami_saori(saori)) {
hayamin.appendCodePoint(saori);
saori = SaoriHayami();
}
return hayamin.toString();
}
public long saorihayami() {//nextLong
if (!hayamisaori()) throw new NoSuchElementException();
long hayami = 0;
boolean misao = false;
int saori = SaoriHayami();
if (saori == '-') {
misao = true;
saori = SaoriHayami();
}
if (saori < '0' || '9' < saori) {
throw new NumberFormatException();
}
while(true){
if ('0' <= saori && saori <= '9') {
hayami *= 10;
hayami += saori - '0';
}else if(saori == -1 || !hayami_saori(saori)){
return misao ? -hayami : hayami;
}else{
throw new NumberFormatException();
}
saori = SaoriHayami();
}
}
public int saori_hayami() {//nextInt
long hayami = saorihayami();
if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) hayami;
}
public double Hayamin() { //nextDouble
return Double.parseDouble(nextHayami());
}
public void close() {
try {
in.close();
} catch (IOException e) {
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
13,
13,
9,
14,
2,
13,
4,
18,
13,
2,
13,
13,
30,
0,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
11,
49
],
[
49,
50
],
[
49,
51
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
9,
101
],
[
101,
102
]
]
| [
"import java.util.*;\nimport java.util.stream.*;\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n List<Integer> P = new ArrayList<>();\n for (int i = 0; i < N; i++) P.add(sc.nextInt());\n int ans = 0;\n int min = X;\n for (int i = 0; i <= 101; i++) {\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.stream.*;",
"stream.*",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n List<Integer> P = new ArrayList<>();\n for (int i = 0; i < N; i++) P.add(sc.nextInt());\n int ans = 0;\n int min = X;\n for (int i = 0; i <= 101; i++) {\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n List<Integer> P = new ArrayList<>();\n for (int i = 0; i < N; i++) P.add(sc.nextInt());\n int ans = 0;\n int min = X;\n for (int i = 0; i <= 101; i++) {\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n List<Integer> P = new ArrayList<>();\n for (int i = 0; i < N; i++) P.add(sc.nextInt());\n int ans = 0;\n int min = X;\n for (int i = 0; i <= 101; i++) {\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"List<Integer> P = new ArrayList<>();",
"P",
"new ArrayList<>()",
"for (int i = 0; i < N; i++) P.add(sc.nextInt());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"P.add(sc.nextInt());",
"P.add(sc.nextInt())",
"P.add",
"P",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"int min = X;",
"min",
"X",
"for (int i = 0; i <= 101; i++) {\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"{\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }",
"{\n if (P.contains(i)) continue;\n if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }\n }",
"if (P.contains(i)) continue;",
"P.contains(i)",
"P.contains",
"P",
"i",
"continue;",
"if (min > Math.abs(X-i)) {\n ans = i;\n min = Math.abs(X-i);\n }",
"min > Math.abs(X-i)",
"min",
"Math.abs(X-i)",
"Math.abs",
"Math",
"X-i",
"X",
"i",
"{\n ans = i;\n min = Math.abs(X-i);\n }",
"ans = i",
"ans",
"i",
"min = Math.abs(X-i)",
"min",
"Math.abs(X-i)",
"Math.abs",
"Math",
"X-i",
"X",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
]
| import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int N = sc.nextInt();
sc.nextLine();
List<Integer> P = new ArrayList<>();
for (int i = 0; i < N; i++) P.add(sc.nextInt());
int ans = 0;
int min = X;
for (int i = 0; i <= 101; i++) {
if (P.contains(i)) continue;
if (min > Math.abs(X-i)) {
ans = i;
min = Math.abs(X-i);
}
}
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
17,
41,
13,
2,
13,
17,
4,
18,
13,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
2,
40,
4,
18,
13,
13,
40,
4,
18,
13,
13,
30,
14,
2,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
30,
4,
18,
18,
13,
13,
13,
29,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
58,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
84,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
101,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
115,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
114,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
128,
135
],
[
114,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
136,
143
],
[
6,
144
],
[
144,
145
]
]
| [
"import java.util.*;\n\nclass Main\n{\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n int n = input.nextInt();\n ArrayList<Integer> p = new ArrayList();\n for (int i = 0; i < n; i++) {\n p.add(input.nextInt());\n }\n int left=x-1, right=x+1;\n\n Collections.sort(p);\n if(!p.contains(x)){\n System.out.print(x);\n }else{\n for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n int n = input.nextInt();\n ArrayList<Integer> p = new ArrayList();\n for (int i = 0; i < n; i++) {\n p.add(input.nextInt());\n }\n int left=x-1, right=x+1;\n\n Collections.sort(p);\n if(!p.contains(x)){\n System.out.print(x);\n }else{\n for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n int n = input.nextInt();\n ArrayList<Integer> p = new ArrayList();\n for (int i = 0; i < n; i++) {\n p.add(input.nextInt());\n }\n int left=x-1, right=x+1;\n\n Collections.sort(p);\n if(!p.contains(x)){\n System.out.print(x);\n }else{\n for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n int n = input.nextInt();\n ArrayList<Integer> p = new ArrayList();\n for (int i = 0; i < n; i++) {\n p.add(input.nextInt());\n }\n int left=x-1, right=x+1;\n\n Collections.sort(p);\n if(!p.contains(x)){\n System.out.print(x);\n }else{\n for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int x = input.nextInt();",
"x",
"input.nextInt()",
"input.nextInt",
"input",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"ArrayList<Integer> p = new ArrayList();",
"p",
"new ArrayList()",
"for (int i = 0; i < n; i++) {\n p.add(input.nextInt());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n p.add(input.nextInt());\n }",
"{\n p.add(input.nextInt());\n }",
"p.add(input.nextInt())",
"p.add",
"p",
"input.nextInt()",
"input.nextInt",
"input",
"int left=x-1",
"left",
"x-1",
"x",
"1",
"right=x+1;",
"right",
"x+1",
"x",
"1",
"Collections.sort(p)",
"Collections.sort",
"Collections",
"p",
"if(!p.contains(x)){\n System.out.print(x);\n }else{\n for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }\n }",
"!p.contains(x)",
"p.contains(x)",
"p.contains",
"p",
"x",
"{\n System.out.print(x);\n }",
"System.out.print(x)",
"System.out.print",
"System.out",
"System",
"System.out",
"x",
"{\n for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }\n }",
"for(int i=0; i<n; i++){\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }",
"{\n if(p.contains(left)){\n left--;\n }\n if(p.contains(right)){\n right++;\n }\n if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }\n }",
"if(p.contains(left)){\n left--;\n }",
"p.contains(left)",
"p.contains",
"p",
"left",
"{\n left--;\n }",
"left--",
"left",
"if(p.contains(right)){\n right++;\n }",
"p.contains(right)",
"p.contains",
"p",
"right",
"{\n right++;\n }",
"right++",
"right",
"if(!p.contains(left)&&!p.contains(right)){\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }",
"!p.contains(left)&&!p.contains(right)",
"!p.contains(left)",
"p.contains(left)",
"p.contains",
"p",
"left",
"!p.contains(right)",
"p.contains(right)",
"p.contains",
"p",
"right",
"{\n if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }\n }",
"if(Math.abs(x-left)>Math.abs(x-right)){\n System.out.print(right);\n \n return;\n }else{\n System.out.print(left);\n return;\n }",
"Math.abs(x-left)>Math.abs(x-right)",
"Math.abs(x-left)",
"Math.abs",
"Math",
"x-left",
"x",
"left",
"Math.abs(x-right)",
"Math.abs",
"Math",
"x-right",
"x",
"right",
"{\n System.out.print(right);\n \n return;\n }",
"System.out.print(right)",
"System.out.print",
"System.out",
"System",
"System.out",
"right",
"return;",
"{\n System.out.print(left);\n return;\n }",
"System.out.print(left)",
"System.out.print",
"System.out",
"System",
"System.out",
"left",
"return;",
"String[] args",
"args"
]
| import java.util.*;
class Main
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int x = input.nextInt();
int n = input.nextInt();
ArrayList<Integer> p = new ArrayList();
for (int i = 0; i < n; i++) {
p.add(input.nextInt());
}
int left=x-1, right=x+1;
Collections.sort(p);
if(!p.contains(x)){
System.out.print(x);
}else{
for(int i=0; i<n; i++){
if(p.contains(left)){
left--;
}
if(p.contains(right)){
right++;
}
if(!p.contains(left)&&!p.contains(right)){
if(Math.abs(x-left)>Math.abs(x-right)){
System.out.print(right);
return;
}else{
System.out.print(left);
return;
}
}
}
}
}
} |
[
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,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
17,
42,
17,
30,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
13,
9,
14,
2,
40,
4,
18,
13,
13,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
3,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
3,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
14,
77
],
[
77,
78
],
[
77,
79
],
[
14,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
94,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
82,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
107,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
119,
126
],
[
107,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
133,
140
],
[
127,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
141,
148
],
[
12,
149
],
[
149,
150
]
]
| [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n// C - Forbidden List\nclass Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\n\t\tArrayList<Integer> lstA;\n\n\t\tlstA = new ArrayList<Integer>();\n\n\t\tfor (int i=0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}\n\n\t\tCollections.sort(lstA);\n\n\t\tif (N==0 || !lstA.contains(X)) {\n\t\t\tSystem.out.println(X);\n\t\t\treturn;\n\t\t}\n\n\t\tint idx=1;\n\n\t\twhile (true) {\n\n\t\t\tint minus = X - idx;\n\t\t\tint plus = X + idx;\n\n\t\t\tif (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\n\t\tArrayList<Integer> lstA;\n\n\t\tlstA = new ArrayList<Integer>();\n\n\t\tfor (int i=0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}\n\n\t\tCollections.sort(lstA);\n\n\t\tif (N==0 || !lstA.contains(X)) {\n\t\t\tSystem.out.println(X);\n\t\t\treturn;\n\t\t}\n\n\t\tint idx=1;\n\n\t\twhile (true) {\n\n\t\t\tint minus = X - idx;\n\t\t\tint plus = X + idx;\n\n\t\t\tif (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\n\t\tArrayList<Integer> lstA;\n\n\t\tlstA = new ArrayList<Integer>();\n\n\t\tfor (int i=0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}\n\n\t\tCollections.sort(lstA);\n\n\t\tif (N==0 || !lstA.contains(X)) {\n\t\t\tSystem.out.println(X);\n\t\t\treturn;\n\t\t}\n\n\t\tint idx=1;\n\n\t\twhile (true) {\n\n\t\t\tint minus = X - idx;\n\t\t\tint plus = X + idx;\n\n\t\t\tif (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\n\t\tArrayList<Integer> lstA;\n\n\t\tlstA = new ArrayList<Integer>();\n\n\t\tfor (int i=0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}\n\n\t\tCollections.sort(lstA);\n\n\t\tif (N==0 || !lstA.contains(X)) {\n\t\t\tSystem.out.println(X);\n\t\t\treturn;\n\t\t}\n\n\t\tint idx=1;\n\n\t\twhile (true) {\n\n\t\t\tint minus = X - idx;\n\t\t\tint plus = X + idx;\n\n\t\t\tif (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ArrayList<Integer> lstA;",
"lstA",
"lstA = new ArrayList<Integer>()",
"lstA",
"new ArrayList<Integer>()",
"for (int i=0; i < N; i++) {\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}",
"{\n\t\t\tint x = sc.nextInt();\n\t\t\tlstA.add(x);\n\n//\t\t\tif (x==X) {\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t}",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"lstA.add(x)",
"lstA.add",
"lstA",
"x",
"Collections.sort(lstA)",
"Collections.sort",
"Collections",
"lstA",
"if (N==0 || !lstA.contains(X)) {\n\t\t\tSystem.out.println(X);\n\t\t\treturn;\n\t\t}",
"N==0 || !lstA.contains(X)",
"N==0",
"N",
"0",
"!lstA.contains(X)",
"lstA.contains(X)",
"lstA.contains",
"lstA",
"X",
"{\n\t\t\tSystem.out.println(X);\n\t\t\treturn;\n\t\t}",
"System.out.println(X)",
"System.out.println",
"System.out",
"System",
"System.out",
"X",
"return;",
"int idx=1;",
"idx",
"1",
"while (true) {\n\n\t\t\tint minus = X - idx;\n\t\t\tint plus = X + idx;\n\n\t\t\tif (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\n\n\t\t\tint minus = X - idx;\n\t\t\tint plus = X + idx;\n\n\t\t\tif (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int minus = X - idx;",
"minus",
"X - idx",
"X",
"idx",
"int plus = X + idx;",
"plus",
"X + idx",
"X",
"idx",
"if (lstA.contains(minus) && lstA.contains(plus)) {\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}",
"lstA.contains(minus) && lstA.contains(plus)",
"lstA.contains(minus)",
"lstA.contains",
"lstA",
"minus",
"lstA.contains(plus)",
"lstA.contains",
"lstA",
"plus",
"{\n\t\t\t\tidx++;\n\t\t\t\tcontinue;\n\t\t\t}",
"idx++",
"idx",
"continue;",
"if (!lstA.contains(minus) && !lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}",
"!lstA.contains(minus) && !lstA.contains(minus)",
"!lstA.contains(minus)",
"lstA.contains(minus)",
"lstA.contains",
"lstA",
"minus",
"!lstA.contains(minus)",
"lstA.contains(minus)",
"lstA.contains",
"lstA",
"minus",
"{\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(minus)",
"System.out.println",
"System.out",
"System",
"System.out",
"minus",
"break;",
"if (!lstA.contains(minus)) {\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}",
"!lstA.contains(minus)",
"lstA.contains(minus)",
"lstA.contains",
"lstA",
"minus",
"{\n\t\t\t\tSystem.out.println(minus);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(minus)",
"System.out.println",
"System.out",
"System",
"System.out",
"minus",
"break;",
"{\n\t\t\t\tSystem.out.println(plus);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(plus)",
"System.out.println",
"System.out",
"System",
"System.out",
"plus",
"break;",
"String[] args",
"args"
]
| import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
// C - Forbidden List
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int N = sc.nextInt();
ArrayList<Integer> lstA;
lstA = new ArrayList<Integer>();
for (int i=0; i < N; i++) {
int x = sc.nextInt();
lstA.add(x);
// if (x==X) {
// System.out.println(x);
// return;
// }
}
Collections.sort(lstA);
if (N==0 || !lstA.contains(X)) {
System.out.println(X);
return;
}
int idx=1;
while (true) {
int minus = X - idx;
int plus = X + idx;
if (lstA.contains(minus) && lstA.contains(plus)) {
idx++;
continue;
}
if (!lstA.contains(minus) && !lstA.contains(minus)) {
System.out.println(minus);
break;
} else if (!lstA.contains(minus)) {
System.out.println(minus);
break;
} else {
System.out.println(plus);
break;
}
}
}
} |
[
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
3,
14,
40,
4,
18,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
3,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
123,
11
],
[
123,
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
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
60,
67
],
[
14,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
81,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
107,
116
],
[
14,
117
],
[
117,
118
],
[
118,
119
],
[
12,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint integerX = sc.nextInt(); //元の整数\n\t\tint youso = sc.nextInt(); //整数列の要素数\n\t\tList<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト\n\n\t\t//配列を入力\n\t\tfor(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\t//配列が空または整数Xが含まれない場合\n\t\tif(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}\n\n\t\t//整数Xから1ずつ足し引きしていく\n\t\tfor(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\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 sc = new Scanner(System.in);\n\t\tint integerX = sc.nextInt(); //元の整数\n\t\tint youso = sc.nextInt(); //整数列の要素数\n\t\tList<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト\n\n\t\t//配列を入力\n\t\tfor(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\t//配列が空または整数Xが含まれない場合\n\t\tif(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}\n\n\t\t//整数Xから1ずつ足し引きしていく\n\t\tfor(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint integerX = sc.nextInt(); //元の整数\n\t\tint youso = sc.nextInt(); //整数列の要素数\n\t\tList<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト\n\n\t\t//配列を入力\n\t\tfor(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\t//配列が空または整数Xが含まれない場合\n\t\tif(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}\n\n\t\t//整数Xから1ずつ足し引きしていく\n\t\tfor(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint integerX = sc.nextInt(); //元の整数\n\t\tint youso = sc.nextInt(); //整数列の要素数\n\t\tList<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト\n\n\t\t//配列を入力\n\t\tfor(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\t//配列が空または整数Xが含まれない場合\n\t\tif(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}\n\n\t\t//整数Xから1ずつ足し引きしていく\n\t\tfor(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int integerX = sc.nextInt();",
"integerX",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int youso = sc.nextInt();",
"youso",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<youso",
"i",
"youso",
"i++",
"i++",
"i",
"{\n\t\t\tlist.add(sc.nextInt());\n\t\t}",
"{\n\t\t\tlist.add(sc.nextInt());\n\t\t}",
"list.add(sc.nextInt())",
"list.add",
"list",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}",
"list.isEmpty() || ! list.contains(integerX)",
"list.isEmpty()",
"list.isEmpty",
"list",
"! list.contains(integerX)",
"list.contains(integerX)",
"list.contains",
"list",
"integerX",
"{\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}",
"System.out.println(integerX)",
"System.out.println",
"System.out",
"System",
"System.out",
"integerX",
"return;",
"for(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i=1 ;",
"int i=1 ;",
"i",
"1",
"i<=100",
"i",
"100",
"i++",
"i++",
"i",
"{\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}",
"! list.contains(integerX-i)",
"list.contains(integerX-i)",
"list.contains",
"list",
"integerX-i",
"integerX",
"i",
"{\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(integerX-i)",
"System.out.println",
"System.out",
"System",
"System.out",
"integerX-i",
"integerX",
"i",
"break;",
"if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}",
"! list.contains(integerX+i)",
"list.contains(integerX+i)",
"list.contains",
"list",
"integerX+i",
"integerX",
"i",
"{\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(integerX+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"integerX+i",
"integerX",
"i",
"break;",
"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 integerX = sc.nextInt(); //元の整数\n\t\tint youso = sc.nextInt(); //整数列の要素数\n\t\tList<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト\n\n\t\t//配列を入力\n\t\tfor(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\t//配列が空または整数Xが含まれない場合\n\t\tif(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}\n\n\t\t//整数Xから1ずつ足し引きしていく\n\t\tfor(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint integerX = sc.nextInt(); //元の整数\n\t\tint youso = sc.nextInt(); //整数列の要素数\n\t\tList<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト\n\n\t\t//配列を入力\n\t\tfor(int i=0 ; i<youso ; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\t//配列が空または整数Xが含まれない場合\n\t\tif(list.isEmpty() || ! list.contains(integerX)) {\n\t\t\tSystem.out.println(integerX);\n\t\t\treturn;\n\t\t}\n\n\t\t//整数Xから1ずつ足し引きしていく\n\t\tfor(int i=1 ; i<=100 ; i++) {\n\t\t\tif(! list.contains(integerX-i)) {\n\t\t\t\tSystem.out.println(integerX-i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(! list.contains(integerX+i)) {\n\t\t\t\tSystem.out.println(integerX+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\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 sc = new Scanner(System.in);
int integerX = sc.nextInt(); //元の整数
int youso = sc.nextInt(); //整数列の要素数
List<Integer> list = new ArrayList<Integer>(); //整数列を入れるリスト
//配列を入力
for(int i=0 ; i<youso ; i++) {
list.add(sc.nextInt());
}
//配列が空または整数Xが含まれない場合
if(list.isEmpty() || ! list.contains(integerX)) {
System.out.println(integerX);
return;
}
//整数Xから1ずつ足し引きしていく
for(int i=1 ; i<=100 ; i++) {
if(! list.contains(integerX-i)) {
System.out.println(integerX-i);
break;
}
else if(! list.contains(integerX+i)) {
System.out.println(integerX+i);
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,
17,
41,
13,
20,
17,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
2,
18,
13,
13,
17,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
33,
57
],
[
57,
58
],
[
57,
59
],
[
33,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
29,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
6,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int x = sc.nextInt();\n\t\tfinal int n = sc.nextInt();\n\t\tint result = 110;\n\t\tint[] arr = new int[110];\n\t\tif(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}\n\t\tSystem.out.println(result);\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\tfinal int x = sc.nextInt();\n\t\tfinal int n = sc.nextInt();\n\t\tint result = 110;\n\t\tint[] arr = new int[110];\n\t\tif(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int x = sc.nextInt();\n\t\tfinal int n = sc.nextInt();\n\t\tint result = 110;\n\t\tint[] arr = new int[110];\n\t\tif(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int x = sc.nextInt();\n\t\tfinal int n = sc.nextInt();\n\t\tint result = 110;\n\t\tint[] arr = new int[110];\n\t\tif(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"final int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = 110;",
"result",
"110",
"int[] arr = new int[110];",
"arr",
"new int[110]",
"110",
"if(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}",
"{\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}",
"int tmp = sc.nextInt();",
"tmp",
"sc.nextInt()",
"sc.nextInt",
"sc",
"arr[tmp] = tmp",
"arr[tmp]",
"arr",
"tmp",
"tmp",
"int minAbs = 110;",
"minAbs",
"110",
"for(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"{\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}",
"int abs = Math.abs(x - i);",
"abs",
"Math.abs(x - i)",
"Math.abs",
"Math",
"x - i",
"x",
"i",
"if(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}",
"arr[i] == 0 && abs < minAbs",
"arr[i] == 0",
"arr[i]",
"arr",
"i",
"0",
"abs < minAbs",
"abs",
"minAbs",
"{\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}",
"minAbs = abs",
"minAbs",
"abs",
"result = i",
"result",
"i",
"{\n\t\t\tresult = x;\n\t\t}",
"result = x",
"result",
"x",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int x = sc.nextInt();\n\t\tfinal int n = sc.nextInt();\n\t\tint result = 110;\n\t\tint[] arr = new int[110];\n\t\tif(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}\n\t\tSystem.out.println(result);\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\tfinal int x = sc.nextInt();\n\t\tfinal int n = sc.nextInt();\n\t\tint result = 110;\n\t\tint[] arr = new int[110];\n\t\tif(n != 0) {\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\tarr[tmp] = tmp;\n\t\t\t}\n\t\t\tint minAbs = 110;\n\t\t\tfor(int i = 0; i <= 101; i++) {\n\t\t\t\tint abs = Math.abs(x - i);\n\t\t\t\tif(arr[i] == 0 && abs < minAbs) {\n\t\t\t\t\tminAbs = abs;\n\t\t\t\t\tresult = i;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult = x;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
final int x = sc.nextInt();
final int n = sc.nextInt();
int result = 110;
int[] arr = new int[110];
if(n != 0) {
for(int i = 0; i < n; i++) {
int tmp = sc.nextInt();
arr[tmp] = tmp;
}
int minAbs = 110;
for(int i = 0; i <= 101; i++) {
int abs = Math.abs(x - i);
if(arr[i] == 0 && abs < minAbs) {
minAbs = abs;
result = i;
}
}
} else {
result = x;
}
System.out.println(result);
}
}
|
[
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,
20,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
13,
30,
9,
30,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
112,
8
],
[
112,
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
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
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
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
74,
80
],
[
73,
81
],
[
81,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
11,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
9,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\t\tInteger[] p = new Integer[N];\n\t\tint b = 1000;\n\t\tint d = 0;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(d);\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"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 X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\t\tInteger[] p = new Integer[N];\n\t\tint b = 1000;\n\t\tint d = 0;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(d);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\t\tInteger[] p = new Integer[N];\n\t\tint b = 1000;\n\t\tint d = 0;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(d);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\t\tInteger[] p = new Integer[N];\n\t\tint b = 1000;\n\t\tint d = 0;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(d);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Integer[] p = new Integer[N];",
"p",
"new Integer[N]",
"N",
"int b = 1000;",
"b",
"1000",
"int d = 0;",
"d",
"0",
"for(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tp[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tp[i] = sc.nextInt();\n\t\t}",
"p[i] = sc.nextInt()",
"p[i]",
"p",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<X*2",
"i",
"X*2",
"X",
"2",
"i++",
"i++",
"i",
"{\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}",
"Arrays.asList(p).contains(i)",
"Arrays.asList(p).contains",
"Arrays.asList(p)",
"Arrays.asList",
"Arrays",
"p",
"i",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"{\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}",
"int c = Math.abs(X-i);",
"c",
"Math.abs(X-i)",
"Math.abs",
"Math",
"X-i",
"X",
"i",
"if(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}",
"b>c",
"b",
"c",
"{\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}",
"b = c",
"b",
"c",
"d = i",
"d",
"i",
"System.out.println(d)",
"System.out.println",
"System.out",
"System",
"System.out",
"d",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\t\tInteger[] p = new Integer[N];\n\t\tint b = 1000;\n\t\tint d = 0;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(d);\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 X = sc.nextInt();\n\t\tint N = sc.nextInt();\n\t\tInteger[] p = new Integer[N];\n\t\tint b = 1000;\n\t\tint d = 0;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tp[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=0; i<X*2; i++) {\n\t\t\tif(Arrays.asList(p).contains(i)) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\t\tint c = Math.abs(X-i);\n\t\t\t\t\tif(b>c) {\n\t\t\t\t\t\tb = c;\n\t\t\t\t\t\td = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(d);\n\t}\n\n}",
"Main"
]
| import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int N = sc.nextInt();
Integer[] p = new Integer[N];
int b = 1000;
int d = 0;
for(int i=0; i<N; i++) {
p[i] = sc.nextInt();
}
sc.close();
for(int i=0; i<X*2; i++) {
if(Arrays.asList(p).contains(i)) {
continue;
}else {
int c = Math.abs(X-i);
if(b>c) {
b = c;
d = i;
}
}
}
System.out.println(d);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
20,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
40,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
14,
2,
4,
18,
13,
2,
13,
13,
13,
30,
0,
13,
4,
18,
13,
2,
13,
13,
0,
13,
13,
30,
0,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
26,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
72,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
85,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
116,
123
],
[
115,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
130,
132
],
[
124,
133
],
[
133,
134
],
[
133,
135
],
[
110,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
8,
140
],
[
140,
141
],
[
141,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
6,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
]
| [
"import java.util.Scanner;\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 a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}\n\t\tint [] c = new int[b];\n\t\tString str = sc.nextLine();\n\t\tint min = 100;\n\t\tint ans = 0;\n\t\tfor (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}\n\t\tint f = 0;\n\t\tfor (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}\n\t\tint [] c = new int[b];\n\t\tString str = sc.nextLine();\n\t\tint min = 100;\n\t\tint ans = 0;\n\t\tfor (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}\n\t\tint f = 0;\n\t\tfor (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}\n\t\tint [] c = new int[b];\n\t\tString str = sc.nextLine();\n\t\tint min = 100;\n\t\tint ans = 0;\n\t\tfor (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}\n\t\tint f = 0;\n\t\tfor (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}\n\t\tint [] c = new int[b];\n\t\tString str = sc.nextLine();\n\t\tint min = 100;\n\t\tint ans = 0;\n\t\tfor (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}\n\t\tint f = 0;\n\t\tfor (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}",
"b==0",
"b",
"0",
"{\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"return;",
"int [] c = new int[b];",
"c",
"new int[b]",
"b",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int min = 100;",
"min",
"100",
"int ans = 0;",
"ans",
"0",
"for (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tc[i]= sc.nextInt();\n\t\t}",
"{\n\t\t\tc[i]= sc.nextInt();\n\t\t}",
"c[i]= sc.nextInt()",
"c[i]",
"c",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = 0;",
"f",
"0",
"for (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}",
"int i=-101;",
"int i=-101;",
"i",
"-101",
"101",
"i<201",
"i",
"201",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}",
"for (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<b",
"j",
"b",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"c[j]==i",
"c[j]",
"c",
"j",
"i",
"{\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"f = 1",
"f",
"1",
"break;",
"if (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}",
"f == 0",
"f",
"0",
"{\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t}",
"if(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}",
"Math.abs(i-a) < min",
"Math.abs(i-a)",
"Math.abs",
"Math",
"i-a",
"i",
"a",
"min",
"{\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}",
"min = Math.abs(i-a)",
"min",
"Math.abs(i-a)",
"Math.abs",
"Math",
"i-a",
"i",
"a",
"ans = i",
"ans",
"i",
"{\n\t\t\t\tf = 0;\n\t\t\t}",
"f = 0",
"f",
"0",
"sc.close()",
"sc.close",
"sc",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}\n\t\tint [] c = new int[b];\n\t\tString str = sc.nextLine();\n\t\tint min = 100;\n\t\tint ans = 0;\n\t\tfor (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}\n\t\tint f = 0;\n\t\tfor (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans);\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 a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tif (b==0) {\n\t\t\tSystem.out.println(a);\n\t\t\treturn;\n\t\t}\n\t\tint [] c = new int[b];\n\t\tString str = sc.nextLine();\n\t\tint min = 100;\n\t\tint ans = 0;\n\t\tfor (int i=0; i<b; i++) {\n\t\t\tc[i]= sc.nextInt();\n\t\t}\n\t\tint f = 0;\n\t\tfor (int i=-101; i<201; i++) {\n\t\t\tfor (int j=0; j<b; j++) {\n\t\t\t\tif (c[j]==i) {\n\t\t\t\t\tf = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f == 0) {\n\t\t\t\tif(Math.abs(i-a) < min) {\n\t\t\t\t\tmin = Math.abs(i-a);\n\t\t\t\t\tans = i;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (b==0) {
System.out.println(a);
return;
}
int [] c = new int[b];
String str = sc.nextLine();
int min = 100;
int ans = 0;
for (int i=0; i<b; i++) {
c[i]= sc.nextInt();
}
int f = 0;
for (int i=-101; i<201; i++) {
for (int j=0; j<b; j++) {
if (c[j]==i) {
f = 1;
break;
}
}
if (f == 0) {
if(Math.abs(i-a) < min) {
min = Math.abs(i-a);
ans = i;
}
} else {
f = 0;
}
}
sc.close();
System.out.println(ans);
}
}
|
[
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,
20,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
40,
18,
13,
18,
13,
13,
41,
13,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
4,
18,
13,
2,
13,
13,
13,
30,
0,
13,
4,
18,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
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
],
[
295,
17
],
[
295,
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
],
[
20,
38
],
[
38,
39
],
[
38,
40
],
[
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
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
20,
68
],
[
68,
69
],
[
68,
70
],
[
20,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
20,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
89,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
104,
113
],
[
113,
114
],
[
113,
115
],
[
20,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
18,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
124,
128
],
[
128,
129
],
[
124,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
130,
136
],
[
136,
137
],
[
124,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
141,
150
],
[
150,
151
],
[
150,
152
],
[
140,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
124,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
124,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
124,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
124,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
184,
192
],
[
192,
193
],
[
192,
194
],
[
184,
195
],
[
195,
196
],
[
195,
197
],
[
184,
198
],
[
198,
199
],
[
198,
200
],
[
184,
201
],
[
201,
202
],
[
201,
203
],
[
184,
204
],
[
204,
205
],
[
204,
206
],
[
184,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
208,
213
],
[
207,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
184,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
220,
230
],
[
230,
231
],
[
231,
232
],
[
220,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
236,
239
],
[
235,
240
],
[
234,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
247,
248
],
[
248,
249
],
[
241,
250
],
[
250,
251
],
[
250,
252
],
[
241,
253
],
[
253,
254
],
[
253,
255
],
[
234,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
260,
261
],
[
261,
262
],
[
260,
263
],
[
256,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
266,
268
],
[
184,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
275,
276
],
[
276,
277
],
[
271,
278
],
[
184,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
282,
286
],
[
124,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
0,
294
],
[
294,
295
],
[
294,
296
]
]
| [
"\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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n \n\n for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }\n System.out.println(ans);\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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n \n\n for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }\n System.out.println(ans);\n\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n \n\n for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }\n System.out.println(ans);\n\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n \n\n for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }\n System.out.println(ans);\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int target = s.nextInt()",
"target",
"s.nextInt()",
"s.nextInt",
"s",
"n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int arr[] = new int[n];",
"arr",
"new int[n]",
"n",
"int freq[] = new int[102];",
"freq",
"new int[102]",
"102",
"for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }",
"{\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }",
"arr[i] = s.nextInt()",
"arr[i]",
"arr",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"freq[arr[i]]++",
"freq[arr[i]]",
"freq",
"arr[i]",
"arr",
"i",
"int ans = 0",
"ans",
"0",
"min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=101",
"i",
"101",
"i++",
"i++",
"i",
"{\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }",
"{\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }",
"if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }",
"freq[i]==0&&Math.abs(target-i)<min",
"freq[i]==0",
"freq[i]",
"freq",
"i",
"0",
"Math.abs(target-i)<min",
"Math.abs(target-i)",
"Math.abs",
"Math",
"target-i",
"target",
"i",
"min",
"{\n min = Math.abs(target-i);\n ans = i;\n }",
"min = Math.abs(target-i)",
"min",
"Math.abs(target-i)",
"Math.abs",
"Math",
"target-i",
"target",
"i",
"ans = i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n \n\n for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }\n System.out.println(ans);\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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n \n\n for(int i=0;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n min = Math.abs(target-i);\n ans = i;\n }\n }\n System.out.println(ans);\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 target = s.nextInt(),n = s.nextInt();
int arr[] = new int[n];
int freq[] = new int[102];
for(int i=0;i<n;i++){
arr[i] = s.nextInt();
freq[arr[i]]++;
}
int ans = 0,min = Integer.MAX_VALUE;
for(int i=0;i<=101;i++){
if(freq[i]==0&&Math.abs(target-i)<min){
min = Math.abs(target-i);
ans = i;
}
}
System.out.println(ans);
}
}
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,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
40,
17,
41,
13,
2,
4,
18,
13,
17,
17,
0,
13,
8,
2,
13,
13,
13,
13,
41,
13,
2,
4,
18,
13,
2,
4,
18,
13,
17,
17,
0,
13,
8,
2,
13,
13,
13,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
162,
14
],
[
162,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
35,
42
],
[
17,
43
],
[
43,
44
],
[
43,
45
],
[
17,
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
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
17,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
17,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
17,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
17,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
17,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
88,
93
],
[
17,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
100,
104
],
[
96,
105
],
[
17,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
108,
113
],
[
17,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
133,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
150,
152
],
[
17,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
15,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
]
| [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n if (N == 0) {\n System.out.println(X);\n return;\n }\n List<Integer> ps = new ArrayList<Integer>();\n for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }\n Collections.sort(ps);\n\n int min = Integer.MAX_VALUE;\n int ans = -1;\n\n int st = ps.get(0) - 1;\n st = X < st ? X : st;\n int en = ps.get(ps.size() - 1) + 1;\n en = en < X ? X : en;\n for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n if (N == 0) {\n System.out.println(X);\n return;\n }\n List<Integer> ps = new ArrayList<Integer>();\n for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }\n Collections.sort(ps);\n\n int min = Integer.MAX_VALUE;\n int ans = -1;\n\n int st = ps.get(0) - 1;\n st = X < st ? X : st;\n int en = ps.get(ps.size() - 1) + 1;\n en = en < X ? X : en;\n for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n if (N == 0) {\n System.out.println(X);\n return;\n }\n List<Integer> ps = new ArrayList<Integer>();\n for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }\n Collections.sort(ps);\n\n int min = Integer.MAX_VALUE;\n int ans = -1;\n\n int st = ps.get(0) - 1;\n st = X < st ? X : st;\n int en = ps.get(ps.size() - 1) + 1;\n en = en < X ? X : en;\n for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n if (N == 0) {\n System.out.println(X);\n return;\n }\n List<Integer> ps = new ArrayList<Integer>();\n for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }\n Collections.sort(ps);\n\n int min = Integer.MAX_VALUE;\n int ans = -1;\n\n int st = ps.get(0) - 1;\n st = X < st ? X : st;\n int en = ps.get(ps.size() - 1) + 1;\n en = en < X ? X : en;\n for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (N == 0) {\n System.out.println(X);\n return;\n }",
"N == 0",
"N",
"0",
"{\n System.out.println(X);\n return;\n }",
"System.out.println(X)",
"System.out.println",
"System.out",
"System",
"System.out",
"X",
"return;",
"List<Integer> ps = new ArrayList<Integer>();",
"ps",
"new ArrayList<Integer>()",
"for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n ps.add(sc.nextInt());\n }",
"{\n ps.add(sc.nextInt());\n }",
"ps.add(sc.nextInt())",
"ps.add",
"ps",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Collections.sort(ps)",
"Collections.sort",
"Collections",
"ps",
"int min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"int ans = -1;",
"ans",
"-1",
"1",
"int st = ps.get(0) - 1;",
"st",
"ps.get(0) - 1",
"ps.get(0)",
"ps.get",
"ps",
"0",
"1",
"st = X < st ? X : st",
"st",
"X < st ? X : st",
"X < st",
"X",
"st",
"X",
"st",
"int en = ps.get(ps.size() - 1) + 1;",
"en",
"ps.get(ps.size() - 1) + 1",
"ps.get(ps.size() - 1)",
"ps.get",
"ps",
"ps.size() - 1",
"ps.size()",
"ps.size",
"ps",
"1",
"1",
"en = en < X ? X : en",
"en",
"en < X ? X : en",
"en < X",
"en",
"X",
"X",
"en",
"for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }",
"int i = st;",
"int i = st;",
"i",
"st",
"i <= en",
"i",
"en",
"i++",
"i++",
"i",
"{\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }",
"{\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }",
"if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }",
"!ps.contains(i)",
"ps.contains(i)",
"ps.contains",
"ps",
"i",
"{\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }",
"int res = Math.abs(X - i);",
"res",
"Math.abs(X - i)",
"Math.abs",
"Math",
"X - i",
"X",
"i",
"if (res < min) {\n min = res;\n ans = i;\n }",
"res < min",
"res",
"min",
"{\n min = res;\n ans = i;\n }",
"min = res",
"min",
"res",
"ans = i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n if (N == 0) {\n System.out.println(X);\n return;\n }\n List<Integer> ps = new ArrayList<Integer>();\n for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }\n Collections.sort(ps);\n\n int min = Integer.MAX_VALUE;\n int ans = -1;\n\n int st = ps.get(0) - 1;\n st = X < st ? X : st;\n int en = ps.get(ps.size() - 1) + 1;\n en = en < X ? X : en;\n for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int X = sc.nextInt();\n int N = sc.nextInt();\n if (N == 0) {\n System.out.println(X);\n return;\n }\n List<Integer> ps = new ArrayList<Integer>();\n for (int i = 0; i < N; i++) {\n ps.add(sc.nextInt());\n }\n Collections.sort(ps);\n\n int min = Integer.MAX_VALUE;\n int ans = -1;\n\n int st = ps.get(0) - 1;\n st = X < st ? X : st;\n int en = ps.get(ps.size() - 1) + 1;\n en = en < X ? X : en;\n for (int i = st; i <= en; i++) {\n if (!ps.contains(i)) {\n int res = Math.abs(X - i);\n if (res < min) {\n min = res;\n ans = i;\n }\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int N = sc.nextInt();
if (N == 0) {
System.out.println(X);
return;
}
List<Integer> ps = new ArrayList<Integer>();
for (int i = 0; i < N; i++) {
ps.add(sc.nextInt());
}
Collections.sort(ps);
int min = Integer.MAX_VALUE;
int ans = -1;
int st = ps.get(0) - 1;
st = X < st ? X : st;
int en = ps.get(ps.size() - 1) + 1;
en = en < X ? X : en;
for (int i = st; i <= en; i++) {
if (!ps.contains(i)) {
int res = Math.abs(X - i);
if (res < min) {
min = res;
ans = i;
}
}
}
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
13,
41,
13,
13,
42,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
13,
40,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
56,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
78,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int n = sc.nextInt();\n HashMap<Integer, Integer> map = new HashMap<>();\n for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }\n if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\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 x = sc.nextInt();\n int n = sc.nextInt();\n HashMap<Integer, Integer> map = new HashMap<>();\n for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }\n if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int n = sc.nextInt();\n HashMap<Integer, Integer> map = new HashMap<>();\n for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }\n if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int n = sc.nextInt();\n HashMap<Integer, Integer> map = new HashMap<>();\n for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }\n if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashMap<Integer, Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map.put(sc.nextInt(), 1);\n }",
"{\n map.put(sc.nextInt(), 1);\n }",
"map.put(sc.nextInt(), 1)",
"map.put",
"map",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }",
"n == 0",
"n",
"0",
"{\n System.out.println(x);\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }",
"int left = x;",
"left",
"x",
"int right = x;",
"right",
"x",
"while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }",
"map.containsKey(left) && map.containsKey(right)",
"map.containsKey(left)",
"map.containsKey",
"map",
"left",
"map.containsKey(right)",
"map.containsKey",
"map",
"right",
"{\n left--;\n right++;\n }",
"left--",
"left",
"right++",
"right",
"if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }",
"!map.containsKey(left)",
"map.containsKey(left)",
"map.containsKey",
"map",
"left",
"{\n System.out.println(left);\n }",
"System.out.println(left)",
"System.out.println",
"System.out",
"System",
"System.out",
"left",
"{\n System.out.println(right);\n }",
"System.out.println(right)",
"System.out.println",
"System.out",
"System",
"System.out",
"right",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int x = sc.nextInt();\n int n = sc.nextInt();\n HashMap<Integer, Integer> map = new HashMap<>();\n for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }\n if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }\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 n = sc.nextInt();\n HashMap<Integer, Integer> map = new HashMap<>();\n for(int i = 1; i <= n; i++){\n map.put(sc.nextInt(), 1);\n }\n if(n == 0){\n System.out.println(x);\n }\n else{\n int left = x;\n int right = x;\n while(map.containsKey(left) && map.containsKey(right)){\n left--;\n right++;\n }\n if(!map.containsKey(left)){\n System.out.println(left);\n }\n else{\n System.out.println(right);\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int n = sc.nextInt();
HashMap<Integer, Integer> map = new HashMap<>();
for(int i = 1; i <= n; i++){
map.put(sc.nextInt(), 1);
}
if(n == 0){
System.out.println(x);
}
else{
int left = x;
int right = x;
while(map.containsKey(left) && map.containsKey(right)){
left--;
right++;
}
if(!map.containsKey(left)){
System.out.println(left);
}
else{
System.out.println(right);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
18,
13,
13,
17,
14,
2,
13,
4,
18,
13,
2,
13,
13,
30,
0,
13,
4,
18,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
104,
105
],
[
104,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
6,
113
],
[
113,
114
]
]
| [
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n //int 整数\n int x = sc.nextInt();\n //長さ\n int n = sc.nextInt();\n int minDiff = x;\n int pNot[] = new int[102];\n int ans = 0;\n \n for(int i = 0; i <= 101;i++)\n pNot[i] = 1;\n \n \n for(int i = 0; i < n; i++)\n pNot[sc.nextInt()] = 0;\n \n \n for(int i = 0;i <= 101; i++)\n if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }\n \n \n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n //int 整数\n int x = sc.nextInt();\n //長さ\n int n = sc.nextInt();\n int minDiff = x;\n int pNot[] = new int[102];\n int ans = 0;\n \n for(int i = 0; i <= 101;i++)\n pNot[i] = 1;\n \n \n for(int i = 0; i < n; i++)\n pNot[sc.nextInt()] = 0;\n \n \n for(int i = 0;i <= 101; i++)\n if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }\n \n \n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n //int 整数\n int x = sc.nextInt();\n //長さ\n int n = sc.nextInt();\n int minDiff = x;\n int pNot[] = new int[102];\n int ans = 0;\n \n for(int i = 0; i <= 101;i++)\n pNot[i] = 1;\n \n \n for(int i = 0; i < n; i++)\n pNot[sc.nextInt()] = 0;\n \n \n for(int i = 0;i <= 101; i++)\n if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }\n \n \n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //int 整数\n int x = sc.nextInt();\n //長さ\n int n = sc.nextInt();\n int minDiff = x;\n int pNot[] = new int[102];\n int ans = 0;\n \n for(int i = 0; i <= 101;i++)\n pNot[i] = 1;\n \n \n for(int i = 0; i < n; i++)\n pNot[sc.nextInt()] = 0;\n \n \n for(int i = 0;i <= 101; i++)\n if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }\n \n \n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int minDiff = x;",
"minDiff",
"x",
"int pNot[] = new int[102];",
"pNot",
"new int[102]",
"102",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i <= 101;i++)\n pNot[i] = 1;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"pNot[i] = 1;",
"pNot[i] = 1",
"pNot[i]",
"pNot",
"i",
"1",
"for(int i = 0; i < n; i++)\n pNot[sc.nextInt()] = 0;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"pNot[sc.nextInt()] = 0;",
"pNot[sc.nextInt()] = 0",
"pNot[sc.nextInt()]",
"pNot",
"sc.nextInt()",
"sc.nextInt",
"sc",
"0",
"for(int i = 0;i <= 101; i++)\n if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }",
"if(pNot[i] == 1)\n if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }",
"pNot[i] == 1",
"pNot[i]",
"pNot",
"i",
"1",
"if(minDiff > Math.abs(x - i)){\n minDiff = Math.abs(x - i);\n ans = i;\n }",
"minDiff > Math.abs(x - i)",
"minDiff",
"Math.abs(x - i)",
"Math.abs",
"Math",
"x - i",
"x",
"i",
"{\n minDiff = Math.abs(x - i);\n ans = i;\n }",
"minDiff = Math.abs(x - i)",
"minDiff",
"Math.abs(x - i)",
"Math.abs",
"Math",
"x - i",
"x",
"i",
"ans = i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args"
]
| import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
//int 整数
int x = sc.nextInt();
//長さ
int n = sc.nextInt();
int minDiff = x;
int pNot[] = new int[102];
int ans = 0;
for(int i = 0; i <= 101;i++)
pNot[i] = 1;
for(int i = 0; i < n; i++)
pNot[sc.nextInt()] = 0;
for(int i = 0;i <= 101; i++)
if(pNot[i] == 1)
if(minDiff > Math.abs(x - i)){
minDiff = Math.abs(x - i);
ans = i;
}
System.out.println(ans);
}
}
|
[
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,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
17,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
14,
2,
18,
13,
13,
13,
30,
40,
13,
30,
0,
18,
13,
13,
13,
30,
0,
18,
13,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
165,
11
],
[
165,
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
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
14,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
76,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
14,
102
],
[
102,
103
],
[
102,
104
],
[
14,
105
],
[
105,
106
],
[
105,
107
],
[
14,
108
],
[
108,
109
],
[
108,
110
],
[
14,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
123,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
14,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
14,
159
],
[
159,
160
],
[
160,
161
],
[
12,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
]
| [
"import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int X = s.nextInt();\n int N = s.nextInt();\n int P[] = new int[N];\n for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }\n int Q[] = new int[102];\n Arrays.sort(P);\n int p = 0;\n for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }\n int ans = 0;\n int d = 200;\n int d_tmp = 0;\n for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }\n System.out.println(ans);\n s.close();\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"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 X = s.nextInt();\n int N = s.nextInt();\n int P[] = new int[N];\n for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }\n int Q[] = new int[102];\n Arrays.sort(P);\n int p = 0;\n for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }\n int ans = 0;\n int d = 200;\n int d_tmp = 0;\n for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }\n System.out.println(ans);\n s.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int X = s.nextInt();\n int N = s.nextInt();\n int P[] = new int[N];\n for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }\n int Q[] = new int[102];\n Arrays.sort(P);\n int p = 0;\n for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }\n int ans = 0;\n int d = 200;\n int d_tmp = 0;\n for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }\n System.out.println(ans);\n s.close();\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int X = s.nextInt();\n int N = s.nextInt();\n int P[] = new int[N];\n for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }\n int Q[] = new int[102];\n Arrays.sort(P);\n int p = 0;\n for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }\n int ans = 0;\n int d = 200;\n int d_tmp = 0;\n for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }\n System.out.println(ans);\n s.close();\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int X = s.nextInt();",
"X",
"s.nextInt()",
"s.nextInt",
"s",
"int N = s.nextInt();",
"N",
"s.nextInt()",
"s.nextInt",
"s",
"int P[] = new int[N];",
"P",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n P[i] = s.nextInt();\n }",
"{\n P[i] = s.nextInt();\n }",
"P[i] = s.nextInt()",
"P[i]",
"P",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"int Q[] = new int[102];",
"Q",
"new int[102]",
"102",
"Arrays.sort(P)",
"Arrays.sort",
"Arrays",
"P",
"int p = 0;",
"p",
"0",
"for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"{\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }",
"{\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }",
"if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }",
"p < N",
"p",
"N",
"{\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n }",
"if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }",
"P[p] == i",
"P[p]",
"P",
"p",
"i",
"{\n p++;\n }",
"p++",
"p",
"{\n Q[i] = i;\n }",
"Q[i] = i",
"Q[i]",
"Q",
"i",
"i",
"{\n Q[i] = i;\n }",
"Q[i] = i",
"Q[i]",
"Q",
"i",
"i",
"int ans = 0;",
"ans",
"0",
"int d = 200;",
"d",
"200",
"int d_tmp = 0;",
"d_tmp",
"0",
"for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 101",
"i",
"101",
"i++",
"i++",
"i",
"{\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }",
"{\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }",
"d_tmp = X - Q[i]",
"d_tmp",
"X - Q[i]",
"X",
"Q[i]",
"Q",
"i",
"if (d_tmp < 0) {\n d_tmp *= -1;\n }",
"d_tmp < 0",
"d_tmp",
"0",
"{\n d_tmp *= -1;\n }",
"d_tmp *= -1",
"d_tmp",
"-1",
"1",
"if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }",
"d > d_tmp",
"d",
"d_tmp",
"{\n d = d_tmp;\n ans = Q[i];\n }",
"d = d_tmp",
"d",
"d_tmp",
"ans = Q[i]",
"ans",
"Q[i]",
"Q",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 X = s.nextInt();\n int N = s.nextInt();\n int P[] = new int[N];\n for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }\n int Q[] = new int[102];\n Arrays.sort(P);\n int p = 0;\n for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }\n int ans = 0;\n int d = 200;\n int d_tmp = 0;\n for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }\n System.out.println(ans);\n s.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int X = s.nextInt();\n int N = s.nextInt();\n int P[] = new int[N];\n for (int i = 0; i < N; i++) {\n P[i] = s.nextInt();\n }\n int Q[] = new int[102];\n Arrays.sort(P);\n int p = 0;\n for (int i = 0; i <= 101; i++) {\n if (p < N) {\n if (P[p] == i) {\n p++;\n } else {\n Q[i] = i;\n }\n } else {\n Q[i] = i;\n }\n }\n int ans = 0;\n int d = 200;\n int d_tmp = 0;\n for (int i = 0; i <= 101; i++) {\n d_tmp = X - Q[i];\n if (d_tmp < 0) {\n d_tmp *= -1;\n }\n if (d > d_tmp) {\n d = d_tmp;\n ans = Q[i];\n }\n }\n System.out.println(ans);\n s.close();\n }\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int X = s.nextInt();
int N = s.nextInt();
int P[] = new int[N];
for (int i = 0; i < N; i++) {
P[i] = s.nextInt();
}
int Q[] = new int[102];
Arrays.sort(P);
int p = 0;
for (int i = 0; i <= 101; i++) {
if (p < N) {
if (P[p] == i) {
p++;
} else {
Q[i] = i;
}
} else {
Q[i] = i;
}
}
int ans = 0;
int d = 200;
int d_tmp = 0;
for (int i = 0; i <= 101; i++) {
d_tmp = X - Q[i];
if (d_tmp < 0) {
d_tmp *= -1;
}
if (d > d_tmp) {
d = d_tmp;
ans = Q[i];
}
}
System.out.println(ans);
s.close();
}
} |
[
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,
20,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
40,
18,
13,
18,
13,
13,
41,
13,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
4,
18,
13,
2,
13,
13,
13,
30,
0,
13,
4,
18,
13,
2,
13,
13,
0,
13,
13,
3,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
4,
18,
13,
2,
13,
13,
13,
30,
0,
13,
13,
3,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
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
],
[
331,
17
],
[
331,
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
],
[
20,
38
],
[
38,
39
],
[
38,
40
],
[
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
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
20,
68
],
[
68,
69
],
[
68,
70
],
[
20,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
20,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
89,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
104,
113
],
[
113,
114
],
[
113,
115
],
[
104,
116
],
[
20,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
117,
124
],
[
124,
125
],
[
124,
126
],
[
117,
127
],
[
127,
128
],
[
128,
129
],
[
117,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
139,
146
],
[
132,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
20,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
18,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
160,
164
],
[
164,
165
],
[
160,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
166,
172
],
[
172,
173
],
[
160,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
177,
186
],
[
186,
187
],
[
186,
188
],
[
176,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
160,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
160,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
209,
210
],
[
160,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
160,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
220,
225
],
[
225,
226
],
[
225,
227
],
[
220,
228
],
[
228,
229
],
[
228,
230
],
[
220,
231
],
[
231,
232
],
[
231,
233
],
[
220,
234
],
[
234,
235
],
[
234,
236
],
[
220,
237
],
[
237,
238
],
[
237,
239
],
[
220,
240
],
[
240,
241
],
[
240,
242
],
[
220,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
244,
249
],
[
243,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
220,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
256,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
256,
266
],
[
266,
267
],
[
267,
268
],
[
256,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
271,
276
],
[
270,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
280,
283
],
[
283,
284
],
[
284,
285
],
[
277,
286
],
[
286,
287
],
[
286,
288
],
[
277,
289
],
[
289,
290
],
[
289,
291
],
[
270,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
296,
297
],
[
297,
298
],
[
296,
299
],
[
292,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
302,
304
],
[
220,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
308,
311
],
[
311,
312
],
[
312,
313
],
[
307,
314
],
[
220,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
318,
322
],
[
160,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
0,
330
],
[
330,
331
],
[
330,
332
]
]
| [
"\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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }\n for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }\n System.out.println(ans);\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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }\n for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }\n System.out.println(ans);\n\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }\n for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }\n System.out.println(ans);\n\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }\n for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }\n System.out.println(ans);\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int target = s.nextInt()",
"target",
"s.nextInt()",
"s.nextInt",
"s",
"n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int arr[] = new int[n];",
"arr",
"new int[n]",
"n",
"int freq[] = new int[102];",
"freq",
"new int[102]",
"102",
"for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }",
"{\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }",
"arr[i] = s.nextInt()",
"arr[i]",
"arr",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"freq[arr[i]]++",
"freq[arr[i]]",
"freq",
"arr[i]",
"arr",
"i",
"int ans = 0",
"ans",
"0",
"min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }",
"int i=target;",
"int i=target;",
"i",
"target",
"i>=0",
"i",
"0",
"i--",
"i--",
"i",
"{\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }",
"{\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }",
"if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }",
"freq[i]==0&&Math.abs(target-i)<=min",
"freq[i]==0",
"freq[i]",
"freq",
"i",
"0",
"Math.abs(target-i)<=min",
"Math.abs(target-i)",
"Math.abs",
"Math",
"target-i",
"target",
"i",
"min",
"{\n min = Math.abs(target-i);\n ans = i;\n break;\n }",
"min = Math.abs(target-i)",
"min",
"Math.abs(target-i)",
"Math.abs",
"Math",
"target-i",
"target",
"i",
"ans = i",
"ans",
"i",
"break;",
"for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }",
"int i=target+1;",
"int i=target+1;",
"i",
"target+1",
"target",
"1",
"i<=101",
"i",
"101",
"i++",
"i++",
"i",
"{\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }",
"{\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }",
"if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }",
"freq[i]==0&&Math.abs(target-i)<min",
"freq[i]==0",
"freq[i]",
"freq",
"i",
"0",
"Math.abs(target-i)<min",
"Math.abs(target-i)",
"Math.abs",
"Math",
"target-i",
"target",
"i",
"min",
"{\n ans = i;\n break;\n }",
"ans = i",
"ans",
"i",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }\n for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }\n System.out.println(ans);\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 target = s.nextInt(),n = s.nextInt();\n int arr[] = new int[n];\n int freq[] = new int[102];\n\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n freq[arr[i]]++;\n }\n\n\n\n int ans = 0,min = Integer.MAX_VALUE;\n\n for(int i=target;i>=0;i--){\n if(freq[i]==0&&Math.abs(target-i)<=min){\n min = Math.abs(target-i);\n ans = i;\n break;\n }\n }\n for(int i=target+1;i<=101;i++){\n if(freq[i]==0&&Math.abs(target-i)<min){\n ans = i;\n break;\n }\n }\n System.out.println(ans);\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 target = s.nextInt(),n = s.nextInt();
int arr[] = new int[n];
int freq[] = new int[102];
for(int i=0;i<n;i++){
arr[i] = s.nextInt();
freq[arr[i]]++;
}
int ans = 0,min = Integer.MAX_VALUE;
for(int i=target;i>=0;i--){
if(freq[i]==0&&Math.abs(target-i)<=min){
min = Math.abs(target-i);
ans = i;
break;
}
}
for(int i=target+1;i<=101;i++){
if(freq[i]==0&&Math.abs(target-i)<min){
ans = i;
break;
}
}
System.out.println(ans);
}
}
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,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
1,
40,
13,
30,
30,
14,
2,
40,
4,
18,
13,
2,
13,
13,
40,
4,
18,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
8,
40,
4,
18,
13,
2,
13,
13,
2,
13,
13,
2,
13,
13,
3,
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,
29,
17,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
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,
12,
13,
30,
4,
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,
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,
29,
8,
13,
40,
13,
13,
37,
20,
0,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
316,
8
],
[
316,
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
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
11,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
59,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
89,
91
],
[
81,
92
],
[
92,
93
],
[
92,
94
],
[
75,
95
],
[
9,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
98,
105
],
[
105,
106
],
[
105,
107
],
[
98,
109
],
[
109,
110
],
[
109,
111
],
[
98,
112
],
[
112,
113
],
[
112,
114
],
[
98,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
117,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
127,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
117,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
117,
147
],
[
147,
148
],
[
98,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
98,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
163,
174
],
[
174,
175
],
[
98,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
179,
189
],
[
189,
190
],
[
98,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
196,
197
],
[
197,
198
],
[
98,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
202,
206
],
[
206,
207
],
[
201,
208
],
[
208,
209
],
[
208,
210
],
[
201,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
201,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
201,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
98,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
235,
239
],
[
239,
240
],
[
234,
241
],
[
241,
242
],
[
241,
243
],
[
234,
244
],
[
244,
245
],
[
244,
246
],
[
234,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
234,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
234,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
268,
270
],
[
263,
271
],
[
271,
272
],
[
234,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
281,
283
],
[
276,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
290,
292
],
[
276,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
294,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
293,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
304,
308
],
[
293,
309
],
[
309,
310
],
[
275,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
0,
315
],
[
315,
316
],
[
315,
317
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n\n int x = (int)fs.nextLong();\n int n = (int)fs.nextLong();\n int ans=x;\n\n // int[] p=new int[n];\n // p=Arrays.fill(p, (int)fs.next());\n\n ArrayList<Integer> p = new ArrayList<Integer> ();\n for (int i = 0; i < n; i++) p.add((int) fs.nextLong());\n\n for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }\n }\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\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 return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private static boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n private void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }\n\n public boolean hasNext() {\n skipUnprintable();\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 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 b = readByte();\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n\n int x = (int)fs.nextLong();\n int n = (int)fs.nextLong();\n int ans=x;\n\n // int[] p=new int[n];\n // p=Arrays.fill(p, (int)fs.next());\n\n ArrayList<Integer> p = new ArrayList<Integer> ();\n for (int i = 0; i < n; i++) p.add((int) fs.nextLong());\n\n for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n\n int x = (int)fs.nextLong();\n int n = (int)fs.nextLong();\n int ans=x;\n\n // int[] p=new int[n];\n // p=Arrays.fill(p, (int)fs.next());\n\n ArrayList<Integer> p = new ArrayList<Integer> ();\n for (int i = 0; i < n; i++) p.add((int) fs.nextLong());\n\n for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }\n }",
"main",
"{\n FastScanner fs = new FastScanner();\n\n int x = (int)fs.nextLong();\n int n = (int)fs.nextLong();\n int ans=x;\n\n // int[] p=new int[n];\n // p=Arrays.fill(p, (int)fs.next());\n\n ArrayList<Integer> p = new ArrayList<Integer> ();\n for (int i = 0; i < n; i++) p.add((int) fs.nextLong());\n\n for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }\n }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int x = (int)fs.nextLong();",
"x",
"(int)fs.nextLong()",
"fs.nextLong",
"fs",
"int n = (int)fs.nextLong();",
"n",
"(int)fs.nextLong()",
"fs.nextLong",
"fs",
"int ans=x;",
"ans",
"x",
"ArrayList<Integer> p = new ArrayList<Integer> ();",
"p",
"new ArrayList<Integer> ()",
"for (int i = 0; i < n; i++) p.add((int) fs.nextLong());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"p.add((int) fs.nextLong());",
"p.add((int) fs.nextLong())",
"p.add",
"p",
"(int) fs.nextLong()",
"fs.nextLong",
"fs",
"for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i++",
"i++",
"i",
"{\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }",
"{\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }",
"if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }",
"!p.contains(ans-i) || !p.contains(ans+i)",
"!p.contains(ans-i)",
"p.contains(ans-i)",
"p.contains",
"p",
"ans-i",
"ans",
"i",
"!p.contains(ans+i)",
"p.contains(ans+i)",
"p.contains",
"p",
"ans+i",
"ans",
"i",
"{\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }",
"System.out.println((!p.contains(ans-i)) ? ans-i : ans+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"(!p.contains(ans-i)) ? ans-i : ans+i",
"(!p.contains(ans-i))",
"p.contains(ans-i)",
"p.contains",
"p",
"ans-i",
"ans",
"i",
"ans-i",
"ans",
"i",
"ans+i",
"ans",
"i",
"break;",
"String[] args",
"args",
"class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\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 return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private static boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n private void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }\n\n public boolean hasNext() {\n skipUnprintable();\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 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 b = readByte();\n }\n }\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n if (ptr < buflen)\n return true;\n else\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0)\n return false;\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 return true;\n }",
"if (ptr < buflen)\n return true;\n else\n ptr = 0;",
"ptr < buflen",
"ptr",
"buflen",
"return true;",
"true",
"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;",
"buflen <= 0",
"buflen",
"0",
"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 static 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",
"private void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }",
"skipUnprintable",
"{\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\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",
"public boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }",
"hasNext",
"{\n skipUnprintable();\n return hasNextByte();\n }",
"skipUnprintable()",
"skipUnprintable",
"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 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 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 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 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();",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"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 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 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();",
"'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();",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n\n int x = (int)fs.nextLong();\n int n = (int)fs.nextLong();\n int ans=x;\n\n // int[] p=new int[n];\n // p=Arrays.fill(p, (int)fs.next());\n\n ArrayList<Integer> p = new ArrayList<Integer> ();\n for (int i = 0; i < n; i++) p.add((int) fs.nextLong());\n\n for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n\n int x = (int)fs.nextLong();\n int n = (int)fs.nextLong();\n int ans=x;\n\n // int[] p=new int[n];\n // p=Arrays.fill(p, (int)fs.next());\n\n ArrayList<Integer> p = new ArrayList<Integer> ();\n for (int i = 0; i < n; i++) p.add((int) fs.nextLong());\n\n for (int i = 0;; i++) {\n if(!p.contains(ans-i) || !p.contains(ans+i)) {\n System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);\n break;\n }\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int x = (int)fs.nextLong();
int n = (int)fs.nextLong();
int ans=x;
// int[] p=new int[n];
// p=Arrays.fill(p, (int)fs.next());
ArrayList<Integer> p = new ArrayList<Integer> ();
for (int i = 0; i < n; i++) p.add((int) fs.nextLong());
for (int i = 0;; i++) {
if(!p.contains(ans-i) || !p.contains(ans+i)) {
System.out.println((!p.contains(ans-i)) ? ans-i : ans+i);
break;
}
}
}
}
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 (final 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(final int c) {
return 33 <= c && c <= 126;
}
private void skipUnprintable() {
while (hasNextByte() && !isPrintableChar(buffer[ptr]))
ptr++;
}
public boolean hasNext() {
skipUnprintable();
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();
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.