node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
4,
18,
13,
34,
17,
1,
0,
18,
18,
13,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
3,
34,
17,
1,
0,
18,
18,
13,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
3,
34,
17,
1,
0,
18,
18,
13,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
3,
34,
17,
1,
0,
18,
18,
13,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
3,
34,
1,
3,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
66,
70
],
[
57,
71
],
[
71,
72
],
[
72,
73
],
[
56,
74
],
[
50,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
82,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
87,
91
],
[
78,
92
],
[
92,
93
],
[
93,
94
],
[
77,
95
],
[
50,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
103,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
108,
112
],
[
99,
113
],
[
113,
114
],
[
114,
115
],
[
98,
116
],
[
50,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
124,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
129,
133
],
[
120,
134
],
[
134,
135
],
[
135,
136
],
[
119,
137
],
[
50,
138
],
[
138,
139
],
[
139,
140
],
[
8,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
153,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
8,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
185,
193
],
[
193,
194
],
[
194,
195
],
[
185,
196
],
[
197,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
8,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
8,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
215,
217
],
[
210,
218
],
[
218,
219
],
[
219,
220
],
[
210,
221
],
[
222,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
223,
231
],
[
231,
232
],
[
232,
233
],
[
223,
234
],
[
235,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
247
],
[
222,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
8,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
254,
262
],
[
262,
263
],
[
263,
264
],
[
254,
265
],
[
266,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
267,
272
],
[
8,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
8,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
279,
284
],
[
284,
285
],
[
284,
286
],
[
279,
287
],
[
287,
288
],
[
288,
289
],
[
279,
290
],
[
291,
291
],
[
291,
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
],
[
307,
308
],
[
307,
309
],
[
305,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
291,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
317,
322
],
[
8,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
323,
328
],
[
328,
329
],
[
328,
330
],
[
323,
331
],
[
331,
332
],
[
332,
333
],
[
323,
334
],
[
335,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
336,
341
],
[
8,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
342,
347
],
[
8,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
348,
353
],
[
353,
354
],
[
353,
355
],
[
348,
356
],
[
356,
357
],
[
357,
358
],
[
348,
359
],
[
360,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
361,
366
],
[
366,
367
],
[
366,
368
],
[
361,
369
],
[
369,
370
],
[
370,
371
],
[
361,
372
],
[
373,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
374,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
360,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
386,
391
],
[
6,
392
],
[
392,
393
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tint[][] buil1 = new int[3][10];\n\t\tint[][] buil2 = new int[3][10];\n\t\tint[][] buil3 = new int[3][10];\n\t\tint[][] buil4 = new int[3][10];\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\n\t\tfor(int i=0; i<num; i++){\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//A?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//B?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//C?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//D?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String args[]){\n\t\tint[][] buil1 = new int[3][10];\n\t\tint[][] buil2 = new int[3][10];\n\t\tint[][] buil3 = new int[3][10];\n\t\tint[][] buil4 = new int[3][10];\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\n\t\tfor(int i=0; i<num; i++){\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//A?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//B?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//C?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//D?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tint[][] buil1 = new int[3][10];\n\t\tint[][] buil2 = new int[3][10];\n\t\tint[][] buil3 = new int[3][10];\n\t\tint[][] buil4 = new int[3][10];\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\n\t\tfor(int i=0; i<num; i++){\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//A?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//B?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//C?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//D?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"main",
"{\n\t\tint[][] buil1 = new int[3][10];\n\t\tint[][] buil2 = new int[3][10];\n\t\tint[][] buil3 = new int[3][10];\n\t\tint[][] buil4 = new int[3][10];\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\n\t\tfor(int i=0; i<num; i++){\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//A?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//B?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//C?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\t//D?£??????¨???\n\t\tfor(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"int[][] buil1 = new int[3][10];",
"buil1",
"new int[3][10]",
"3",
"10",
"int[][] buil2 = new int[3][10];",
"buil2",
"new int[3][10]",
"3",
"10",
"int[][] buil3 = new int[3][10];",
"buil3",
"new int[3][10]",
"3",
"10",
"int[][] buil4 = new int[3][10];",
"buil4",
"new int[3][10]",
"3",
"10",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0; i<num; i++){\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tswitch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"switch(scan.nextInt()){\n\t\t\t\tcase 1: //A?£?\n\t\t\t\t\tbuil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //B?£?\n\t\t\t\t\tbuil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: //C?£?\n\t\t\t\t\tbuil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //D?£?\n\t\t\t\t\tbuil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}",
"scan.nextInt()",
"scan.nextInt",
"scan",
"case 1: //A?£?",
"1",
"case 1: //A?£?",
"buil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt()",
"buil1[(scan.nextInt()-1)][(scan.nextInt()-1)]",
"buil1[(scan.nextInt()-1)]",
"buil1",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"break;",
"case 2: //B?£?",
"2",
"case 2: //B?£?",
"buil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt()",
"buil2[(scan.nextInt()-1)][(scan.nextInt()-1)]",
"buil2[(scan.nextInt()-1)]",
"buil2",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"break;",
"case 3: //C?£?",
"3",
"case 3: //C?£?",
"buil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt()",
"buil3[(scan.nextInt()-1)][(scan.nextInt()-1)]",
"buil3[(scan.nextInt()-1)]",
"buil3",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"break;",
"case 4: //D?£?",
"4",
"case 4: //D?£?",
"buil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt()",
"buil4[(scan.nextInt()-1)][(scan.nextInt()-1)]",
"buil4[(scan.nextInt()-1)]",
"buil4",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"(scan.nextInt()-1)",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"break;",
"default :",
"default :",
"break;",
"for(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + buil1[i][k]);\n\t\t\t}",
"System.out.print(\" \" + buil1[i][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + buil1[i][k]",
"\" \"",
"buil1[i][k]",
"buil1[i]",
"buil1",
"i",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<20",
"i",
"20",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + buil2[i][k]);\n\t\t\t}",
"System.out.print(\" \" + buil2[i][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + buil2[i][k]",
"\" \"",
"buil2[i][k]",
"buil2[i]",
"buil2",
"i",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<20",
"i",
"20",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + buil3[i][k]);\n\t\t\t}",
"System.out.print(\" \" + buil3[i][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + buil3[i][k]",
"\" \"",
"buil3[i][k]",
"buil3[i]",
"buil3",
"i",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for(int i=0; i<20; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<20",
"i",
"20",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for(int i=0; i<3; i++){\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(int k=0; k<10; k++){\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + buil4[i][k]);\n\t\t\t}",
"System.out.print(\" \" + buil4[i][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + buil4[i][k]",
"\" \"",
"buil4[i][k]",
"buil4[i]",
"buil4",
"i",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String args[]",
"args"
] | import java.util.*;
class Main{
public static void main(String args[]){
int[][] buil1 = new int[3][10];
int[][] buil2 = new int[3][10];
int[][] buil3 = new int[3][10];
int[][] buil4 = new int[3][10];
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
for(int i=0; i<num; i++){
switch(scan.nextInt()){
case 1: //A?£?
buil1[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();
break;
case 2: //B?£?
buil2[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();
break;
case 3: //C?£?
buil3[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();
break;
case 4: //D?£?
buil4[(scan.nextInt()-1)][(scan.nextInt()-1)] += scan.nextInt();
break;
default :
break;
}
}
//A?£??????¨???
for(int i=0; i<3; i++){
for(int k=0; k<10; k++){
System.out.print(" " + buil1[i][k]);
}
System.out.println("");
}
for(int i=0; i<20; i++){
System.out.print("#");
}
System.out.println("");
//B?£??????¨???
for(int i=0; i<3; i++){
for(int k=0; k<10; k++){
System.out.print(" " + buil2[i][k]);
}
System.out.println("");
}
for(int i=0; i<20; i++){
System.out.print("#");
}
System.out.println("");
//C?£??????¨???
for(int i=0; i<3; i++){
for(int k=0; k<10; k++){
System.out.print(" " + buil3[i][k]);
}
System.out.println("");
}
for(int i=0; i<20; i++){
System.out.print("#");
}
System.out.println("");
//D?£??????¨???
for(int i=0; i<3; i++){
for(int k=0; k<10; k++){
System.out.print(" " + buil4[i][k]);
}
System.out.println("");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
17,
0,
13,
20,
17,
17,
0,
13,
20,
17,
17,
0,
13,
20,
17,
17,
41,
13,
4,
18,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
432,
5
],
[
432,
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
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
8,
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
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
67,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
67,
88
],
[
88,
89
],
[
88,
90
],
[
67,
91
],
[
91,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
107,
109
],
[
100,
110
],
[
91,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
91,
123
],
[
123,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
125,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
132,
142
],
[
123,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
145,
151
],
[
151,
152
],
[
151,
153
],
[
144,
154
],
[
123,
155
],
[
155,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
157,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
165,
171
],
[
171,
172
],
[
171,
173
],
[
164,
174
],
[
155,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
177,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
155,
187
],
[
187,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
193,
195
],
[
189,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
200,
202
],
[
197,
203
],
[
203,
204
],
[
203,
205
],
[
196,
206
],
[
187,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
212,
214
],
[
209,
215
],
[
215,
216
],
[
215,
217
],
[
208,
218
],
[
8,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
232,
240
],
[
240,
241
],
[
241,
242
],
[
232,
243
],
[
244,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
245,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
244,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
8,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
267,
272
],
[
8,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
278,
279
],
[
278,
280
],
[
273,
281
],
[
281,
282
],
[
282,
283
],
[
273,
284
],
[
285,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
286,
291
],
[
291,
292
],
[
291,
293
],
[
286,
294
],
[
294,
295
],
[
295,
296
],
[
286,
297
],
[
298,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
299,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
310
],
[
298,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
8,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
321,
326
],
[
8,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
332,
333
],
[
332,
334
],
[
327,
335
],
[
335,
336
],
[
336,
337
],
[
327,
338
],
[
339,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
340,
345
],
[
345,
346
],
[
345,
347
],
[
340,
348
],
[
348,
349
],
[
349,
350
],
[
340,
351
],
[
352,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
353,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
352,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
8,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
375,
380
],
[
8,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
381,
386
],
[
386,
387
],
[
386,
388
],
[
381,
389
],
[
389,
390
],
[
390,
391
],
[
381,
392
],
[
393,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
394,
399
],
[
399,
400
],
[
399,
401
],
[
394,
402
],
[
402,
403
],
[
403,
404
],
[
394,
405
],
[
406,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
407,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
415,
417
],
[
414,
418
],
[
406,
419
],
[
419,
420
],
[
420,
421
],
[
420,
422
],
[
419,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
6,
429
],
[
429,
430
],
[
0,
431
],
[
431,
432
],
[
431,
433
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\t\n\t\t\t\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\t\n\t\t\t\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\t\n\t\t\t\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\t\n\t\t\t\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int i",
"i",
"j",
"j",
"k;",
"k",
"int floor1[][];",
"floor1",
"int floor2[][];",
"floor2",
"int floor3[][];",
"floor3",
"int floor4[][];",
"floor4",
"floor1 = new int[3][10]",
"floor1",
"new int[3][10]",
"3",
"10",
"floor2 = new int[3][10]",
"floor2",
"new int[3][10]",
"3",
"10",
"floor3 = new int[3][10]",
"floor3",
"new int[3][10]",
"3",
"10",
"floor4 = new int[3][10]",
"floor4",
"new int[3][10]",
"3",
"10",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v;",
"v",
"int w;",
"w",
"for (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}",
"k = 1;",
"k = 1",
"k",
"1",
"k <= n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}",
"{\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"v = scan.nextInt()",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"w = v",
"w",
"v",
"if(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 1 && v <= 9 && floor1[f-1][r-1] >= 0",
"b == 1 && v <= 9 && floor1[f-1][r-1] >= 0",
"b == 1",
"b",
"1",
"v <= 9",
"v",
"9",
"floor1[f-1][r-1] >= 0",
"floor1[f-1][r-1]",
"floor1[f-1]",
"floor1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"0",
"{\n\tfloor1[f-1][r-1] += v;\n}",
"floor1[f-1][r-1] += v",
"floor1[f-1][r-1]",
"floor1[f-1]",
"floor1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 2 && v <= 9 && floor2[f-1][r-1] >= 0",
"b == 2 && v <= 9 && floor2[f-1][r-1] >= 0",
"b == 2",
"b",
"2",
"v <= 9",
"v",
"9",
"floor2[f-1][r-1] >= 0",
"floor2[f-1][r-1]",
"floor2[f-1]",
"floor2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"0",
"{\n\tfloor2[f-1][r-1] += v;\n}",
"floor2[f-1][r-1] += v",
"floor2[f-1][r-1]",
"floor2[f-1]",
"floor2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 3 && v <= 9 && floor3[f-1][r-1] >= 0",
"b == 3 && v <= 9 && floor3[f-1][r-1] >= 0",
"b == 3",
"b",
"3",
"v <= 9",
"v",
"9",
"floor3[f-1][r-1] >= 0",
"floor3[f-1][r-1]",
"floor3[f-1]",
"floor3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"0",
"{\n\tfloor3[f-1][r-1] += v;\n}",
"floor3[f-1][r-1] += v",
"floor3[f-1][r-1]",
"floor3[f-1]",
"floor3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 4 && v <= 9 && floor4[f-1][r-1] >= 0",
"b == 4 && v <= 9 && floor4[f-1][r-1] >= 0",
"b == 4",
"b",
"4",
"v <= 9",
"v",
"9",
"floor4[f-1][r-1] >= 0",
"floor4[f-1][r-1]",
"floor4[f-1]",
"floor4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"0",
"{\n\tfloor4[f-1][r-1] += v;\n}",
"floor4[f-1][r-1] += v",
"floor4[f-1][r-1]",
"floor4[f-1]",
"floor4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor1[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor1[j][i]",
"\" \"",
"floor1[j][i]",
"floor1[j]",
"floor1",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor2[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor2[j][i]",
"\" \"",
"floor2[j][i]",
"floor2[j]",
"floor2",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor3[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor3[j][i]",
"\" \"",
"floor3[j][i]",
"floor3[j]",
"floor3",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor4[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor4[j][i]",
"\" \"",
"floor4[j][i]",
"floor4[j]",
"floor4",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\t\n\t\t\t\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\t\n\t\t\t\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i, j, k;
int floor1[][];
int floor2[][];
int floor3[][];
int floor4[][];
floor1 = new int[3][10];
floor2 = new int[3][10];
floor3 = new int[3][10];
floor4 = new int[3][10];
int n = scan.nextInt();
int v;
int w;
for (k = 1; k <= n; k++) {
int b = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
v = scan.nextInt();
w = v;
if(b == 1 && v <= 9 && floor1[f-1][r-1] >= 0){
floor1[f-1][r-1] += v;
}else if(b == 2 && v <= 9 && floor2[f-1][r-1] >= 0){
floor2[f-1][r-1] += v;
}else if(b == 3 && v <= 9 && floor3[f-1][r-1] >= 0){
floor3[f-1][r-1] += v;
}else if(b == 4 && v <= 9 && floor4[f-1][r-1] >= 0){
floor4[f-1][r-1] += v;
}
}
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor1[j][i]);
if(i >= 9){
System.out.println();
}
}
}
System.out.println("####################");
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor2[j][i]);
if(i >= 9){
System.out.println();
}
}
}
System.out.println("####################");
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor3[j][i]);
if(i >= 9){
System.out.println();
}
}
}
System.out.println("####################");
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor4[j][i]);
if(i >= 9){
System.out.println();
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
13,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
17,
4,
18,
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
],
[
182,
8
],
[
182,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
44,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
44,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
44,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
44,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
86,
96
],
[
96,
97
],
[
96,
98
],
[
85,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
125,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
112,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
11,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
163,
168
],
[
160,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
11,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
9,
179
],
[
179,
180
],
[
0,
181
],
[
181,
182
],
[
181,
183
]
] | [
"import java.io.*;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint[][][] t = new int[4][3][10];\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}\n\t\tbu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"));\n\t\tSystem.out.print(bu);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.StringBuilder;",
"StringBuilder",
"java.lang",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint[][][] t = new int[4][3][10];\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}\n\t\tbu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"));\n\t\tSystem.out.print(bu);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint[][][] t = new int[4][3][10];\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}\n\t\tbu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"));\n\t\tSystem.out.print(bu);\n\t}",
"main",
"{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint[][][] t = new int[4][3][10];\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}\n\t\tbu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"));\n\t\tSystem.out.print(bu);\n\t}",
"BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));",
"sc",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder bu = new StringBuilder();",
"bu",
"new StringBuilder()",
"int[][][] t = new int[4][3][10];",
"t",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = Integer.parseInt(sc.readLine());",
"n",
"Integer.parseInt(sc.readLine())",
"Integer.parseInt",
"Integer",
"sc.readLine()",
"sc.readLine",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}",
"String[] st= sc.readLine().split(\" \");",
"st",
"sc.readLine().split(\" \")",
"sc.readLine().split",
"sc.readLine()",
"sc.readLine",
"sc",
"\" \"",
"int b = Integer.parseInt(st[0]);",
"b",
"Integer.parseInt(st[0])",
"Integer.parseInt",
"Integer",
"st[0]",
"st",
"0",
"int f = Integer.parseInt(st[1]);",
"f",
"Integer.parseInt(st[1])",
"Integer.parseInt",
"Integer",
"st[1]",
"st",
"1",
"int r = Integer.parseInt(st[2]);",
"r",
"Integer.parseInt(st[2])",
"Integer.parseInt",
"Integer",
"st[2]",
"st",
"2",
"int v = Integer.parseInt(st[3]);",
"v",
"Integer.parseInt(st[3])",
"Integer.parseInt",
"Integer",
"st[3]",
"st",
"3",
"t[b-1][f-1][r-1] += v",
"t[b-1][f-1][r-1]",
"t[b-1][f-1]",
"t[b-1]",
"t",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}",
"{\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}",
"for(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}",
"{\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}",
"for(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}",
"{\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}",
"bu.append(\" \").append(t[b][f][r])",
"bu.append(\" \").append",
"bu.append(\" \")",
"bu.append",
"bu",
"\" \"",
"t[b][f][r]",
"t[b][f]",
"t[b]",
"t",
"b",
"f",
"r",
"bu.append(\"\\n\")",
"bu.append",
"bu",
"\"\\n\"",
"bu.append(\"####################\\n\")",
"bu.append",
"bu",
"\"####################\\n\"",
"bu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"))",
"bu.delete",
"bu",
"bu.lastIndexOf(\"#\")-20",
"bu.lastIndexOf(\"#\")",
"bu.lastIndexOf",
"bu",
"\"#\"",
"20",
"bu.lastIndexOf(\"\\n\")",
"bu.lastIndexOf",
"bu",
"\"\\n\"",
"System.out.print(bu)",
"System.out.print",
"System.out",
"System",
"System.out",
"bu",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint[][][] t = new int[4][3][10];\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}\n\t\tbu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"));\n\t\tSystem.out.print(bu);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint[][][] t = new int[4][3][10];\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] st= sc.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(st[0]);\n\t\t\tint f = Integer.parseInt(st[1]);\n\t\t\tint r = Integer.parseInt(st[2]);\n\t\t\tint v = Integer.parseInt(st[3]);\n\t\t\tt[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int b = 0;b < 4;b++){\n\t\t\tfor(int f = 0;f < 3;f++){\n\t\t\t\tfor(int r = 0;r < 10;r++){\n\t\t\t\t\tbu.append(\" \").append(t[b][f][r]);\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"####################\\n\");\n\t\t}\n\t\tbu.delete(bu.lastIndexOf(\"#\")-20,bu.lastIndexOf(\"\\n\"));\n\t\tSystem.out.print(bu);\n\t}\n}",
"Main"
] | import java.io.*;
import java.lang.StringBuilder;
public class Main {
public static void main(String[] args) throws Exception{
BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
StringBuilder bu = new StringBuilder();
int[][][] t = new int[4][3][10];
int n = Integer.parseInt(sc.readLine());
for(int i=0;i<n;i++){
String[] st= sc.readLine().split(" ");
int b = Integer.parseInt(st[0]);
int f = Integer.parseInt(st[1]);
int r = Integer.parseInt(st[2]);
int v = Integer.parseInt(st[3]);
t[b-1][f-1][r-1] += v;
}
for(int b = 0;b < 4;b++){
for(int f = 0;f < 3;f++){
for(int r = 0;r < 10;r++){
bu.append(" ").append(t[b][f][r]);
}
bu.append("\n");
}
bu.append("####################\n");
}
bu.delete(bu.lastIndexOf("#")-20,bu.lastIndexOf("\n"));
System.out.print(bu);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
13,
20,
17,
41,
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,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
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
],
[
192,
8
],
[
192,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
19,
37
],
[
37,
38
],
[
37,
39
],
[
19,
41
],
[
41,
42
],
[
41,
43
],
[
19,
44
],
[
44,
45
],
[
44,
46
],
[
19,
47
],
[
47,
48
],
[
47,
49
],
[
19,
50
],
[
50,
51
],
[
50,
52
],
[
19,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
68,
73
],
[
65,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
65,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
65,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
65,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
65,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
114,
115
],
[
114,
116
],
[
107,
117
],
[
117,
118
],
[
117,
119
],
[
106,
120
],
[
19,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
146,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
133,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
9,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}",
"catch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}",
"Exception e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][][] dom = new int[4][3][10];",
"dom",
"new int[4][3][10]",
"4",
"3",
"10",
"String[] bfrv = new String[4];",
"bfrv",
"new String[4]",
"4",
"int b=0",
"b",
"0",
"f=0",
"f",
"0",
"r=0",
"r",
"0",
"v=0;",
"v",
"0",
"for(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}",
"{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}",
"bfrv = br.readLine().split(\" \")",
"bfrv",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"b=Integer.parseInt(bfrv[0])",
"b",
"Integer.parseInt(bfrv[0])",
"Integer.parseInt",
"Integer",
"bfrv[0]",
"bfrv",
"0",
"f=Integer.parseInt(bfrv[1])",
"f",
"Integer.parseInt(bfrv[1])",
"Integer.parseInt",
"Integer",
"bfrv[1]",
"bfrv",
"1",
"r=Integer.parseInt(bfrv[2])",
"r",
"Integer.parseInt(bfrv[2])",
"Integer.parseInt",
"Integer",
"bfrv[2]",
"bfrv",
"2",
"v=Integer.parseInt(bfrv[3])",
"v",
"Integer.parseInt(bfrv[3])",
"Integer.parseInt",
"Integer",
"bfrv[3]",
"bfrv",
"3",
"dom[b-1][f-1][r-1] += v",
"dom[b-1][f-1][r-1]",
"dom[b-1][f-1]",
"dom[b-1]",
"dom",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}",
"int b1=0;",
"int b1=0;",
"b1",
"0",
"b1<4",
"b1",
"4",
"b1++",
"b1++",
"b1",
"{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}",
"{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}",
"for(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"int f1=0;",
"int f1=0;",
"f1",
"0",
"f1<3",
"f1",
"3",
"f1++",
"f1++",
"f1",
"{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"for(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}",
"int r1=0;",
"int r1=0;",
"r1",
"0",
"r1<10",
"r1",
"10",
"r1++",
"r1++",
"r1",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}",
"System.out.print(\" \" + dom[b1][f1][r1])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + dom[b1][f1][r1]",
"\" \"",
"dom[b1][f1][r1]",
"dom[b1][f1]",
"dom[b1]",
"dom",
"b1",
"f1",
"r1",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(b1!=3)\tSystem.out.println(\"####################\");",
"b1!=3",
"b1",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tint[][][] dom = new int[4][3][10];\n\t\t\tString[] bfrv = new String[4];\n\t\t\tint b=0, f=0, r=0, v=0;\n\t\t\tfor(int i=0; i<num; i++)\n\t\t\t{\n\t\t\t\tbfrv = br.readLine().split(\" \");\n\t\t\t\tb=Integer.parseInt(bfrv[0]);\n\t\t\t\tf=Integer.parseInt(bfrv[1]);\n\t\t\t\tr=Integer.parseInt(bfrv[2]);\n\t\t\t\tv=Integer.parseInt(bfrv[3]);\n\t\t\t\tdom[b-1][f-1][r-1] += v;\n\t\t\t}\n\t\t\tfor(int b1=0; b1<4; b1++)\n\t\t\t{\n\t\t\t\tfor(int f1=0; f1<3; f1++)\n\t\t\t\t{\n\t\t\t\t\tfor(int r1=0; r1<10; r1++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + dom[b1][f1][r1]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(b1!=3)\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main
{
public static void main(String[] args)
{
try
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(br.readLine());
int[][][] dom = new int[4][3][10];
String[] bfrv = new String[4];
int b=0, f=0, r=0, v=0;
for(int i=0; i<num; i++)
{
bfrv = br.readLine().split(" ");
b=Integer.parseInt(bfrv[0]);
f=Integer.parseInt(bfrv[1]);
r=Integer.parseInt(bfrv[2]);
v=Integer.parseInt(bfrv[3]);
dom[b-1][f-1][r-1] += v;
}
for(int b1=0; b1<4; b1++)
{
for(int f1=0; f1<3; f1++)
{
for(int r1=0; r1<10; r1++)
{
System.out.print(" " + dom[b1][f1][r1]);
}
System.out.println();
}
if(b1!=3) System.out.println("####################");
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
20,
0,
13,
20,
17,
17,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
210,
5
],
[
210,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
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
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
76,
84
],
[
8,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
8,
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
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
102,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
102,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
134,
136
],
[
123,
137
],
[
8,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
184,
190
],
[
163,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
150,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
6,
207
],
[
207,
208
],
[
0,
209
],
[
209,
210
],
[
209,
211
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint b, f, r, v, n, x[][][], i, j = 0, k;\n\t\tScanner sc = new Scanner(System.in);\n\t\tx = new int[5][4][11];\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint b, f, r, v, n, x[][][], i, j = 0, k;\n\t\tScanner sc = new Scanner(System.in);\n\t\tx = new int[5][4][11];\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tint b, f, r, v, n, x[][][], i, j = 0, k;\n\t\tScanner sc = new Scanner(System.in);\n\t\tx = new int[5][4][11];\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tint b, f, r, v, n, x[][][], i, j = 0, k;\n\t\tScanner sc = new Scanner(System.in);\n\t\tx = new int[5][4][11];\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"int b",
"b",
"f",
"f",
"r",
"r",
"v",
"v",
"n",
"n",
"x[][][]",
"x",
"i",
"i",
"j = 0",
"j",
"0",
"k;",
"k",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"x = new int[5][4][11]",
"x",
"new int[5][4][11]",
"5",
"4",
"11",
"for(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}",
"for(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}",
"x[j][j][k] = 0",
"x[j][j][k]",
"x[j][j]",
"x[j]",
"x",
"j",
"j",
"k",
"0",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"n > i",
"n",
"i",
"i++",
"i++",
"i",
"{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}",
"{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x[b - 1][f - 1][r - 1] += v",
"x[b - 1][f - 1][r - 1]",
"x[b - 1][f - 1]",
"x[b - 1]",
"x",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"for(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"{\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"for(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}",
"System.out.print(\" \" + x[j][i][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x[j][i][k]",
"\" \"",
"x[j][i][k]",
"x[j][i]",
"x[j]",
"x",
"j",
"i",
"k",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"if(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");",
"j != 3",
"j",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint b, f, r, v, n, x[][][], i, j = 0, k;\n\t\tScanner sc = new Scanner(System.in);\n\t\tx = new int[5][4][11];\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\t\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint b, f, r, v, n, x[][][], i, j = 0, k;\n\t\tScanner sc = new Scanner(System.in);\n\t\tx = new int[5][4][11];\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tx[j][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(i = 0; n > i; i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tx[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\n\t\tfor(j = 0; j < 4; j++){\n\t\t\tfor(i = 0; i < 3; i++){\n\t\t\t\tfor(k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + x[j][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif(j != 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\t\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int b, f, r, v, n, x[][][], i, j = 0, k;
Scanner sc = new Scanner(System.in);
x = new int[5][4][11];
for(j = 0; j < 4; j++){
for(i = 0; i < 3; i++){
for(k = 0; k < 10; k++){
x[j][j][k] = 0;
}
}
}
n = sc.nextInt();
for(i = 0; n > i; i++){
b = sc.nextInt();
f = sc.nextInt();
r = sc.nextInt();
v = sc.nextInt();
x[b - 1][f - 1][r - 1] += v;
}
for(j = 0; j < 4; j++){
for(i = 0; i < 3; i++){
for(k = 0; k < 10; k++){
System.out.print(" " + x[j][i][k]);
}
System.out.print("\n");
}
if(j != 3)
System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
2,
17,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
141,
5
],
[
141,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
28,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
60,
62
],
[
49,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
102,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
89,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
76,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
6,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] officialHouses = new int[4][3][10];\n\n int n = sc.nextInt();\n \n while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }\n\n for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\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\n int[][][] officialHouses = new int[4][3][10];\n\n int n = sc.nextInt();\n \n while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }\n\n for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] officialHouses = new int[4][3][10];\n\n int n = sc.nextInt();\n \n while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }\n\n for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int[][][] officialHouses = new int[4][3][10];\n\n int n = sc.nextInt();\n \n while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }\n\n for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[][][] officialHouses = new int[4][3][10];",
"officialHouses",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"officialHouses[b-1][f-1][r-1] += v",
"officialHouses[b-1][f-1][r-1]",
"officialHouses[b-1][f-1]",
"officialHouses[b-1]",
"officialHouses",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }",
"{\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }",
"for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }",
"{\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }",
"for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }",
"{\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }",
"System.out.print(' ')",
"System.out.print",
"System.out",
"System",
"System.out",
"' '",
"System.out.print(officialHouses[b][f][r])",
"System.out.print",
"System.out",
"System",
"System.out",
"officialHouses[b][f][r]",
"officialHouses[b][f]",
"officialHouses[b]",
"officialHouses",
"b",
"f",
"r",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (b < 4-1)\n System.out.println(\"####################\");",
"b < 4-1",
"b",
"4-1",
"4",
"1",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] officialHouses = new int[4][3][10];\n\n int n = sc.nextInt();\n \n while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }\n\n for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] officialHouses = new int[4][3][10];\n\n int n = sc.nextInt();\n \n while (n-- > 0) {\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n officialHouses[b-1][f-1][r-1] += v;\n }\n\n for (int b = 0; b < 4; b++) {\n for (int f = 0; f < 3; f++) {\n for (int r = 0; r < 10; r++) {\n System.out.print(' ');\n System.out.print(officialHouses[b][f][r]);\n }\n System.out.println();\n }\n if (b < 4-1)\n System.out.println(\"####################\");\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[][][] officialHouses = new int[4][3][10];
int n = sc.nextInt();
while (n-- > 0) {
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
officialHouses[b-1][f-1][r-1] += v;
}
for (int b = 0; b < 4; b++) {
for (int f = 0; f < 3; f++) {
for (int r = 0; r < 10; r++) {
System.out.print(' ');
System.out.print(officialHouses[b][f][r]);
}
System.out.println();
}
if (b < 4-1)
System.out.println("####################");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
40,
2,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
13,
17,
30,
35,
13,
34,
17,
1,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
3,
34,
17,
1,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
3,
34,
17,
1,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
3,
34,
17,
1,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
3,
3,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
13,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
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
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
45,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
45,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
45,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
45,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
45,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
95,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
86,
98
],
[
98,
99
],
[
98,
100
],
[
84,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
109,
115
],
[
115,
116
],
[
115,
117
],
[
108,
118
],
[
118,
119
],
[
118,
120
],
[
107,
121
],
[
106,
122
],
[
102,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
127,
137
],
[
137,
138
],
[
137,
139
],
[
126,
140
],
[
125,
141
],
[
102,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
147,
153
],
[
153,
154
],
[
153,
155
],
[
146,
156
],
[
156,
157
],
[
156,
158
],
[
145,
159
],
[
144,
160
],
[
102,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
166,
172
],
[
172,
173
],
[
172,
174
],
[
165,
175
],
[
175,
176
],
[
175,
177
],
[
164,
178
],
[
163,
179
],
[
84,
180
],
[
11,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
181,
191
],
[
191,
192
],
[
192,
193
],
[
181,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
196,
208
],
[
208,
209
],
[
209,
210
],
[
196,
211
],
[
212,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
220,
226
],
[
213,
227
],
[
227,
228
],
[
228,
229
],
[
213,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
239,
245
],
[
212,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
246,
251
],
[
195,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
252,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
259,
264
],
[
9,
265
],
[
265,
266
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n final int tou = 4, kai = 3, number = 10;\n int[][][] x = new int[tou][kai][number];\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n = br.readLine();\n String s;\n while((s=br.readLine())!=null){\n String[] str = s.split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int c = Integer.parseInt(str[2]);\n int d = Integer.parseInt(str[3]);\n if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;\n }\n for(int i=0; i<x.length; i++){\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String args[])throws IOException{\n final int tou = 4, kai = 3, number = 10;\n int[][][] x = new int[tou][kai][number];\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n = br.readLine();\n String s;\n while((s=br.readLine())!=null){\n String[] str = s.split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int c = Integer.parseInt(str[2]);\n int d = Integer.parseInt(str[3]);\n if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;\n }\n for(int i=0; i<x.length; i++){\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main",
"public static void main(String args[])throws IOException{\n final int tou = 4, kai = 3, number = 10;\n int[][][] x = new int[tou][kai][number];\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n = br.readLine();\n String s;\n while((s=br.readLine())!=null){\n String[] str = s.split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int c = Integer.parseInt(str[2]);\n int d = Integer.parseInt(str[3]);\n if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;\n }\n for(int i=0; i<x.length; i++){\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }\n }",
"main",
"{\n final int tou = 4, kai = 3, number = 10;\n int[][][] x = new int[tou][kai][number];\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n = br.readLine();\n String s;\n while((s=br.readLine())!=null){\n String[] str = s.split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int c = Integer.parseInt(str[2]);\n int d = Integer.parseInt(str[3]);\n if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;\n }\n for(int i=0; i<x.length; i++){\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }\n }",
"final int tou = 4",
"tou",
"4",
"kai = 3",
"kai",
"3",
"number = 10;",
"number",
"10",
"int[][][] x = new int[tou][kai][number];",
"x",
"new int[tou][kai][number]",
"tou",
"kai",
"number",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String n = br.readLine();",
"n",
"br.readLine()",
"br.readLine",
"br",
"String s;",
"s",
"while((s=br.readLine())!=null){\n String[] str = s.split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int c = Integer.parseInt(str[2]);\n int d = Integer.parseInt(str[3]);\n if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;\n }",
"(s=br.readLine())!=null",
"(s=br.readLine())",
"s",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n String[] str = s.split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int c = Integer.parseInt(str[2]);\n int d = Integer.parseInt(str[3]);\n if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;\n }",
"String[] str = s.split(\" \");",
"str",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int a = Integer.parseInt(str[0]);",
"a",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int b = Integer.parseInt(str[1]);",
"b",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int c = Integer.parseInt(str[2]);",
"c",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"int d = Integer.parseInt(str[3]);",
"d",
"Integer.parseInt(str[3])",
"Integer.parseInt",
"Integer",
"str[3]",
"str",
"3",
"if(!(a>tou || b>kai || c>number || d>9)){\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }\n else break;",
"!(a>tou || b>kai || c>number || d>9)",
"(a>tou || b>kai || c>number || d>9)",
"c>number",
"a>tou || b>kai || c>number || d>9",
"a>tou",
"a",
"tou",
"b>kai",
"b",
"kai",
"c>number",
"c",
"number",
"d>9",
"d",
"9",
"{\n switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }\n }",
"switch(a){\n case 1: x[a-1][b-1][c-1] += d; break;\n case 2: x[a-1][b-1][c-1] += d; break;\n case 3: x[a-1][b-1][c-1] += d; break;\n case 4: x[a-1][b-1][c-1] += d; break;\n }",
"a",
"case 1:",
"1",
"case 1:",
"x[a-1][b-1][c-1] += d",
"x[a-1][b-1][c-1]",
"x[a-1][b-1]",
"x[a-1]",
"x",
"a-1",
"a",
"1",
"b-1",
"b",
"1",
"c-1",
"c",
"1",
"d",
"break;",
"case 2:",
"2",
"case 2:",
"x[a-1][b-1][c-1] += d",
"x[a-1][b-1][c-1]",
"x[a-1][b-1]",
"x[a-1]",
"x",
"a-1",
"a",
"1",
"b-1",
"b",
"1",
"c-1",
"c",
"1",
"d",
"break;",
"case 3:",
"3",
"case 3:",
"x[a-1][b-1][c-1] += d",
"x[a-1][b-1][c-1]",
"x[a-1][b-1]",
"x[a-1]",
"x",
"a-1",
"a",
"1",
"b-1",
"b",
"1",
"c-1",
"c",
"1",
"d",
"break;",
"case 4:",
"4",
"case 4:",
"x[a-1][b-1][c-1] += d",
"x[a-1][b-1][c-1]",
"x[a-1][b-1]",
"x[a-1]",
"x",
"a-1",
"a",
"1",
"b-1",
"b",
"1",
"c-1",
"c",
"1",
"d",
"break;",
"break;",
"for(int i=0; i<x.length; i++){\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x.length",
"i",
"x.length",
"x",
"x.length",
"i++",
"i++",
"i",
"{\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }",
"{\n for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }\n if(i<tou-1){\n System.out.println(\"####################\");\n }\n }",
"for(int j=0; j<x[i].length; j++){\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<x[i].length",
"j",
"x[i].length",
"x[i]",
"x",
"i",
"x[i].length",
"j++",
"j++",
"j",
"{\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }",
"{\n for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }\n System.out.println(\"\");\n }",
"for(int k=0; k<x[i][j].length; k++){\n System.out.print(\" \"+x[i][j][k]);\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<x[i][j].length",
"k",
"x[i][j].length",
"x[i][j]",
"x[i]",
"x",
"i",
"j",
"x[i][j].length",
"k++",
"k++",
"k",
"{\n System.out.print(\" \"+x[i][j][k]);\n }",
"{\n System.out.print(\" \"+x[i][j][k]);\n }",
"System.out.print(\" \"+x[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+x[i][j][k]",
"\" \"",
"x[i][j][k]",
"x[i][j]",
"x[i]",
"x",
"i",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if(i<tou-1){\n System.out.println(\"####################\");\n }",
"i<tou-1",
"i",
"tou-1",
"tou",
"1",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String args[]",
"args"
] | import java.io.*;
import java.util.*;
class Main{
public static void main(String args[])throws IOException{
final int tou = 4, kai = 3, number = 10;
int[][][] x = new int[tou][kai][number];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String n = br.readLine();
String s;
while((s=br.readLine())!=null){
String[] str = s.split(" ");
int a = Integer.parseInt(str[0]);
int b = Integer.parseInt(str[1]);
int c = Integer.parseInt(str[2]);
int d = Integer.parseInt(str[3]);
if(!(a>tou || b>kai || c>number || d>9)){
switch(a){
case 1: x[a-1][b-1][c-1] += d; break;
case 2: x[a-1][b-1][c-1] += d; break;
case 3: x[a-1][b-1][c-1] += d; break;
case 4: x[a-1][b-1][c-1] += d; break;
}
}
else break;
}
for(int i=0; i<x.length; i++){
for(int j=0; j<x[i].length; j++){
for(int k=0; k<x[i][j].length; k++){
System.out.print(" "+x[i][j][k]);
}
System.out.println("");
}
if(i<tou-1){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
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,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
13,
14,
2,
18,
18,
18,
13,
13,
13,
13,
17,
30,
0,
18,
18,
18,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
174,
5
],
[
174,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
47,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
68,
76
],
[
47,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
78,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
88,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
135,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
147,
153
],
[
122,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
109,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
6,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int bfrv[][][] = new int[5][4][11];\n int b = 0;\n int f = 0;\n int r = 0;\n int v = 0;\n for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\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 n = sc.nextInt();\n int bfrv[][][] = new int[5][4][11];\n int b = 0;\n int f = 0;\n int r = 0;\n int v = 0;\n for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int bfrv[][][] = new int[5][4][11];\n int b = 0;\n int f = 0;\n int r = 0;\n int v = 0;\n for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int bfrv[][][] = new int[5][4][11];\n int b = 0;\n int f = 0;\n int r = 0;\n int v = 0;\n for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int bfrv[][][] = new int[5][4][11];",
"bfrv",
"new int[5][4][11]",
"5",
"4",
"11",
"int b = 0;",
"b",
"0",
"int f = 0;",
"f",
"0",
"int r = 0;",
"r",
"0",
"int v = 0;",
"v",
"0",
"for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }",
"{\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"bfrv[b][f][r] += v",
"bfrv[b][f][r]",
"bfrv[b][f]",
"bfrv[b]",
"bfrv",
"b",
"f",
"r",
"v",
"if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }",
"bfrv[b][f][r] < 0",
"bfrv[b][f][r]",
"bfrv[b][f]",
"bfrv[b]",
"bfrv",
"b",
"f",
"r",
"0",
"{\n bfrv[b][f][r] = 0;\n }",
"bfrv[b][f][r] = 0",
"bfrv[b][f][r]",
"bfrv[b][f]",
"bfrv[b]",
"bfrv",
"b",
"f",
"r",
"0",
"for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }",
"{\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }",
"for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }",
"{\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }",
"for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k < 11",
"k",
"11",
"k++",
"k++",
"k",
"{\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }",
"{\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(bfrv[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"bfrv[i][j][k]",
"bfrv[i][j]",
"bfrv[i]",
"bfrv",
"i",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if (i != 4) {\n System.out.println(\"####################\");\n }",
"i != 4",
"i",
"4",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int bfrv[][][] = new int[5][4][11];\n int b = 0;\n int f = 0;\n int r = 0;\n int v = 0;\n for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int bfrv[][][] = new int[5][4][11];\n int b = 0;\n int f = 0;\n int r = 0;\n int v = 0;\n for (int i = 0; i < n; i++) {\n\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n\n bfrv[b][f][r] += v;\n if (bfrv[b][f][r] < 0) {\n bfrv[b][f][r] = 0;\n }\n }\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 4; j++) {\n for (int k = 1; k < 11; k++) {\n System.out.print(\" \");\n System.out.print(bfrv[i][j][k]);\n }\n System.out.println(\"\");\n }\n if (i != 4) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int bfrv[][][] = new int[5][4][11];
int b = 0;
int f = 0;
int r = 0;
int v = 0;
for (int i = 0; i < n; i++) {
b = sc.nextInt();
f = sc.nextInt();
r = sc.nextInt();
v = sc.nextInt();
bfrv[b][f][r] += v;
if (bfrv[b][f][r] < 0) {
bfrv[b][f][r] = 0;
}
}
for (int i = 1; i < 5; i++) {
for (int j = 1; j < 4; j++) {
for (int k = 1; k < 11; k++) {
System.out.print(" ");
System.out.print(bfrv[i][j][k]);
}
System.out.println("");
}
if (i != 4) {
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
18,
13,
13,
13,
13,
17,
4,
18,
18,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
147,
5
],
[
147,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
36,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
36,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
69,
71
],
[
58,
72
],
[
57,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
120,
128
],
[
99,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
86,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
6,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"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 a = sc.nextInt();\n\t\tint[][][][] data = new int[4][3][10][1];\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint[][][][] data = new int[4][3][10][1];\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint[][][][] data = new int[4][3][10][1];\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint[][][][] data = new int[4][3][10][1];\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][][][] data = new int[4][3][10][1];",
"data",
"new int[4][3][10][1]",
"4",
"3",
"10",
"1",
"for (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}",
"{\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}",
"int building = sc.nextInt();",
"building",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int floor = sc.nextInt();",
"floor",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int room = sc.nextInt();",
"room",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int person = sc.nextInt();",
"person",
"sc.nextInt()",
"sc.nextInt",
"sc",
"data[building-1][floor-1][room-1][0] += person",
"data[building-1][floor-1][room-1][0]",
"data[building-1][floor-1][room-1]",
"data[building-1][floor-1]",
"data[building-1]",
"data",
"building-1",
"building",
"1",
"floor-1",
"floor",
"1",
"room-1",
"room",
"1",
"0",
"person",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}",
"System.out.print(\" \" + data[i][j][k][0])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + data[i][j][k][0]",
"\" \"",
"data[i][j][k][0]",
"data[i][j][k]",
"data[i][j]",
"data[i]",
"data",
"i",
"j",
"k",
"0",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3)\n\t\t\tSystem.out.println(\"####################\");",
"i != 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"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 a = sc.nextInt();\n\t\tint[][][][] data = new int[4][3][10][1];\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\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 a = sc.nextInt();\n\t\tint[][][][] data = new int[4][3][10][1];\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room = sc.nextInt();\n\t\t\tint person = sc.nextInt();\n\t\t\tdata[building-1][floor-1][room-1][0] += person;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k][0]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\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 a = sc.nextInt();
int[][][][] data = new int[4][3][10][1];
for (int i = 0; i < a; i++) {
int building = sc.nextInt();
int floor = sc.nextInt();
int room = sc.nextInt();
int person = sc.nextInt();
data[building-1][floor-1][room-1][0] += person;
}
for (int i = 0; i < 4; i++) {
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
System.out.print(" " + data[i][j][k][0]);
}
System.out.println();
}
if(i != 3)
System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
172,
5
],
[
172,
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
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
55,
62
],
[
41,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
41,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
75,
82
],
[
41,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
41,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
91,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
125,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
112,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
6,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int[][][] log = new int[4][3][10];\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }\n\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int[][][] log = new int[4][3][10];\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }\n\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int[][][] log = new int[4][3][10];\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }\n\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int[][][] log = new int[4][3][10];\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }\n\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int[][][] log = new int[4][3][10];",
"log",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }",
"{\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }",
"line = sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] l = line.split(\" \");",
"l",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int b = Integer.parseInt(l[0]) - 1;",
"b",
"Integer.parseInt(l[0]) - 1",
"Integer.parseInt(l[0])",
"Integer.parseInt",
"Integer",
"l[0]",
"l",
"0",
"1",
"int f = Integer.parseInt(l[1]) - 1;",
"f",
"Integer.parseInt(l[1]) - 1",
"Integer.parseInt(l[1])",
"Integer.parseInt",
"Integer",
"l[1]",
"l",
"1",
"1",
"int r = Integer.parseInt(l[2]) - 1;",
"r",
"Integer.parseInt(l[2]) - 1",
"Integer.parseInt(l[2])",
"Integer.parseInt",
"Integer",
"l[2]",
"l",
"2",
"1",
"int v = Integer.parseInt(l[3]);",
"v",
"Integer.parseInt(l[3])",
"Integer.parseInt",
"Integer",
"l[3]",
"l",
"3",
"log[b][f][r] += v",
"log[b][f][r]",
"log[b][f]",
"log[b]",
"log",
"b",
"f",
"r",
"v",
"for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }",
"{\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }",
"for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }",
"{\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }",
"for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n System.out.print(\" \" + log[b][f][r]);\n }",
"{\n System.out.print(\" \" + log[b][f][r]);\n }",
"System.out.print(\" \" + log[b][f][r])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + log[b][f][r]",
"\" \"",
"log[b][f][r]",
"log[b][f]",
"log[b]",
"log",
"b",
"f",
"r",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(b != 3) {\n System.out.println(\"####################\");\n }",
"b != 3",
"b",
"3",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int[][][] log = new int[4][3][10];\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }\n\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int[][][] log = new int[4][3][10];\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n\n int b = Integer.parseInt(l[0]) - 1;\n int f = Integer.parseInt(l[1]) - 1;\n int r = Integer.parseInt(l[2]) - 1;\n int v = Integer.parseInt(l[3]);\n\n log[b][f][r] += v;\n }\n\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + log[b][f][r]);\n }\n System.out.println();\n }\n if(b != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int n = Integer.parseInt(line);
int[][][] log = new int[4][3][10];
for(int i = 0; i < n; i++) {
line = sc.nextLine();
String[] l = line.split(" ");
int b = Integer.parseInt(l[0]) - 1;
int f = Integer.parseInt(l[1]) - 1;
int r = Integer.parseInt(l[2]) - 1;
int v = Integer.parseInt(l[3]);
log[b][f][r] += v;
}
for(int b = 0; b < 4; b++) {
for(int f = 0; f < 3; f++) {
for(int r = 0; r < 10; r++) {
System.out.print(" " + log[b][f][r]);
}
System.out.println();
}
if(b != 3) {
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
206,
5
],
[
206,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
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
],
[
76,
80
],
[
75,
81
],
[
74,
82
],
[
8,
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
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
95,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
95,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
117,
127
],
[
127,
128
],
[
127,
129
],
[
116,
130
],
[
8,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
143,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
155,
163
],
[
163,
164
],
[
164,
165
],
[
155,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
188,
194
],
[
167,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
8,
200
],
[
200,
201
],
[
201,
202
],
[
6,
203
],
[
203,
204
],
[
0,
205
],
[
205,
206
],
[
205,
207
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\t//notices\n\t\tint b = 0;\t\t//buildings 4\n\t\tint f = 0;\t\t//floors 3\n\t\tint r = 0;\t\t//rooms\t10\n\t\tint v = 0;\t\t//persons\n\t\t\n\t\t//创建三维数组 值为0\n\t\tint[][][] buildings = new int[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\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\tint n = scanner.nextInt();\t//notices\n\t\tint b = 0;\t\t//buildings 4\n\t\tint f = 0;\t\t//floors 3\n\t\tint r = 0;\t\t//rooms\t10\n\t\tint v = 0;\t\t//persons\n\t\t\n\t\t//创建三维数组 值为0\n\t\tint[][][] buildings = new int[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\t//notices\n\t\tint b = 0;\t\t//buildings 4\n\t\tint f = 0;\t\t//floors 3\n\t\tint r = 0;\t\t//rooms\t10\n\t\tint v = 0;\t\t//persons\n\t\t\n\t\t//创建三维数组 值为0\n\t\tint[][][] buildings = new int[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\t//notices\n\t\tint b = 0;\t\t//buildings 4\n\t\tint f = 0;\t\t//floors 3\n\t\tint r = 0;\t\t//rooms\t10\n\t\tint v = 0;\t\t//persons\n\t\t\n\t\t//创建三维数组 值为0\n\t\tint[][][] buildings = new int[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int b = 0;",
"b",
"0",
"int f = 0;",
"f",
"0",
"int r = 0;",
"r",
"0",
"int v = 0;",
"v",
"0",
"int[][][] buildings = new int[4][3][10];",
"buildings",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"for(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}",
"{\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}",
"buildings[i][j][k]=0",
"buildings[i][j][k]",
"buildings[i][j]",
"buildings[i]",
"buildings",
"i",
"j",
"k",
"0",
"for(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}",
"b = scanner.nextInt()",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"f = scanner.nextInt()",
"f",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"r = scanner.nextInt()",
"r",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"v = scanner.nextInt()",
"v",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"buildings[b-1][f-1][r-1] += v",
"buildings[b-1][f-1][r-1]",
"buildings[b-1][f-1]",
"buildings[b-1]",
"buildings",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"if (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i!=0",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + buildings[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + buildings[i][j][k]",
"\" \"",
"buildings[i][j][k]",
"buildings[i][j]",
"buildings[i]",
"buildings",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\t//notices\n\t\tint b = 0;\t\t//buildings 4\n\t\tint f = 0;\t\t//floors 3\n\t\tint r = 0;\t\t//rooms\t10\n\t\tint v = 0;\t\t//persons\n\t\t\n\t\t//创建三维数组 值为0\n\t\tint[][][] buildings = new int[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\t//notices\n\t\tint b = 0;\t\t//buildings 4\n\t\tint f = 0;\t\t//floors 3\n\t\tint r = 0;\t\t//rooms\t10\n\t\tint v = 0;\t\t//persons\n\t\t\n\t\t//创建三维数组 值为0\n\t\tint[][][] buildings = new int[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tbuildings[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t//三维数组\n\t\t\tbuildings[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (i!=0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + buildings[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt(); //notices
int b = 0; //buildings 4
int f = 0; //floors 3
int r = 0; //rooms 10
int v = 0; //persons
//创建三维数组 值为0
int[][][] buildings = new int[4][3][10];
for(int i=0;i<4;i++) {
for(int j=0;j<3;j++) {
for(int k=0;k<10;k++) {
buildings[i][j][k]=0;
}
}
}
for(int i=0;i<n;i++) {
b = scanner.nextInt();
f = scanner.nextInt();
r = scanner.nextInt();
v = scanner.nextInt();
//三维数组
buildings[b-1][f-1][r-1] += v;
}
for(int i=0;i<4;i++) {
if (i!=0) {
System.out.println("####################");
}
for(int j=0;j<3;j++) {
for(int k=0;k<10;k++) {
System.out.print(" " + buildings[i][j][k]);
}
System.out.println();
}
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
13,
3,
34,
17,
1,
4,
18,
18,
13,
13,
13,
3,
34,
17,
1,
4,
18,
18,
13,
13,
13,
3,
34,
17,
1,
4,
18,
18,
13,
13,
13,
3,
34,
1,
4,
18,
18,
13,
13,
14,
2,
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
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
63,
71
],
[
8,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
104,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
104,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
104,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
126,
136
],
[
136,
137
],
[
136,
138
],
[
125,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
141,
147
],
[
147,
148
],
[
147,
149
],
[
140,
150
],
[
150,
151
],
[
150,
152
],
[
139,
153
],
[
8,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
192,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
192,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
208,
215
],
[
204,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
218,
225
],
[
204,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
228,
235
],
[
204,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
238,
245
],
[
204,
246
],
[
246,
247
],
[
179,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
166,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
258,
263
],
[
6,
264
],
[
264,
265
]
] | [
"import java.util.Scanner;\n \nclass Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n \n int [][][] build = new int [4][3][10];\n int tatemon,floo,roo;\n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }\n \n int n = scan.nextInt();\n int tatemono = 0;\n int floor= 0;\n int room = 0;\n int info,person;\n String result;\n \n for(info = 0; info < n; info++){\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }\n \n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n \n int [][][] build = new int [4][3][10];\n int tatemon,floo,roo;\n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }\n \n int n = scan.nextInt();\n int tatemono = 0;\n int floor= 0;\n int room = 0;\n int info,person;\n String result;\n \n for(info = 0; info < n; info++){\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }\n \n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n \n int [][][] build = new int [4][3][10];\n int tatemon,floo,roo;\n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }\n \n int n = scan.nextInt();\n int tatemono = 0;\n int floor= 0;\n int room = 0;\n int info,person;\n String result;\n \n for(info = 0; info < n; info++){\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }\n \n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }\n \n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n \n int [][][] build = new int [4][3][10];\n int tatemon,floo,roo;\n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }\n \n int n = scan.nextInt();\n int tatemono = 0;\n int floor= 0;\n int room = 0;\n int info,person;\n String result;\n \n for(info = 0; info < n; info++){\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }\n \n \n for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }\n \n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int [][][] build = new int [4][3][10];",
"build",
"new int [4][3][10]",
"4",
"3",
"10",
"int tatemon",
"tatemon",
"floo",
"floo",
"roo;",
"roo",
"for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }",
"tatemon = 0;",
"tatemon = 0",
"tatemon",
"0",
"tatemon < 4",
"tatemon",
"4",
"tatemon++",
"tatemon++",
"tatemon",
"{\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }",
"{\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }\n }",
"for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }",
"floo = 0;",
"floo = 0",
"floo",
"0",
"floo < 3",
"floo",
"3",
"floo++",
"floo++",
"floo",
"{\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }",
"{\n for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }\n }",
"for(roo = 0; roo < 10; roo++){\n \n build [tatemon][floo][roo] = 0;\n \n }",
"roo = 0;",
"roo = 0",
"roo",
"0",
"roo < 10",
"roo",
"10",
"roo++",
"roo++",
"roo",
"{\n \n build [tatemon][floo][roo] = 0;\n \n }",
"{\n \n build [tatemon][floo][roo] = 0;\n \n }",
"build [tatemon][floo][roo] = 0",
"build [tatemon][floo][roo]",
"build [tatemon][floo]",
"build [tatemon]",
"build",
"tatemon",
"floo",
"roo",
"0",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int tatemono = 0;",
"tatemono",
"0",
"int floor= 0;",
"floor",
"0",
"int room = 0;",
"room",
"0",
"int info",
"info",
"person;",
"person",
"String result;",
"result",
"for(info = 0; info < n; info++){\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }",
"info = 0;",
"info = 0",
"info",
"0",
"info < n",
"info",
"n",
"info++",
"info++",
"info",
"{\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }",
"{\n \n tatemono = scan.nextInt();\n floor = scan.nextInt();\n room = scan.nextInt();\n person = scan.nextInt();\n build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;\n }",
"tatemono = scan.nextInt()",
"tatemono",
"scan.nextInt()",
"scan.nextInt",
"scan",
"floor = scan.nextInt()",
"floor",
"scan.nextInt()",
"scan.nextInt",
"scan",
"room = scan.nextInt()",
"room",
"scan.nextInt()",
"scan.nextInt",
"scan",
"person = scan.nextInt()",
"person",
"scan.nextInt()",
"scan.nextInt",
"scan",
"build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person",
"build [tatemono-1][floor-1][room-1]",
"build [tatemono-1][floor-1]",
"build [tatemono-1]",
"build",
"tatemono-1",
"tatemono",
"1",
"floor-1",
"floor",
"1",
"room-1",
"room",
"1",
"build [tatemono-1][floor-1][room-1]+person",
"build [tatemono-1][floor-1][room-1]",
"build [tatemono-1][floor-1]",
"build [tatemono-1]",
"build",
"tatemono-1",
"tatemono",
"1",
"floor-1",
"floor",
"1",
"room-1",
"room",
"1",
"person",
"for(tatemon = 0; tatemon < 4; tatemon++){\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }",
"tatemon = 0;",
"tatemon = 0",
"tatemon",
"0",
"tatemon < 4",
"tatemon",
"4",
"tatemon++",
"tatemon++",
"tatemon",
"{\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }",
"{\n for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }\n if(tatemon < 3){\n System.out.println(\"####################\");\n }\n }",
"for(floo = 0; floo < 3; floo++){\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }",
"floo = 0;",
"floo = 0",
"floo",
"0",
"floo < 3",
"floo",
"3",
"floo++",
"floo++",
"floo",
"{\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }",
"{\n for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }\n System.out.println();\n }",
"for(roo = 0; roo < 10; roo++){ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }",
"roo = 0;",
"roo = 0",
"roo",
"0",
"roo < 10",
"roo",
"10",
"roo++",
"roo++",
"roo",
"{ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }",
"{ \n \n result = \" \"+build [tatemon][floo][roo];\n \n switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n } \n }",
"result = \" \"+build [tatemon][floo][roo]",
"result",
"\" \"+build [tatemon][floo][roo]",
"\" \"",
"build [tatemon][floo][roo]",
"build [tatemon][floo]",
"build [tatemon]",
"build",
"tatemon",
"floo",
"roo",
"switch(tatemono){\n case 1: \n System.out.print(result);\n break; \n case 2:\n System.out.print(result);\n break; \n case 3:\n System.out.print(result);\n break; \n case 4:\n System.out.print(result);\n break; \n default: \n }",
"tatemono",
"case 1:",
"1",
"case 1:",
"System.out.print(result)",
"System.out.print",
"System.out",
"System",
"System.out",
"result",
"break;",
"case 2:",
"2",
"case 2:",
"System.out.print(result)",
"System.out.print",
"System.out",
"System",
"System.out",
"result",
"break;",
"case 3:",
"3",
"case 3:",
"System.out.print(result)",
"System.out.print",
"System.out",
"System",
"System.out",
"result",
"break;",
"case 4:",
"4",
"case 4:",
"System.out.print(result)",
"System.out.print",
"System.out",
"System",
"System.out",
"result",
"break;",
"default:",
"default:",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(tatemon < 3){\n System.out.println(\"####################\");\n }",
"tatemon < 3",
"tatemon",
"3",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int [][][] build = new int [4][3][10];
int tatemon,floo,roo;
for(tatemon = 0; tatemon < 4; tatemon++){
for(floo = 0; floo < 3; floo++){
for(roo = 0; roo < 10; roo++){
build [tatemon][floo][roo] = 0;
}
}
}
int n = scan.nextInt();
int tatemono = 0;
int floor= 0;
int room = 0;
int info,person;
String result;
for(info = 0; info < n; info++){
tatemono = scan.nextInt();
floor = scan.nextInt();
room = scan.nextInt();
person = scan.nextInt();
build [tatemono-1][floor-1][room-1] = build [tatemono-1][floor-1][room-1]+person;
}
for(tatemon = 0; tatemon < 4; tatemon++){
for(floo = 0; floo < 3; floo++){
for(roo = 0; roo < 10; roo++){
result = " "+build [tatemon][floo][roo];
switch(tatemono){
case 1:
System.out.print(result);
break;
case 2:
System.out.print(result);
break;
case 3:
System.out.print(result);
break;
case 4:
System.out.print(result);
break;
default:
}
}
System.out.println();
}
if(tatemon < 3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
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,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
63,
71
],
[
8,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
8,
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
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
105,
110
],
[
102,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
113,
120
],
[
102,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
123,
130
],
[
102,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
137,
139
],
[
133,
140
],
[
102,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
102,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
149,
157
],
[
8,
158
],
[
158,
159
],
[
8,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
160,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
173,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
189,
197
],
[
197,
198
],
[
198,
199
],
[
189,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
185,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
172,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
6,
229
],
[
229,
230
]
] | [
"import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] house = new int[4][3][10];\n int i, j, k;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }\n int n = Integer.parseInt(br.readLine());\n String[] input;\n int b, f, r ,v;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }\n String output;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] house = new int[4][3][10];\n int i, j, k;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }\n int n = Integer.parseInt(br.readLine());\n String[] input;\n int b, f, r ,v;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }\n String output;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] house = new int[4][3][10];\n int i, j, k;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }\n int n = Integer.parseInt(br.readLine());\n String[] input;\n int b, f, r ,v;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }\n String output;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] house = new int[4][3][10];\n int i, j, k;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }\n int n = Integer.parseInt(br.readLine());\n String[] input;\n int b, f, r ,v;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }\n String output;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"int i",
"i",
"j",
"j",
"k;",
"k",
"for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }",
"{\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }\n }",
"for (j = 0; j < 3; j++) {\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }",
"{\n for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }\n }",
"for (k = 0; k < 10; k++) {\n house[i][j][k] = 0;\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n house[i][j][k] = 0;\n }",
"{\n house[i][j][k] = 0;\n }",
"house[i][j][k] = 0",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"0",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] input;",
"input",
"int b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }",
"{\n input = br.readLine().split(\" \");\n b = Integer.parseInt(input[0]) - 1;\n f = Integer.parseInt(input[1]) - 1;\n r = Integer.parseInt(input[2]) - 1;\n v = Integer.parseInt(input[3]);\n house[b][f][r] += v;\n }",
"input = br.readLine().split(\" \")",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"b = Integer.parseInt(input[0]) - 1",
"b",
"Integer.parseInt(input[0]) - 1",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"1",
"f = Integer.parseInt(input[1]) - 1",
"f",
"Integer.parseInt(input[1]) - 1",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"1",
"r = Integer.parseInt(input[2]) - 1",
"r",
"Integer.parseInt(input[2]) - 1",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"1",
"v = Integer.parseInt(input[3])",
"v",
"Integer.parseInt(input[3])",
"Integer.parseInt",
"Integer",
"input[3]",
"input",
"3",
"house[b][f][r] += v",
"house[b][f][r]",
"house[b][f]",
"house[b]",
"house",
"b",
"f",
"r",
"v",
"String output;",
"output",
"for (i = 0; i < 4; i++) {\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }",
"{\n for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }\n if (i != 3) System.out.println(\"####################\");\n }",
"for (j = 0; j < 3; j++) {\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }",
"{\n output = \"\";\n for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }\n System.out.println(output);\n }",
"output = \"\"",
"output",
"\"\"",
"for (k = 0; k < 10; k++) {\n output += \" \" + house[i][j][k];\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n output += \" \" + house[i][j][k];\n }",
"{\n output += \" \" + house[i][j][k];\n }",
"output += \" \" + house[i][j][k]",
"output",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"System.out.println(output)",
"System.out.println",
"System.out",
"System",
"System.out",
"output",
"if (i != 3) System.out.println(\"####################\");",
"i != 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main (String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[][][] house = new int[4][3][10];
int i, j, k;
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {
for (k = 0; k < 10; k++) {
house[i][j][k] = 0;
}
}
}
int n = Integer.parseInt(br.readLine());
String[] input;
int b, f, r ,v;
for (i = 0; i < n; i++) {
input = br.readLine().split(" ");
b = Integer.parseInt(input[0]) - 1;
f = Integer.parseInt(input[1]) - 1;
r = Integer.parseInt(input[2]) - 1;
v = Integer.parseInt(input[3]);
house[b][f][r] += v;
}
String output;
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {
output = "";
for (k = 0; k < 10; k++) {
output += " " + house[i][j][k];
}
System.out.println(output);
}
if (i != 3) System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
145,
5
],
[
145,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
8,
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
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
96,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
83,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
8,
139
],
[
139,
140
],
[
140,
141
],
[
6,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] info = new int[4][3][10]; \n for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }\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 int n = sc.nextInt();\n int[][][] info = new int[4][3][10]; \n for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] info = new int[4][3][10]; \n for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] info = new int[4][3][10]; \n for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][][] info = new int[4][3][10];",
"info",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }",
"{\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }",
"int b= sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r= sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v= sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"info[b-1][f-1][r-1]+=v",
"info[b-1][f-1][r-1]",
"info[b-1][f-1]",
"info[b-1]",
"info",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }",
"{\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }",
"for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }",
"{\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }",
"for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }",
"int m=0;",
"int m=0;",
"m",
"0",
"m<10",
"m",
"10",
"m++",
"m++",
"m",
"{\n System.out.printf(\" %d\",info[i][j][m]);\n }",
"{\n System.out.printf(\" %d\",info[i][j][m]);\n }",
"System.out.printf(\" %d\",info[i][j][m])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"info[i][j][m]",
"info[i][j]",
"info[i]",
"info",
"i",
"j",
"m",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i!=3){\n System.out.printf(\"####################\\n\");\n }",
"i!=3",
"i",
"3",
"{\n System.out.printf(\"####################\\n\");\n }",
"System.out.printf(\"####################\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"####################\\n\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] info = new int[4][3][10]; \n for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] info = new int[4][3][10]; \n for(int i=0;i<n;i++){\n int b= sc.nextInt();\n int f = sc.nextInt();\n int r= sc.nextInt();\n int v= sc.nextInt();\n info[b-1][f-1][r-1]+=v;\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<3;j++){\n for(int m=0;m<10;m++){\n System.out.printf(\" %d\",info[i][j][m]);\n }\n System.out.println();\n }\n if(i!=3){\n System.out.printf(\"####################\\n\");\n }\n }\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 n = sc.nextInt();
int[][][] info = new int[4][3][10];
for(int i=0;i<n;i++){
int b= sc.nextInt();
int f = sc.nextInt();
int r= sc.nextInt();
int v= sc.nextInt();
info[b-1][f-1][r-1]+=v;
}
for(int i=0;i<4;i++){
for(int j=0;j<3;j++){
for(int m=0;m<10;m++){
System.out.printf(" %d",info[i][j][m]);
}
System.out.println();
}
if(i!=3){
System.out.printf("####################\n");
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
0,
13,
20,
17,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
0,
18,
18,
18,
18,
13,
13,
13,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
18,
13,
13,
13,
13,
17,
14,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
160,
5
],
[
160,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
51,
55
],
[
41,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
58,
62
],
[
41,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
64,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
8,
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
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
122,
130
],
[
114,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
101,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
6,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] | [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint nyukyoData[][][][];\n\t\tnyukyoData = new int [4][3][10][1];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}\n\t\tfor (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint nyukyoData[][][][];\n\t\tnyukyoData = new int [4][3][10][1];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}\n\t\tfor (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint nyukyoData[][][][];\n\t\tnyukyoData = new int [4][3][10][1];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}\n\t\tfor (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint nyukyoData[][][][];\n\t\tnyukyoData = new int [4][3][10][1];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}\n\t\tfor (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"int nyukyoData[][][][];",
"nyukyoData",
"nyukyoData = new int [4][3][10][1]",
"nyukyoData",
"new int [4][3][10][1]",
"4",
"3",
"10",
"1",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}",
"{\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}",
"int b = sc.nextInt()-1;",
"b",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int f = sc.nextInt()-1;",
"f",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int r = sc.nextInt()-1;",
"r",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"nyukyoData[b][f][r][0] += sc.nextInt()",
"nyukyoData[b][f][r][0]",
"nyukyoData[b][f][r]",
"nyukyoData[b][f]",
"nyukyoData[b]",
"nyukyoData",
"b",
"f",
"r",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int b=0;",
"int b=0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"int f=0;",
"int f=0;",
"f",
"0",
"f < 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"for(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}",
"int r=0;",
"int r=0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}",
"System.out.print(\" \" + nyukyoData[b][f][r][0])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + nyukyoData[b][f][r][0]",
"\" \"",
"nyukyoData[b][f][r][0]",
"nyukyoData[b][f][r]",
"nyukyoData[b][f]",
"nyukyoData[b]",
"nyukyoData",
"b",
"f",
"r",
"0",
"if (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}",
"r == 9",
"r",
"9",
"{\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"f == 2 && b != 3",
"f == 2",
"f",
"2",
"b != 3",
"b",
"3",
"{\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint nyukyoData[][][][];\n\t\tnyukyoData = new int [4][3][10][1];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}\n\t\tfor (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint nyukyoData[][][][];\n\t\tnyukyoData = new int [4][3][10][1];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i=0; i < n; i++){\n\t\t\tint b = sc.nextInt()-1;\n\t\t\tint f = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tnyukyoData[b][f][r][0] += sc.nextInt();\n\t\t}\n\t\tfor (int b=0; b < 4; b++) {\n\t\t\tfor (int f=0; f < 3; f++) {\n\t\t\t\tfor(int r=0; r < 10; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + nyukyoData[b][f][r][0]);\n\t\t\t\t\tif (r == 9) {\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (f == 2 && b != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int nyukyoData[][][][];
nyukyoData = new int [4][3][10][1];
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
for (int i=0; i < n; i++){
int b = sc.nextInt()-1;
int f = sc.nextInt()-1;
int r = sc.nextInt()-1;
nyukyoData[b][f][r][0] += sc.nextInt();
}
for (int b=0; b < 4; b++) {
for (int f=0; f < 3; f++) {
for(int r=0; r < 10; r++) {
System.out.print(" " + nyukyoData[b][f][r][0]);
if (r == 9) {
System.out.println("");
}
}
if (f == 2 && b != 3) {
System.out.println("####################");
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
17,
0,
13,
20,
17,
17,
0,
13,
20,
17,
17,
0,
13,
20,
17,
17,
41,
13,
4,
18,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
384,
5
],
[
384,
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
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
8,
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
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
67,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
67,
88
],
[
88,
89
],
[
88,
90
],
[
67,
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
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
107,
109
],
[
100,
110
],
[
91,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
120,
130
],
[
111,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
141,
147
],
[
147,
148
],
[
147,
149
],
[
140,
150
],
[
131,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
161,
167
],
[
167,
168
],
[
167,
169
],
[
160,
170
],
[
8,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
184,
192
],
[
192,
193
],
[
193,
194
],
[
184,
195
],
[
196,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
196,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
8,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
8,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
225,
233
],
[
233,
234
],
[
234,
235
],
[
225,
236
],
[
237,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
238,
246
],
[
246,
247
],
[
247,
248
],
[
238,
249
],
[
250,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
262
],
[
250,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
8,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
8,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
279,
284
],
[
284,
285
],
[
284,
286
],
[
279,
287
],
[
287,
288
],
[
288,
289
],
[
279,
290
],
[
291,
291
],
[
291,
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
],
[
307,
308
],
[
307,
309
],
[
305,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
304,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
317,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
8,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
8,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
333,
338
],
[
338,
339
],
[
338,
340
],
[
333,
341
],
[
341,
342
],
[
342,
343
],
[
333,
344
],
[
345,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
346,
351
],
[
351,
352
],
[
351,
353
],
[
346,
354
],
[
354,
355
],
[
355,
356
],
[
346,
357
],
[
358,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
359,
364
],
[
364,
365
],
[
364,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
366,
370
],
[
358,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
371,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
6,
381
],
[
381,
382
],
[
0,
383
],
[
383,
384
],
[
383,
385
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\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\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int i",
"i",
"j",
"j",
"k;",
"k",
"int floor1[][];",
"floor1",
"int floor2[][];",
"floor2",
"int floor3[][];",
"floor3",
"int floor4[][];",
"floor4",
"floor1 = new int[3][10]",
"floor1",
"new int[3][10]",
"3",
"10",
"floor2 = new int[3][10]",
"floor2",
"new int[3][10]",
"3",
"10",
"floor3 = new int[3][10]",
"floor3",
"new int[3][10]",
"3",
"10",
"floor4 = new int[3][10]",
"floor4",
"new int[3][10]",
"3",
"10",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v;",
"v",
"int w;",
"w",
"for (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}",
"k = 1;",
"k = 1",
"k",
"1",
"k <= n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}",
"{\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"v = scan.nextInt()",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"w = v",
"w",
"v",
"if(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 1 && v <= 9",
"b == 1",
"b",
"1",
"v <= 9",
"v",
"9",
"{\n\tfloor1[f-1][r-1] += v;\n}",
"floor1[f-1][r-1] += v",
"floor1[f-1][r-1]",
"floor1[f-1]",
"floor1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 2 && v <= 9",
"b == 2",
"b",
"2",
"v <= 9",
"v",
"9",
"{\n\tfloor2[f-1][r-1] += v;\n}",
"floor2[f-1][r-1] += v",
"floor2[f-1][r-1]",
"floor2[f-1]",
"floor2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 3 && v <= 9",
"b == 3",
"b",
"3",
"v <= 9",
"v",
"9",
"{\n\tfloor3[f-1][r-1] += v;\n}",
"floor3[f-1][r-1] += v",
"floor3[f-1][r-1]",
"floor3[f-1]",
"floor3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}",
"b == 4 && v <= 9",
"b == 4",
"b",
"4",
"v <= 9",
"v",
"9",
"{\n\tfloor4[f-1][r-1] += v;\n}",
"floor4[f-1][r-1] += v",
"floor4[f-1][r-1]",
"floor4[f-1]",
"floor4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor1[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor1[j][i]",
"\" \"",
"floor1[j][i]",
"floor1[j]",
"floor1",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor2[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor2[j][i]",
"\" \"",
"floor2[j][i]",
"floor2[j]",
"floor2",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor3[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor3[j][i]",
"\" \"",
"floor3[j][i]",
"floor3[j]",
"floor3",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"System.out.print(\" \"+floor4[j][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+floor4[j][i]",
"\" \"",
"floor4[j][i]",
"floor4[j]",
"floor4",
"j",
"i",
"if(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"i >= 9",
"i",
"9",
"{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i, j, k;\n\t\tint floor1[][];\n\t\tint floor2[][];\n\t\tint floor3[][];\n\t\tint floor4[][];\n\t\tfloor1 = new int[3][10];\n\t\tfloor2 = new int[3][10];\n\t\tfloor3 = new int[3][10];\n\t\tfloor4 = new int[3][10];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint v;\n\t\tint w;\n\t\t\n\t\n\t\n\t\tfor (k = 1; k <= n; k++) {\n\t\t\t\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tw = v;\n\t\t\nif(b == 1 && v <= 9){\n\tfloor1[f-1][r-1] += v;\n}else if(b == 2 && v <= 9){\n\tfloor2[f-1][r-1] += v;\n}else if(b == 3 && v <= 9){\n\tfloor3[f-1][r-1] += v;\n}else if(b == 4 && v <= 9){\n\tfloor4[f-1][r-1] += v;\n}\n\n\n\t\t}\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+floor1[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor2[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor3[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor (j = 0; j < 3; j++) {\n\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(\" \"+floor4[j][i]);\n\t\t\t\tif(i >= 9){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i, j, k;
int floor1[][];
int floor2[][];
int floor3[][];
int floor4[][];
floor1 = new int[3][10];
floor2 = new int[3][10];
floor3 = new int[3][10];
floor4 = new int[3][10];
int n = scan.nextInt();
int v;
int w;
for (k = 1; k <= n; k++) {
int b = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
v = scan.nextInt();
w = v;
if(b == 1 && v <= 9){
floor1[f-1][r-1] += v;
}else if(b == 2 && v <= 9){
floor2[f-1][r-1] += v;
}else if(b == 3 && v <= 9){
floor3[f-1][r-1] += v;
}else if(b == 4 && v <= 9){
floor4[f-1][r-1] += v;
}
}
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor1[j][i]);
if(i >= 9){
System.out.println();
}
}
}
System.out.println("####################");
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor2[j][i]);
if(i >= 9){
System.out.println();
}
}
}
System.out.println("####################");
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor3[j][i]);
if(i >= 9){
System.out.println();
}
}
}
System.out.println("####################");
for (j = 0; j < 3; j++) {
for (i = 0; i < 10; i++) {
System.out.print(" "+floor4[j][i]);
if(i >= 9){
System.out.println();
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
20,
17,
17,
41,
13,
4,
18,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
13,
2,
2,
2,
13,
17,
17,
13,
13,
2,
18,
18,
13,
2,
2,
2,
13,
17,
17,
13,
13,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
14,
2,
2,
13,
17,
17,
30,
14,
2,
13,
17,
3,
4,
18,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
3,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
177,
5
],
[
177,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
38,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
38,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
60,
70
],
[
59,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
72,
82
],
[
71,
83
],
[
8,
84
],
[
84,
85
],
[
8,
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
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
98,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
130,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
98,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
98,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
8,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
6,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] a;\n\t\ta = new int[13][11];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}\n\t\tint q;\n\t\tfor(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] a;\n\t\ta = new int[13][11];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}\n\t\tint q;\n\t\tfor(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] a;\n\t\ta = new int[13][11];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}\n\t\tint q;\n\t\tfor(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] a;\n\t\ta = new int[13][11];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}\n\t\tint q;\n\t\tfor(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[][] a;",
"a",
"a = new int[13][11]",
"a",
"new int[13][11]",
"13",
"11",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"for(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}",
"{\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v = scan.nextInt();",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v",
"a[(b - 1) * 3 + f][r]",
"a[(b - 1) * 3 + f]",
"a",
"(b - 1) * 3 + f",
"(b - 1) * 3",
"(b - 1)",
"b",
"1",
"3",
"f",
"r",
"a[(b - 1) * 3 + f][r] + v",
"a[(b - 1) * 3 + f][r]",
"a[(b - 1) * 3 + f]",
"a",
"(b - 1) * 3 + f",
"(b - 1) * 3",
"(b - 1)",
"b",
"1",
"3",
"f",
"r",
"v",
"int q;",
"q",
"for(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= 12",
"i",
"12",
"++i",
"++i",
"i",
"{\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}",
"for(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}",
"q = 1;",
"q = 1",
"q",
"1",
"q <= 10",
"q",
"10",
"++q",
"++q",
"q",
"{\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}",
"System.out.print(\" \"+a[i][q])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+a[i][q]",
"\" \"",
"a[i][q]",
"a[i]",
"a",
"i",
"q",
"if(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}",
"if(i == 12)\n\t\t\t\t\tbreak;",
"i == 12",
"i",
"12",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"for(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");",
"int v = 1;",
"int v = 1;",
"v",
"1",
"v <= 20",
"v",
"20",
"++v",
"++v",
"v",
"System.out.print(\"#\");",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"if(i == 12)\n\t\t\t\tbreak;",
"i == 12",
"i",
"12",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] a;\n\t\ta = new int[13][11];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}\n\t\tint q;\n\t\tfor(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] a;\n\t\ta = new int[13][11];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\ta[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;\n\t\t}\n\t\tint q;\n\t\tfor(i = 1; i <= 12; ++i){\n\t\t\tfor(q = 1; q <= 10; ++q){\n\t\t\t\tSystem.out.print(\" \"+a[i][q]);\n\t\t\t\t}\n\t\t\tif(i % 3 == 0){\n\t\t\t\tif(i == 12)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int v = 1;v <= 20; ++v)\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tif(i == 12)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[][] a;
a = new int[13][11];
int n = scan.nextInt();
int i;
for(i = 1; i <= n; ++i){
int b = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
int v = scan.nextInt();
a[(b - 1) * 3 + f][r] = a[(b - 1) * 3 + f][r] + v;
}
int q;
for(i = 1; i <= 12; ++i){
for(q = 1; q <= 10; ++q){
System.out.print(" "+a[i][q]);
}
if(i % 3 == 0){
if(i == 12)
break;
System.out.println();
for(int v = 1;v <= 20; ++v)
System.out.print("#");
}
if(i == 12)
break;
System.out.println();
}
System.out.println();
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
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,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
17,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
203,
2
],
[
203,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
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
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
51,
59
],
[
5,
60
],
[
60,
61
],
[
60,
62
],
[
5,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
5,
68
],
[
68,
69
],
[
68,
70
],
[
5,
71
],
[
71,
72
],
[
71,
73
],
[
5,
74
],
[
74,
75
],
[
74,
76
],
[
5,
77
],
[
77,
78
],
[
77,
79
],
[
5,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
92,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
92,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
92,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
114,
124
],
[
124,
125
],
[
124,
126
],
[
113,
127
],
[
5,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
153,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
140,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
190,
192
],
[
187,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
3,
200
],
[
200,
201
],
[
0,
202
],
[
202,
203
],
[
202,
204
]
] | [
"public class Main {\n public static void main(String[] args) {\n\n // ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.\n // ????????????????????????.\n int[][][] info = new int[4][3][10];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }\n\n // ?????±???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n int built = 0;\n int floor = 0;\n int room = 0;\n int num = 0;\n for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }\n\n // ?????±????????????????§?????????¨?????????.\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n // ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.\n // ????????????????????????.\n int[][][] info = new int[4][3][10];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }\n\n // ?????±???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n int built = 0;\n int floor = 0;\n int room = 0;\n int num = 0;\n for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }\n\n // ?????±????????????????§?????????¨?????????.\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n // ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.\n // ????????????????????????.\n int[][][] info = new int[4][3][10];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }\n\n // ?????±???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n int built = 0;\n int floor = 0;\n int room = 0;\n int num = 0;\n for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }\n\n // ?????±????????????????§?????????¨?????????.\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }\n }",
"main",
"{\n\n // ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.\n // ????????????????????????.\n int[][][] info = new int[4][3][10];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }\n\n // ?????±???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n int built = 0;\n int floor = 0;\n int room = 0;\n int num = 0;\n for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }\n\n // ?????±????????????????§?????????¨?????????.\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }\n }",
"int[][][] info = new int[4][3][10];",
"info",
"new int[4][3][10]",
"4",
"3",
"10",
"for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i ++",
"i ++",
"i",
"{\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }",
"{\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }",
"for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j ++",
"j ++",
"j",
"{\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }",
"{\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }",
"for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k ++",
"k ++",
"k",
"{ info[i][j][k] = 0; }",
"{ info[i][j][k] = 0; }",
"info[i][j][k] = 0",
"info[i][j][k]",
"info[i][j]",
"info[i]",
"info",
"i",
"j",
"k",
"0",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int built = 0;",
"built",
"0",
"int floor = 0;",
"floor",
"0",
"int room = 0;",
"room",
"0",
"int num = 0;",
"num",
"0",
"for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }",
"{\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }",
"built = sc.nextInt()",
"built",
"sc.nextInt()",
"sc.nextInt",
"sc",
"floor = sc.nextInt()",
"floor",
"sc.nextInt()",
"sc.nextInt",
"sc",
"room = sc.nextInt()",
"room",
"sc.nextInt()",
"sc.nextInt",
"sc",
"num = sc.nextInt()",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"info[built - 1][floor - 1][room - 1] += num",
"info[built - 1][floor - 1][room - 1]",
"info[built - 1][floor - 1]",
"info[built - 1]",
"info",
"built - 1",
"built",
"1",
"floor - 1",
"floor",
"1",
"room - 1",
"room",
"1",
"num",
"for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i ++",
"i ++",
"i",
"{\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }",
"{\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }",
"for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j ++",
"j ++",
"j",
"{\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }",
"{\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }",
"for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k ++",
"k ++",
"k",
"{\n System.out.print(\" \" + info[i][j][k]);\n }",
"{\n System.out.print(\" \" + info[i][j][k]);\n }",
"System.out.print(\" \" + info[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + info[i][j][k]",
"\" \"",
"info[i][j][k]",
"info[i][j]",
"info[i]",
"info",
"i",
"j",
"k",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"if (i != 4 - 1) { System.out.print(\"####################\\n\"); }",
"i != 4 - 1",
"i",
"4 - 1",
"4",
"1",
"{ System.out.print(\"####################\\n\"); }",
"System.out.print(\"####################\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"####################\\n\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n // ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.\n // ????????????????????????.\n int[][][] info = new int[4][3][10];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }\n\n // ?????±???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n int built = 0;\n int floor = 0;\n int room = 0;\n int num = 0;\n for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }\n\n // ?????±????????????????§?????????¨?????????.\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n // ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.\n // ????????????????????????.\n int[][][] info = new int[4][3][10];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }\n }\n }\n\n // ?????±???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n int built = 0;\n int floor = 0;\n int room = 0;\n int num = 0;\n for (int i = 0; i < n; i ++) {\n built = sc.nextInt();\n floor = sc.nextInt();\n room = sc.nextInt();\n num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }\n\n // ?????±????????????????§?????????¨?????????.\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 3; j ++) {\n for (int k = 0; k < 10; k ++) {\n System.out.print(\" \" + info[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 4 - 1) { System.out.print(\"####################\\n\"); }\n }\n }\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
// ?£?, ???, ??¨?±??????????????´???¨???????????????????????????.
// ????????????????????????.
int[][][] info = new int[4][3][10];
for (int i = 0; i < 4; i ++) {
for (int j = 0; j < 3; j ++) {
for (int k = 0; k < 10; k ++) { info[i][j][k] = 0; }
}
}
// ?????±???????????????.
java.util.Scanner sc = new java.util.Scanner(System.in);
int n = sc.nextInt();
int built = 0;
int floor = 0;
int room = 0;
int num = 0;
for (int i = 0; i < n; i ++) {
built = sc.nextInt();
floor = sc.nextInt();
room = sc.nextInt();
num = sc.nextInt();
info[built - 1][floor - 1][room - 1] += num;
}
// ?????±????????????????§?????????¨?????????.
for (int i = 0; i < 4; i ++) {
for (int j = 0; j < 3; j ++) {
for (int k = 0; k < 10; k ++) {
System.out.print(" " + info[i][j][k]);
}
System.out.print("\n");
}
if (i != 4 - 1) { System.out.print("####################\n"); }
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
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
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
44,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
44,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
66,
76
],
[
76,
77
],
[
76,
78
],
[
65,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
87,
88
],
[
87,
89
],
[
80,
90
],
[
90,
91
],
[
90,
92
],
[
79,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
119,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
106,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
6,
163
],
[
163,
164
]
] | [
"//b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。 \n\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String [] args){\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n \n int [][][] bill = new int[4][3][10];\n \n int b ;\n int f ;\n int r ;\n int v = 0;\n \n for( int i = 0 ; i < n ; i++ ){\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }\n\t \n for(int j = 0 ; j < 4 ; j++ ){\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n } \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String [] args){\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n \n int [][][] bill = new int[4][3][10];\n \n int b ;\n int f ;\n int r ;\n int v = 0;\n \n for( int i = 0 ; i < n ; i++ ){\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }\n\t \n for(int j = 0 ; j < 4 ; j++ ){\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n } \n }\n}",
"Main",
"public static void main(String [] args){\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n \n int [][][] bill = new int[4][3][10];\n \n int b ;\n int f ;\n int r ;\n int v = 0;\n \n for( int i = 0 ; i < n ; i++ ){\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }\n\t \n for(int j = 0 ; j < 4 ; j++ ){\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n } \n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n \n int [][][] bill = new int[4][3][10];\n \n int b ;\n int f ;\n int r ;\n int v = 0;\n \n for( int i = 0 ; i < n ; i++ ){\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }\n\t \n for(int j = 0 ; j < 4 ; j++ ){\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n } \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int [][][] bill = new int[4][3][10];",
"bill",
"new int[4][3][10]",
"4",
"3",
"10",
"int b ;",
"b",
"int f ;",
"f",
"int r ;",
"r",
"int v = 0;",
"v",
"0",
"for( int i = 0 ; i < n ; i++ ){\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }",
"{\n\t \n\t b = sc.nextInt();//棟\n\t f = sc.nextInt();//階\n\t r = sc.nextInt();//番目\n\t v = sc.nextInt();//人数\n\t \n\t bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );\n\t \n\t /*for(int j = 0 ; j < 4 ; j++ ){\n\t \tfor( int k = 0 ; k < 3 ; k++ ){\n\t \t\tfor( int l = 0 ; l < 10 ; l++ ){\n\t \t\t\t\n\t \t\t\tif( bill[j][k][l] != v){\n\t \t\t\t\tbill[j][k][l] = 0;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }*/ \n }",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v )",
"bill[b-1][f-1][r-1]",
"bill[b-1][f-1]",
"bill[b-1]",
"bill",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"bill[b-1][f-1][r-1] + ( v )",
"bill[b-1][f-1][r-1]",
"bill[b-1][f-1]",
"bill[b-1]",
"bill",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"( v )",
"for(int j = 0 ; j < 4 ; j++ ){\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n }",
"{\n \tfor( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}\n \tif( j != 3){\n \tSystem.out.println(\"####################\");\n \t}\n }",
"for( int k = 0 ; k < 3 ; k++ ){\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}",
"int k = 0 ;",
"int k = 0 ;",
"k",
"0",
"k < 3",
"k",
"3",
"k++",
"k++",
"k",
"{\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}",
"{\n \t\tfor( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}\n \t\tSystem.out.println();\n \t}",
"for( int l = 0 ; l < 10 ; l++ ){\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}",
"int l = 0 ;",
"int l = 0 ;",
"l",
"0",
"l < 10",
"l",
"10",
"l++",
"l++",
"l",
"{\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}",
"{\n \t\t\t\n \t\t\t\n \t\t\tSystem.out.print(\" \" + bill[j][k][l]);\n \t\t\t\n \t\t}",
"System.out.print(\" \" + bill[j][k][l])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + bill[j][k][l]",
"\" \"",
"bill[j][k][l]",
"bill[j][k]",
"bill[j]",
"bill",
"j",
"k",
"l",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if( j != 3){\n \tSystem.out.println(\"####################\");\n \t}",
"j != 3",
"j",
"3",
"{\n \tSystem.out.println(\"####################\");\n \t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String [] args",
"args"
] | //b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。
import java.util.Scanner;
class Main {
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int [][][] bill = new int[4][3][10];
int b ;
int f ;
int r ;
int v = 0;
for( int i = 0 ; i < n ; i++ ){
b = sc.nextInt();//棟
f = sc.nextInt();//階
r = sc.nextInt();//番目
v = sc.nextInt();//人数
bill[b-1][f-1][r-1] = bill[b-1][f-1][r-1] + ( v );
/*for(int j = 0 ; j < 4 ; j++ ){
for( int k = 0 ; k < 3 ; k++ ){
for( int l = 0 ; l < 10 ; l++ ){
if( bill[j][k][l] != v){
bill[j][k][l] = 0;
}
}
}
}*/
}
for(int j = 0 ; j < 4 ; j++ ){
for( int k = 0 ; k < 3 ; k++ ){
for( int l = 0 ; l < 10 ; l++ ){
System.out.print(" " + bill[j][k][l]);
}
System.out.println();
}
if( j != 3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
147,
5
],
[
147,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
8,
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
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
96,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
83,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
8,
141
],
[
141,
142
],
[
142,
143
],
[
6,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][][] kan = new int[4][3][10];\n int num=sc.nextInt();\n for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }\n \n for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][][] kan = new int[4][3][10];\n int num=sc.nextInt();\n for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }\n \n for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][][] kan = new int[4][3][10];\n int num=sc.nextInt();\n for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }\n \n for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[][][] kan = new int[4][3][10];\n int num=sc.nextInt();\n for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }\n \n for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[][][] kan = new int[4][3][10];",
"kan",
"new int[4][3][10]",
"4",
"3",
"10",
"int num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }",
"{\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }",
"int b=sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f=sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r=sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v=sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"kan[b-1][f-1][r-1] += v",
"kan[b-1][f-1][r-1]",
"kan[b-1][f-1]",
"kan[b-1]",
"kan",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }",
"{\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }",
"for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<3",
"k",
"3",
"k++",
"k++",
"k",
"{\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }",
"{\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }",
"for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }",
"int l=0;",
"int l=0;",
"l",
"0",
"l<10",
"l",
"10",
"l++",
"l++",
"l",
"{\n System.out.print(\" \"+kan[i][k][l]);\n }",
"{\n System.out.print(\" \"+kan[i][k][l]);\n }",
"System.out.print(\" \"+kan[i][k][l])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+kan[i][k][l]",
"\" \"",
"kan[i][k][l]",
"kan[i][k]",
"kan[i]",
"kan",
"i",
"k",
"l",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"if(i!=3){\n System.out.println(\"####################\");\n }",
"i!=3",
"i",
"3",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"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 int[][][] kan = new int[4][3][10];\n int num=sc.nextInt();\n for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }\n \n for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][][] kan = new int[4][3][10];\n int num=sc.nextInt();\n for(int i=0;i<num;i++){\n int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();\n kan[b-1][f-1][r-1] += v;\n }\n \n for(int i=0;i<4;i++){\n for(int k=0;k<3;k++){\n for(int l=0;l<10;l++){\n System.out.print(\" \"+kan[i][k][l]);\n }\n System.out.print(\"\\n\");\n }\n if(i!=3){\n System.out.println(\"####################\");\n }\n }\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[][][] kan = new int[4][3][10];
int num=sc.nextInt();
for(int i=0;i<num;i++){
int b=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt(),v=sc.nextInt();
kan[b-1][f-1][r-1] += v;
}
for(int i=0;i<4;i++){
for(int k=0;k<3;k++){
for(int l=0;l<10;l++){
System.out.print(" "+kan[i][k][l]);
}
System.out.print("\n");
}
if(i!=3){
System.out.println("####################");
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
28,
13,
13,
30,
30,
28,
13,
13,
30,
30,
0,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
18,
18,
13,
2,
2,
2,
2,
4,
18,
13,
18,
13,
17,
17,
17,
4,
18,
13,
18,
13,
17,
17,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
2,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
2,
18,
13,
13,
17,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
207,
8
],
[
207,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
31,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
22,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
22,
52
],
[
52,
53
],
[
22,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
69,
74
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
82,
89
],
[
81,
90
],
[
80,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
79,
97
],
[
76,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
98,
105
],
[
75,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
22,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
112,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
127,
139
],
[
139,
140
],
[
140,
141
],
[
127,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
144,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
126,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
126,
175
],
[
175,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
177,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
188,
194
],
[
175,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
22,
201
],
[
201,
202
],
[
202,
203
],
[
9,
204
],
[
204,
205
],
[
0,
206
],
[
206,
207
],
[
206,
208
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.err.println(e);\n\t\t}",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));",
"br",
"new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in))",
"int[][] house = new int[12][10];",
"house",
"new int[12][10]",
"12",
"10",
"for (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}",
"int[] rooms",
"house",
"{\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}",
"for (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}",
"int room",
"rooms",
"{\n\t\t\t\t\troom = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\troom = 0;\n\t\t\t\t}",
"room = 0",
"room",
"0",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] strs;",
"strs",
"for (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}",
"{\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}",
"strs = br.readLine().split(\"\\\\s\")",
"strs",
"br.readLine().split(\"\\\\s\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\\\\s\"",
"house[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3])",
"house[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1]",
"house[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1]",
"house",
"(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1",
"(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1])",
"(Integer.parseInt(strs[0]) - 1) * 3",
"(Integer.parseInt(strs[0]) - 1)",
"Integer.parseInt(strs[0])",
"Integer.parseInt",
"Integer",
"strs[0]",
"strs",
"0",
"1",
"3",
"Integer.parseInt(strs[1])",
"Integer.parseInt",
"Integer",
"strs[1]",
"strs",
"1",
"1",
"Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1",
"Integer\n\t\t\t\t\t\t.parseInt(strs[2])",
"Integer\n\t\t\t\t\t\t.parseInt",
"Integer",
"strs[2]",
"strs",
"2",
"1",
"Integer.parseInt(strs[3])",
"Integer.parseInt",
"Integer",
"strs[3]",
"strs",
"3",
"for (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < house.length",
"i",
"house.length",
"house",
"house.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"for (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < house[i].length",
"j",
"house[i].length",
"house[i]",
"house",
"i",
"house[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}",
"if (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);",
"j != 0 || j != house[i].length - 1",
"j != 0",
"j",
"0",
"j != house[i].length - 1",
"j",
"house[i].length - 1",
"house[i].length",
"house[i]",
"house",
"i",
"house[i].length",
"1",
"System.out.print(\" \" + house[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + house[i][j]",
"\" \"",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");",
"i != 0 && i != house.length - 1 && (i + 1) % 3 == 0",
"i != 0 && i != house.length - 1 && (i + 1) % 3 == 0",
"i != 0",
"i",
"0",
"i != house.length - 1",
"i",
"house.length - 1",
"house.length",
"house",
"house.length",
"1",
"(i + 1) % 3 == 0",
"(i + 1) % 3",
"(i + 1)",
"i",
"1",
"3",
"0",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tint[][] house = new int[12][10];\n\n\t\t\tfor (int[] rooms : house) {\n\t\t\t\tfor (int room : rooms) {\n\t\t\t\t\troom = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] strs;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tstrs = br.readLine().split(\"\\\\s\");\n\t\t\t\thouse[(Integer.parseInt(strs[0]) - 1) * 3\n\t\t\t\t\t\t+ Integer.parseInt(strs[1]) - 1][Integer\n\t\t\t\t\t\t.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\t\tfor (int j = 0; j < house[i].length; j++) {\n\t\t\t\t\tif (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
int[][] house = new int[12][10];
for (int[] rooms : house) {
for (int room : rooms) {
room = 0;
}
}
int n = Integer.parseInt(br.readLine());
String[] strs;
for (int i = 0; i < n; i++) {
strs = br.readLine().split("\\s");
house[(Integer.parseInt(strs[0]) - 1) * 3
+ Integer.parseInt(strs[1]) - 1][Integer
.parseInt(strs[2]) - 1] += Integer.parseInt(strs[3]);
}
for (int i = 0; i < house.length; i++) {
for (int j = 0; j < house[i].length; j++) {
if (j != 0 || j != house[i].length - 1)
System.out.print(" " + house[i][j]);
}
System.out.println();
if (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)
System.out.println("####################");
}
br.close();
} catch (Exception e) {
System.err.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
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,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
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
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
54,
62
],
[
8,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
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
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
80,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
80,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
103,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
112,
114
],
[
101,
115
],
[
8,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
142,
153
],
[
154,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
162,
168
],
[
141,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
128,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
6,
185
],
[
185,
186
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint appart[][][] = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < 4; i++)\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint appart[][][] = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < 4; i++)\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint appart[][][] = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < 4; i++)\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint appart[][][] = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < 4; i++)\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int appart[][][] = new int[4][3][10];",
"appart",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0; i < 4; i++)\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"for(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;",
"for(int j = 0; j < 3; j++)\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"for(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;",
"for(int k = 0; k < 10; k++)\n\t\t\t\t\tappart[i][j][k] = 0;",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"appart[i][j][k] = 0;",
"appart[i][j][k] = 0",
"appart[i][j][k]",
"appart[i][j]",
"appart[i]",
"appart",
"i",
"j",
"k",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t\n\t\t\tappart[b-1][f-1][r-1] += v;\n\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"appart[b-1][f-1][r-1] += v",
"appart[b-1][f-1][r-1]",
"appart[b-1][f-1]",
"appart[b-1]",
"appart",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + appart[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + appart[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + appart[i][j][k]",
"\" \"",
"appart[i][j][k]",
"appart[i][j]",
"appart[i]",
"appart",
"i",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if(i < 3)\n\t\t\t\tSystem.out.println(\"####################\");",
"i < 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String args[]",
"args"
] | import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int appart[][][] = new int[4][3][10];
for(int i = 0; i < 4; i++)
for(int j = 0; j < 3; j++)
for(int k = 0; k < 10; k++)
appart[i][j][k] = 0;
int n = sc.nextInt();
for(int i = 0; i < n; i++){
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
appart[b-1][f-1][r-1] += v;
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
System.out.print(" " + appart[i][j][k]);
}
System.out.println("");
}
if(i < 3)
System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
9,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
9,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
0,
18,
18,
18,
13,
13,
13,
13,
13,
3,
3,
3,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
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
],
[
251,
5
],
[
251,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
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
],
[
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
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
47,
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
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
102,
108
],
[
108,
109
],
[
101,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
131,
137
],
[
130,
138
],
[
129,
139
],
[
101,
140
],
[
80,
141
],
[
8,
142
],
[
142,
143
],
[
142,
144
],
[
8,
145
],
[
145,
146
],
[
145,
147
],
[
8,
148
],
[
148,
149
],
[
148,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
176,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
211,
217
],
[
163,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
223,
231
],
[
231,
232
],
[
232,
233
],
[
223,
234
],
[
235,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
222,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
242,
247
],
[
6,
248
],
[
248,
249
],
[
0,
250
],
[
250,
251
],
[
250,
252
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ??\\?±??????°???????´??????????????????¨???\n\t\tint[][][] house = new int[4][3][10];\n\t\tint build = 0;\n\t\tint floor = 0;\n\t\tint room = 0;\n\t\tint count = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint num = in.nextInt();\n\n\t\tfor(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n\n\t\t\t/*// ?£???\\??§??????\n\t\t\tif(build == 1) {\n\n\t\t\t\t// ????????¢??\\??§??????\n\t\t\t\tif(floor == 1 ) {\n\n\t\t\t\t\t// ??¨?±???\\??§??????\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[0][0][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[0][0][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[0][0][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[0][0][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[0][0][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[0][0][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[0][0][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[0][0][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[0][0][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[0][0][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 2 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[0][1][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[0][1][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[0][1][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[0][1][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[0][1][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[0][1][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[0][1][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[0][1][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[0][1][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[0][1][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 3 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[0][2][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[0][2][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[0][2][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[0][2][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[0][2][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[0][2][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[0][2][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[0][2][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[0][2][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[0][2][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if(build == 2) {\n\n\t\t\t\tif(floor == 1 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[1][0][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[1][0][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[1][0][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[1][0][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[1][0][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[1][0][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[1][0][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[1][0][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[1][0][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[1][0][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 2 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[1][1][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[1][1][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[1][1][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[1][1][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[1][1][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[1][1][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[1][1][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[1][1][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[1][1][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[1][1][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 3 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[1][2][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[1][2][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[1][2][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[1][2][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[1][2][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[1][2][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[1][2][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[1][2][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[1][2][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[1][2][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if(build == 3) {\n\n\t\t\t\tif(floor == 1 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[2][0][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[2][0][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[2][0][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[2][0][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[2][0][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[2][0][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[2][0][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[2][0][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[2][0][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[2][0][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 2 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[2][1][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[2][1][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[2][1][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[2][1][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[2][1][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[2][1][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[2][1][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[2][1][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[2][1][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[2][1][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 3 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[2][2][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[2][2][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[2][2][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[2][2][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[2][2][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[2][2][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[2][2][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[2][2][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[2][2][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[2][2][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if(build == 4) {\n\n\t\t\t\tif(floor == 1 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[3][0][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[3][0][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[3][0][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[3][0][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[3][0][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[3][0][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[3][0][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[3][0][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[3][0][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[3][0][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 2 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[3][1][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[3][1][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[3][1][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[3][1][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[3][1][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[3][1][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[3][1][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[3][1][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[3][1][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[3][1][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}else if(floor == 3 ) {\n\n\t\t\t\t\tif(room == 1) {\n\n\t\t\t\t\t\thouse[3][2][0] += count;\n\n\t\t\t\t\t}else if(room == 2) {\n\n\t\t\t\t\t\thouse[3][2][1] += count;\n\n\t\t\t\t\t}else if(room == 3) {\n\n\t\t\t\t\t\thouse[3][2][2] += count;\n\n\t\t\t\t\t}else if(room == 4) {\n\n\t\t\t\t\t\thouse[3][2][3] += count;\n\n\t\t\t\t\t}else if(room == 5) {\n\n\t\t\t\t\t\thouse[3][2][4] += count;\n\n\t\t\t\t\t}else if(room == 6) {\n\n\t\t\t\t\t\thouse[3][2][5] += count;\n\n\t\t\t\t\t}else if(room == 7) {\n\n\t\t\t\t\t\thouse[3][2][6] += count;\n\n\t\t\t\t\t}else if(room == 8) {\n\n\t\t\t\t\t\thouse[3][2][7] += count;\n\n\t\t\t\t\t}else if(room == 9) {\n\n\t\t\t\t\t\thouse[3][2][8] += count;\n\n\t\t\t\t\t}else if(room == 10) {\n\n\t\t\t\t\t\thouse[3][2][9] += count;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(b = 0; b < 4; b++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(f = 0; f < 3; f++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(r = 0; r < 9; r++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[b][f][r]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[b][f][r]);\n\n\t\t\t}\n\n\t\t\tif(b < 3) {\n\n\t\t\t\tfor(int i = 0; i < 20; i++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}\n}*/",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ??\\?±??????°???????´??????????????????¨???\n\t\tint[][][] house = new int[4][3][10];\n\t\tint build = 0;\n\t\tint floor = 0;\n\t\tint room = 0;\n\t\tint count = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint num = in.nextInt();\n\n\t\tfor(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t// ??\\?±??????°???????´??????????????????¨???\n\t\tint[][][] house = new int[4][3][10];\n\t\tint build = 0;\n\t\tint floor = 0;\n\t\tint room = 0;\n\t\tint count = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint num = in.nextInt();\n\n\t\tfor(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\t// ??\\?±??????°???????´??????????????????¨???\n\t\tint[][][] house = new int[4][3][10];\n\t\tint build = 0;\n\t\tint floor = 0;\n\t\tint room = 0;\n\t\tint count = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint num = in.nextInt();\n\n\t\tfor(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"int build = 0;",
"build",
"0",
"int floor = 0;",
"floor",
"0",
"int room = 0;",
"room",
"0",
"int count = 0;",
"count",
"0",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int num = in.nextInt();",
"num",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}",
"build = in.nextInt()",
"build",
"in.nextInt()",
"in.nextInt",
"in",
"floor = in.nextInt()",
"floor",
"in.nextInt()",
"in.nextInt",
"in",
"room = in.nextInt()",
"room",
"in.nextInt()",
"in.nextInt",
"in",
"count = in.nextInt()",
"count",
"in.nextInt()",
"in.nextInt",
"in",
"for(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}",
"{\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}",
"if(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}",
"build != j + 1",
"build",
"j + 1",
"j",
"1",
"{\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}",
"continue;",
"for(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 3",
"k",
"3",
"k++",
"k++",
"k",
"{\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}",
"{\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}",
"if(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}",
"floor != k + 1",
"floor",
"k + 1",
"k",
"1",
"{\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}",
"continue;",
"for(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < 10",
"l",
"10",
"l++",
"l++",
"l",
"{\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"{\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"if(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}",
"room == l + 1",
"room",
"l + 1",
"l",
"1",
"{\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}",
"house[j][k][l] += count",
"house[j][k][l]",
"house[j][k]",
"house[j]",
"house",
"j",
"k",
"l",
"count",
"break;",
"break;",
"break;",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"int k = 0;",
"k",
"0",
"for(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}",
"{\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}",
"for(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}",
"{\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}",
"for(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < 9",
"k",
"9",
"k++",
"k++",
"k",
"{\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}",
"System.out.print(\" \" + house[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"System.out.println(\" \" + house[i][j][k])",
"System.out.println",
"System.out",
"System",
"System.out",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"if(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"i < 3",
"i",
"3",
"{\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"for(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < 20",
"l",
"20",
"l++",
"l++",
"l",
"{\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ??\\?±??????°???????´??????????????????¨???\n\t\tint[][][] house = new int[4][3][10];\n\t\tint build = 0;\n\t\tint floor = 0;\n\t\tint room = 0;\n\t\tint count = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint num = in.nextInt();\n\n\t\tfor(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ??\\?±??????°???????´??????????????????¨???\n\t\tint[][][] house = new int[4][3][10];\n\t\tint build = 0;\n\t\tint floor = 0;\n\t\tint room = 0;\n\t\tint count = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint num = in.nextInt();\n\n\t\tfor(int i = 0; i < num; i++){\n\n\t\t\tbuild = in.nextInt();\n\t\t\tfloor = in.nextInt();\n\t\t\troom = in.nextInt();\n\t\t\tcount = in.nextInt();\n\n\t\t\tfor(int j = 0; j < 4; j++) {\n\n\t\t\t\tif(build != j + 1) {\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t\tfor(int k = 0; k < 3; k++) {\n\n\t\t\t\t\t\tif(floor != k + 1) {\n\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor(int l = 0; l < 10; l++) {\n\n\t\t\t\t\t\t\t\tif(room == l + 1) {\n\n\t\t\t\t\t\t\t\t\thouse[j][k][l] += count;\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\t// ?£??????¨?????????\n\t\tfor(i = 0; i < 4; i++) {\n\n\t\t\t// ????????¢?????¨?????????\n\t\t\tfor(j = 0; j < 3; j++) {\n\n\t\t\t\t// ??¨?±??????¨?????????\n\t\t\t\tfor(k = 0; k < 9; k++) {\n\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\" \" + house[i][j][k]);\n\n\t\t\t}\n\n\t\t\tif(i < 3) {\n\n\t\t\t\tfor(int l = 0; l < 20; l++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// ??\?±??????°???????´??????????????????¨???
int[][][] house = new int[4][3][10];
int build = 0;
int floor = 0;
int room = 0;
int count = 0;
Scanner in = new Scanner(System.in);
int num = in.nextInt();
for(int i = 0; i < num; i++){
build = in.nextInt();
floor = in.nextInt();
room = in.nextInt();
count = in.nextInt();
for(int j = 0; j < 4; j++) {
if(build != j + 1) {
continue;
}
for(int k = 0; k < 3; k++) {
if(floor != k + 1) {
continue;
}
for(int l = 0; l < 10; l++) {
if(room == l + 1) {
house[j][k][l] += count;
break;
}
}
break;
}
break;
}
}
int i = 0;
int j = 0;
int k = 0;
// ?£??????¨?????????
for(i = 0; i < 4; i++) {
// ????????¢?????¨?????????
for(j = 0; j < 3; j++) {
// ??¨?±??????¨?????????
for(k = 0; k < 9; k++) {
System.out.print(" " + house[i][j][k]);
}
System.out.println(" " + house[i][j][k]);
}
if(i < 3) {
for(int l = 0; l < 20; l++) {
System.out.print("#");
}
System.out.println("");
}
}
}
}
/*// ?£???\??§??????
if(build == 1) {
// ????????¢??\??§??????
if(floor == 1 ) {
// ??¨?±???\??§??????
if(room == 1) {
house[0][0][0] += count;
}else if(room == 2) {
house[0][0][1] += count;
}else if(room == 3) {
house[0][0][2] += count;
}else if(room == 4) {
house[0][0][3] += count;
}else if(room == 5) {
house[0][0][4] += count;
}else if(room == 6) {
house[0][0][5] += count;
}else if(room == 7) {
house[0][0][6] += count;
}else if(room == 8) {
house[0][0][7] += count;
}else if(room == 9) {
house[0][0][8] += count;
}else if(room == 10) {
house[0][0][9] += count;
}
}else if(floor == 2 ) {
if(room == 1) {
house[0][1][0] += count;
}else if(room == 2) {
house[0][1][1] += count;
}else if(room == 3) {
house[0][1][2] += count;
}else if(room == 4) {
house[0][1][3] += count;
}else if(room == 5) {
house[0][1][4] += count;
}else if(room == 6) {
house[0][1][5] += count;
}else if(room == 7) {
house[0][1][6] += count;
}else if(room == 8) {
house[0][1][7] += count;
}else if(room == 9) {
house[0][1][8] += count;
}else if(room == 10) {
house[0][1][9] += count;
}
}else if(floor == 3 ) {
if(room == 1) {
house[0][2][0] += count;
}else if(room == 2) {
house[0][2][1] += count;
}else if(room == 3) {
house[0][2][2] += count;
}else if(room == 4) {
house[0][2][3] += count;
}else if(room == 5) {
house[0][2][4] += count;
}else if(room == 6) {
house[0][2][5] += count;
}else if(room == 7) {
house[0][2][6] += count;
}else if(room == 8) {
house[0][2][7] += count;
}else if(room == 9) {
house[0][2][8] += count;
}else if(room == 10) {
house[0][2][9] += count;
}
}
}else if(build == 2) {
if(floor == 1 ) {
if(room == 1) {
house[1][0][0] += count;
}else if(room == 2) {
house[1][0][1] += count;
}else if(room == 3) {
house[1][0][2] += count;
}else if(room == 4) {
house[1][0][3] += count;
}else if(room == 5) {
house[1][0][4] += count;
}else if(room == 6) {
house[1][0][5] += count;
}else if(room == 7) {
house[1][0][6] += count;
}else if(room == 8) {
house[1][0][7] += count;
}else if(room == 9) {
house[1][0][8] += count;
}else if(room == 10) {
house[1][0][9] += count;
}
}else if(floor == 2 ) {
if(room == 1) {
house[1][1][0] += count;
}else if(room == 2) {
house[1][1][1] += count;
}else if(room == 3) {
house[1][1][2] += count;
}else if(room == 4) {
house[1][1][3] += count;
}else if(room == 5) {
house[1][1][4] += count;
}else if(room == 6) {
house[1][1][5] += count;
}else if(room == 7) {
house[1][1][6] += count;
}else if(room == 8) {
house[1][1][7] += count;
}else if(room == 9) {
house[1][1][8] += count;
}else if(room == 10) {
house[1][1][9] += count;
}
}else if(floor == 3 ) {
if(room == 1) {
house[1][2][0] += count;
}else if(room == 2) {
house[1][2][1] += count;
}else if(room == 3) {
house[1][2][2] += count;
}else if(room == 4) {
house[1][2][3] += count;
}else if(room == 5) {
house[1][2][4] += count;
}else if(room == 6) {
house[1][2][5] += count;
}else if(room == 7) {
house[1][2][6] += count;
}else if(room == 8) {
house[1][2][7] += count;
}else if(room == 9) {
house[1][2][8] += count;
}else if(room == 10) {
house[1][2][9] += count;
}
}
}else if(build == 3) {
if(floor == 1 ) {
if(room == 1) {
house[2][0][0] += count;
}else if(room == 2) {
house[2][0][1] += count;
}else if(room == 3) {
house[2][0][2] += count;
}else if(room == 4) {
house[2][0][3] += count;
}else if(room == 5) {
house[2][0][4] += count;
}else if(room == 6) {
house[2][0][5] += count;
}else if(room == 7) {
house[2][0][6] += count;
}else if(room == 8) {
house[2][0][7] += count;
}else if(room == 9) {
house[2][0][8] += count;
}else if(room == 10) {
house[2][0][9] += count;
}
}else if(floor == 2 ) {
if(room == 1) {
house[2][1][0] += count;
}else if(room == 2) {
house[2][1][1] += count;
}else if(room == 3) {
house[2][1][2] += count;
}else if(room == 4) {
house[2][1][3] += count;
}else if(room == 5) {
house[2][1][4] += count;
}else if(room == 6) {
house[2][1][5] += count;
}else if(room == 7) {
house[2][1][6] += count;
}else if(room == 8) {
house[2][1][7] += count;
}else if(room == 9) {
house[2][1][8] += count;
}else if(room == 10) {
house[2][1][9] += count;
}
}else if(floor == 3 ) {
if(room == 1) {
house[2][2][0] += count;
}else if(room == 2) {
house[2][2][1] += count;
}else if(room == 3) {
house[2][2][2] += count;
}else if(room == 4) {
house[2][2][3] += count;
}else if(room == 5) {
house[2][2][4] += count;
}else if(room == 6) {
house[2][2][5] += count;
}else if(room == 7) {
house[2][2][6] += count;
}else if(room == 8) {
house[2][2][7] += count;
}else if(room == 9) {
house[2][2][8] += count;
}else if(room == 10) {
house[2][2][9] += count;
}
}
}else if(build == 4) {
if(floor == 1 ) {
if(room == 1) {
house[3][0][0] += count;
}else if(room == 2) {
house[3][0][1] += count;
}else if(room == 3) {
house[3][0][2] += count;
}else if(room == 4) {
house[3][0][3] += count;
}else if(room == 5) {
house[3][0][4] += count;
}else if(room == 6) {
house[3][0][5] += count;
}else if(room == 7) {
house[3][0][6] += count;
}else if(room == 8) {
house[3][0][7] += count;
}else if(room == 9) {
house[3][0][8] += count;
}else if(room == 10) {
house[3][0][9] += count;
}
}else if(floor == 2 ) {
if(room == 1) {
house[3][1][0] += count;
}else if(room == 2) {
house[3][1][1] += count;
}else if(room == 3) {
house[3][1][2] += count;
}else if(room == 4) {
house[3][1][3] += count;
}else if(room == 5) {
house[3][1][4] += count;
}else if(room == 6) {
house[3][1][5] += count;
}else if(room == 7) {
house[3][1][6] += count;
}else if(room == 8) {
house[3][1][7] += count;
}else if(room == 9) {
house[3][1][8] += count;
}else if(room == 10) {
house[3][1][9] += count;
}
}else if(floor == 3 ) {
if(room == 1) {
house[3][2][0] += count;
}else if(room == 2) {
house[3][2][1] += count;
}else if(room == 3) {
house[3][2][2] += count;
}else if(room == 4) {
house[3][2][3] += count;
}else if(room == 5) {
house[3][2][4] += count;
}else if(room == 6) {
house[3][2][5] += count;
}else if(room == 7) {
house[3][2][6] += count;
}else if(room == 8) {
house[3][2][7] += count;
}else if(room == 9) {
house[3][2][8] += count;
}else if(room == 10) {
house[3][2][9] += count;
}
}
}
}
int b = 0;
int f = 0;
int r = 0;
// ?£??????¨?????????
for(b = 0; b < 4; b++) {
// ????????¢?????¨?????????
for(f = 0; f < 3; f++) {
// ??¨?±??????¨?????????
for(r = 0; r < 9; r++) {
System.out.print(" " + house[b][f][r]);
}
System.out.println(" " + house[b][f][r]);
}
if(b < 3) {
for(int i = 0; i < 20; i++) {
System.out.print("#");
}
System.out.println("");
}
}
}
}*/ |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
18,
13,
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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
179,
5
],
[
179,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
51,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
51,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
51,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
81,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
80,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
128,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
115,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
8,
173
],
[
173,
174
],
[
174,
175
],
[
6,
176
],
[
176,
177
],
[
0,
178
],
[
178,
179
],
[
178,
180
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tint[][][] num = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tint[][][] num = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tint[][][] num = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tint[][][] num = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] b = new int[n];",
"b",
"new int[n]",
"n",
"int[] f = new int[n];",
"f",
"new int[n]",
"n",
"int[] r = new int[n];",
"r",
"new int[n]",
"n",
"int[] v = new int[n];",
"v",
"new int[n]",
"n",
"int[][][] num = new int[4][3][10];",
"num",
"new int[4][3][10]",
"4",
"3",
"10",
"for (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}",
"{\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}",
"b[i] = scan.nextInt()",
"b[i]",
"b",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"f[i] = scan.nextInt()",
"f[i]",
"f",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"r[i] = scan.nextInt()",
"r[i]",
"r",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"v[i] = scan.nextInt()",
"v[i]",
"v",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"num[b[i] - 1][f[i] - 1][r[i] - 1] += v[i]",
"num[b[i] - 1][f[i] - 1][r[i] - 1]",
"num[b[i] - 1][f[i] - 1]",
"num[b[i] - 1]",
"num",
"b[i] - 1",
"b[i]",
"b",
"i",
"1",
"f[i] - 1",
"f[i]",
"f",
"i",
"1",
"r[i] - 1",
"r[i]",
"r",
"i",
"1",
"v[i]",
"v",
"i",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}",
"{\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}",
"String str = \"\";",
"str",
"\"\"",
"for (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}",
"{\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}",
"str += \" \" + num[i][j][k]",
"str",
"\" \" + num[i][j][k]",
"\" \"",
"num[i][j][k]",
"num[i][j]",
"num[i]",
"num",
"i",
"j",
"k",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"if (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tint[][][] num = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tint[][][] num = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t\tf[i] = scan.nextInt();\n\t\t\tr[i] = scan.nextInt();\n\t\t\tv[i] = scan.nextInt();\n\n\t\t\tnum[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tString str = \"\";\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tstr += \" \" + num[i][j][k]; \n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\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 n = scan.nextInt();
int[] b = new int[n];
int[] f = new int[n];
int[] r = new int[n];
int[] v = new int[n];
int[][][] num = new int[4][3][10];
for (int i = 0; i < n; i++) {
b[i] = scan.nextInt();
f[i] = scan.nextInt();
r[i] = scan.nextInt();
v[i] = scan.nextInt();
num[b[i] - 1][f[i] - 1][r[i] - 1] += v[i];
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
String str = "";
for (int k = 0; k < 10; k++) {
str += " " + num[i][j][k];
}
System.out.println(str);
}
if (i != 3) {
System.out.println("####################");
}
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
17,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
163,
5
],
[
163,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
46,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
53,
57
],
[
43,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
60,
64
],
[
43,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
43,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
70,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
118,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
143,
149
],
[
91,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
6,
160
],
[
160,
161
],
[
0,
162
],
[
162,
163
],
[
162,
164
]
] | [
"import java.util.Scanner;\t\t\t\t\t\t\t\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][][] count = new int[4][3][10];\n\t\tint b,f,r,v;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\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 n = sc.nextInt();\n\t\tint[][][] count = new int[4][3][10];\n\t\tint b,f,r,v;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][][] count = new int[4][3][10];\n\t\tint b,f,r,v;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][][] count = new int[4][3][10];\n\t\tint b,f,r,v;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\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[][][] count = new int[4][3][10];",
"count",
"new int[4][3][10]",
"4",
"3",
"10",
"int b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"for(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}",
"{\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}",
"b = sc.nextInt() - 1",
"b",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"f = sc.nextInt() - 1",
"f",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"r = sc.nextInt() - 1",
"r",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"count[b][f][r] += v",
"count[b][f][r]",
"count[b][f]",
"count[b]",
"count",
"b",
"f",
"r",
"v",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}",
"if(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);",
"k < 9",
"k",
"9",
"System.out.print(\" \" + count[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + count[i][j][k]",
"\" \"",
"count[i][j][k]",
"count[i][j]",
"count[i]",
"count",
"i",
"j",
"k",
"System.out.println(\" \" + count[i][j][k])",
"System.out.println",
"System.out",
"System",
"System.out",
"\" \" + count[i][j][k]",
"\" \"",
"count[i][j][k]",
"count[i][j]",
"count[i]",
"count",
"i",
"j",
"k",
"if(i < 3)System.out.println(\"####################\");",
"i < 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][][] count = new int[4][3][10];\n\t\tint b,f,r,v;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\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 n = sc.nextInt();\n\t\tint[][][] count = new int[4][3][10];\n\t\tint b,f,r,v;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tb = sc.nextInt() - 1;\n\t\t\tf = sc.nextInt() - 1;\n\t\t\tr = sc.nextInt() - 1;\n\t\t\tv = sc.nextInt();\n\t\t\tcount[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tif(k < 9)System.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\telse System.out.println(\" \" + count[i][j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i < 3)System.out.println(\"####################\");\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 n = sc.nextInt();
int[][][] count = new int[4][3][10];
int b,f,r,v;
for(int i = 0; i < n; i++){
b = sc.nextInt() - 1;
f = sc.nextInt() - 1;
r = sc.nextInt() - 1;
v = sc.nextInt();
count[b][f][r] += v;
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
if(k < 9)System.out.print(" " + count[i][j][k]);
else System.out.println(" " + count[i][j][k]);
}
}
if(i < 3)System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
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
],
[
174,
5
],
[
174,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
6,
77
],
[
77,
78
],
[
174,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
107,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
94,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
145,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
79,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int[][][] a = new int[4][3][10];\n\n int n = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }\n\n printHouse(a);\n\n sc.close();\n }\n\n static void printHouse(int[][][] a) {\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int[][][] a = new int[4][3][10];\n\n int n = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }\n\n printHouse(a);\n\n sc.close();\n }\n\n static void printHouse(int[][][] a) {\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int[][][] a = new int[4][3][10];\n\n int n = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }\n\n printHouse(a);\n\n sc.close();\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n int[][][] a = new int[4][3][10];\n\n int n = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }\n\n printHouse(a);\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[][][] a = new int[4][3][10];",
"a",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }",
"{\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[b - 1][f - 1][r - 1] += v",
"a[b - 1][f - 1][r - 1]",
"a[b - 1][f - 1]",
"a[b - 1]",
"a",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"printHouse(a)",
"printHouse",
"a",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static void printHouse(int[][][] a) {\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }\n }",
"printHouse",
"{\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }\n }",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }",
"{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }",
"for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }",
"{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }",
"for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n System.out.print(\" \" + a[i][j][k]);\n }",
"{\n System.out.print(\" \" + a[i][j][k]);\n }",
"System.out.print(\" \" + a[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + a[i][j][k]",
"\" \"",
"a[i][j][k]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"k",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }",
"i != 3",
"i",
"3",
"{\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }",
"for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < 20",
"l",
"20",
"l++",
"l++",
"l",
"{\n System.out.print(\"#\");\n }",
"{\n System.out.print(\"#\");\n }",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"int[][][] a",
"a",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int[][][] a = new int[4][3][10];\n\n int n = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }\n\n printHouse(a);\n\n sc.close();\n }\n\n static void printHouse(int[][][] a) {\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int[][][] a = new int[4][3][10];\n\n int n = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n a[b - 1][f - 1][r - 1] += v;\n }\n\n printHouse(a);\n\n sc.close();\n }\n\n static void printHouse(int[][][] a) {\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + a[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if (i != 3) {\n for (int l = 0; l < 20; l++) {\n System.out.print(\"#\");\n }\n System.out.print(\"\\n\");\n }\n\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[][][] a = new int[4][3][10];
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
a[b - 1][f - 1][r - 1] += v;
}
printHouse(a);
sc.close();
}
static void printHouse(int[][][] a) {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + a[i][j][k]);
}
System.out.print("\n");
}
if (i != 3) {
for (int l = 0; l < 20; l++) {
System.out.print("#");
}
System.out.print("\n");
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
8,
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
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
96,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
83,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] | [
"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 int a = sc.nextInt();\n int[][][] l = new int[4][3][10];\n\n for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }\n\n for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int[][][] l = new int[4][3][10];\n\n for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }\n\n for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int[][][] l = new int[4][3][10];\n\n for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }\n\n for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int[][][] l = new int[4][3][10];\n\n for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }\n\n for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][][] l = new int[4][3][10];",
"l",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }",
"{\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }",
"int tou = sc.nextInt();",
"tou",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kai = sc.nextInt();",
"kai",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int heya = sc.nextInt();",
"heya",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ninzu = sc.nextInt();",
"ninzu",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l[tou-1][kai-1][heya-1] += ninzu",
"l[tou-1][kai-1][heya-1]",
"l[tou-1][kai-1]",
"l[tou-1]",
"l",
"tou-1",
"tou",
"1",
"kai-1",
"kai",
"1",
"heya-1",
"heya",
"1",
"ninzu",
"for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }",
"{\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }",
"for(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}",
"{\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}",
"for(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}",
"{\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}",
"System.out.print(\" \" + l[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + l[i][j][k]",
"\" \"",
"l[i][j][k]",
"l[i][j]",
"l[i]",
"l",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3) System.out.println(\"####################\");",
"i != 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int[][][] l = new int[4][3][10];\n\n for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }\n\n for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int[][][] l = new int[4][3][10];\n\n for(int i = 0; i < a; i++) {\n \tint tou = sc.nextInt();\n \tint kai = sc.nextInt();\n \tint heya = sc.nextInt();\n \tint ninzu = sc.nextInt();\n\n \tl[tou-1][kai-1][heya-1] += ninzu;\n }\n\n for(int i = 0; i < 4; i++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\t\tSystem.out.print(\" \" + l[i][j][k]);\n \t\t}\n \t\tSystem.out.println();\n \t}\n\n \tif(i != 3) System.out.println(\"####################\");\n }\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int[][][] l = new int[4][3][10];
for(int i = 0; i < a; i++) {
int tou = sc.nextInt();
int kai = sc.nextInt();
int heya = sc.nextInt();
int ninzu = sc.nextInt();
l[tou-1][kai-1][heya-1] += ninzu;
}
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 3; j++) {
for(int k = 0; k < 10; k++) {
System.out.print(" " + l[i][j][k]);
}
System.out.println();
}
if(i != 3) System.out.println("####################");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
194,
5
],
[
194,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
8,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
83,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
83,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
105,
115
],
[
115,
116
],
[
115,
117
],
[
104,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
144,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
131,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
8,
188
],
[
188,
189
],
[
189,
190
],
[
6,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n?????\\?????????????????±?????°\n\t\tint kousya[][][] = new int[4][3][10];\n\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}\t\n\n\t\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n?????\\?????????????????±?????°\n\t\tint kousya[][][] = new int[4][3][10];\n\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}\t\n\n\t\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n?????\\?????????????????±?????°\n\t\tint kousya[][][] = new int[4][3][10];\n\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}\t\n\n\t\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n?????\\?????????????????±?????°\n\t\tint kousya[][][] = new int[4][3][10];\n\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}\t\n\n\t\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int kousya[][][] = new int[4][3][10];",
"kousya",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int cnt1 = 0;",
"int cnt1 = 0;",
"cnt1",
"0",
"cnt1 < 4",
"cnt1",
"4",
"cnt1++",
"cnt1++",
"cnt1",
"{//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}",
"int cnt2 = 0;",
"int cnt2 = 0;",
"cnt2",
"0",
"cnt2 < 3",
"cnt2",
"3",
"cnt2++",
"cnt2++",
"cnt2",
"{\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}",
"for(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}",
"int cnt3 = 0;",
"int cnt3 = 0;",
"cnt3",
"0",
"cnt3 < 10",
"cnt3",
"10",
"cnt3++",
"cnt3++",
"cnt3",
"{\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}",
"kousya[cnt1][cnt2][cnt3] = 0",
"kousya[cnt1][cnt2][cnt3]",
"kousya[cnt1][cnt2]",
"kousya[cnt1]",
"kousya",
"cnt1",
"cnt2",
"cnt3",
"0",
"for(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}",
"int cnt_n = 0;",
"int cnt_n = 0;",
"cnt_n",
"0",
"cnt_n < n",
"cnt_n",
"n",
"cnt_n++",
"cnt_n++",
"cnt_n",
"{//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}",
"{//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}",
"int house = scan.nextInt();",
"house",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int floor = scan.nextInt();",
"floor",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int room = scan.nextInt();",
"room",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int nin = scan.nextInt();",
"nin",
"scan.nextInt()",
"scan.nextInt",
"scan",
"kousya[house - 1][floor - 1][room - 1] += nin",
"kousya[house - 1][floor - 1][room - 1]",
"kousya[house - 1][floor - 1]",
"kousya[house - 1]",
"kousya",
"house - 1",
"house",
"1",
"floor - 1",
"floor",
"1",
"room - 1",
"room",
"1",
"nin",
"for(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"int cnt1 = 0;",
"int cnt1 = 0;",
"cnt1",
"0",
"cnt1 < 4",
"cnt1",
"4",
"cnt1++",
"cnt1++",
"cnt1",
"{//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"{//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"for(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"int cnt2 = 0;",
"int cnt2 = 0;",
"cnt2",
"0",
"cnt2 < 3",
"cnt2",
"3",
"cnt2++",
"cnt2++",
"cnt2",
"{\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"for(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}",
"int cnt3 = 0;",
"int cnt3 = 0;",
"cnt3",
"0",
"cnt3 < 10",
"cnt3",
"10",
"cnt3++",
"cnt3++",
"cnt3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}",
"System.out.print(\" \" + kousya[cnt1][cnt2][cnt3])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + kousya[cnt1][cnt2][cnt3]",
"\" \"",
"kousya[cnt1][cnt2][cnt3]",
"kousya[cnt1][cnt2]",
"kousya[cnt1]",
"kousya",
"cnt1",
"cnt2",
"cnt3",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"cnt1 != 3",
"cnt1",
"3",
"{//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n?????\\?????????????????±?????°\n\t\tint kousya[][][] = new int[4][3][10];\n\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}\t\n\n\t\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t}\n}",
"public class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n?????\\?????????????????±?????°\n\t\tint kousya[][][] = new int[4][3][10];\n\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????\n\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\tkousya[cnt1][cnt2][cnt3] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\\?????????\n\t\t\tint house = scan.nextInt();//?£?\n\t\t\tint floor = scan.nextInt();//?£????????????¢\n\t\t\tint room = scan.nextInt();//????????¢?????????\n\t\t\tint nin = scan.nextInt();//??????????????°????¢??????°\n\t\t\tkousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????\n\t\t}\t\n\n\t\t\tfor(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????\n\t\t\t\tfor(int cnt2 = 0; cnt2 < 3; cnt2++){\n\t\t\t\t\tfor(int cnt3 = 0; cnt3 < 10; cnt3++){\n\t\t\t\t\t\tSystem.out.print(\" \" + kousya[cnt1][cnt2][cnt3]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(cnt1 != 3){//??????????£???\\????????????????????????????????????#????????\\??????\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();//n?????\?????????????????±?????°
int kousya[][][] = new int[4][3][10];
for(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya???????????????????????????
for(int cnt2 = 0; cnt2 < 3; cnt2++){
for(int cnt3 = 0; cnt3 < 10; cnt3++){
kousya[cnt1][cnt2][cnt3] = 0;
}
}
}
for(int cnt_n = 0; cnt_n < n; cnt_n++){//??°????????\?????????
int house = scan.nextInt();//?£?
int floor = scan.nextInt();//?£????????????¢
int room = scan.nextInt();//????????¢?????????
int nin = scan.nextInt();//??????????????°????¢??????°
kousya[house - 1][floor - 1][room - 1] += nin;//??????????????°?¢???????????????????
}
for(int cnt1 = 0; cnt1 < 4; cnt1++){//kousya??????????????????
for(int cnt2 = 0; cnt2 < 3; cnt2++){
for(int cnt3 = 0; cnt3 < 10; cnt3++){
System.out.print(" " + kousya[cnt1][cnt2][cnt3]);
}
System.out.println();
}
if(cnt1 != 3){//??????????£???\????????????????????????????????????#????????\??????
System.out.println("####################");
}
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
199,
5
],
[
199,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
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
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
70,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
91,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
91,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
123,
125
],
[
112,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
153,
164
],
[
165,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
173,
179
],
[
152,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
139,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
6,
196
],
[
196,
197
],
[
0,
198
],
[
198,
199
],
[
198,
200
]
] | [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint[][][] num = new int[4][3][10];\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint[][][] num = new int[4][3][10];\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint[][][] num = new int[4][3][10];\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint[][][] num = new int[4][3][10];\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\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 b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"int[][][] num = new int[4][3][10];",
"num",
"new int[4][3][10]",
"4",
"3",
"10",
"for (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int a=0;",
"int a=0;",
"a",
"0",
"a<4",
"a",
"4",
"a++",
"a++",
"a",
"{\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}",
"int c=0;",
"int c=0;",
"c",
"0",
"c<3",
"c",
"3",
"c++",
"c++",
"c",
"{\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}",
"for (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}",
"int d=0;",
"int d=0;",
"d",
"0",
"d<10",
"d",
"10",
"d++",
"d++",
"d",
"{\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}",
"num[a][c][d] = 0",
"num[a][c][d]",
"num[a][c]",
"num[a]",
"num",
"a",
"c",
"d",
"0",
"for (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}",
"int a=0;",
"int a=0;",
"a",
"0",
"a<n",
"a",
"n",
"a++",
"a++",
"a",
"{\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}",
"b=sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f=sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r=sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v=sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"num[b-1][f-1][r-1] += v",
"num[b-1][f-1][r-1]",
"num[b-1][f-1]",
"num[b-1]",
"num",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int a=0;",
"int a=0;",
"a",
"0",
"a<4",
"a",
"4",
"a++",
"a++",
"a",
"{\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int c=0;",
"int c=0;",
"c",
"0",
"c<3",
"c",
"3",
"c++",
"c++",
"c",
"{\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}",
"int d=0;",
"int d=0;",
"d",
"0",
"d<10",
"d",
"10",
"d++",
"d++",
"d",
"{\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}",
"System.out.print(\" \"+num[a][c][d])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+num[a][c][d]",
"\" \"",
"num[a][c][d]",
"num[a][c]",
"num[a]",
"num",
"a",
"c",
"d",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"a<3",
"a",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint[][][] num = new int[4][3][10];\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint[][][] num = new int[4][3][10];\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tnum[a][c][d] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int a=0;a<n;a++){\n\t\t\tb=sc.nextInt();f=sc.nextInt();\n\t\t\tr=sc.nextInt();v=sc.nextInt();\n\t\t\tnum[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int a=0;a<4;a++){\n\t\t\tfor (int c=0;c<3;c++){\n\t\t\t\tfor (int d=0;d<10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+num[a][c][d]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (a<3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int b,f,r,v;
int[][][] num = new int[4][3][10];
for (int a=0;a<4;a++){
for (int c=0;c<3;c++){
for (int d=0;d<10;d++){
num[a][c][d] = 0;
}
}
}
for (int a=0;a<n;a++){
b=sc.nextInt();f=sc.nextInt();
r=sc.nextInt();v=sc.nextInt();
num[b-1][f-1][r-1] += v;
}
for (int a=0;a<4;a++){
for (int c=0;c<3;c++){
for (int d=0;d<10;d++){
System.out.print(" "+num[a][c][d]);
}
System.out.println();
}
if (a<3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
13,
2,
17,
4,
18,
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
],
[
193,
11
],
[
193,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
35,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
51,
56
],
[
48,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
48,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
48,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
48,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
48,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
90,
100
],
[
100,
101
],
[
100,
102
],
[
89,
103
],
[
14,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
104,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
118,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
132,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
145,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
131,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
117,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
14,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
12,
190
],
[
190,
191
],
[
0,
192
],
[
192,
193
],
[
192,
194
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] houses = new int[4][3][10];\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] houses = new int[4][3][10];\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] houses = new int[4][3][10];\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] houses = new int[4][3][10];\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int[][][] houses = new int[4][3][10];",
"houses",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = Integer.parseInt(in.readLine());",
"n",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i += 1",
"i += 1",
"i",
"1",
"{\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}",
"{\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}",
"String[] info = in.readLine().split(\" \");",
"info",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int b = Integer.parseInt(info[0]);",
"b",
"Integer.parseInt(info[0])",
"Integer.parseInt",
"Integer",
"info[0]",
"info",
"0",
"int f = Integer.parseInt(info[1]);",
"f",
"Integer.parseInt(info[1])",
"Integer.parseInt",
"Integer",
"info[1]",
"info",
"1",
"int r = Integer.parseInt(info[2]);",
"r",
"Integer.parseInt(info[2])",
"Integer.parseInt",
"Integer",
"info[2]",
"info",
"2",
"int v = Integer.parseInt(info[3]);",
"v",
"Integer.parseInt(info[3])",
"Integer.parseInt",
"Integer",
"info[3]",
"info",
"3",
"houses[b - 1][f - 1][r - 1] += v",
"houses[b - 1][f - 1][r - 1]",
"houses[b - 1][f - 1]",
"houses[b - 1]",
"houses",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < 4",
"x",
"4",
"x += 1",
"x += 1",
"x",
"1",
"{\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}",
"for (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < 3",
"y",
"3",
"y += 1",
"y += 1",
"y",
"1",
"{\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}",
"{\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}",
"for (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}",
"int z = 0;",
"int z = 0;",
"z",
"0",
"z < 10",
"z",
"10",
"z += 1",
"z += 1",
"z",
"1",
"{\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}",
"{\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(Integer.toString(houses[x][y][z]))",
"sb.append",
"sb",
"Integer.toString(houses[x][y][z])",
"Integer.toString",
"Integer",
"houses[x][y][z]",
"houses[x][y]",
"houses[x]",
"houses",
"x",
"y",
"z",
"sb.append(System.getProperty(\"line.separator\"))",
"sb.append",
"sb",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"if (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}",
"x != 3",
"x",
"3",
"{\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}",
"sb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"))",
"sb.append",
"sb",
"\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\")",
"\"####################\"",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] houses = new int[4][3][10];\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] houses = new int[4][3][10];\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] info = in.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(info[0]);\n\t\t\tint f = Integer.parseInt(info[1]);\n\t\t\tint r = Integer.parseInt(info[2]);\n\t\t\tint v = Integer.parseInt(info[3]);\n\t\t\thouses[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 3; y += 1) {\n\t\t\t\tfor (int z = 0; z < 10; z += 1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(Integer.toString(houses[x][y][z]));\n\t\t\t\t}\n\t\t\t\tsb.append(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tif (x != 3) {\n\t\t\t\tsb.append(\"####################\"\n\t\t\t\t\t\t+ System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int[][][] houses = new int[4][3][10];
int n = Integer.parseInt(in.readLine());
for (int i = 0; i < n; i += 1) {
String[] info = in.readLine().split(" ");
int b = Integer.parseInt(info[0]);
int f = Integer.parseInt(info[1]);
int r = Integer.parseInt(info[2]);
int v = Integer.parseInt(info[3]);
houses[b - 1][f - 1][r - 1] += v;
}
for (int x = 0; x < 4; x += 1) {
for (int y = 0; y < 3; y += 1) {
for (int z = 0; z < 10; z += 1) {
sb.append(" ");
sb.append(Integer.toString(houses[x][y][z]));
}
sb.append(System.getProperty("line.separator"));
}
if (x != 3) {
sb.append("####################"
+ System.getProperty("line.separator"));
}
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
196,
5
],
[
196,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
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
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
67,
75
],
[
8,
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
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
88,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
88,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
88,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
111,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
120,
122
],
[
109,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
149,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
136,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
6,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main{\n\n\t/*\n\t * A??§??? ??????????????????????????????????£? ??\\????±????????????±?????????????????§?????°?????????\n\t *\n\t * ??????????????± ??¢?£? ?????? ????????? ??¶?????°\n\t *\n\t * ????£???????????????????????????????????????????????????\\?±??????°????????????????????? ?????????????????????????????????????????????????????????????????????????????¨?±??????\\?±??????°??????????????????????????????\n\t * ??\\?±??????°?????????????????????????????????????????????????????? ????£????????????? #################### (20?????? # )\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// ??????????????????????????????????£?\n\t\tint[][][] hoUse = new int[4][3][10];\n\n\t\t// ??????????????±\n\t\t// ??¢?£? ?????? ????????? ??¶?????°\n\t\tint building, floor, room, people;\n\n\t\tScanner scAner = new Scanner(System.in);\n\t\tint info = scAner.nextInt();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;\n\n\t\tfor (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\t/*\n\t * A??§??? ??????????????????????????????????£? ??\\????±????????????±?????????????????§?????°?????????\n\t *\n\t * ??????????????± ??¢?£? ?????? ????????? ??¶?????°\n\t *\n\t * ????£???????????????????????????????????????????????????\\?±??????°????????????????????? ?????????????????????????????????????????????????????????????????????????????¨?±??????\\?±??????°??????????????????????????????\n\t * ??\\?±??????°?????????????????????????????????????????????????????? ????£????????????? #################### (20?????? # )\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// ??????????????????????????????????£?\n\t\tint[][][] hoUse = new int[4][3][10];\n\n\t\t// ??????????????±\n\t\t// ??¢?£? ?????? ????????? ??¶?????°\n\t\tint building, floor, room, people;\n\n\t\tScanner scAner = new Scanner(System.in);\n\t\tint info = scAner.nextInt();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;\n\n\t\tfor (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main",
"/*\n\t * A??§??? ??????????????????????????????????£? ??\\????±????????????±?????????????????§?????°?????????\n\t *\n\t * ??????????????± ??¢?£? ?????? ????????? ??¶?????°\n\t *\n\t * ????£???????????????????????????????????????????????????\\?±??????°????????????????????? ?????????????????????????????????????????????????????????????????????????????¨?±??????\\?±??????°??????????????????????????????\n\t * ??\\?±??????°?????????????????????????????????????????????????????? ????£????????????? #################### (20?????? # )\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// ??????????????????????????????????£?\n\t\tint[][][] hoUse = new int[4][3][10];\n\n\t\t// ??????????????±\n\t\t// ??¢?£? ?????? ????????? ??¶?????°\n\t\tint building, floor, room, people;\n\n\t\tScanner scAner = new Scanner(System.in);\n\t\tint info = scAner.nextInt();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;\n\n\t\tfor (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\n\t\t// ??????????????????????????????????£?\n\t\tint[][][] hoUse = new int[4][3][10];\n\n\t\t// ??????????????±\n\t\t// ??¢?£? ?????? ????????? ??¶?????°\n\t\tint building, floor, room, people;\n\n\t\tScanner scAner = new Scanner(System.in);\n\t\tint info = scAner.nextInt();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;\n\n\t\tfor (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"int[][][] hoUse = new int[4][3][10];",
"hoUse",
"new int[4][3][10]",
"4",
"3",
"10",
"int building",
"building",
"floor",
"floor",
"room",
"room",
"people;",
"people",
"Scanner scAner = new Scanner(System.in);",
"scAner",
"new Scanner(System.in)",
"int info = scAner.nextInt();",
"info",
"scAner.nextInt()",
"scAner.nextInt",
"scAner",
"for (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"for (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;",
"for (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"for (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;",
"for (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"hoUse[i][j][k] = 0;",
"hoUse[i][j][k] = 0",
"hoUse[i][j][k]",
"hoUse[i][j]",
"hoUse[i]",
"hoUse",
"i",
"j",
"k",
"0",
"for (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < info",
"i",
"info",
"i++",
"i++",
"i",
"{\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}",
"{\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}",
"building = scAner.nextInt()",
"building",
"scAner.nextInt()",
"scAner.nextInt",
"scAner",
"floor = scAner.nextInt()",
"floor",
"scAner.nextInt()",
"scAner.nextInt",
"scAner",
"room = scAner.nextInt()",
"room",
"scAner.nextInt()",
"scAner.nextInt",
"scAner",
"people = scAner.nextInt()",
"people",
"scAner.nextInt()",
"scAner.nextInt",
"scAner",
"hoUse[building - 1][floor - 1][room - 1] += people",
"hoUse[building - 1][floor - 1][room - 1]",
"hoUse[building - 1][floor - 1]",
"hoUse[building - 1]",
"hoUse",
"building - 1",
"building",
"1",
"floor - 1",
"floor",
"1",
"room - 1",
"room",
"1",
"people",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"for (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + hoUse[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + hoUse[i][j][k]",
"\" \"",
"hoUse[i][j][k]",
"hoUse[i][j]",
"hoUse[i]",
"hoUse",
"i",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");",
"i < 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main{\n\n\t/*\n\t * A??§??? ??????????????????????????????????£? ??\\????±????????????±?????????????????§?????°?????????\n\t *\n\t * ??????????????± ??¢?£? ?????? ????????? ??¶?????°\n\t *\n\t * ????£???????????????????????????????????????????????????\\?±??????°????????????????????? ?????????????????????????????????????????????????????????????????????????????¨?±??????\\?±??????°??????????????????????????????\n\t * ??\\?±??????°?????????????????????????????????????????????????????? ????£????????????? #################### (20?????? # )\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// ??????????????????????????????????£?\n\t\tint[][][] hoUse = new int[4][3][10];\n\n\t\t// ??????????????±\n\t\t// ??¢?£? ?????? ????????? ??¶?????°\n\t\tint building, floor, room, people;\n\n\t\tScanner scAner = new Scanner(System.in);\n\t\tint info = scAner.nextInt();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;\n\n\t\tfor (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"public class Main{\n\n\t/*\n\t * A??§??? ??????????????????????????????????£? ??\\????±????????????±?????????????????§?????°?????????\n\t *\n\t * ??????????????± ??¢?£? ?????? ????????? ??¶?????°\n\t *\n\t * ????£???????????????????????????????????????????????????\\?±??????°????????????????????? ?????????????????????????????????????????????????????????????????????????????¨?±??????\\?±??????°??????????????????????????????\n\t * ??\\?±??????°?????????????????????????????????????????????????????? ????£????????????? #################### (20?????? # )\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// ??????????????????????????????????£?\n\t\tint[][][] hoUse = new int[4][3][10];\n\n\t\t// ??????????????±\n\t\t// ??¢?£? ?????? ????????? ??¶?????°\n\t\tint building, floor, room, people;\n\n\t\tScanner scAner = new Scanner(System.in);\n\t\tint info = scAner.nextInt();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tfor (int k = 0; k < 10; k++)\n\t\t\t\t\thoUse[i][j][k] = 0;\n\n\t\tfor (int i = 0; i < info; i++) {\n\t\t\t// ex 3\n\t\t\t// 1 1 3 8\n\t\t\t// 3 2 2 7\n\t\t\t// 4 3 8 1\n\t\t\tbuilding = scAner.nextInt();\n\t\t\tfloor = scAner.nextInt();\n\t\t\troom = scAner.nextInt();\n\t\t\tpeople = scAner.nextInt();\n\n\t\t\thoUse[building - 1][floor - 1][room - 1] += people;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + hoUse[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i < 3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
/*
* A??§??? ??????????????????????????????????£? ??\????±????????????±?????????????????§?????°?????????
*
* ??????????????± ??¢?£? ?????? ????????? ??¶?????°
*
* ????£???????????????????????????????????????????????????\?±??????°????????????????????? ?????????????????????????????????????????????????????????????????????????????¨?±??????\?±??????°??????????????????????????????
* ??\?±??????°?????????????????????????????????????????????????????? ????£????????????? #################### (20?????? # )
*/
public static void main(String[] args) {
// ??????????????????????????????????£?
int[][][] hoUse = new int[4][3][10];
// ??????????????±
// ??¢?£? ?????? ????????? ??¶?????°
int building, floor, room, people;
Scanner scAner = new Scanner(System.in);
int info = scAner.nextInt();
for (int i = 0; i < 4; i++)
for (int j = 0; j < 3; j++)
for (int k = 0; k < 10; k++)
hoUse[i][j][k] = 0;
for (int i = 0; i < info; i++) {
// ex 3
// 1 1 3 8
// 3 2 2 7
// 4 3 8 1
building = scAner.nextInt();
floor = scAner.nextInt();
room = scAner.nextInt();
people = scAner.nextInt();
hoUse[building - 1][floor - 1][room - 1] += people;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + hoUse[i][j][k]);
}
System.out.println("");
}
if (i < 3)
System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
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,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
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,
4,
18,
4,
18,
13,
17,
18,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
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,
4,
18,
4,
18,
13,
17,
18,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
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,
4,
18,
4,
18,
13,
17,
18,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
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,
4,
18,
4,
18,
13,
17,
18,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
385,
5
],
[
385,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
60,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
106,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
106,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
132,
142
],
[
106,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
149,
155
],
[
155,
156
],
[
155,
157
],
[
148,
158
],
[
106,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
165,
171
],
[
171,
172
],
[
171,
173
],
[
164,
174
],
[
106,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
184,
186
],
[
181,
187
],
[
187,
188
],
[
187,
189
],
[
180,
190
],
[
8,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
204,
212
],
[
212,
213
],
[
213,
214
],
[
204,
215
],
[
216,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
217,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
203,
228
],
[
228,
229
],
[
229,
230
],
[
228,
231
],
[
8,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
232,
238
],
[
8,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
244,
246
],
[
239,
247
],
[
247,
248
],
[
248,
249
],
[
239,
250
],
[
251,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
252,
257
],
[
257,
258
],
[
257,
259
],
[
252,
260
],
[
260,
261
],
[
261,
262
],
[
252,
263
],
[
264,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
267,
270
],
[
265,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
251,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
8,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
282,
285
],
[
280,
286
],
[
8,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
287,
292
],
[
292,
293
],
[
292,
294
],
[
287,
295
],
[
295,
296
],
[
296,
297
],
[
287,
298
],
[
299,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
300,
305
],
[
305,
306
],
[
305,
307
],
[
300,
308
],
[
308,
309
],
[
309,
310
],
[
300,
311
],
[
312,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
315,
318
],
[
313,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
299,
324
],
[
324,
325
],
[
325,
326
],
[
324,
327
],
[
8,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
330,
333
],
[
328,
334
],
[
8,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
335,
340
],
[
340,
341
],
[
340,
342
],
[
335,
343
],
[
343,
344
],
[
344,
345
],
[
335,
346
],
[
347,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
348,
353
],
[
353,
354
],
[
353,
355
],
[
348,
356
],
[
356,
357
],
[
357,
358
],
[
348,
359
],
[
360,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
363,
366
],
[
361,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
347,
372
],
[
372,
373
],
[
373,
374
],
[
372,
375
],
[
8,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
376,
381
],
[
6,
382
],
[
382,
383
],
[
0,
384
],
[
384,
385
],
[
384,
386
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] house1 = new int[3][10];\n\t\tint[][] house2 = new int[3][10];\n\t\tint[][] house3 = new int[3][10];\n\t\tint[][] house4 = new int[3][10];\n\t\tStringBuilder output = new StringBuilder();\n\t\t\n\t\t// 入居者数の初期化\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 入居者数の更新\n\t\tint infonum = scan.nextInt();\n\t\tfor (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] house1 = new int[3][10];\n\t\tint[][] house2 = new int[3][10];\n\t\tint[][] house3 = new int[3][10];\n\t\tint[][] house4 = new int[3][10];\n\t\tStringBuilder output = new StringBuilder();\n\t\t\n\t\t// 入居者数の初期化\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 入居者数の更新\n\t\tint infonum = scan.nextInt();\n\t\tfor (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] house1 = new int[3][10];\n\t\tint[][] house2 = new int[3][10];\n\t\tint[][] house3 = new int[3][10];\n\t\tint[][] house4 = new int[3][10];\n\t\tStringBuilder output = new StringBuilder();\n\t\t\n\t\t// 入居者数の初期化\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 入居者数の更新\n\t\tint infonum = scan.nextInt();\n\t\tfor (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] house1 = new int[3][10];\n\t\tint[][] house2 = new int[3][10];\n\t\tint[][] house3 = new int[3][10];\n\t\tint[][] house4 = new int[3][10];\n\t\tStringBuilder output = new StringBuilder();\n\t\t\n\t\t// 入居者数の初期化\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 入居者数の更新\n\t\tint infonum = scan.nextInt();\n\t\tfor (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[][] house1 = new int[3][10];",
"house1",
"new int[3][10]",
"3",
"10",
"int[][] house2 = new int[3][10];",
"house2",
"new int[3][10]",
"3",
"10",
"int[][] house3 = new int[3][10];",
"house3",
"new int[3][10]",
"3",
"10",
"int[][] house4 = new int[3][10];",
"house4",
"new int[3][10]",
"3",
"10",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}",
"{\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}",
"house1[i][j] = 0",
"house1[i][j]",
"house1[i]",
"house1",
"i",
"j",
"0",
"house2[i][j] = 0",
"house2[i][j]",
"house2[i]",
"house2",
"i",
"j",
"0",
"house3[i][j] = 0",
"house3[i][j]",
"house3[i]",
"house3",
"i",
"j",
"0",
"house4[i][j] = 0",
"house4[i][j]",
"house4[i]",
"house4",
"i",
"j",
"0",
"int infonum = scan.nextInt();",
"infonum",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < infonum",
"i",
"infonum",
"i++",
"i++",
"i",
"{\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v = scan.nextInt();",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}",
"b == 1",
"b",
"1",
"{\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}",
"house1[f-1][r-1] += v",
"house1[f-1][r-1]",
"house1[f-1]",
"house1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}",
"b == 2",
"b",
"2",
"{\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}",
"house2[f-1][r-1] += v",
"house2[f-1][r-1]",
"house2[f-1]",
"house2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}",
"b == 3",
"b",
"3",
"{\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}",
"house3[f-1][r-1] += v",
"house3[f-1][r-1]",
"house3[f-1]",
"house3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}",
"b == 4",
"b",
"4",
"{\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}",
"house4[f-1][r-1] += v",
"house4[f-1][r-1]",
"house4[f-1]",
"house4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"for (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}",
"{\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}",
"output.append(\" \").append(house1[i][j])",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"house1[i][j]",
"house1[i]",
"house1",
"i",
"j",
"output.append('\\n')",
"output.append",
"output",
"'\\n'",
"output.append(\"####################\").append('\\n')",
"output.append(\"####################\").append",
"output.append(\"####################\")",
"output.append",
"output",
"\"####################\"",
"'\\n'",
"for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"for (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}",
"{\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}",
"output.append(\" \").append(house2[i][j])",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"house2[i][j]",
"house2[i]",
"house2",
"i",
"j",
"output.append('\\n')",
"output.append",
"output",
"'\\n'",
"output.append(\"####################\").append('\\n')",
"output.append(\"####################\").append",
"output.append(\"####################\")",
"output.append",
"output",
"\"####################\"",
"'\\n'",
"for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"for (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}",
"{\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}",
"output.append(\" \").append(house3[i][j])",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"house3[i][j]",
"house3[i]",
"house3",
"i",
"j",
"output.append('\\n')",
"output.append",
"output",
"'\\n'",
"output.append(\"####################\").append('\\n')",
"output.append(\"####################\").append",
"output.append(\"####################\")",
"output.append",
"output",
"\"####################\"",
"'\\n'",
"for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"for (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}",
"{\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}",
"output.append(\" \").append(house4[i][j])",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"house4[i][j]",
"house4[i]",
"house4",
"i",
"j",
"output.append('\\n')",
"output.append",
"output",
"'\\n'",
"System.out.print(output)",
"System.out.print",
"System.out",
"System",
"System.out",
"output",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] house1 = new int[3][10];\n\t\tint[][] house2 = new int[3][10];\n\t\tint[][] house3 = new int[3][10];\n\t\tint[][] house4 = new int[3][10];\n\t\tStringBuilder output = new StringBuilder();\n\t\t\n\t\t// 入居者数の初期化\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 入居者数の更新\n\t\tint infonum = scan.nextInt();\n\t\tfor (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][] house1 = new int[3][10];\n\t\tint[][] house2 = new int[3][10];\n\t\tint[][] house3 = new int[3][10];\n\t\tint[][] house4 = new int[3][10];\n\t\tStringBuilder output = new StringBuilder();\n\t\t\n\t\t// 入居者数の初期化\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\thouse1[i][j] = 0;\n\t\t\t\thouse2[i][j] = 0;\n\t\t\t\thouse3[i][j] = 0;\n\t\t\t\thouse4[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 入居者数の更新\n\t\tint infonum = scan.nextInt();\n\t\tfor (int i = 0; i < infonum; i++) {\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif (b == 1) {\n\t\t\t\thouse1[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 2) {\n\t\t\t\thouse2[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 3) {\n\t\t\t\thouse3[f-1][r-1] += v;\n\t\t\t}\n\t\t\tif (b == 4) {\n\t\t\t\thouse4[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house1[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house2[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house3[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\toutput.append(\"####################\").append('\\n');\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\toutput.append(\" \").append(house4[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\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[][] house1 = new int[3][10];
int[][] house2 = new int[3][10];
int[][] house3 = new int[3][10];
int[][] house4 = new int[3][10];
StringBuilder output = new StringBuilder();
// 入居者数の初期化
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 10; j++) {
house1[i][j] = 0;
house2[i][j] = 0;
house3[i][j] = 0;
house4[i][j] = 0;
}
}
// 入居者数の更新
int infonum = scan.nextInt();
for (int i = 0; i < infonum; i++) {
int b = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
int v = scan.nextInt();
if (b == 1) {
house1[f-1][r-1] += v;
}
if (b == 2) {
house2[f-1][r-1] += v;
}
if (b == 3) {
house3[f-1][r-1] += v;
}
if (b == 4) {
house4[f-1][r-1] += v;
}
}
// 出力
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 10; j++) {
output.append(" ").append(house1[i][j]);
}
output.append('\n');
}
output.append("####################").append('\n');
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 10; j++) {
output.append(" ").append(house2[i][j]);
}
output.append('\n');
}
output.append("####################").append('\n');
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 10; j++) {
output.append(" ").append(house3[i][j]);
}
output.append('\n');
}
output.append("####################").append('\n');
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 10; j++) {
output.append(" ").append(house4[i][j]);
}
output.append('\n');
}
System.out.print(output);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
183,
11
],
[
183,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
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
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
44,
56
],
[
56,
57
],
[
44,
58
],
[
58,
59
],
[
44,
60
],
[
60,
61
],
[
44,
62
],
[
62,
63
],
[
44,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
44,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
44,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
44,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
44,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
98,
104
],
[
104,
105
],
[
104,
106
],
[
97,
107
],
[
107,
108
],
[
107,
109
],
[
96,
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
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
136,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
123,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
12,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tint[][][] ninzu = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tint[][][] ninzu = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tint[][][] ninzu = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint[][][] ninzu = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"int[][][] ninzu = new int[4][3][10];",
"ninzu",
"new int[4][3][10]",
"4",
"3",
"10",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}",
"{\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] token = line.split(\" \");",
"token",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"b = Integer.parseInt(token[0])",
"b",
"Integer.parseInt(token[0])",
"Integer.parseInt",
"Integer",
"token[0]",
"token",
"0",
"f = Integer.parseInt(token[1])",
"f",
"Integer.parseInt(token[1])",
"Integer.parseInt",
"Integer",
"token[1]",
"token",
"1",
"r = Integer.parseInt(token[2])",
"r",
"Integer.parseInt(token[2])",
"Integer.parseInt",
"Integer",
"token[2]",
"token",
"2",
"v = Integer.parseInt(token[3])",
"v",
"Integer.parseInt(token[3])",
"Integer.parseInt",
"Integer",
"token[3]",
"token",
"3",
"ninzu[b - 1][f - 1][r - 1] += v",
"ninzu[b - 1][f - 1][r - 1]",
"ninzu[b - 1][f - 1]",
"ninzu[b - 1]",
"ninzu",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + ninzu[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + ninzu[i][j][k]",
"\" \"",
"ninzu[i][j][k]",
"ninzu[i][j]",
"ninzu[i]",
"ninzu",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tint[][][] ninzu = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tint[][][] ninzu = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint b, f, r, v;\n\t\t\tb = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tv = Integer.parseInt(token[3]);\n\t\t\tninzu[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + ninzu[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
int[][][] ninzu = new int[4][3][10];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String line = br.readLine();
String[] token = line.split(" ");
int b, f, r, v;
b = Integer.parseInt(token[0]);
f = Integer.parseInt(token[1]);
r = Integer.parseInt(token[2]);
v = Integer.parseInt(token[3]);
ninzu[b - 1][f - 1][r - 1] += v;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + ninzu[i][j][k]);
}
System.out.println();
}
if (i != 3) {
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
0,
13,
40,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
30,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
188,
5
],
[
188,
6
],
[
6,
7
],
[
6,
8
],
[
188,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
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
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
34,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
34,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
66,
68
],
[
55,
69
],
[
11,
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
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
108,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
95,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
82,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
139,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
11,
165
],
[
165,
166
],
[
9,
167
],
[
167,
168
],
[
188,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
188,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
0,
187
],
[
187,
188
],
[
187,
189
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tint[][][] arrays = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}\n\n\t\tfor (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tint[][][] arrays = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}\n\n\t\tfor (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"Main",
"public static Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\n\t\tint n = input();\n\t\tint[][][] arrays = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}\n\n\t\tfor (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}",
"main",
"{\n\n\t\tint n = input();\n\t\tint[][][] arrays = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}\n\n\t\tfor (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}",
"int n = input();",
"n",
"input()",
"input",
"int[][][] arrays = new int[4][3][10];",
"arrays",
"new int[4][3][10]",
"4",
"3",
"10",
"for (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}",
"{\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}",
"int b = input();",
"b",
"input()",
"input",
"int f = input();",
"f",
"input()",
"input",
"int r = input();",
"r",
"input()",
"input",
"int v = input();",
"v",
"input()",
"input",
"v =+ v",
"v",
"+ v",
"v",
"arrays[b - 1][f - 1][r - 1] += v",
"arrays[b - 1][f - 1][r - 1]",
"arrays[b - 1][f - 1]",
"arrays[b - 1]",
"arrays",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}",
"for (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 3",
"k",
"3",
"k++",
"k++",
"k",
"{\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"{\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"for (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < 10",
"l",
"10",
"l++",
"l++",
"l",
"{\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}",
"{\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(arrays[j][k][l])",
"System.out.print",
"System.out",
"System",
"System.out",
"arrays[j][k][l]",
"arrays[j][k]",
"arrays[j]",
"arrays",
"j",
"k",
"l",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"j + 1 != 4",
"j + 1",
"j",
"1",
"4",
"{\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}",
"for (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}",
"int m = 0;",
"int m = 0;",
"m",
"0",
"m < 20",
"m",
"20",
"m++",
"m++",
"m",
"{\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"close()",
"close",
"String[] args",
"args",
"public static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}",
"input",
"{\n\n\t\treturn scanner.nextInt();\n\n\t}",
"return scanner.nextInt();",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}",
"close",
"{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}",
"if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}",
"scanner != null",
"scanner",
"null",
"{\n\n\t\t\tscanner.close();\n\n\t\t}",
"scanner.close()",
"scanner.close",
"scanner",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tint[][][] arrays = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}\n\n\t\tfor (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tint[][][] arrays = new int[4][3][10];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint b = input();\n\t\t\tint f = input();\n\t\t\tint r = input();\n\t\t\tint v = input();\n\n\t\t\tv =+ v;\n\n\t\t\tarrays[b - 1][f - 1][r - 1] += v;\n\n\t\t}\n\n\t\tfor (int j = 0; j < 4; j++) {\n\n\t\t\tfor (int k = 0; k < 3; k++) {\n\n\t\t\t\tfor (int l = 0; l < 10; l++) {\n\n\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(arrays[j][k][l]);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tif (j + 1 != 4) {\n\n\t\t\t\tfor (int m = 0; m < 20; m++) {\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int n = input();
int[][][] arrays = new int[4][3][10];
for (int i = 0; i < n; i++) {
int b = input();
int f = input();
int r = input();
int v = input();
v =+ v;
arrays[b - 1][f - 1][r - 1] += v;
}
for (int j = 0; j < 4; j++) {
for (int k = 0; k < 3; k++) {
for (int l = 0; l < 10; l++) {
System.out.print(" ");
System.out.print(arrays[j][k][l]);
}
System.out.println("");
}
if (j + 1 != 4) {
for (int m = 0; m < 20; m++) {
System.out.print("#");
}
System.out.println("");
}
}
close();
}
public static int input() {
return scanner.nextInt();
}
public static void close() {
if (scanner != null) {
scanner.close();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
17,
17,
17,
12,
13,
30,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
13,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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
],
[
231,
11
],
[
231,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
20,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
27,
32
],
[
32,
33
],
[
27,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
27,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
27,
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
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
61,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
61,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
61,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
100,
101
],
[
61,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
102,
106
],
[
102,
107
],
[
102,
108
],
[
27,
109
],
[
109,
110
],
[
110,
111
],
[
12,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
114,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
135,
137
],
[
132,
138
],
[
138,
139
],
[
138,
140
],
[
131,
141
],
[
141,
142
],
[
141,
143
],
[
130,
144
],
[
127,
145
],
[
145,
146
],
[
127,
147
],
[
147,
148
],
[
127,
149
],
[
149,
150
],
[
127,
151
],
[
151,
152
],
[
114,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
156,
164
],
[
164,
165
],
[
165,
166
],
[
156,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
169,
177
],
[
177,
178
],
[
178,
179
],
[
169,
180
],
[
181,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
185,
193
],
[
193,
194
],
[
194,
195
],
[
185,
196
],
[
197,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
198,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
204,
210
],
[
181,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
217,
218
],
[
168,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
0,
230
],
[
230,
231
],
[
230,
232
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}\n\nclass House {\n private int[][][] inhabitant;\n\n House() {\n inhabitant = new int[4][3][10];\n }\n\n void addInhabitant(int building, int floor, int room, int value) {\n inhabitant[building - 1][floor - 1][room - 1] += value;\n }\n\n void showInhabitant(){\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st;",
"st",
"try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n }",
"int building",
"building",
"floor",
"floor",
"room",
"room",
"value;",
"value",
"String line;",
"line",
"House house = new House();",
"house",
"new House()",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }",
"{\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"st = new StringTokenizer(line)",
"st",
"new StringTokenizer(line)",
"building = Integer.parseInt(st.nextToken())",
"building",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"floor = Integer.parseInt(st.nextToken())",
"floor",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"room = Integer.parseInt(st.nextToken())",
"room",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"value = Integer.parseInt(st.nextToken())",
"value",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"house.addInhabitant(building,floor,room,value)",
"house.addInhabitant",
"house",
"building",
"floor",
"room",
"value",
"house.showInhabitant()",
"house.showInhabitant",
"house",
"String[] args",
"args",
"class House {\n private int[][][] inhabitant;\n\n House() {\n inhabitant = new int[4][3][10];\n }\n\n void addInhabitant(int building, int floor, int room, int value) {\n inhabitant[building - 1][floor - 1][room - 1] += value;\n }\n\n void showInhabitant(){\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"House",
"private int[][][] inhabitant;",
"inhabitant",
"House() {\n inhabitant = new int[4][3][10];\n }",
"House",
"{\n inhabitant = new int[4][3][10];\n }",
"inhabitant = new int[4][3][10]",
"inhabitant",
"new int[4][3][10]",
"4",
"3",
"10",
"void addInhabitant(int building, int floor, int room, int value) {\n inhabitant[building - 1][floor - 1][room - 1] += value;\n }",
"addInhabitant",
"{\n inhabitant[building - 1][floor - 1][room - 1] += value;\n }",
"inhabitant[building - 1][floor - 1][room - 1] += value",
"inhabitant[building - 1][floor - 1][room - 1]",
"inhabitant[building - 1][floor - 1]",
"inhabitant[building - 1]",
"inhabitant",
"building - 1",
"building",
"1",
"floor - 1",
"floor",
"1",
"room - 1",
"room",
"1",
"value",
"int building",
"building",
"int floor",
"floor",
"int room",
"room",
"int value",
"value",
"void showInhabitant(){\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }\n }",
"showInhabitant",
"{\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }\n }",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }",
"{\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if(i<3) {\n System.out.println(\"####################\");\n }\n }",
"for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }",
"{\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }\n System.out.println(sb.toString());\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(inhabitant[i][j][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n sb.append(\" \").append(inhabitant[i][j][k]);\n }",
"{\n sb.append(\" \").append(inhabitant[i][j][k]);\n }",
"sb.append(\" \").append(inhabitant[i][j][k])",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"inhabitant[i][j][k]",
"inhabitant[i][j]",
"inhabitant[i]",
"inhabitant",
"i",
"j",
"k",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"if(i<3) {\n System.out.println(\"####################\");\n }",
"i<3",
"i",
"3",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n try {\n int building, floor, room, value;\n String line;\n House house = new House();\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n line = br.readLine();\n st = new StringTokenizer(line);\n building = Integer.parseInt(st.nextToken());\n floor = Integer.parseInt(st.nextToken());\n room = Integer.parseInt(st.nextToken());\n value = Integer.parseInt(st.nextToken());\n house.addInhabitant(building,floor,room,value);\n }\n house.showInhabitant();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
try {
int building, floor, room, value;
String line;
House house = new House();
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
line = br.readLine();
st = new StringTokenizer(line);
building = Integer.parseInt(st.nextToken());
floor = Integer.parseInt(st.nextToken());
room = Integer.parseInt(st.nextToken());
value = Integer.parseInt(st.nextToken());
house.addInhabitant(building,floor,room,value);
}
house.showInhabitant();
} catch (Exception e) {
e.printStackTrace();
}
}
}
class House {
private int[][][] inhabitant;
House() {
inhabitant = new int[4][3][10];
}
void addInhabitant(int building, int floor, int room, int value) {
inhabitant[building - 1][floor - 1][room - 1] += value;
}
void showInhabitant(){
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
StringBuilder sb = new StringBuilder();
for (int k = 0; k < 10; k++) {
sb.append(" ").append(inhabitant[i][j][k]);
}
System.out.println(sb.toString());
}
if(i<3) {
System.out.println("####################");
}
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
17,
14,
2,
13,
17,
3,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
147,
2
],
[
147,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
5,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
5,
20
],
[
20,
21
],
[
21,
22
],
[
5,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
5,
71
],
[
71,
72
],
[
71,
73
],
[
5,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
99,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
86,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
86,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
5,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
3,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"house[b-1][f-1][r-1] += v",
"house[b-1][f-1][r-1]",
"house[b-1][f-1]",
"house[b-1]",
"house",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}",
"{\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}",
"for (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}",
"{\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}",
"for (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}",
"sb.append(\" \" + house[i][j][k])",
"sb.append",
"sb",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"if (i==3) break;",
"i==3",
"i",
"3",
"break;",
"sb.append(\"####################\\n\")",
"sb.append",
"sb",
"\"####################\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i=0; i<4; i++) {\n\n\t\t\tfor (int j=0; j<3; j++) {\n\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tsb.append(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tif (i==3) break;\n\t\t\tsb.append(\"####################\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
java.util.Scanner sc = new java.util.Scanner(System.in);
int[][][] house = new int[4][3][10];
int n = sc.nextInt();
sc.nextLine();
for (int i = 0; i < n; i++) {
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
house[b-1][f-1][r-1] += v;
}
StringBuilder sb = new StringBuilder();
for (int i=0; i<4; i++) {
for (int j=0; j<3; j++) {
for (int k=0; k<10; k++) {
sb.append(" " + house[i][j][k]);
}
sb.append("\n");
}
if (i==3) break;
sb.append("####################\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
0,
13,
20,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
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
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
37,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
37,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
69,
71
],
[
58,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
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
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
85,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint house [][][];\n\t\thouse = new int[4][3][10];//b?£?f??????r??????v???\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tfor(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint house [][][];\n\t\thouse = new int[4][3][10];//b?£?f??????r??????v???\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tfor(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint house [][][];\n\t\thouse = new int[4][3][10];//b?£?f??????r??????v???\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tfor(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\t//???????????£?¨??????????\n\t\tint house [][][];\n\t\thouse = new int[4][3][10];//b?£?f??????r??????v???\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tfor(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"int house [][][];",
"house",
"house = new int[4][3][10]",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}",
"int h = 0;",
"int h = 0;",
"h",
"0",
"h < n",
"h",
"n",
"h++",
"h++",
"h",
"{\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"house[b-1][f-1][r-1] += v",
"house[b-1][f-1][r-1]",
"house[b-1][f-1]",
"house[b-1]",
"house",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + house[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint house [][][];\n\t\thouse = new int[4][3][10];//b?£?f??????r??????v???\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tfor(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint house [][][];\n\t\thouse = new int[4][3][10];//b?£?f??????r??????v???\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tfor(int h = 0; h < n ; h++){\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\n\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String args[]){
//???????????£?¨??????????
int house [][][];
house = new int[4][3][10];//b?£?f??????r??????v???
//????????°????????????????????????????????????
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int h = 0; h < n ; h++){
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
house[b-1][f-1][r-1] += v;
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
System.out.print(" " + house[i][j][k]);
}
System.out.println("");
}
if(i != 3){
System.out.println("####################");
}
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
0,
13,
2,
18,
13,
13,
2,
17,
2,
18,
13,
13,
17,
0,
13,
18,
13,
13,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
2,
13,
17,
17,
17,
2,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
213,
11
],
[
213,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
14,
41
],
[
41,
42
],
[
41,
43
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
49
],
[
49,
50
],
[
49,
51
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
14,
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
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
72,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
69,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
69,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
69,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
69,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
69,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
69,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
137,
143
],
[
143,
144
],
[
143,
145
],
[
136,
146
],
[
146,
147
],
[
146,
148
],
[
14,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
149,
157
],
[
157,
158
],
[
158,
159
],
[
149,
160
],
[
161,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
162,
173
],
[
174,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
161,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
161,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
194,
200
],
[
193,
201
],
[
201,
202
],
[
201,
203
],
[
192,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
12,
210
],
[
210,
211
],
[
0,
212
],
[
212,
213
],
[
212,
214
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint[][] room = new int[12][10];\n\t\tint i,j,n,x,y;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tn = Integer.parseInt(br.readLine() );//input n\n\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}\n\n\t\tfor(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint[][] room = new int[12][10];\n\t\tint i,j,n,x,y;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tn = Integer.parseInt(br.readLine() );//input n\n\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}\n\n\t\tfor(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException\n\t{\n\t\tint[][] room = new int[12][10];\n\t\tint i,j,n,x,y;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tn = Integer.parseInt(br.readLine() );//input n\n\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}\n\n\t\tfor(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tint[][] room = new int[12][10];\n\t\tint i,j,n,x,y;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tn = Integer.parseInt(br.readLine() );//input n\n\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}\n\n\t\tfor(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}\n\n\t}",
"int[][] room = new int[12][10];",
"room",
"new int[12][10]",
"12",
"10",
"int i",
"i",
"j",
"j",
"n",
"n",
"x",
"x",
"y;",
"y",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );",
"br",
"new BufferedReader(new InputStreamReader(System.in) )",
"n = Integer.parseInt(br.readLine() )",
"n",
"Integer.parseInt(br.readLine() )",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[] b = new int[n];",
"b",
"new int[n]",
"n",
"int[] f = new int[n];",
"f",
"new int[n]",
"n",
"int[] r = new int[n];",
"r",
"new int[n]",
"n",
"int[] v = new int[n];",
"v",
"new int[n]",
"n",
"for(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"b[i] = Integer.parseInt(str[0])",
"b[i]",
"b",
"i",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"f[i] = Integer.parseInt(str[1])",
"f[i]",
"f",
"i",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"r[i] = Integer.parseInt(str[2])",
"r[i]",
"r",
"i",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"v[i] = Integer.parseInt(str[3])",
"v[i]",
"v",
"i",
"Integer.parseInt(str[3])",
"Integer.parseInt",
"Integer",
"str[3]",
"str",
"3",
"x = f[i] + 3*(b[i]-1)",
"x",
"f[i] + 3*(b[i]-1)",
"f[i]",
"f",
"i",
"3*(b[i]-1)",
"3",
"(b[i]-1)",
"b[i]",
"b",
"i",
"1",
"y = r[i]",
"y",
"r[i]",
"r",
"i",
"room[x-1][y-1] += v[i]",
"room[x-1][y-1]",
"room[x-1]",
"room",
"x-1",
"x",
"1",
"y-1",
"y",
"1",
"v[i]",
"v",
"i",
"for(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<12",
"i",
"12",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}",
"for(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}",
"System.out.print(\" \" + room[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room[i][j]",
"\" \"",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if( (i+1)%3==0 && i<11) System.out.println(\"####################\");",
"(i+1)%3==0 && i<11",
"(i+1)%3==0",
"(i+1)%3",
"(i+1)",
"i",
"1",
"3",
"0",
"i<11",
"i",
"11",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint[][] room = new int[12][10];\n\t\tint i,j,n,x,y;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tn = Integer.parseInt(br.readLine() );//input n\n\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}\n\n\t\tfor(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}\n\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint[][] room = new int[12][10];\n\t\tint i,j,n,x,y;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tn = Integer.parseInt(br.readLine() );//input n\n\n\t\tint[] b = new int[n];\n\t\tint[] f = new int[n];\n\t\tint[] r = new int[n];\n\t\tint[] v = new int[n];\n\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tb[i] = Integer.parseInt(str[0]);\n\t\t\tf[i] = Integer.parseInt(str[1]);\n\t\t\tr[i] = Integer.parseInt(str[2]);\n\t\t\tv[i] = Integer.parseInt(str[3]);\n\n\t\t\tx = f[i] + 3*(b[i]-1);\n\t\t\ty = r[i];\n\n\t\t\troom[x-1][y-1] += v[i];\n\t\t}\n\n\t\tfor(i=0; i<12; i++)\n\t\t{\n\t\t\tfor(j=0; j<10; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + room[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif( (i+1)%3==0 && i<11) System.out.println(\"####################\");\n\t\t}\n\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException
{
int[][] room = new int[12][10];
int i,j,n,x,y;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );
n = Integer.parseInt(br.readLine() );//input n
int[] b = new int[n];
int[] f = new int[n];
int[] r = new int[n];
int[] v = new int[n];
for(i=0; i<n; i++)
{
String[] str = br.readLine().split(" ");
b[i] = Integer.parseInt(str[0]);
f[i] = Integer.parseInt(str[1]);
r[i] = Integer.parseInt(str[2]);
v[i] = Integer.parseInt(str[3]);
x = f[i] + 3*(b[i]-1);
y = r[i];
room[x-1][y-1] += v[i];
}
for(i=0; i<12; i++)
{
for(j=0; j<10; j++)
{
System.out.print(" " + room[i][j]);
}
System.out.println();
if( (i+1)%3==0 && i<11) System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
176,
11
],
[
176,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
14,
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
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
50,
55
],
[
47,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
47,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
47,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
47,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
47,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
90,
96
],
[
96,
97
],
[
96,
98
],
[
89,
99
],
[
99,
100
],
[
99,
101
],
[
88,
102
],
[
14,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
128,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
115,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
12,
173
],
[
173,
174
],
[
0,
175
],
[
175,
176
],
[
175,
177
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] residence = new int[4][3][10];\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}\n\t}\n}\n// for (int i=0;i<4;i++){\n// for(int j=0;j<3;j++){\n// for (int k=0;k<10;k++){\n// sb.append(\" \").append(residence[i][j][k]);\n// }\n// sb.(\"\\n\");\n// }\n// if (i !=4){\n// System.out.print(\"##########\");\n// }",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] residence = new int[4][3][10];\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] residence = new int[4][3][10];\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] residence = new int[4][3][10];\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int[][][] residence = new int[4][3][10];",
"residence",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int b = Integer.parseInt(str[0]);",
"b",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int f = Integer.parseInt(str[1]);",
"f",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int r = Integer.parseInt(str[2]);",
"r",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"int v = Integer.parseInt(str[3]);",
"v",
"Integer.parseInt(str[3])",
"Integer.parseInt",
"Integer",
"str[3]",
"str",
"3",
"residence[b - 1][f - 1][r - 1] += v",
"residence[b - 1][f - 1][r - 1]",
"residence[b - 1][f - 1]",
"residence[b - 1]",
"residence",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"for (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}",
"System.out.print(\" \" + residence[i][j][k] )",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + residence[i][j][k]",
"\" \"",
"residence[i][j][k]",
"residence[i][j]",
"residence[i]",
"residence",
"i",
"j",
"k",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"if (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] residence = new int[4][3][10];\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint[][][] residence = new int[4][3][10];\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\tint v = Integer.parseInt(str[3]);\n\t\t\tresidence[b - 1][f - 1][r - 1] += v;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + residence[i][j][k] );\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int[][][] residence = new int[4][3][10];
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String[] str = br.readLine().split(" ");
int b = Integer.parseInt(str[0]);
int f = Integer.parseInt(str[1]);
int r = Integer.parseInt(str[2]);
int v = Integer.parseInt(str[3]);
residence[b - 1][f - 1][r - 1] += v;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + residence[i][j][k] );
}
System.out.print("\n");
}
if (i != 3) {
System.out.println("####################");
}
}
}
}
// for (int i=0;i<4;i++){
// for(int j=0;j<3;j++){
// for (int k=0;k<10;k++){
// sb.append(" ").append(residence[i][j][k]);
// }
// sb.("\n");
// }
// if (i !=4){
// System.out.print("##########");
// } |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
17,
17,
12,
13,
30,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
4,
13,
13,
13,
13,
13,
3,
34,
17,
1,
4,
13,
13,
13,
13,
13,
3,
34,
17,
1,
4,
13,
13,
13,
13,
13,
3,
34,
17,
1,
4,
13,
13,
13,
13,
13,
3,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
40,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
30,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
23,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
293,
5
],
[
293,
6
],
[
6,
7
],
[
6,
8
],
[
293,
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
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
14,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
83,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
83,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
109,
112
],
[
109,
113
],
[
109,
114
],
[
108,
115
],
[
104,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
119,
122
],
[
119,
123
],
[
119,
124
],
[
118,
125
],
[
104,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
129,
132
],
[
129,
133
],
[
129,
134
],
[
128,
135
],
[
104,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
139,
142
],
[
139,
143
],
[
139,
144
],
[
138,
145
],
[
14,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
159,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
172,
183
],
[
184,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
192,
198
],
[
171,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
158,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
12,
217
],
[
217,
218
],
[
293,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
228,
230
],
[
225,
231
],
[
231,
232
],
[
231,
233
],
[
224,
234
],
[
234,
235
],
[
234,
236
],
[
223,
237
],
[
222,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
241,
247
],
[
247,
248
],
[
247,
249
],
[
240,
250
],
[
250,
251
],
[
250,
252
],
[
239,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
258,
260
],
[
255,
261
],
[
261,
262
],
[
261,
263
],
[
254,
264
],
[
264,
265
],
[
264,
266
],
[
253,
267
],
[
222,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
274,
276
],
[
271,
277
],
[
277,
278
],
[
277,
279
],
[
270,
280
],
[
280,
281
],
[
280,
282
],
[
269,
283
],
[
219,
284
],
[
284,
285
],
[
219,
286
],
[
286,
287
],
[
219,
288
],
[
288,
289
],
[
219,
290
],
[
290,
291
],
[
0,
292
],
[
292,
293
],
[
292,
294
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tstatic int[][][] arrayFloor = new int[4][3][10];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\n\t\t//??????????????????\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\tpublic static void calculate(int b, int f, int r, int v) {\n\n\t\tif(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tstatic int[][][] arrayFloor = new int[4][3][10];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\n\t\t//??????????????????\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\tpublic static void calculate(int b, int f, int r, int v) {\n\n\t\tif(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}\n\t}\n}",
"Main",
"static int[][][] arrayFloor = new int[4][3][10];",
"arrayFloor",
"new int[4][3][10]",
"4",
"3",
"10",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\n\t\t//??????????????????\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\n\t\t//??????????????????\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 4",
"k",
"4",
"k++",
"k++",
"k",
"{\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}",
"arrayFloor[k][i][j] = 0",
"arrayFloor[k][i][j]",
"arrayFloor[k][i]",
"arrayFloor[k]",
"arrayFloor",
"k",
"i",
"j",
"0",
"for(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A",
"i",
"A",
"i++",
"i++",
"i",
"{\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}",
"b",
"case 1:",
"1",
"case 1:",
"calculate(b, f, r, v)",
"calculate",
"b",
"f",
"r",
"v",
"break;",
"case 2:",
"2",
"case 2:",
"calculate(b, f, r, v)",
"calculate",
"b",
"f",
"r",
"v",
"break;",
"case 3:",
"3",
"case 3:",
"calculate(b, f, r, v)",
"calculate",
"b",
"f",
"r",
"v",
"break;",
"case 4:",
"4",
"case 4:",
"calculate(b, f, r, v)",
"calculate",
"b",
"f",
"r",
"v",
"break;",
"for(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 4",
"k",
"4",
"k++",
"k++",
"k",
"{\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"for(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}",
"System.out.print(\" \"+arrayFloor[k][i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+arrayFloor[k][i][j]",
"\" \"",
"arrayFloor[k][i][j]",
"arrayFloor[k][i]",
"arrayFloor[k]",
"arrayFloor",
"k",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"!(k == 3)",
"(k == 3)",
"k",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public static void calculate(int b, int f, int r, int v) {\n\n\t\tif(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}\n\t}",
"calculate",
"{\n\n\t\tif(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}\n\t}",
"if(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}",
"arrayFloor[b-1][f-1][r-1] != 0",
"arrayFloor[b-1][f-1][r-1]",
"arrayFloor[b-1][f-1]",
"arrayFloor[b-1]",
"arrayFloor",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"0",
"{\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}",
"arrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v",
"arrayFloor[b-1][f-1][r-1]",
"arrayFloor[b-1][f-1]",
"arrayFloor[b-1]",
"arrayFloor",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"arrayFloor[b-1][f-1][r-1] + v",
"arrayFloor[b-1][f-1][r-1]",
"arrayFloor[b-1][f-1]",
"arrayFloor[b-1]",
"arrayFloor",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"{\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}",
"arrayFloor[b-1][f-1][r-1] = v",
"arrayFloor[b-1][f-1][r-1]",
"arrayFloor[b-1][f-1]",
"arrayFloor[b-1]",
"arrayFloor",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"int b",
"b",
"int f",
"f",
"int r",
"r",
"int v",
"v",
"public class Main{\n\n\tstatic int[][][] arrayFloor = new int[4][3][10];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\n\t\t//??????????????????\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\tpublic static void calculate(int b, int f, int r, int v) {\n\n\t\tif(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}\n\t}\n}",
"public class Main{\n\n\tstatic int[][][] arrayFloor = new int[4][3][10];\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\n\t\t//??????????????????\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tarrayFloor[k][i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < A; i++) {\n\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\n\t\t\tswitch(b) {\n\t\t\tcase 1:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcalculate(b, f, r, v);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int k = 0; k < 4; k++) {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\tSystem.out.print(\" \"+arrayFloor[k][i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(!(k == 3)) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\tpublic static void calculate(int b, int f, int r, int v) {\n\n\t\tif(arrayFloor[b-1][f-1][r-1] != 0) {\n\t\t\tarrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;\n\t\t}\n\t\telse {\n\t\t\tarrayFloor[b-1][f-1][r-1] = v;\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
static int[][][] arrayFloor = new int[4][3][10];
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
//??????????????????
for(int k = 0; k < 4; k++) {
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 10; j++) {
arrayFloor[k][i][j] = 0;
}
}
}
for(int i = 0; i < A; i++) {
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
switch(b) {
case 1:
calculate(b, f, r, v);
break;
case 2:
calculate(b, f, r, v);
break;
case 3:
calculate(b, f, r, v);
break;
case 4:
calculate(b, f, r, v);
break;
}
}
for(int k = 0; k < 4; k++) {
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 10; j++) {
System.out.print(" "+arrayFloor[k][i][j]);
}
System.out.println("");
}
if(!(k == 3)) {
System.out.println("####################");
}
}
}
public static void calculate(int b, int f, int r, int v) {
if(arrayFloor[b-1][f-1][r-1] != 0) {
arrayFloor[b-1][f-1][r-1] = arrayFloor[b-1][f-1][r-1] + v;
}
else {
arrayFloor[b-1][f-1][r-1] = v;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
17,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
2,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
17,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
17,
17,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
2,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
17,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
17,
17,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
2,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
17,
17,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
2,
17,
17,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
13,
30,
4,
18,
13,
13,
13,
0,
13,
17,
4,
18,
13,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
30,
4,
18,
13,
17,
4,
18,
18,
13,
13,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
375,
5
],
[
375,
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
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
41,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
8,
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
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
67,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
67,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
88,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
132,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
153,
153
],
[
153,
154
],
[
153,
155
],
[
153,
156
],
[
151,
157
],
[
144,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
167,
167
],
[
167,
168
],
[
167,
169
],
[
167,
170
],
[
165,
171
],
[
127,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
177,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
198,
198
],
[
198,
199
],
[
198,
200
],
[
198,
201
],
[
196,
202
],
[
189,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
212,
212
],
[
212,
213
],
[
212,
214
],
[
212,
215
],
[
210,
216
],
[
172,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
222,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
243,
243
],
[
243,
244
],
[
243,
245
],
[
243,
246
],
[
241,
247
],
[
234,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
257,
257
],
[
257,
258
],
[
257,
259
],
[
257,
260
],
[
255,
261
],
[
67,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
263,
268
],
[
262,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
270,
273
],
[
270,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
275,
278
],
[
274,
279
],
[
262,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
281,
284
],
[
281,
285
],
[
8,
286
],
[
286,
287
],
[
286,
288
],
[
8,
289
],
[
289,
290
],
[
290,
291
],
[
289,
292
],
[
8,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
295,
297
],
[
293,
298
],
[
298,
299
],
[
299,
300
],
[
293,
301
],
[
302,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
303,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
310,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
317,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
322,
325
],
[
321,
326
],
[
326,
327
],
[
327,
328
],
[
326,
329
],
[
321,
330
],
[
330,
331
],
[
331,
332
],
[
330,
333
],
[
321,
334
],
[
334,
335
],
[
335,
336
],
[
334,
337
],
[
310,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
339,
342
],
[
338,
343
],
[
343,
344
],
[
344,
345
],
[
343,
346
],
[
302,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
350,
351
],
[
351,
352
],
[
350,
353
],
[
302,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
355,
359
],
[
354,
360
],
[
354,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
362,
365
],
[
8,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
6,
372
],
[
372,
373
],
[
0,
374
],
[
374,
375
],
[
374,
376
]
] | [
"\n\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, b, f, r, v, c;\n\t\tint i = 0;\n\t\tc = 0;// ?????¶?????????????????????\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\t// ?????????????????????????????±???????????\\???????????§????????????\n\t\t// ???????????????????????±?????\\?????????\n\t\tfor (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}\n\n\t\tfor (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????????????StringBuilder?????\\??????\n\t\ti = 0;\n\t\tsb.append(\" \");\n\t\tfor (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(new String(sb));\n\n\t}\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\tint n, b, f, r, v, c;\n\t\tint i = 0;\n\t\tc = 0;// ?????¶?????????????????????\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\t// ?????????????????????????????±???????????\\???????????§????????????\n\t\t// ???????????????????????±?????\\?????????\n\t\tfor (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}\n\n\t\tfor (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????????????StringBuilder?????\\??????\n\t\ti = 0;\n\t\tsb.append(\" \");\n\t\tfor (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(new String(sb));\n\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, b, f, r, v, c;\n\t\tint i = 0;\n\t\tc = 0;// ?????¶?????????????????????\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\t// ?????????????????????????????±???????????\\???????????§????????????\n\t\t// ???????????????????????±?????\\?????????\n\t\tfor (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}\n\n\t\tfor (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????????????StringBuilder?????\\??????\n\t\ti = 0;\n\t\tsb.append(\" \");\n\t\tfor (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(new String(sb));\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, b, f, r, v, c;\n\t\tint i = 0;\n\t\tc = 0;// ?????¶?????????????????????\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\t// ?????????????????????????????±???????????\\???????????§????????????\n\t\t// ???????????????????????±?????\\?????????\n\t\tfor (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}\n\n\t\tfor (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????????????StringBuilder?????\\??????\n\t\ti = 0;\n\t\tsb.append(\" \");\n\t\tfor (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(new String(sb));\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n",
"n",
"b",
"b",
"f",
"f",
"r",
"r",
"v",
"v",
"c;",
"c",
"int i = 0;",
"i",
"0",
"c = 0",
"c",
"0",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}",
";",
"i < 120",
"i",
"120",
"i++",
"i++",
"i",
"{\n\t\t\tlist.add(0);\n\t\t}",
"{\n\t\t\tlist.add(0);\n\t\t}",
"list.add(0)",
"list.add",
"list",
"0",
"for (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}",
"int count = 0;",
"int count = 0;",
"count",
"0",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}",
"{// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}",
"b = scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"f = scan.nextInt()",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"r = scan.nextInt()",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"v = scan.nextInt()",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}",
"b == 1",
"b",
"1",
"{// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t}",
"if (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}",
"f == 1",
"f",
"1",
"{// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t}",
"c = r - 1",
"c",
"r - 1",
"r",
"1",
"if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}",
"f == 2",
"f",
"2",
"{// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t}",
"c = 10 + r - 1",
"c",
"10 + r - 1",
"10 + r",
"10",
"r",
"1",
"if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}",
"f == 3",
"f",
"3",
"{// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}",
"c = 20 + r - 1",
"c",
"20 + r - 1",
"20 + r",
"20",
"r",
"1",
"if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}",
"b == 2",
"b",
"2",
"{// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t}",
"if (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}",
"f == 1",
"f",
"1",
"{// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t}",
"c = 30 + r - 1",
"c",
"30 + r - 1",
"30 + r",
"30",
"r",
"1",
"if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}",
"f == 2",
"f",
"2",
"{// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t}",
"c = 30 + 10 + r - 1",
"c",
"30 + 10 + r - 1",
"30 + 10 + r",
"30 + 10 + r",
"30",
"10",
"r",
"1",
"if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}",
"f == 3",
"f",
"3",
"{// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}",
"c = 30 + 20 + r - 1",
"c",
"30 + 20 + r - 1",
"30 + 20 + r",
"30 + 20 + r",
"30",
"20",
"r",
"1",
"if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}",
"b == 3",
"b",
"3",
"{// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t}",
"if (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}",
"f == 1",
"f",
"1",
"{// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t}",
"c = 60 + r - 1",
"c",
"60 + r - 1",
"60 + r",
"60",
"r",
"1",
"if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}",
"f == 2",
"f",
"2",
"{// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t}",
"c = 60 + 10 + r - 1",
"c",
"60 + 10 + r - 1",
"60 + 10 + r",
"60 + 10 + r",
"60",
"10",
"r",
"1",
"if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}",
"f == 3",
"f",
"3",
"{// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}",
"c = 60 + 20 + r - 1",
"c",
"60 + 20 + r - 1",
"60 + 20 + r",
"60 + 20 + r",
"60",
"20",
"r",
"1",
"if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}",
"b == 4",
"b",
"4",
"{// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}",
"if (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}",
"f == 1",
"f",
"1",
"{// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t}",
"c = 90 + r - 1",
"c",
"90 + r - 1",
"90 + r",
"90",
"r",
"1",
"if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}",
"f == 2",
"f",
"2",
"{// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t}",
"c = 90 + 10 + r - 1",
"c",
"90 + 10 + r - 1",
"90 + 10 + r",
"90 + 10 + r",
"90",
"10",
"r",
"1",
"if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}",
"f == 3",
"f",
"3",
"{// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}",
"c = 90 + 20 + r - 1",
"c",
"90 + 20 + r - 1",
"90 + 20 + r",
"90 + 20 + r",
"90",
"20",
"r",
"1",
"if (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}",
"list.get(c) != 0",
"list.get(c)",
"list.get",
"list",
"c",
"0",
"{// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t}",
"list.set(c, list.get(c) + v)",
"list.set",
"list",
"c",
"list.get(c) + v",
"list.get(c)",
"list.get",
"list",
"c",
"v",
"{\n\t\t\t\tlist.set(c, v);\n\t\t\t}",
"list.set(c, v)",
"list.set",
"list",
"c",
"v",
"i = 0",
"i",
"0",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"for (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}",
";",
"i < 120",
"i",
"120",
"i++",
"i++",
"i",
"{\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}",
"if ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}",
"(i) % 10 == 0",
"(i) % 10",
"(i)",
"10",
"0",
"{// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}",
"if ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}",
"(i) % 30 == 0",
"(i) % 30",
"(i)",
"30",
"0",
"{// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t}",
"if (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}",
"i != 0",
"i",
"0",
"{\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"sb.append(\"####################\")",
"sb.append",
"sb",
"\"####################\"",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"{\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(list.get(i))",
"sb.append",
"sb",
"list.get(i)",
"list.get",
"list",
"i",
"if ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}",
"(i) % 10 == 9",
"(i) % 10",
"(i)",
"10",
"9",
"{\n\t\t\t}",
"{\n\t\t\t\tsb.append(\" \");\n\t\t\t}",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"System.out.println(new String(sb))",
"System.out.println",
"System.out",
"System",
"System.out",
"new String(sb)",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, b, f, r, v, c;\n\t\tint i = 0;\n\t\tc = 0;// ?????¶?????????????????????\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\t// ?????????????????????????????±???????????\\???????????§????????????\n\t\t// ???????????????????????±?????\\?????????\n\t\tfor (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}\n\n\t\tfor (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????????????StringBuilder?????\\??????\n\t\ti = 0;\n\t\tsb.append(\" \");\n\t\tfor (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(new String(sb));\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, b, f, r, v, c;\n\t\tint i = 0;\n\t\tc = 0;// ?????¶?????????????????????\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\t// ?????????????????????????????±???????????\\???????????§????????????\n\t\t// ???????????????????????±?????\\?????????\n\t\tfor (; i < 120; i++) {\n\t\t\tlist.add(0);\n\t\t}\n\n\t\tfor (int count = 0; count < n; count++) {// n??????????????????\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\n\t\t\t// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0\n\t\t\tif (b == 1) {// 1?£?\n\t\t\t\t// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 2) {// 2?£? +30??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 30 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 30 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 30 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 3) {// 3?£? +60??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 60 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 60 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 60 + 20 + r - 1;\n\t\t\t\t}\n\t\t\t} else if (b == 4) {// 4?£? +90??????\n\t\t\t\tif (f == 1) {// ????????¢???\n\t\t\t\t\t// ??¨?±?????????????1~10\n\t\t\t\t\tc = 90 + r - 1;// ??¨?±????????????????????????????????????????\n\t\t\t\t} else if (f == 2) {// ????????¢2\n\t\t\t\t\tc = 90 + 10 + r - 1;\n\t\t\t\t} else if (f == 3) {// ????????¢3\n\t\t\t\t\tc = 90 + 20 + r - 1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (list.get(c) != 0) {// 0??\\??????????????¨?????????????????¨???????????????\n\t\t\t\tlist.set(c, list.get(c) + v);\n\t\t\t} else {\n\t\t\t\tlist.set(c, v);\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????????????StringBuilder?????\\??????\n\t\ti = 0;\n\t\tsb.append(\" \");\n\t\tfor (; i < 120; i++) {\n\t\t\tif ((i) % 10 == 0) {// 10???????????????\n\t\t\t\tif ((i) % 30 == 0) {// 30????????????#?????????????????\\\n\t\t\t\t\tif (i != 0) {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\"####################\");\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(list.get(i));\n\t\t\tif ((i) % 10 == 9) {\n\t\t\t} else {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(new String(sb));\n\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int n, b, f, r, v, c;
int i = 0;
c = 0;// ?????¶?????????????????????
n = scan.nextInt();
StringBuilder sb = new StringBuilder();
List<Integer> list = new ArrayList<Integer>();
// ?????????????????????????????±???????????\???????????§????????????
// ???????????????????????±?????\?????????
for (; i < 120; i++) {
list.add(0);
}
for (int count = 0; count < n; count++) {// n??????????????????
b = scan.nextInt();
f = scan.nextInt();
r = scan.nextInt();
v = scan.nextInt();
// ?£?????????? ???1?£??¢????????????¨???+30 ???1?£?????±0
if (b == 1) {// 1?£?
// ????????¢ ???1????????¢?¢????????????¨???+10 ???1????????¢????±0
if (f == 1) {// ????????¢???
// ??¨?±?????????????1~10
c = r - 1;// ??¨?±????????????????????????????????????????
} else if (f == 2) {// ????????¢2
c = 10 + r - 1;
} else if (f == 3) {// ????????¢3
c = 20 + r - 1;
}
} else if (b == 2) {// 2?£? +30??????
if (f == 1) {// ????????¢???
// ??¨?±?????????????1~10
c = 30 + r - 1;// ??¨?±????????????????????????????????????????
} else if (f == 2) {// ????????¢2
c = 30 + 10 + r - 1;
} else if (f == 3) {// ????????¢3
c = 30 + 20 + r - 1;
}
} else if (b == 3) {// 3?£? +60??????
if (f == 1) {// ????????¢???
// ??¨?±?????????????1~10
c = 60 + r - 1;// ??¨?±????????????????????????????????????????
} else if (f == 2) {// ????????¢2
c = 60 + 10 + r - 1;
} else if (f == 3) {// ????????¢3
c = 60 + 20 + r - 1;
}
} else if (b == 4) {// 4?£? +90??????
if (f == 1) {// ????????¢???
// ??¨?±?????????????1~10
c = 90 + r - 1;// ??¨?±????????????????????????????????????????
} else if (f == 2) {// ????????¢2
c = 90 + 10 + r - 1;
} else if (f == 3) {// ????????¢3
c = 90 + 20 + r - 1;
}
}
if (list.get(c) != 0) {// 0??\??????????????¨?????????????????¨???????????????
list.set(c, list.get(c) + v);
} else {
list.set(c, v);
}
}
// ?????????????????????StringBuilder?????\??????
i = 0;
sb.append(" ");
for (; i < 120; i++) {
if ((i) % 10 == 0) {// 10???????????????
if ((i) % 30 == 0) {// 30????????????#?????????????????\
if (i != 0) {
sb.append("\n");
sb.append("####################");
sb.append("\n");
sb.append(" ");
}
} else {
sb.append("\n");
sb.append(" ");
}
}
sb.append(list.get(i));
if ((i) % 10 == 9) {
} else {
sb.append(" ");
}
}
System.out.println(new String(sb));
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
40,
40,
13,
40,
40,
13,
40,
40,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
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
],
[
146,
5
],
[
146,
6
],
[
6,
7
],
[
6,
8
],
[
146,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
21,
31
],
[
31,
32
],
[
31,
33
],
[
21,
34
],
[
34,
35
],
[
35,
36
],
[
21,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
38,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
38,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
59,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
99,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
86,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
9,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] | [
"import java.util.*;\n\npublic class Main {\n private static final String lin = \"####################\";\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int[][][] tbl = new int[4][3][10];\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final String lin = \"####################\";\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int[][][] tbl = new int[4][3][10];\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }\n }\n}",
"Main",
"private static final String lin = \"####################\";",
"lin",
"\"####################\"",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int[][][] tbl = new int[4][3][10];\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int[][][] tbl = new int[4][3][10];\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int[][][] tbl = new int[4][3][10];",
"tbl",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }",
"int i = 0, n = scn.nextInt();",
"int i = 0",
"i",
"0",
"n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }",
"{\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }",
"int b = scn.nextInt()",
"b",
"scn.nextInt()",
"scn.nextInt",
"scn",
"f = scn.nextInt();",
"f",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int r = scn.nextInt()",
"r",
"scn.nextInt()",
"scn.nextInt",
"scn",
"v = scn.nextInt();",
"v",
"scn.nextInt()",
"scn.nextInt",
"scn",
"tbl[~-b][~-f][~-r] += v",
"tbl[~-b][~-f][~-r]",
"tbl[~-b][~-f]",
"tbl[~-b]",
"tbl",
"~-b",
"-b",
"b",
"~-f",
"-f",
"f",
"~-r",
"-r",
"r",
"v",
"for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }",
"{\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }",
"for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }",
"{\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }",
"for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n System.out.print(\" \" + tbl[b][f][r]);\n }",
"{\n System.out.print(\" \" + tbl[b][f][r]);\n }",
"System.out.print(\" \" + tbl[b][f][r])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + tbl[b][f][r]",
"\" \"",
"tbl[b][f][r]",
"tbl[b][f]",
"tbl[b]",
"tbl",
"b",
"f",
"r",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(b < 3) {\n System.out.println(lin);\n }",
"b < 3",
"b",
"3",
"{\n System.out.println(lin);\n }",
"System.out.println(lin)",
"System.out.println",
"System.out",
"System",
"System.out",
"lin",
"String[] args",
"args",
"public class Main {\n private static final String lin = \"####################\";\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int[][][] tbl = new int[4][3][10];\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }\n }\n}",
"public class Main {\n private static final String lin = \"####################\";\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int[][][] tbl = new int[4][3][10];\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int b = scn.nextInt(), f = scn.nextInt();\n int r = scn.nextInt(), v = scn.nextInt();\n tbl[~-b][~-f][~-r] += v;\n }\n for(int b = 0; b < 4; b++) {\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + tbl[b][f][r]);\n }\n System.out.println();\n }\n if(b < 3) {\n System.out.println(lin);\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
private static final String lin = "####################";
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int[][][] tbl = new int[4][3][10];
for(int i = 0, n = scn.nextInt(); i < n; i++) {
int b = scn.nextInt(), f = scn.nextInt();
int r = scn.nextInt(), v = scn.nextInt();
tbl[~-b][~-f][~-r] += v;
}
for(int b = 0; b < 4; b++) {
for(int f = 0; f < 3; f++) {
for(int r = 0; r < 10; r++) {
System.out.print(" " + tbl[b][f][r]);
}
System.out.println();
}
if(b < 3) {
System.out.println(lin);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
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
],
[
378,
5
],
[
378,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
57,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
57,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
90,
91
],
[
90,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
78,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
110,
116
],
[
116,
117
],
[
116,
118
],
[
109,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
119,
129
],
[
104,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
135,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
146,
152
],
[
152,
153
],
[
152,
154
],
[
145,
155
],
[
130,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
162,
168
],
[
168,
169
],
[
168,
170
],
[
161,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
172,
178
],
[
178,
179
],
[
178,
180
],
[
171,
181
],
[
8,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
182,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
200,
201
],
[
200,
202
],
[
195,
203
],
[
203,
204
],
[
204,
205
],
[
195,
206
],
[
207,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
194,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
8,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
8,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
231,
242
],
[
243,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
244,
249
],
[
249,
250
],
[
249,
251
],
[
244,
252
],
[
252,
253
],
[
253,
254
],
[
244,
255
],
[
256,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
243,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
8,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
274,
279
],
[
8,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
280,
285
],
[
285,
286
],
[
285,
287
],
[
280,
288
],
[
288,
289
],
[
289,
290
],
[
280,
291
],
[
292,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
293,
298
],
[
298,
299
],
[
298,
300
],
[
293,
301
],
[
301,
302
],
[
302,
303
],
[
293,
304
],
[
305,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
306,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
292,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
8,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
323,
328
],
[
8,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
329,
334
],
[
334,
335
],
[
334,
336
],
[
329,
337
],
[
337,
338
],
[
338,
339
],
[
329,
340
],
[
341,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
342,
347
],
[
347,
348
],
[
347,
349
],
[
342,
350
],
[
350,
351
],
[
351,
352
],
[
342,
353
],
[
354,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
355,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
341,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
8,
372
],
[
372,
373
],
[
373,
374
],
[
6,
375
],
[
375,
376
],
[
0,
377
],
[
377,
378
],
[
377,
379
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intNum = scan.nextInt();\n\t\tint b;\n\t\tint f;\n\t\tint r;\n\t\tint v;\n\t\tint[][] intArray1 = new int[3][10];\n\t\tint[][] intArray2 = new int[3][10];\n\t\tint[][] intArray3 = new int[3][10];\n\t\tint[][] intArray4 = new int[3][10];\n\n\t\tfor(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intNum = scan.nextInt();\n\t\tint b;\n\t\tint f;\n\t\tint r;\n\t\tint v;\n\t\tint[][] intArray1 = new int[3][10];\n\t\tint[][] intArray2 = new int[3][10];\n\t\tint[][] intArray3 = new int[3][10];\n\t\tint[][] intArray4 = new int[3][10];\n\n\t\tfor(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intNum = scan.nextInt();\n\t\tint b;\n\t\tint f;\n\t\tint r;\n\t\tint v;\n\t\tint[][] intArray1 = new int[3][10];\n\t\tint[][] intArray2 = new int[3][10];\n\t\tint[][] intArray3 = new int[3][10];\n\t\tint[][] intArray4 = new int[3][10];\n\n\t\tfor(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intNum = scan.nextInt();\n\t\tint b;\n\t\tint f;\n\t\tint r;\n\t\tint v;\n\t\tint[][] intArray1 = new int[3][10];\n\t\tint[][] intArray2 = new int[3][10];\n\t\tint[][] intArray3 = new int[3][10];\n\t\tint[][] intArray4 = new int[3][10];\n\n\t\tfor(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int intNum = scan.nextInt();",
"intNum",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int b;",
"b",
"int f;",
"f",
"int r;",
"r",
"int v;",
"v",
"int[][] intArray1 = new int[3][10];",
"intArray1",
"new int[3][10]",
"3",
"10",
"int[][] intArray2 = new int[3][10];",
"intArray2",
"new int[3][10]",
"3",
"10",
"int[][] intArray3 = new int[3][10];",
"intArray3",
"new int[3][10]",
"3",
"10",
"int[][] intArray4 = new int[3][10];",
"intArray4",
"new int[3][10]",
"3",
"10",
"for(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intNum",
"i",
"intNum",
"i++",
"i++",
"i",
"{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}",
"{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}",
"b = scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"f = scan.nextInt()",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"r = scan.nextInt()",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"v = scan.nextInt()",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}",
"b == 1",
"b",
"1",
"{\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}",
"intArray1[f-1][r-1] = intArray1[f-1][r-1] += v",
"intArray1[f-1][r-1]",
"intArray1[f-1]",
"intArray1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"intArray1[f-1][r-1] += v",
"intArray1[f-1][r-1]",
"intArray1[f-1]",
"intArray1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}",
"b == 2",
"b",
"2",
"{\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}",
"intArray2[f-1][r-1] = intArray2[f-1][r-1] + v",
"intArray2[f-1][r-1]",
"intArray2[f-1]",
"intArray2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"intArray2[f-1][r-1] + v",
"intArray2[f-1][r-1]",
"intArray2[f-1]",
"intArray2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}",
"b == 3",
"b",
"3",
"{\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}",
"intArray3[f-1][r-1] = intArray3[f-1][r-1] + v",
"intArray3[f-1][r-1]",
"intArray3[f-1]",
"intArray3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"intArray3[f-1][r-1] + v",
"intArray3[f-1][r-1]",
"intArray3[f-1]",
"intArray3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}",
"b == 4",
"b",
"4",
"{\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}",
"intArray4[f-1][r-1] = intArray4[f-1][r-1] + v",
"intArray4[f-1][r-1]",
"intArray4[f-1]",
"intArray4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"intArray4[f-1][r-1] + v",
"intArray4[f-1][r-1]",
"intArray4[f-1]",
"intArray4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}",
"System.out.print(\" \" + intArray1[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + intArray1[i][j]",
"\" \"",
"intArray1[i][j]",
"intArray1[i]",
"intArray1",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}",
"System.out.print(\" \" + intArray2[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + intArray2[i][j]",
"\" \"",
"intArray2[i][j]",
"intArray2[i]",
"intArray2",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}",
"System.out.print(\" \" + intArray3[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + intArray3[i][j]",
"\" \"",
"intArray3[i][j]",
"intArray3[i]",
"intArray3",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}",
"System.out.print(\" \" + intArray4[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + intArray4[i][j]",
"\" \"",
"intArray4[i][j]",
"intArray4[i]",
"intArray4",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intNum = scan.nextInt();\n\t\tint b;\n\t\tint f;\n\t\tint r;\n\t\tint v;\n\t\tint[][] intArray1 = new int[3][10];\n\t\tint[][] intArray2 = new int[3][10];\n\t\tint[][] intArray3 = new int[3][10];\n\t\tint[][] intArray4 = new int[3][10];\n\n\t\tfor(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intNum = scan.nextInt();\n\t\tint b;\n\t\tint f;\n\t\tint r;\n\t\tint v;\n\t\tint[][] intArray1 = new int[3][10];\n\t\tint[][] intArray2 = new int[3][10];\n\t\tint[][] intArray3 = new int[3][10];\n\t\tint[][] intArray4 = new int[3][10];\n\n\t\tfor(int i = 0; i < intNum; i++){\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tintArray1[f-1][r-1] = intArray1[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tintArray2[f-1][r-1] = intArray2[f-1][r-1] + v;\n\t\t\t}else if(b == 3){\n\t\t\t\tintArray3[f-1][r-1] = intArray3[f-1][r-1] + v;\n\t\t\t}else if(b == 4){\n\t\t\t\tintArray4[f-1][r-1] = intArray4[f-1][r-1] + v;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tfor(int j = 0; j < 10; j++){\n\t\t\t\tSystem.out.print(\" \" + intArray4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int intNum = scan.nextInt();
int b;
int f;
int r;
int v;
int[][] intArray1 = new int[3][10];
int[][] intArray2 = new int[3][10];
int[][] intArray3 = new int[3][10];
int[][] intArray4 = new int[3][10];
for(int i = 0; i < intNum; i++){
b = scan.nextInt();
f = scan.nextInt();
r = scan.nextInt();
v = scan.nextInt();
if(b == 1){
intArray1[f-1][r-1] = intArray1[f-1][r-1] += v;
}else if(b == 2){
intArray2[f-1][r-1] = intArray2[f-1][r-1] + v;
}else if(b == 3){
intArray3[f-1][r-1] = intArray3[f-1][r-1] + v;
}else if(b == 4){
intArray4[f-1][r-1] = intArray4[f-1][r-1] + v;
}
}
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++){
System.out.print(" " + intArray1[i][j]);
}
System.out.println();
}
System.out.println("####################");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++){
System.out.print(" " + intArray2[i][j]);
}
System.out.println();
}
System.out.println("####################");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++){
System.out.print(" " + intArray3[i][j]);
}
System.out.println();
}
System.out.println("####################");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++){
System.out.print(" " + intArray4[i][j]);
}
System.out.println();
}
scan.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,
4,
18,
13,
41,
13,
20,
17,
17,
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,
4,
18,
13,
18,
18,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
231,
17
],
[
231,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
64,
72
],
[
20,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
88,
93
],
[
85,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
85,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
106,
113
],
[
85,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
116,
123
],
[
85,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
85,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
132,
140
],
[
20,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
187,
193
],
[
166,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
153,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
204,
212
],
[
212,
213
],
[
213,
214
],
[
204,
215
],
[
216,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
203,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
18,
228
],
[
228,
229
],
[
0,
230
],
[
230,
231
],
[
230,
232
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.HashMap;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][][] person = new int[4][3][10];\n\t\tfor(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n//\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\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.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][][] person = new int[4][3][10];\n\t\tfor(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n//\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\n}",
"Main",
"/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][][] person = new int[4][3][10];\n\t\tfor(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n//\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][][] person = new int[4][3][10];\n\t\tfor(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n//\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][][] person = new int[4][3][10];",
"person",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}",
"{\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}",
"Arrays.fill(person[i][j], 0)",
"Arrays.fill",
"Arrays",
"person[i][j]",
"person[i]",
"person",
"i",
"j",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}",
"{\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}",
"String[] tmpArray = br.readLine().split(\" \");",
"tmpArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int b = Integer.parseInt(tmpArray[0])-1;",
"b",
"Integer.parseInt(tmpArray[0])-1",
"Integer.parseInt(tmpArray[0])",
"Integer.parseInt",
"Integer",
"tmpArray[0]",
"tmpArray",
"0",
"1",
"int f = Integer.parseInt(tmpArray[1])-1;",
"f",
"Integer.parseInt(tmpArray[1])-1",
"Integer.parseInt(tmpArray[1])",
"Integer.parseInt",
"Integer",
"tmpArray[1]",
"tmpArray",
"1",
"1",
"int r = Integer.parseInt(tmpArray[2])-1;",
"r",
"Integer.parseInt(tmpArray[2])-1",
"Integer.parseInt(tmpArray[2])",
"Integer.parseInt",
"Integer",
"tmpArray[2]",
"tmpArray",
"2",
"1",
"int v = Integer.parseInt(tmpArray[3]);",
"v",
"Integer.parseInt(tmpArray[3])",
"Integer.parseInt",
"Integer",
"tmpArray[3]",
"tmpArray",
"3",
"person[b][f][r] += v",
"person[b][f][r]",
"person[b][f]",
"person[b]",
"person",
"b",
"f",
"r",
"v",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \"+person[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+person[i][j][k]",
"\" \"",
"person[i][j][k]",
"person[i][j]",
"person[i]",
"person",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 20",
"j",
"20",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][][] person = new int[4][3][10];\n\t\tfor(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n//\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][][] person = new int[4][3][10];\n\t\tfor(int i = 0;i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tArrays.fill(person[i][j], 0);\n\t\t\t}\n\t\t}\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tperson[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+person[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tfor(int j = 0; j < 20; j++){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n//\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// String[] tmpArray = br.readLine().split(" ");
int n = Integer.parseInt(br.readLine());
// int b = Integer.parseInt(tmpArray[1]);
// int c = Integer.parseInt(tmpArray[2]);
// int y = Integer.parseInt(tmpArray[3]);
// int r = Integer.parseInt(tmpArray[4]);
int[][][] person = new int[4][3][10];
for(int i = 0;i < 4; i++){
for(int j = 0; j < 3; j++){
Arrays.fill(person[i][j], 0);
}
}
//String[] tmpArray = br.readLine().split(" ");
//int[] input = new int[n];
for(int i = 0; i < n; i++){
String[] tmpArray = br.readLine().split(" ");
int b = Integer.parseInt(tmpArray[0])-1;
int f = Integer.parseInt(tmpArray[1])-1;
int r = Integer.parseInt(tmpArray[2])-1;
int v = Integer.parseInt(tmpArray[3]);
person[b][f][r] += v;
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
System.out.print(" "+person[i][j][k]);
}
System.out.println();
}
if(i != 3){
for(int j = 0; j < 20; j++){
System.out.print("#");
}
System.out.println();
}
}
//
// System.out.print(input[0]);
// for(int i = 1 ; i < n; i++){
// System.out.print(" "+ input[i]);
// }
// System.out.println();
////
// Arrays.sort(input);
// System.out.printf("%d %d %d\n", input[0], input[input.length - 1], sum);
//
// while(true){
// String[] tmpArray = br.readLine().split(" ");
// int a = Integer.parseInt(tmpArray[0]);
// int b = Integer.parseInt(tmpArray[1]);
// if(a == 0 && b == 0){
// break;
// }
//
// for(int i = 0; i < a; i++){
// for(int j = 0; j < b; j++){
// if((i + j)%2 == 1){
// System.out.print(".");
// }
// else{
// System.out.print("#");
// }
// }
// System.out.println();
// }
// System.out.println();
// }
// int[] array = new int[3];
// array[0] = a; array[1] = b; array[2] = c;
//
// Arrays.sort(array);
// System.out.printf("%d %d %d\n", array[0], array[1], array[2]);
/*
if(a < b && b < c){
System.out.println("Yes");
}
else{
System.out.println("No");
}*/
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
17,
17,
13,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
17,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
248,
5
],
[
248,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
18,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
33,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
50,
64
],
[
64,
65
],
[
65,
66
],
[
50,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
69,
77
],
[
8,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
8,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
101,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
101,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
115,
122
],
[
101,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
125,
132
],
[
101,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
135,
142
],
[
101,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
148,
150
],
[
101,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
151,
159
],
[
8,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
167,
169
],
[
160,
170
],
[
170,
171
],
[
171,
172
],
[
160,
173
],
[
174,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
175,
187
],
[
187,
188
],
[
188,
189
],
[
175,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
199,
205
],
[
192,
206
],
[
206,
207
],
[
207,
208
],
[
192,
209
],
[
210,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
218,
224
],
[
191,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
174,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
6,
245
],
[
245,
246
],
[
0,
247
],
[
247,
248
],
[
247,
249
]
] | [
"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[][][] house = new int[4][3][10];\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}\n\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}\n\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}\n\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}\n\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"for (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < house.length",
"i",
"house.length",
"house",
"house.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"for (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < house[0].length",
"j",
"house[0].length",
"house[0]",
"house",
"0",
"house[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}",
"for (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < house[0][0].length",
"k",
"house[0][0].length",
"house[0][0]",
"house[0]",
"house",
"0",
"0",
"house[0][0].length",
"k++",
"k++",
"k",
"{\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}",
"house[i][j][k] = 0",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"0",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"for (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}",
"{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] array = line2.split(\" \");",
"array",
"line2.split(\" \")",
"line2.split",
"line2",
"\" \"",
"int b = Integer.parseInt(array[0]) - 1;",
"b",
"Integer.parseInt(array[0]) - 1",
"Integer.parseInt(array[0])",
"Integer.parseInt",
"Integer",
"array[0]",
"array",
"0",
"1",
"int f = Integer.parseInt(array[1]) - 1;",
"f",
"Integer.parseInt(array[1]) - 1",
"Integer.parseInt(array[1])",
"Integer.parseInt",
"Integer",
"array[1]",
"array",
"1",
"1",
"int r = Integer.parseInt(array[2]) - 1;",
"r",
"Integer.parseInt(array[2]) - 1",
"Integer.parseInt(array[2])",
"Integer.parseInt",
"Integer",
"array[2]",
"array",
"2",
"1",
"int v = Integer.parseInt(array[3]);",
"v",
"Integer.parseInt(array[3])",
"Integer.parseInt",
"Integer",
"array[3]",
"array",
"3",
"house[b][f][r] += v",
"house[b][f][r]",
"house[b][f]",
"house[b]",
"house",
"b",
"f",
"r",
"v",
"for (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < house.length",
"i",
"house.length",
"house",
"house.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}",
"for (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < house[0].length",
"j",
"house[0].length",
"house[0]",
"house",
"0",
"house[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < house[0][0].length",
"k",
"house[0][0].length",
"house[0][0]",
"house[0]",
"house",
"0",
"0",
"house[0][0].length",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + house[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}",
"i < house.length - 1",
"i",
"house.length - 1",
"house.length",
"house",
"house.length",
"1",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"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[][][] house = new int[4][3][10];\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}\n\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[][][] house = new int[4][3][10];\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\thouse[i][j][k] = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tString[] array = line2.split(\" \");\n\t\t\tint b = Integer.parseInt(array[0]) - 1;\n\t\t\tint f = Integer.parseInt(array[1]) - 1;\n\t\t\tint r = Integer.parseInt(array[2]) - 1;\n\t\t\tint v = Integer.parseInt(array[3]);\n\n\t\t\thouse[b][f][r] += v;\n\n\t\t}\n\n\t\tfor (int i = 0; i < house.length; i++) {\n\t\t\tfor (int j = 0; j < house[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < house[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < house.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[][][] house = new int[4][3][10];
for (int i = 0; i < house.length; i++) {
for (int j = 0; j < house[0].length; j++) {
for (int k = 0; k < house[0][0].length; k++) {
house[i][j][k] = 0;
}
}
}
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
for (int i = 0; i < n; i++) {
String line2 = sc.nextLine();
String[] array = line2.split(" ");
int b = Integer.parseInt(array[0]) - 1;
int f = Integer.parseInt(array[1]) - 1;
int r = Integer.parseInt(array[2]) - 1;
int v = Integer.parseInt(array[3]);
house[b][f][r] += v;
}
for (int i = 0; i < house.length; i++) {
for (int j = 0; j < house[0].length; j++) {
for (int k = 0; k < house[0][0].length; k++) {
System.out.print(" " + house[i][j][k]);
}
System.out.println();
}
if (i < house.length - 1) {
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
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,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
156,
5
],
[
156,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
47,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
79,
81
],
[
68,
82
],
[
8,
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
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
108,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
95,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
6,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint[][][] house = new int[4][3][10];\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint[][][] house = new int[4][3][10];\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint[][][] house = new int[4][3][10];\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint[][][] house = new int[4][3][10];\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int count = scan.nextInt();",
"count",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"int b = 0;",
"b",
"0",
"int f = 0;",
"f",
"0",
"int r = 0;",
"r",
"0",
"int v = 0;",
"v",
"0",
"for(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}",
"{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}",
"b = scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"f = scan.nextInt()",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"r = scan.nextInt()",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"v = scan.nextInt()",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"house[b - 1][f - 1][r - 1]+= v",
"house[b - 1][f - 1][r - 1]",
"house[b - 1][f - 1]",
"house[b - 1]",
"house",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"for(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + house[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + house[i][j][k]",
"\" \"",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint[][][] house = new int[4][3][10];\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint[][][] house = new int[4][3][10];\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tb = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\thouse[b - 1][f - 1][r - 1]+= v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 3;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 0;k < 10;k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + house[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int count = scan.nextInt();
int[][][] house = new int[4][3][10];
int b = 0;
int f = 0;
int r = 0;
int v = 0;
for(int i = 0;i < count;i++)
{
b = scan.nextInt();
f = scan.nextInt();
r = scan.nextInt();
v = scan.nextInt();
house[b - 1][f - 1][r - 1]+= v;
}
for(int i = 0;i < 4;i++)
{
for(int j = 0;j < 3;j++)
{
for(int k = 0;k < 10;k++)
{
System.out.print(" " + house[i][j][k]);
}
System.out.println("");
}
if(i != 3)
{
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
2,
18,
18,
18,
13,
13,
13,
13,
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,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
18,
18,
18,
13,
13,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
218,
5
],
[
218,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
8,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
86,
90
],
[
83,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
93,
97
],
[
83,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
100,
104
],
[
83,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
83,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
118,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
152,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
159,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
182,
188
],
[
172,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
196,
202
],
[
195,
203
],
[
139,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
6,
215
],
[
215,
216
],
[
0,
217
],
[
217,
218
],
[
217,
219
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] [] [] buidings = new int[4][3][10];\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }\n for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] [] [] buidings = new int[4][3][10];\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }\n for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] [] [] buidings = new int[4][3][10];\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }\n for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] [] [] buidings = new int[4][3][10];\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }\n for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int [] [] [] buidings = new int[4][3][10];",
"buidings",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }",
"{\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }",
"for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f< 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }",
"{\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }",
"for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n buidings [b] [f] [r] = 0;\n }",
"{\n buidings [b] [f] [r] = 0;\n }",
"buidings [b] [f] [r] = 0",
"buidings [b] [f] [r]",
"buidings [b] [f]",
"buidings [b]",
"buidings",
"b",
"f",
"r",
"0",
"for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x <n",
"x",
"n",
"x++",
"x++",
"x",
"{\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }",
"{\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }",
"int b = scan.nextInt() - 1;",
"b",
"scan.nextInt() - 1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"int f = scan.nextInt() - 1;",
"f",
"scan.nextInt() - 1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"int r = scan.nextInt() - 1;",
"r",
"scan.nextInt() - 1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"int v = scan.nextInt();",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"buidings [b] [f] [r] = buidings [b] [f] [r] + v",
"buidings [b] [f] [r]",
"buidings [b] [f]",
"buidings [b]",
"buidings",
"b",
"f",
"r",
"buidings [b] [f] [r] + v",
"buidings [b] [f] [r]",
"buidings [b] [f]",
"buidings [b]",
"buidings",
"b",
"f",
"r",
"v",
"for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < 4",
"b",
"4",
"b++",
"b++",
"b",
"{\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }",
"{\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }",
"for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f< 3",
"f",
"3",
"f++",
"f++",
"f",
"{\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }",
"{\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < 10",
"r",
"10",
"r++",
"r++",
"r",
"{\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }",
"{\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }",
"if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }",
"r == 9",
"r",
"9",
"{\n System.out.println(buidings [b] [f] [r]);\n }",
"System.out.println(buidings [b] [f] [r])",
"System.out.println",
"System.out",
"System",
"System.out",
"buidings [b] [f] [r]",
"buidings [b] [f]",
"buidings [b]",
"buidings",
"b",
"f",
"r",
"{\n System.out.print(buidings[b][f][r] + \" \");\n }",
"System.out.print(buidings[b][f][r] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"buidings[b][f][r] + \" \"",
"buidings[b][f][r]",
"buidings[b][f]",
"buidings[b]",
"buidings",
"b",
"f",
"r",
"\" \"",
"if(b < 3) {\n System.out.println(\"####################\");\n }",
"b < 3",
"b",
"3",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] [] [] buidings = new int[4][3][10];\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }\n for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] [] [] buidings = new int[4][3][10];\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n for(int r = 0; r < 10; r++){\n buidings [b] [f] [r] = 0;\n }\n }\n }\n for(int x = 0; x <n; x++){\n int b = scan.nextInt() - 1;\n int f = scan.nextInt() - 1;\n int r = scan.nextInt() - 1;\n int v = scan.nextInt();\n buidings [b] [f] [r] = buidings [b] [f] [r] + v;\n }\n for(int b = 0; b < 4; b++){\n for(int f = 0; f< 3; f++){\n System.out.print(\" \");\n for(int r = 0; r < 10; r++){\n if(r == 9){\n System.out.println(buidings [b] [f] [r]);\n }\n else {\n System.out.print(buidings[b][f][r] + \" \");\n }\n }\n }\n if(b < 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int [] [] [] buidings = new int[4][3][10];
for(int b = 0; b < 4; b++){
for(int f = 0; f< 3; f++){
for(int r = 0; r < 10; r++){
buidings [b] [f] [r] = 0;
}
}
}
for(int x = 0; x <n; x++){
int b = scan.nextInt() - 1;
int f = scan.nextInt() - 1;
int r = scan.nextInt() - 1;
int v = scan.nextInt();
buidings [b] [f] [r] = buidings [b] [f] [r] + v;
}
for(int b = 0; b < 4; b++){
for(int f = 0; f< 3; f++){
System.out.print(" ");
for(int r = 0; r < 10; r++){
if(r == 9){
System.out.println(buidings [b] [f] [r]);
}
else {
System.out.print(buidings[b][f][r] + " ");
}
}
}
if(b < 3) {
System.out.println("####################");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
40,
17,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
40,
13,
9,
41,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
35,
13,
34,
17,
1,
4,
18,
13,
13,
13,
13,
3,
34,
17,
1,
4,
18,
13,
13,
13,
13,
3,
34,
17,
1,
4,
18,
13,
13,
13,
13,
3,
34,
17,
1,
4,
18,
13,
13,
13,
13,
3,
14,
2,
13,
13,
30,
4,
18,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
0,
13,
17,
9,
40,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
20,
13,
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,
0,
18,
18,
13,
13,
13,
17,
23,
13,
12,
13,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
2,
13,
17,
13,
17,
14,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
2,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
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
],
[
376,
11
],
[
376,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
15,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
33,
42
],
[
42,
43
],
[
42,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
33,
48
],
[
48,
49
],
[
48,
50
],
[
33,
51
],
[
51,
52
],
[
51,
53
],
[
33,
54
],
[
54,
55
],
[
54,
56
],
[
33,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
70,
77
],
[
77,
78
],
[
70,
79
],
[
65,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
65,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
65,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
65,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
65,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
65,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
124,
129
],
[
123,
130
],
[
119,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
134,
138
],
[
134,
139
],
[
133,
140
],
[
119,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
144,
148
],
[
144,
149
],
[
143,
150
],
[
119,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
154,
158
],
[
154,
159
],
[
153,
160
],
[
65,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
165,
175
],
[
175,
176
],
[
176,
177
],
[
165,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
165,
184
],
[
184,
185
],
[
185,
186
],
[
165,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
165,
193
],
[
193,
194
],
[
194,
195
],
[
165,
196
],
[
196,
197
],
[
196,
198
],
[
165,
199
],
[
65,
200
],
[
200,
201
],
[
33,
202
],
[
202,
203
],
[
203,
204
],
[
12,
205
],
[
205,
206
],
[
0,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
207,
211
],
[
211,
212
],
[
211,
213
],
[
207,
214
],
[
214,
215
],
[
214,
216
],
[
207,
217
],
[
217,
218
],
[
207,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
225,
227
],
[
221,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
230,
241
],
[
242,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
248,
249
],
[
248,
250
],
[
243,
251
],
[
251,
252
],
[
252,
253
],
[
243,
254
],
[
255,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
256,
262
],
[
219,
263
],
[
263,
264
],
[
207,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
272,
274
],
[
269,
275
],
[
275,
276
],
[
275,
277
],
[
268,
278
],
[
267,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
284,
286
],
[
281,
287
],
[
287,
288
],
[
287,
289
],
[
280,
290
],
[
279,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
296,
298
],
[
293,
299
],
[
292,
300
],
[
267,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
306,
308
],
[
303,
309
],
[
309,
310
],
[
309,
311
],
[
302,
312
],
[
301,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
318,
320
],
[
315,
321
],
[
314,
322
],
[
265,
323
],
[
323,
324
],
[
265,
325
],
[
325,
326
],
[
265,
327
],
[
327,
328
],
[
207,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
332,
337
],
[
337,
338
],
[
337,
339
],
[
332,
340
],
[
340,
341
],
[
341,
342
],
[
332,
343
],
[
344,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
345,
353
],
[
353,
354
],
[
354,
355
],
[
345,
356
],
[
357,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
344,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
0,
375
],
[
375,
376
],
[
375,
377
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\n\npublic class Main {\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}\n\nclass OfficialHouse {\n // ********************************\n // ?????£?????????\n // ********************************\n int buildingNumber;\n int floorNumber = 3;\n int roomNumber = 10;\n int[][] residentCount;\n \n // ********************************\n // ?????????????????????\n // ********************************\n OfficialHouse(int bN) {\n // ?£???????????±????\n buildingNumber = bN;\n \n // ??\\?±??????????????????????????????????\n residentCount = new int[floorNumber][roomNumber];\n \n // ??????????????\\?±??????°??????????????????\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }\n }\n \n // *******************************\n // ????????????\n // *******************************\n // ??\\?±?????????????\n public void managementResident(int fN, int rN, int rC) {\n residentCount[fN-1][rN-1] += rC;\n \n // ??\\?±???????0?????????????????´??????0??§??¢??????\n if(residentCount[fN-1][rN-1] < 0) {\n residentCount[fN-1][rN] = 0;\n }\n \n // ??\\?±???????10?????\\??????????????´??????9????????????\n if(residentCount[fN-1][rN-1] > 9) {\n residentCount[fN-1][rN] = 9;\n }\n }\n \n // ??\\?±?????????¨???\n public void showResidentCount() {\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }",
"main",
"{\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }",
"try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }",
"catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }",
"Exception e",
"{\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"e.getStackTrace()",
"e.getStackTrace",
"e",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"{\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n }",
"BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));",
"stdReader",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int count = 0;",
"count",
"0",
"int n = 0;",
"n",
"0",
"OfficialHouse oH1 = new OfficialHouse(1);",
"oH1",
"new OfficialHouse(1)",
"OfficialHouse oH2 = new OfficialHouse(2);",
"oH2",
"new OfficialHouse(2)",
"OfficialHouse oH3 = new OfficialHouse(3);",
"oH3",
"new OfficialHouse(3)",
"OfficialHouse oH4 = new OfficialHouse(4);",
"oH4",
"new OfficialHouse(4)",
"while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }",
"(line = stdReader.readLine()) != null",
"(line = stdReader.readLine())",
"line",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }",
"if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }",
"count == 0",
"count",
"0",
"{\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }",
"n = Integer.parseInt(line)",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"count++",
"count",
"continue;",
"String[] inData = line.split(\" \", 0);",
"inData",
"line.split(\" \", 0)",
"line.split",
"line",
"\" \"",
"0",
"int b = Integer.parseInt(inData[0]);",
"b",
"Integer.parseInt(inData[0])",
"Integer.parseInt",
"Integer",
"inData[0]",
"inData",
"0",
"int f = Integer.parseInt(inData[1]);",
"f",
"Integer.parseInt(inData[1])",
"Integer.parseInt",
"Integer",
"inData[1]",
"inData",
"1",
"int r = Integer.parseInt(inData[2]);",
"r",
"Integer.parseInt(inData[2])",
"Integer.parseInt",
"Integer",
"inData[2]",
"inData",
"2",
"int v = Integer.parseInt(inData[3]);",
"v",
"Integer.parseInt(inData[3])",
"Integer.parseInt",
"Integer",
"inData[3]",
"inData",
"3",
"switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }",
"b",
"case 1:",
"1",
"case 1:",
"oH1.managementResident(f, r, v)",
"oH1.managementResident",
"oH1",
"f",
"r",
"v",
"break;",
"case 2:",
"2",
"case 2:",
"oH2.managementResident(f, r, v)",
"oH2.managementResident",
"oH2",
"f",
"r",
"v",
"break;",
"case 3:",
"3",
"case 3:",
"oH3.managementResident(f, r, v)",
"oH3.managementResident",
"oH3",
"f",
"r",
"v",
"break;",
"case 4:",
"4",
"case 4:",
"oH4.managementResident(f, r, v)",
"oH4.managementResident",
"oH4",
"f",
"r",
"v",
"break;",
"if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }",
"count == n",
"count",
"n",
"{\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }",
"oH1.showResidentCount()",
"oH1.showResidentCount",
"oH1",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"oH2.showResidentCount()",
"oH2.showResidentCount",
"oH2",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"oH3.showResidentCount()",
"oH3.showResidentCount",
"oH3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"oH4.showResidentCount()",
"oH4.showResidentCount",
"oH4",
"count = 0",
"count",
"0",
"continue;",
"count++",
"count",
"stdReader.close()",
"stdReader.close",
"stdReader",
"String[] args",
"args",
"class OfficialHouse {\n // ********************************\n // ?????£?????????\n // ********************************\n int buildingNumber;\n int floorNumber = 3;\n int roomNumber = 10;\n int[][] residentCount;\n \n // ********************************\n // ?????????????????????\n // ********************************\n OfficialHouse(int bN) {\n // ?£???????????±????\n buildingNumber = bN;\n \n // ??\\?±??????????????????????????????????\n residentCount = new int[floorNumber][roomNumber];\n \n // ??????????????\\?±??????°??????????????????\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }\n }\n \n // *******************************\n // ????????????\n // *******************************\n // ??\\?±?????????????\n public void managementResident(int fN, int rN, int rC) {\n residentCount[fN-1][rN-1] += rC;\n \n // ??\\?±???????0?????????????????´??????0??§??¢??????\n if(residentCount[fN-1][rN-1] < 0) {\n residentCount[fN-1][rN] = 0;\n }\n \n // ??\\?±???????10?????\\??????????????´??????9????????????\n if(residentCount[fN-1][rN-1] > 9) {\n residentCount[fN-1][rN] = 9;\n }\n }\n \n // ??\\?±?????????¨???\n public void showResidentCount() {\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }\n }\n}",
"OfficialHouse",
"// ********************************\n // ?????£?????????\n // ********************************\n int buildingNumber;",
"buildingNumber",
"int floorNumber = 3;",
"floorNumber",
"3",
"int roomNumber = 10;",
"roomNumber",
"10",
"int[][] residentCount;",
"residentCount",
"// ********************************\n // ?????????????????????\n // ********************************\n OfficialHouse(int bN) {\n // ?£???????????±????\n buildingNumber = bN;\n \n // ??\\?±??????????????????????????????????\n residentCount = new int[floorNumber][roomNumber];\n \n // ??????????????\\?±??????°??????????????????\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }\n }",
"OfficialHouse",
"{\n // ?£???????????±????\n buildingNumber = bN;\n \n // ??\\?±??????????????????????????????????\n residentCount = new int[floorNumber][roomNumber];\n \n // ??????????????\\?±??????°??????????????????\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }\n }",
"buildingNumber = bN",
"buildingNumber",
"bN",
"residentCount = new int[floorNumber][roomNumber]",
"residentCount",
"new int[floorNumber][roomNumber]",
"floorNumber",
"roomNumber",
"for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < floorNumber",
"f",
"floorNumber",
"f++",
"f++",
"f",
"{\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }",
"{\n for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }\n }",
"for(int r = 0; r < roomNumber; r++) {\n residentCount[f][r] = 0;\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < roomNumber",
"r",
"roomNumber",
"r++",
"r++",
"r",
"{\n residentCount[f][r] = 0;\n }",
"{\n residentCount[f][r] = 0;\n }",
"residentCount[f][r] = 0",
"residentCount[f][r]",
"residentCount[f]",
"residentCount",
"f",
"r",
"0",
"int bN",
"bN",
"// *******************************\n // ????????????\n // *******************************\n // ??\\?±?????????????\n public void managementResident(int fN, int rN, int rC) {\n residentCount[fN-1][rN-1] += rC;\n \n // ??\\?±???????0?????????????????´??????0??§??¢??????\n if(residentCount[fN-1][rN-1] < 0) {\n residentCount[fN-1][rN] = 0;\n }\n \n // ??\\?±???????10?????\\??????????????´??????9????????????\n if(residentCount[fN-1][rN-1] > 9) {\n residentCount[fN-1][rN] = 9;\n }\n }",
"managementResident",
"{\n residentCount[fN-1][rN-1] += rC;\n \n // ??\\?±???????0?????????????????´??????0??§??¢??????\n if(residentCount[fN-1][rN-1] < 0) {\n residentCount[fN-1][rN] = 0;\n }\n \n // ??\\?±???????10?????\\??????????????´??????9????????????\n if(residentCount[fN-1][rN-1] > 9) {\n residentCount[fN-1][rN] = 9;\n }\n }",
"residentCount[fN-1][rN-1] += rC",
"residentCount[fN-1][rN-1]",
"residentCount[fN-1]",
"residentCount",
"fN-1",
"fN",
"1",
"rN-1",
"rN",
"1",
"rC",
"if(residentCount[fN-1][rN-1] < 0) {\n residentCount[fN-1][rN] = 0;\n }",
"residentCount[fN-1][rN-1] < 0",
"residentCount[fN-1][rN-1]",
"residentCount[fN-1]",
"residentCount",
"fN-1",
"fN",
"1",
"rN-1",
"rN",
"1",
"0",
"{\n residentCount[fN-1][rN] = 0;\n }",
"residentCount[fN-1][rN] = 0",
"residentCount[fN-1][rN]",
"residentCount[fN-1]",
"residentCount",
"fN-1",
"fN",
"1",
"rN",
"0",
"if(residentCount[fN-1][rN-1] > 9) {\n residentCount[fN-1][rN] = 9;\n }",
"residentCount[fN-1][rN-1] > 9",
"residentCount[fN-1][rN-1]",
"residentCount[fN-1]",
"residentCount",
"fN-1",
"fN",
"1",
"rN-1",
"rN",
"1",
"9",
"{\n residentCount[fN-1][rN] = 9;\n }",
"residentCount[fN-1][rN] = 9",
"residentCount[fN-1][rN]",
"residentCount[fN-1]",
"residentCount",
"fN-1",
"fN",
"1",
"rN",
"9",
"int fN",
"fN",
"int rN",
"rN",
"int rC",
"rC",
"// ??\\?±?????????¨???\n public void showResidentCount() {\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }\n }",
"showResidentCount",
"{\n for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }\n }",
"for(int f = 0; f < floorNumber; f++) {\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < floorNumber",
"f",
"floorNumber",
"f++",
"f++",
"f",
"{\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }",
"{\n for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }\n System.out.println();\n }",
"for(int r = 0; r < roomNumber; r++) {\n System.out.print(\" \" + residentCount[f][r]);\n \n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < roomNumber",
"r",
"roomNumber",
"r++",
"r++",
"r",
"{\n System.out.print(\" \" + residentCount[f][r]);\n \n }",
"{\n System.out.print(\" \" + residentCount[f][r]);\n \n }",
"System.out.print(\" \" + residentCount[f][r])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + residentCount[f][r]",
"\" \"",
"residentCount[f][r]",
"residentCount[f]",
"residentCount",
"f",
"r",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"public class Main {\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n int count = 0;\n int n = 0;\n \n // ????????????????????????????????????\n OfficialHouse oH1 = new OfficialHouse(1);\n OfficialHouse oH2 = new OfficialHouse(2);\n OfficialHouse oH3 = new OfficialHouse(3);\n OfficialHouse oH4 = new OfficialHouse(4);\n \n while((line = stdReader.readLine()) != null) {\n // ****************************************\n // ???????????????????????°\n // ****************************************\n if(count == 0) {\n n = Integer.parseInt(line);\n \n count++;\n continue;\n }\n // ****************************************\n // ???????????\\??????????????????????¨?\n // ****************************************\n String[] inData = line.split(\" \", 0);\n // ?£???????\n int b = Integer.parseInt(inData[0]);\n // ???\n int f = Integer.parseInt(inData[1]);\n // ??¨?±???????\n int r = Integer.parseInt(inData[2]);\n // ?????°\n int v = Integer.parseInt(inData[3]);\n \n // ?£?????????§??????\n switch(b) {\n case 1:\n oH1.managementResident(f, r, v);\n break;\n case 2:\n oH2.managementResident(f, r, v);\n break;\n case 3:\n oH3.managementResident(f, r, v);\n break;\n case 4:\n oH4.managementResident(f, r, v);\n break;\n }\n \n if(count == n) {\n oH1.showResidentCount();\n System.out.println(\"####################\");\n oH2.showResidentCount();\n System.out.println(\"####################\");\n oH3.showResidentCount();\n System.out.println(\"####################\");\n oH4.showResidentCount();\n \n count = 0;\n continue;\n }\n \n count++;\n \n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
try {
BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
String line;
int count = 0;
int n = 0;
// ????????????????????????????????????
OfficialHouse oH1 = new OfficialHouse(1);
OfficialHouse oH2 = new OfficialHouse(2);
OfficialHouse oH3 = new OfficialHouse(3);
OfficialHouse oH4 = new OfficialHouse(4);
while((line = stdReader.readLine()) != null) {
// ****************************************
// ???????????????????????°
// ****************************************
if(count == 0) {
n = Integer.parseInt(line);
count++;
continue;
}
// ****************************************
// ???????????\??????????????????????¨?
// ****************************************
String[] inData = line.split(" ", 0);
// ?£???????
int b = Integer.parseInt(inData[0]);
// ???
int f = Integer.parseInt(inData[1]);
// ??¨?±???????
int r = Integer.parseInt(inData[2]);
// ?????°
int v = Integer.parseInt(inData[3]);
// ?£?????????§??????
switch(b) {
case 1:
oH1.managementResident(f, r, v);
break;
case 2:
oH2.managementResident(f, r, v);
break;
case 3:
oH3.managementResident(f, r, v);
break;
case 4:
oH4.managementResident(f, r, v);
break;
}
if(count == n) {
oH1.showResidentCount();
System.out.println("####################");
oH2.showResidentCount();
System.out.println("####################");
oH3.showResidentCount();
System.out.println("####################");
oH4.showResidentCount();
count = 0;
continue;
}
count++;
}
stdReader.close();
} catch(Exception e) {
System.out.println(e);
e.getStackTrace();
System.exit(-1);
}
}
}
class OfficialHouse {
// ********************************
// ?????£?????????
// ********************************
int buildingNumber;
int floorNumber = 3;
int roomNumber = 10;
int[][] residentCount;
// ********************************
// ?????????????????????
// ********************************
OfficialHouse(int bN) {
// ?£???????????±????
buildingNumber = bN;
// ??\?±??????????????????????????????????
residentCount = new int[floorNumber][roomNumber];
// ??????????????\?±??????°??????????????????
for(int f = 0; f < floorNumber; f++) {
for(int r = 0; r < roomNumber; r++) {
residentCount[f][r] = 0;
}
}
}
// *******************************
// ????????????
// *******************************
// ??\?±?????????????
public void managementResident(int fN, int rN, int rC) {
residentCount[fN-1][rN-1] += rC;
// ??\?±???????0?????????????????´??????0??§??¢??????
if(residentCount[fN-1][rN-1] < 0) {
residentCount[fN-1][rN] = 0;
}
// ??\?±???????10?????\??????????????´??????9????????????
if(residentCount[fN-1][rN-1] > 9) {
residentCount[fN-1][rN] = 9;
}
}
// ??\?±?????????¨???
public void showResidentCount() {
for(int f = 0; f < floorNumber; f++) {
for(int r = 0; r < roomNumber; r++) {
System.out.print(" " + residentCount[f][r]);
}
System.out.println();
}
}
} |
[
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,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
18,
18,
18,
13,
13,
13,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
14,
2,
13,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
14,
2,
13,
2,
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
],
[
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
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
28,
40
],
[
40,
41
],
[
28,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
28,
46
],
[
46,
47
],
[
28,
48
],
[
48,
49
],
[
28,
50
],
[
50,
51
],
[
50,
52
],
[
28,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
71,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
68,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
89,
96
],
[
68,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
99,
106
],
[
68,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
68,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
117,
125
],
[
68,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
68,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
143,
149
],
[
142,
150
],
[
28,
151
],
[
151,
152
],
[
28,
153
],
[
153,
154
],
[
28,
155
],
[
155,
156
],
[
28,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
157,
167
],
[
167,
168
],
[
168,
169
],
[
157,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
171,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
184,
186
],
[
177,
187
],
[
187,
188
],
[
188,
189
],
[
177,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
191,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
197,
207
],
[
207,
208
],
[
208,
209
],
[
197,
210
],
[
211,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
191,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
222,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
171,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
236,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
245,
250
],
[
12,
251
],
[
251,
252
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, b, r, f, v;\n\t\t\tint[][][] hoge = new int[4][3][10];\n\t\t\tfor (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}\n\n\t\t\tint x, y, z;\n\t\t\tfor (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, b, r, f, v;\n\t\t\tint[][][] hoge = new int[4][3][10];\n\t\t\tfor (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}\n\n\t\t\tint x, y, z;\n\t\t\tfor (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, b, r, f, v;\n\t\t\tint[][][] hoge = new int[4][3][10];\n\t\t\tfor (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}\n\n\t\t\tint x, y, z;\n\t\t\tfor (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, b, r, f, v;\n\t\t\tint[][][] hoge = new int[4][3][10];\n\t\t\tfor (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}\n\n\t\t\tint x, y, z;\n\t\t\tfor (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, b, r, f, v;\n\t\t\tint[][][] hoge = new int[4][3][10];\n\t\t\tfor (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}\n\n\t\t\tint x, y, z;\n\t\t\tfor (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, b, r, f, v;\n\t\t\tint[][][] hoge = new int[4][3][10];\n\t\t\tfor (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}\n\n\t\t\tint x, y, z;\n\t\t\tfor (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"int num = Integer.parseInt(input);",
"num",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"int i",
"i",
"b",
"b",
"r",
"r",
"f",
"f",
"v;",
"v",
"int[][][] hoge = new int[4][3][10];",
"hoge",
"new int[4][3][10]",
"4",
"3",
"10",
"for (i = 0; i < num; i++) {\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}",
"{\n\t\t\t\tString[] list = br.readLine().split(\" \");\n\t\t\t\tb = Integer.parseInt(list[0]) - 1;\n\t\t\t\tr = Integer.parseInt(list[1]) - 1;\n\t\t\t\tf = Integer.parseInt(list[2]) - 1;\n\t\t\t\tv = Integer.parseInt(list[3]);\n\n\t\t\t\tint temp = hoge[b][r][f] + v;\n\t\t\t\tif (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t\thoge[b][r][f] = temp;\n\t\t\t}",
"String[] list = br.readLine().split(\" \");",
"list",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"b = Integer.parseInt(list[0]) - 1",
"b",
"Integer.parseInt(list[0]) - 1",
"Integer.parseInt(list[0])",
"Integer.parseInt",
"Integer",
"list[0]",
"list",
"0",
"1",
"r = Integer.parseInt(list[1]) - 1",
"r",
"Integer.parseInt(list[1]) - 1",
"Integer.parseInt(list[1])",
"Integer.parseInt",
"Integer",
"list[1]",
"list",
"1",
"1",
"f = Integer.parseInt(list[2]) - 1",
"f",
"Integer.parseInt(list[2]) - 1",
"Integer.parseInt(list[2])",
"Integer.parseInt",
"Integer",
"list[2]",
"list",
"2",
"1",
"v = Integer.parseInt(list[3])",
"v",
"Integer.parseInt(list[3])",
"Integer.parseInt",
"Integer",
"list[3]",
"list",
"3",
"int temp = hoge[b][r][f] + v;",
"temp",
"hoge[b][r][f] + v",
"hoge[b][r][f]",
"hoge[b][r]",
"hoge[b]",
"hoge",
"b",
"r",
"f",
"v",
"if (temp > 9) {\n\t\t\t\t\ttemp = 9;\n\t\t\t\t} else if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}",
"temp > 9",
"temp",
"9",
"{\n\t\t\t\t\ttemp = 9;\n\t\t\t\t}",
"temp = 9",
"temp",
"9",
"if (temp < 0) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}",
"temp < 0",
"temp",
"0",
"{\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}",
"temp = 0",
"temp",
"0",
"hoge[b][r][f] = temp",
"hoge[b][r][f]",
"hoge[b][r]",
"hoge[b]",
"hoge",
"b",
"r",
"f",
"temp",
"int x",
"x",
"y",
"y",
"z;",
"z",
"for (x = 0; x < hoge.length; x++) {\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"x = 0;",
"x = 0",
"x",
"0",
"x < hoge.length",
"x",
"hoge.length",
"hoge",
"hoge.length",
"x++",
"x++",
"x",
"{\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint[][] xlist = hoge[x];\n\t\t\t\tfor (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"int[][] xlist = hoge[x];",
"xlist",
"hoge[x]",
"hoge",
"x",
"for (y = 0; y < xlist.length; y++) {\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}",
"y = 0;",
"y = 0",
"y",
"0",
"y < xlist.length",
"y",
"xlist.length",
"xlist",
"xlist.length",
"y++",
"y++",
"y",
"{\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tint[] ylist = xlist[y];\n\t\t\t\t\tfor (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}\n\t\t\t\t\tif (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}",
"int[] ylist = xlist[y];",
"ylist",
"xlist[y]",
"xlist",
"y",
"for (z = 0; z < ylist.length; z++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}",
"z = 0;",
"z = 0",
"z",
"0",
"z < ylist.length",
"z",
"ylist.length",
"ylist",
"ylist.length",
"z++",
"z++",
"z",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + ylist[z]);\n\t\t\t\t\t}",
"System.out.print(\" \" + ylist[z])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + ylist[z]",
"\" \"",
"ylist[z]",
"ylist",
"z",
"if (y != ylist.length - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}",
"y != ylist.length - 1",
"y",
"ylist.length - 1",
"ylist.length",
"ylist",
"ylist.length",
"1",
"{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (x != hoge.length - 1) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"x != hoge.length - 1",
"x",
"hoge.length - 1",
"hoge.length",
"hoge",
"hoge.length",
"1",
"{\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String input = br.readLine();
int num = Integer.parseInt(input);
int i, b, r, f, v;
int[][][] hoge = new int[4][3][10];
for (i = 0; i < num; i++) {
String[] list = br.readLine().split(" ");
b = Integer.parseInt(list[0]) - 1;
r = Integer.parseInt(list[1]) - 1;
f = Integer.parseInt(list[2]) - 1;
v = Integer.parseInt(list[3]);
int temp = hoge[b][r][f] + v;
if (temp > 9) {
temp = 9;
} else if (temp < 0) {
temp = 0;
}
hoge[b][r][f] = temp;
}
int x, y, z;
for (x = 0; x < hoge.length; x++) {
int[][] xlist = hoge[x];
for (y = 0; y < xlist.length; y++) {
int[] ylist = xlist[y];
for (z = 0; z < ylist.length; z++) {
System.out.print(" " + ylist[z]);
}
if (y != ylist.length - 1) {
System.out.println();
}
}
if (x != hoge.length - 1) {
System.out.println("####################");
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
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
],
[
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
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
50,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
50,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
82,
84
],
[
71,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
86,
96
],
[
96,
97
],
[
96,
98
],
[
85,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
125,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
112,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
162,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
12,
172
],
[
172,
173
]
] | [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint bill = 4;\n\t\tint floor = 3;\n\t\tint room = 10;\n\n\t\tint [][][] box = new int[bill][floor][room];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint max = sc.nextInt();\n\t\t//System.out.println(max);\n\t\t\n\t\tfor (int i = 0; i < max ;i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}\n\n\t\t//result\n\t\tfor (int b = 0; b < bill; b++) {\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint bill = 4;\n\t\tint floor = 3;\n\t\tint room = 10;\n\n\t\tint [][][] box = new int[bill][floor][room];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint max = sc.nextInt();\n\t\t//System.out.println(max);\n\t\t\n\t\tfor (int i = 0; i < max ;i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}\n\n\t\t//result\n\t\tfor (int b = 0; b < bill; b++) {\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint bill = 4;\n\t\tint floor = 3;\n\t\tint room = 10;\n\n\t\tint [][][] box = new int[bill][floor][room];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint max = sc.nextInt();\n\t\t//System.out.println(max);\n\t\t\n\t\tfor (int i = 0; i < max ;i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}\n\n\t\t//result\n\t\tfor (int b = 0; b < bill; b++) {\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tint bill = 4;\n\t\tint floor = 3;\n\t\tint room = 10;\n\n\t\tint [][][] box = new int[bill][floor][room];\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint max = sc.nextInt();\n\t\t//System.out.println(max);\n\t\t\n\t\tfor (int i = 0; i < max ;i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}\n\n\t\t//result\n\t\tfor (int b = 0; b < bill; b++) {\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"int bill = 4;",
"bill",
"4",
"int floor = 3;",
"floor",
"3",
"int room = 10;",
"room",
"10",
"int [][][] box = new int[bill][floor][room];",
"box",
"new int[bill][floor][room]",
"bill",
"floor",
"room",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int max = sc.nextInt();",
"max",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < max ;i++) {\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < max",
"i",
"max",
"i++",
"i++",
"i",
"{\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}",
"{\n\t\t\tint b = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\t//System.out.println(b + \" \" + f + \" \" + r + \" \" + v);\n\t\t\t\n\t\t\tbox[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;\n\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"box[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v",
"box[b-1][f-1][r-1]",
"box[b-1][f-1]",
"box[b-1]",
"box",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"box[b-1][f-1][r-1] + v",
"box[b-1][f-1][r-1]",
"box[b-1][f-1]",
"box[b-1]",
"box",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for (int b = 0; b < bill; b++) {\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < bill",
"b",
"bill",
"b++",
"b++",
"b",
"{\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for (int f = 0; f < floor; f++) {\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < floor",
"f",
"floor",
"f++",
"f++",
"f",
"{\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\t\t\t\tfor (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"for (int r = 0; r < room; r++) {\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < room",
"r",
"room",
"r++",
"r++",
"r",
"{\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + box[b][f][r]);\n\t\t\t\t}",
"System.out.print(\" \" + box[b][f][r])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + box[b][f][r]",
"\" \"",
"box[b][f][r]",
"box[b][f]",
"box[b]",
"box",
"b",
"f",
"r",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if (b < bill-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"b < bill-1",
"b",
"bill-1",
"bill",
"1",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
int bill = 4;
int floor = 3;
int room = 10;
int [][][] box = new int[bill][floor][room];
Scanner sc = new Scanner(System.in);
int max = sc.nextInt();
//System.out.println(max);
for (int i = 0; i < max ;i++) {
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
//System.out.println(b + " " + f + " " + r + " " + v);
box[b-1][f-1][r-1] = box[b-1][f-1][r-1] + v;
}
//result
for (int b = 0; b < bill; b++) {
for (int f = 0; f < floor; f++) {
for (int r = 0; r < room; r++) {
System.out.print(" " + box[b][f][r]);
}
System.out.println("");
}
if (b < bill-1) {
System.out.println("####################");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
0,
18,
18,
18,
13,
2,
4,
18,
13,
18,
13,
17,
17,
2,
4,
18,
13,
18,
13,
17,
17,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
17,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
2,
18,
18,
18,
13,
17,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
182,
11
],
[
182,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
29,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
57,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
77,
84
],
[
56,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
14,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
91,
105
],
[
105,
106
],
[
106,
107
],
[
91,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
121,
122
],
[
110,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
125,
137
],
[
137,
138
],
[
138,
139
],
[
125,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
124,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
109,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
164,
172
],
[
161,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
12,
179
],
[
179,
180
],
[
0,
181
],
[
181,
182
],
[
181,
183
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[][][] house = new int[3][10][4];\n\t\tString count = br.readLine();\n\t\tfor(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}\n\t\tfor(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[][][] house = new int[3][10][4];\n\t\tString count = br.readLine();\n\t\tfor(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}\n\t\tfor(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[][][] house = new int[3][10][4];\n\t\tString count = br.readLine();\n\t\tfor(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}\n\t\tfor(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[][][] house = new int[3][10][4];\n\t\tString count = br.readLine();\n\t\tfor(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}\n\t\tfor(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[][][] house = new int[3][10][4];",
"house",
"new int[3][10][4]",
"3",
"10",
"4",
"String count = br.readLine();",
"count",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < Integer.parseInt(count)",
"i",
"Integer.parseInt(count)",
"Integer.parseInt",
"Integer",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}",
"{\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}",
"String info = br.readLine();",
"info",
"br.readLine()",
"br.readLine",
"br",
"String[] ia = info.split(\" \");",
"ia",
"info.split(\" \")",
"info.split",
"info",
"\" \"",
"house[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3])",
"house[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1]",
"house[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1]",
"house[Integer.parseInt(ia[1])-1]",
"house",
"Integer.parseInt(ia[1])-1",
"Integer.parseInt(ia[1])",
"Integer.parseInt",
"Integer",
"ia[1]",
"ia",
"1",
"1",
"Integer.parseInt(ia[2])-1",
"Integer.parseInt(ia[2])",
"Integer.parseInt",
"Integer",
"ia[2]",
"ia",
"2",
"1",
"Integer.parseInt(ia[0])-1",
"Integer.parseInt(ia[0])",
"Integer.parseInt",
"Integer",
"ia[0]",
"ia",
"0",
"1",
"Integer.parseInt(ia[3])",
"Integer.parseInt",
"Integer",
"ia[3]",
"ia",
"3",
"for(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < house[2][0].length",
"i",
"house[2][0].length",
"house[2][0]",
"house[2]",
"house",
"2",
"0",
"house[2][0].length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}",
"for(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < house.length",
"j",
"house.length",
"house",
"house.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}",
"int k = 0 ;",
"int k = 0 ;",
"k",
"0",
"k < house[j].length",
"k",
"house[j].length",
"house[j]",
"house",
"j",
"house[j].length",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}",
"System.out.print(\" \" + house[j][k][i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + house[j][k][i]",
"\" \"",
"house[j][k][i]",
"house[j][k]",
"house[j]",
"house",
"j",
"k",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != house[0][0].length-1) System.out.println(\"####################\");",
"i != house[0][0].length-1",
"i",
"house[0][0].length-1",
"house[0][0].length",
"house[0][0]",
"house[0]",
"house",
"0",
"0",
"house[0][0].length",
"1",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[][][] house = new int[3][10][4];\n\t\tString count = br.readLine();\n\t\tfor(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}\n\t\tfor(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[][][] house = new int[3][10][4];\n\t\tString count = br.readLine();\n\t\tfor(int i = 0 ; i < Integer.parseInt(count) ; i++){\n\t\t\tString info = br.readLine();\n\t\t\tString[] ia = info.split(\" \");\n\t\t\thouse[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);\n\t\t\t \n\t\t}\n\t\tfor(int i = 0 ; i < house[2][0].length ; i++){\n\t\t\tfor(int j = 0 ; j < house.length ; j++){\n\t\t\t\tfor(int k = 0 ; k < house[j].length ; k++){\n\t\t\t\t\tSystem.out.print(\" \" + house[j][k][i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != house[0][0].length-1) System.out.println(\"####################\");\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[][][] house = new int[3][10][4];
String count = br.readLine();
for(int i = 0 ; i < Integer.parseInt(count) ; i++){
String info = br.readLine();
String[] ia = info.split(" ");
house[Integer.parseInt(ia[1])-1][Integer.parseInt(ia[2])-1][Integer.parseInt(ia[0])-1] += Integer.parseInt(ia[3]);
}
for(int i = 0 ; i < house[2][0].length ; i++){
for(int j = 0 ; j < house.length ; j++){
for(int k = 0 ; k < house[j].length ; k++){
System.out.print(" " + house[j][k][i]);
}
System.out.println();
}
if(i != house[0][0].length-1) System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
13,
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
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
70,
78
],
[
13,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
94,
99
],
[
91,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
102,
109
],
[
91,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
112,
119
],
[
91,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
126,
128
],
[
122,
129
],
[
91,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
135,
137
],
[
91,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
138,
146
],
[
13,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
159,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
184,
192
],
[
192,
193
],
[
193,
194
],
[
184,
195
],
[
196,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
196,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
208,
214
],
[
183,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
6,
221
],
[
221,
222
]
] | [
"import java.io.*;\n\nclass Main { \n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tint[][][] count = new int[4][3][10];\n\t\t\t\n\t\t\t\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}\n\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main { \n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tint[][][] count = new int[4][3][10];\n\t\t\t\n\t\t\t\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}\n\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tint[][][] count = new int[4][3][10];\n\t\t\t\n\t\t\t\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}\n\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}",
"main",
"{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tint[][][] count = new int[4][3][10];\n\t\t\t\n\t\t\t\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}\n\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}",
"try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tint[][][] count = new int[4][3][10];\n\t\t\t\n\t\t\t\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}\n\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}",
"catch(Exception e){\n\t\t}",
"Exception e",
"{\n\t\t}",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tint[][][] count = new int[4][3][10];\n\t\t\t\n\t\t\t\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}\n\n\t\t\tfor(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][][] count = new int[4][3][10];",
"count",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0;i < 4;i++){\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int k = 0;k < 10;k++){\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcount[i][j][k] = 0;\n\t\t\t\t\t}",
"count[i][j][k] = 0",
"count[i][j][k]",
"count[i][j]",
"count[i]",
"count",
"i",
"j",
"k",
"0",
"for(int i = 0;i < n;i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}",
"{\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(line[0]) -1;\n\t\t\tint f = Integer.parseInt(line[1]) -1;\n\t\t\tint r = Integer.parseInt(line[2]) -1;\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tcount[b][f][r] += v;\n\t\t\t}",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int b = Integer.parseInt(line[0]) -1;",
"b",
"Integer.parseInt(line[0]) -1",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"1",
"int f = Integer.parseInt(line[1]) -1;",
"f",
"Integer.parseInt(line[1]) -1",
"Integer.parseInt(line[1])",
"Integer.parseInt",
"Integer",
"line[1]",
"line",
"1",
"1",
"int r = Integer.parseInt(line[2]) -1;",
"r",
"Integer.parseInt(line[2]) -1",
"Integer.parseInt(line[2])",
"Integer.parseInt",
"Integer",
"line[2]",
"line",
"2",
"1",
"int v = Integer.parseInt(line[3]);",
"v",
"Integer.parseInt(line[3])",
"Integer.parseInt",
"Integer",
"line[3]",
"line",
"3",
"count[b][f][r] += v",
"count[b][f][r]",
"count[b][f]",
"count[b]",
"count",
"b",
"f",
"r",
"v",
"for(int i = 0;i < 4;i++){\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}",
"if( i != 0){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"i != 0",
"i",
"0",
"{\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int j = 0;j < 3;j++){\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}",
"for(int k = 0;k < 10;k++){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(count[i][j][k]);\n\t\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(count[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"count[i][j][k]",
"count[i][j]",
"count[i]",
"count",
"i",
"j",
"k",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int[][][] count = new int[4][3][10];
for(int i = 0;i < 4;i++){
for(int j = 0;j < 3;j++){
for(int k = 0;k < 10;k++){
count[i][j][k] = 0;
}
}
}
for(int i = 0;i < n;i++){
String[] line = br.readLine().split(" ");
int b = Integer.parseInt(line[0]) -1;
int f = Integer.parseInt(line[1]) -1;
int r = Integer.parseInt(line[2]) -1;
int v = Integer.parseInt(line[3]);
count[b][f][r] += v;
}
for(int i = 0;i < 4;i++){
if( i != 0){
System.out.println("####################");
}
for(int j = 0;j < 3;j++){
for(int k = 0;k < 10;k++){
System.out.print(" ");
System.out.print(count[i][j][k]);
}
System.out.print("\n");
}
}
} catch(Exception e){
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
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,
0,
18,
18,
13,
13,
13,
0,
18,
18,
13,
13,
13,
0,
18,
18,
13,
13,
13,
0,
18,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
376,
5
],
[
376,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
99,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
99,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
99,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
99,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
140,
146
],
[
146,
147
],
[
146,
148
],
[
139,
149
],
[
99,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
155,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
99,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
176,
178
],
[
169,
179
],
[
8,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
192,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
202,
203
],
[
193,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
192,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
8,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
8,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
238,
239
],
[
229,
240
],
[
241,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
242,
247
],
[
247,
248
],
[
247,
249
],
[
242,
250
],
[
250,
251
],
[
251,
252
],
[
242,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
265
],
[
241,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
266,
271
],
[
8,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
8,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
278,
283
],
[
283,
284
],
[
283,
285
],
[
278,
286
],
[
286,
287
],
[
287,
288
],
[
278,
289
],
[
290,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
296,
297
],
[
296,
298
],
[
291,
299
],
[
299,
300
],
[
300,
301
],
[
291,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
303,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
290,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
315,
320
],
[
8,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
321,
326
],
[
8,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
332,
333
],
[
332,
334
],
[
327,
335
],
[
335,
336
],
[
336,
337
],
[
327,
338
],
[
339,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
340,
345
],
[
345,
346
],
[
345,
347
],
[
340,
348
],
[
348,
349
],
[
349,
350
],
[
340,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
352,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
339,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
364,
369
],
[
8,
370
],
[
370,
371
],
[
371,
372
],
[
6,
373
],
[
373,
374
],
[
0,
375
],
[
375,
376
],
[
375,
377
]
] | [
"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[][] A = new int[3][10];\n int[][] B = new int[3][10];\n int[][] C = new int[3][10];\n int[][] D = new int[3][10];\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }\n\n int time = sc.nextInt();\n\n for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }\n \n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[][] A = new int[3][10];\n int[][] B = new int[3][10];\n int[][] C = new int[3][10];\n int[][] D = new int[3][10];\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }\n\n int time = sc.nextInt();\n\n for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }\n \n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int[][] A = new int[3][10];\n int[][] B = new int[3][10];\n int[][] C = new int[3][10];\n int[][] D = new int[3][10];\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }\n\n int time = sc.nextInt();\n\n for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }\n \n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int[][] A = new int[3][10];\n int[][] B = new int[3][10];\n int[][] C = new int[3][10];\n int[][] D = new int[3][10];\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }\n\n int time = sc.nextInt();\n\n for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }\n \n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[][] A = new int[3][10];",
"A",
"new int[3][10]",
"3",
"10",
"int[][] B = new int[3][10];",
"B",
"new int[3][10]",
"3",
"10",
"int[][] C = new int[3][10];",
"C",
"new int[3][10]",
"3",
"10",
"int[][] D = new int[3][10];",
"D",
"new int[3][10]",
"3",
"10",
"for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }",
"{\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }",
"for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;",
"A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"B[i][j] = C[i][j] = D[i][j] = 0",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"C[i][j] = D[i][j] = 0",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"D[i][j] = 0",
"D[i][j]",
"D[i]",
"D",
"i",
"j",
"0",
"int time = sc.nextInt();",
"time",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < time",
"i",
"time",
"i++",
"i++",
"i",
"{\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }",
"{\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(b == 1)\n A[f - 1][r - 1] += v;",
"b == 1",
"b",
"1",
"A[f - 1][r - 1] += v",
"A[f - 1][r - 1]",
"A[f - 1]",
"A",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"if(b == 2)\n B[f - 1][r - 1] += v;",
"b == 2",
"b",
"2",
"B[f - 1][r - 1] += v",
"B[f - 1][r - 1]",
"B[f - 1]",
"B",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"if(b == 3)\n C[f - 1][r - 1] += v;",
"b == 3",
"b",
"3",
"C[f - 1][r - 1] += v",
"C[f - 1][r - 1]",
"C[f - 1]",
"C",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"if(b == 4)\n D[f - 1][r - 1] += v;",
"b == 4",
"b",
"4",
"D[f - 1][r - 1] += v",
"D[f - 1][r - 1]",
"D[f - 1]",
"D",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }",
"for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"System.out.print(\" \" + A[i][j]);",
"System.out.print(\" \" + A[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + A[i][j]",
"\" \"",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }",
"for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"System.out.print(\" \" + B[i][j]);",
"System.out.print(\" \" + B[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + B[i][j]",
"\" \"",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }",
"for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"System.out.print(\" \" + C[i][j]);",
"System.out.print(\" \" + C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }",
"{\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }",
"for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"System.out.print(\" \" + D[i][j]);",
"System.out.print(\" \" + D[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + D[i][j]",
"\" \"",
"D[i][j]",
"D[i]",
"D",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"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[][] A = new int[3][10];\n int[][] B = new int[3][10];\n int[][] C = new int[3][10];\n int[][] D = new int[3][10];\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }\n\n int time = sc.nextInt();\n\n for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }\n \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[][] A = new int[3][10];\n int[][] B = new int[3][10];\n int[][] C = new int[3][10];\n int[][] D = new int[3][10];\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;\n }\n\n int time = sc.nextInt();\n\n for(int i = 0; i < time; i++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n\n if(b == 1)\n A[f - 1][r - 1] += v;\n if(b == 2)\n B[f - 1][r - 1] += v;\n if(b == 3)\n C[f - 1][r - 1] += v;\n if(b == 4)\n D[f - 1][r - 1] += v;\n }\n\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + A[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + B[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n System.out.println(\"####################\");\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 10; j++)\n System.out.print(\" \" + D[i][j]);\n System.out.println(\"\");\n }\n \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[][] A = new int[3][10];
int[][] B = new int[3][10];
int[][] C = new int[3][10];
int[][] D = new int[3][10];
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++)
A[i][j] = B[i][j] = C[i][j] = D[i][j] = 0;
}
int time = sc.nextInt();
for(int i = 0; i < time; i++){
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
if(b == 1)
A[f - 1][r - 1] += v;
if(b == 2)
B[f - 1][r - 1] += v;
if(b == 3)
C[f - 1][r - 1] += v;
if(b == 4)
D[f - 1][r - 1] += v;
}
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++)
System.out.print(" " + A[i][j]);
System.out.println("");
}
System.out.println("####################");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++)
System.out.print(" " + B[i][j]);
System.out.println("");
}
System.out.println("####################");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++)
System.out.print(" " + C[i][j]);
System.out.println("");
}
System.out.println("####################");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 10; j++)
System.out.print(" " + D[i][j]);
System.out.println("");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
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
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
55,
62
],
[
41,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
41,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
75,
82
],
[
41,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
41,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
91,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
138,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
138,
162
],
[
162,
163
],
[
164,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
168,
170
],
[
164,
171
],
[
171,
172
],
[
171,
173
],
[
162,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
6,
180
],
[
180,
181
]
] | [
"import java.io.*;\nclass Main{\npublic static void main(String[] args)throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nString str=br.readLine();\nint n=Integer.parseInt(str);\nint[][][] residents=new int[4][3][10];\nfor(int i=0; i<n; i++){\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}\nfor(int x=0;x<4;x++){\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}\n}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\npublic static void main(String[] args)throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nString str=br.readLine();\nint n=Integer.parseInt(str);\nint[][][] residents=new int[4][3][10];\nfor(int i=0; i<n; i++){\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}\nfor(int x=0;x<4;x++){\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}\n}\n}",
"Main",
"public static void main(String[] args)throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nString str=br.readLine();\nint n=Integer.parseInt(str);\nint[][][] residents=new int[4][3][10];\nfor(int i=0; i<n; i++){\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}\nfor(int x=0;x<4;x++){\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}\n}",
"main",
"{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nString str=br.readLine();\nint n=Integer.parseInt(str);\nint[][][] residents=new int[4][3][10];\nfor(int i=0; i<n; i++){\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}\nfor(int x=0;x<4;x++){\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}\n}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int[][][] residents=new int[4][3][10];",
"residents",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i=0; i<n; i++){\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}",
"{\nString str2=br.readLine();\nString[] data=str2.split(\" \");\nint b=Integer.parseInt(data[0])-1;\nint f=Integer.parseInt(data[1])-1;\nint r=Integer.parseInt(data[2])-1;\nint v=Integer.parseInt(data[3]);\nresidents[b][f][r] += v;\n}",
"String str2=br.readLine();",
"str2",
"br.readLine()",
"br.readLine",
"br",
"String[] data=str2.split(\" \");",
"data",
"str2.split(\" \")",
"str2.split",
"str2",
"\" \"",
"int b=Integer.parseInt(data[0])-1;",
"b",
"Integer.parseInt(data[0])-1",
"Integer.parseInt(data[0])",
"Integer.parseInt",
"Integer",
"data[0]",
"data",
"0",
"1",
"int f=Integer.parseInt(data[1])-1;",
"f",
"Integer.parseInt(data[1])-1",
"Integer.parseInt(data[1])",
"Integer.parseInt",
"Integer",
"data[1]",
"data",
"1",
"1",
"int r=Integer.parseInt(data[2])-1;",
"r",
"Integer.parseInt(data[2])-1",
"Integer.parseInt(data[2])",
"Integer.parseInt",
"Integer",
"data[2]",
"data",
"2",
"1",
"int v=Integer.parseInt(data[3]);",
"v",
"Integer.parseInt(data[3])",
"Integer.parseInt",
"Integer",
"data[3]",
"data",
"3",
"residents[b][f][r] += v",
"residents[b][f][r]",
"residents[b][f]",
"residents[b]",
"residents",
"b",
"f",
"r",
"v",
"for(int x=0;x<4;x++){\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<4",
"x",
"4",
"x++",
"x++",
"x",
"{\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}",
"{\nfor(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}\n}",
"for(int y=0;y<3;y++){\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}",
"int y=0;",
"int y=0;",
"y",
"0",
"y<3",
"y",
"3",
"y++",
"y++",
"y",
"{\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}",
"{\nfor(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}\n}",
"for(int z=0;z<10;z++){\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}",
"int z=0;",
"int z=0;",
"z",
"0",
"z<10",
"z",
"10",
"z++",
"z++",
"z",
"{\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}",
"{\nSystem.out.print(\" \"+residents[x][y][z]);\nif(z==9) System.out.println();\nif(x!=3 && y==2 && z==9) System.out.println(\"####################\");\n}",
"System.out.print(\" \"+residents[x][y][z])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+residents[x][y][z]",
"\" \"",
"residents[x][y][z]",
"residents[x][y]",
"residents[x]",
"residents",
"x",
"y",
"z",
"if(z==9) System.out.println();",
"z==9",
"z",
"9",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(x!=3 && y==2 && z==9) System.out.println(\"####################\");",
"x!=3 && y==2 && z==9",
"x!=3 && y==2 && z==9",
"x!=3",
"x",
"3",
"y==2",
"y",
"2",
"z==9",
"z",
"9",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][][] residents=new int[4][3][10];
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] data=str2.split(" ");
int b=Integer.parseInt(data[0])-1;
int f=Integer.parseInt(data[1])-1;
int r=Integer.parseInt(data[2])-1;
int v=Integer.parseInt(data[3]);
residents[b][f][r] += v;
}
for(int x=0;x<4;x++){
for(int y=0;y<3;y++){
for(int z=0;z<10;z++){
System.out.print(" "+residents[x][y][z]);
if(z==9) System.out.println();
if(x!=3 && y==2 && z==9) System.out.println("####################");
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
0,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
30,
9,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
12
],
[
12,
13
],
[
4,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
16,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
29,
30
],
[
29,
31
],
[
16,
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
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
16,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
79,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
79,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
105,
115
],
[
100,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
122,
128
],
[
128,
129
],
[
128,
130
],
[
121,
131
],
[
116,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
138,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
132,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
157,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
153,
163
],
[
148,
164
],
[
164,
165
],
[
16,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
166,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
179,
187
],
[
187,
188
],
[
188,
189
],
[
179,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
192,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
178,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
178,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
209,
215
],
[
215,
216
],
[
215,
217
],
[
208,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
4,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
225,
231
],
[
231,
232
]
] | [
"import java.util.Scanner;\nclass Main{\n int n,x,y,c;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n int a[][] = new int [12][10];\n for(x = 0; x < 12; x++){\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }\n \n for(x = 0; x < n; x++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }\n for(y = 0; y < 12; y++){\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n int n,x,y,c;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n int a[][] = new int [12][10];\n for(x = 0; x < 12; x++){\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }\n \n for(x = 0; x < n; x++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }\n for(y = 0; y < 12; y++){\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"int n",
"n",
"x",
"x",
"y",
"y",
"c;",
"c",
"public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n int a[][] = new int [12][10];\n for(x = 0; x < 12; x++){\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }\n \n for(x = 0; x < n; x++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }\n for(y = 0; y < 12; y++){\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }\n }",
"solve",
"{\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n int a[][] = new int [12][10];\n for(x = 0; x < 12; x++){\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }\n \n for(x = 0; x < n; x++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }\n for(y = 0; y < 12; y++){\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"sc.useDelimiter(\"\\\\s\")",
"sc.useDelimiter",
"sc",
"\"\\\\s\"",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[][] = new int [12][10];",
"a",
"new int [12][10]",
"12",
"10",
"for(x = 0; x < 12; x++){\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }",
"x = 0;",
"x = 0",
"x",
"0",
"x < 12",
"x",
"12",
"x++",
"x++",
"x",
"{\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }",
"{\n for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }\n }",
"for(y = 0; y < 10; y++){\n a[x][y] = 0;\n }",
"y = 0;",
"y = 0",
"y",
"0",
"y < 10",
"y",
"10",
"y++",
"y++",
"y",
"{\n a[x][y] = 0;\n }",
"{\n a[x][y] = 0;\n }",
"a[x][y] = 0",
"a[x][y]",
"a[x]",
"a",
"x",
"y",
"0",
"for(x = 0; x < n; x++){\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }",
"x = 0;",
"x = 0",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }",
"{\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }\n }",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(b == 1){\n a[f-1][r-1] += v;\n }else if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }",
"b == 1",
"b",
"1",
"{\n a[f-1][r-1] += v;\n }",
"a[f-1][r-1] += v",
"a[f-1][r-1]",
"a[f-1]",
"a",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 2){\n a[f+2][r-1] += v;\n }else if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }",
"b == 2",
"b",
"2",
"{\n a[f+2][r-1] += v;\n }",
"a[f+2][r-1] += v",
"a[f+2][r-1]",
"a[f+2]",
"a",
"f+2",
"f",
"2",
"r-1",
"r",
"1",
"v",
"if(b == 3){\n a[f+5][r-1] += v;\n }else if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }",
"b == 3",
"b",
"3",
"{\n a[f+5][r-1] += v;\n }",
"a[f+5][r-1] += v",
"a[f+5][r-1]",
"a[f+5]",
"a",
"f+5",
"f",
"5",
"r-1",
"r",
"1",
"v",
"if(b == 4){\n a[f+8][r-1] += v;\n }else{\n continue;\n }",
"b == 4",
"b",
"4",
"{\n a[f+8][r-1] += v;\n }",
"a[f+8][r-1] += v",
"a[f+8][r-1]",
"a[f+8]",
"a",
"f+8",
"f",
"8",
"r-1",
"r",
"1",
"v",
"{\n continue;\n }",
"continue;",
"for(y = 0; y < 12; y++){\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }",
"y = 0;",
"y = 0",
"y",
"0",
"y < 12",
"y",
"12",
"y++",
"y++",
"y",
"{\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }",
"{\n for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }\n System.out.println(); \n if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }\n }",
"for(c = 0; c < 10; c++){\n System.out.printf(\" %d\",a[y][c]);\n }",
"c = 0;",
"c = 0",
"c",
"0",
"c < 10",
"c",
"10",
"c++",
"c++",
"c",
"{\n System.out.printf(\" %d\",a[y][c]);\n }",
"{\n System.out.printf(\" %d\",a[y][c]);\n }",
"System.out.printf(\" %d\",a[y][c])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"a[y][c]",
"a[y]",
"a",
"y",
"c",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(y % 3 == 2 && y != 11){\n System.out.println(\"####################\");\n }",
"y % 3 == 2 && y != 11",
"y % 3 == 2",
"y % 3",
"y",
"3",
"2",
"y != 11",
"y",
"11",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"public static void main(String[] args){\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
int n,x,y,c;
public void solve(){
Scanner sc = new Scanner(System.in);
sc.useDelimiter("\\s");
n = sc.nextInt();
int a[][] = new int [12][10];
for(x = 0; x < 12; x++){
for(y = 0; y < 10; y++){
a[x][y] = 0;
}
}
for(x = 0; x < n; x++){
int b = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
if(b == 1){
a[f-1][r-1] += v;
}else if(b == 2){
a[f+2][r-1] += v;
}else if(b == 3){
a[f+5][r-1] += v;
}else if(b == 4){
a[f+8][r-1] += v;
}else{
continue;
}
}
for(y = 0; y < 12; y++){
for(c = 0; c < 10; c++){
System.out.printf(" %d",a[y][c]);
}
System.out.println();
if(y % 3 == 2 && y != 11){
System.out.println("####################");
}
}
}
public static void main(String[] args){
new Main().solve();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
190,
5
],
[
190,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
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
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
57,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
8,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
83,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
83,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
105,
115
],
[
115,
116
],
[
115,
117
],
[
104,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
144,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
131,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
6,
187
],
[
187,
188
],
[
0,
189
],
[
189,
190
],
[
189,
191
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint[][][] room = new int[4][3][10];\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\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\tint[][][] room = new int[4][3][10];\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint[][][] room = new int[4][3][10];\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tint[][][] room = new int[4][3][10];\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}\n\t}",
"int[][][] room = new int[4][3][10];",
"room",
"new int[4][3][10]",
"4",
"3",
"10",
"@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}",
"{\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}",
"room[i][j][k] = 0",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"room[d-1][f-1][r-1] += v",
"room[d-1][f-1][r-1]",
"room[d-1][f-1]",
"room[d-1]",
"room",
"d-1",
"d",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}",
"for(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \"+room[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+room[i][j][k]",
"\" \"",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3) System.out.println(\"####################\");",
"i != 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint[][][] room = new int[4][3][10];\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint[][][] room = new int[4][3][10];\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\troom[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tint v = sc.nextInt();\n\t\t\troom[d-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0;i<4;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tfor(int k = 0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[][][] room = new int[4][3][10];
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
for(int i = 0;i<4;i++) {
for(int j = 0;j<3;j++) {
for(int k = 0;k<10;k++) {
room[i][j][k] = 0;
}
}
}
int n = sc.nextInt();
for(int i = 0;i<n;i++) {
int d = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
int v = sc.nextInt();
room[d-1][f-1][r-1] += v;
}
for(int i = 0;i<4;i++) {
for(int j = 0;j<3;j++) {
for(int k = 0;k<10;k++) {
System.out.print(" "+room[i][j][k]);
}
System.out.println();
}
if(i != 3) System.out.println("####################");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
40,
13,
40,
13,
40,
13,
0,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
3,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
63,
71
],
[
8,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
8,
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
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
98,
103
],
[
95,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
95,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
95,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
95,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
133,
135
],
[
95,
136
],
[
136,
137
],
[
95,
138
],
[
138,
139
],
[
95,
140
],
[
140,
141
],
[
95,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
143,
149
],
[
142,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
176,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
163,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
163,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
6,
220
],
[
220,
221
]
] | [
"import java.io.*;\nclass Main{\n\tpublic static void main(String[]args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t//StringBuilder sb=new StringBuilder();\n\t\tint i,j,k;\n\t\tint[][][] list=new int[4][3][10];\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString str=br.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tfor(i=0;i<n;i++){\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String[]args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t//StringBuilder sb=new StringBuilder();\n\t\tint i,j,k;\n\t\tint[][][] list=new int[4][3][10];\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString str=br.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tfor(i=0;i<n;i++){\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[]args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t//StringBuilder sb=new StringBuilder();\n\t\tint i,j,k;\n\t\tint[][][] list=new int[4][3][10];\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString str=br.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tfor(i=0;i<n;i++){\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t//StringBuilder sb=new StringBuilder();\n\t\tint i,j,k;\n\t\tint[][][] list=new int[4][3][10];\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString str=br.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tfor(i=0;i<n;i++){\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}\n\t\tfor(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int i",
"i",
"j",
"j",
"k;",
"k",
"int[][][] list=new int[4][3][10];",
"list",
"new int[4][3][10]",
"4",
"3",
"10",
"for(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"for(k=0;k<10;k++){\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}",
"k=0;",
"k=0",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}",
"{\n\t\t\t\t\tlist[i][j][k]=0;\n\t\t\t\t}",
"list[i][j][k]=0",
"list[i][j][k]",
"list[i][j]",
"list[i]",
"list",
"i",
"j",
"k",
"0",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(i=0;i<n;i++){\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}",
"{\n\t\t\tString[] house=br.readLine().split(\" \");\n\t\t\tint b=Integer.parseInt(house[0]);\n\t\t\tint f=Integer.parseInt(house[1]);\n\t\t\tint r=Integer.parseInt(house[2]);\n\t\t\tint v=Integer.parseInt(house[3]);\n\t\t\t\n\t\t\tb--;\n\t\t\tf--;\n\t\t\tr--;\n\t\t\tlist[b][f][r]+=v;\n\t\t}",
"String[] house=br.readLine().split(\" \");",
"house",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int b=Integer.parseInt(house[0]);",
"b",
"Integer.parseInt(house[0])",
"Integer.parseInt",
"Integer",
"house[0]",
"house",
"0",
"int f=Integer.parseInt(house[1]);",
"f",
"Integer.parseInt(house[1])",
"Integer.parseInt",
"Integer",
"house[1]",
"house",
"1",
"int r=Integer.parseInt(house[2]);",
"r",
"Integer.parseInt(house[2])",
"Integer.parseInt",
"Integer",
"house[2]",
"house",
"2",
"int v=Integer.parseInt(house[3]);",
"v",
"Integer.parseInt(house[3])",
"Integer.parseInt",
"Integer",
"house[3]",
"house",
"3",
"b--",
"b",
"f--",
"f",
"r--",
"r",
"list[b][f][r]+=v",
"list[b][f][r]",
"list[b][f]",
"list[b]",
"list",
"b",
"f",
"r",
"v",
"for(i=0;i<4;i++){\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i==3)break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"for(j=0;j<3;j++){\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(k=0;k<10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}",
"k=0;",
"k=0",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+ list[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \"+ list[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+ list[i][j][k]",
"\" \"",
"list[i][j][k]",
"list[i][j]",
"list[i]",
"list",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i==3)break;",
"i==3",
"i",
"3",
"break;",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[]args",
"args"
] | import java.io.*;
class Main{
public static void main(String[]args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//StringBuilder sb=new StringBuilder();
int i,j,k;
int[][][] list=new int[4][3][10];
for(i=0;i<4;i++){
for(j=0;j<3;j++){
for(k=0;k<10;k++){
list[i][j][k]=0;
}
}
}
String str=br.readLine();
int n=Integer.parseInt(str);
for(i=0;i<n;i++){
String[] house=br.readLine().split(" ");
int b=Integer.parseInt(house[0]);
int f=Integer.parseInt(house[1]);
int r=Integer.parseInt(house[2]);
int v=Integer.parseInt(house[3]);
b--;
f--;
r--;
list[b][f][r]+=v;
}
for(i=0;i<4;i++){
for(j=0;j<3;j++){
for(k=0;k<10;k++){
System.out.print(" "+ list[i][j][k]);
}
System.out.println();
}
if(i==3)break;
System.out.println("####################");
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
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,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
378,
2
],
[
378,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
14,
16
],
[
5,
19
],
[
19,
20
],
[
19,
21
],
[
5,
24
],
[
24,
25
],
[
24,
26
],
[
5,
29
],
[
29,
30
],
[
29,
31
],
[
5,
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
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
59,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
59,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
5,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
100,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
100,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
126,
136
],
[
121,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
143,
149
],
[
149,
150
],
[
149,
151
],
[
142,
152
],
[
137,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
162,
164
],
[
159,
165
],
[
165,
166
],
[
165,
167
],
[
158,
168
],
[
153,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
178,
180
],
[
175,
181
],
[
181,
182
],
[
181,
183
],
[
174,
184
],
[
5,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
185,
193
],
[
193,
194
],
[
194,
195
],
[
185,
196
],
[
197,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
203,
204
],
[
203,
205
],
[
198,
206
],
[
206,
207
],
[
207,
208
],
[
198,
209
],
[
210,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
197,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
5,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
5,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
234,
245
],
[
246,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
252,
253
],
[
252,
254
],
[
247,
255
],
[
255,
256
],
[
256,
257
],
[
247,
258
],
[
259,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
260,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
246,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
5,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
277,
282
],
[
5,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
283,
288
],
[
288,
289
],
[
288,
290
],
[
283,
291
],
[
291,
292
],
[
292,
293
],
[
283,
294
],
[
295,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
296,
301
],
[
301,
302
],
[
301,
303
],
[
296,
304
],
[
304,
305
],
[
305,
306
],
[
296,
307
],
[
308,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
309,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
320
],
[
295,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
5,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
326,
331
],
[
5,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
332,
337
],
[
337,
338
],
[
337,
339
],
[
332,
340
],
[
340,
341
],
[
341,
342
],
[
332,
343
],
[
344,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
345,
353
],
[
353,
354
],
[
354,
355
],
[
345,
356
],
[
357,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
344,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
3,
375
],
[
375,
376
],
[
0,
377
],
[
377,
378
],
[
377,
379
]
] | [
"public class Main {\n\tpublic static void main(String[] main){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\t\t\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] main){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\t\t\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] main){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\t\t\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\t\t\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] A = new int[3][10];",
"A",
"new int[3][10]",
"3",
"10",
"int[][] B = new int[3][10];",
"B",
"new int[3][10]",
"3",
"10",
"int[][] C = new int[3][10];",
"C",
"new int[3][10]",
"3",
"10",
"int[][] D = new int[3][10];",
"D",
"new int[3][10]",
"3",
"10",
"for(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}",
"for(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}",
"A[i][j] = 0",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"0",
"B[i][j] = 0",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"0",
"C[i][j] = 0",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"0",
"D[i][j] = 0",
"D[i][j]",
"D[i]",
"D",
"i",
"j",
"0",
"for(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\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 b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v = scan.nextInt();",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}",
"b == 1",
"b",
"1",
"{\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}",
"A[f-1][r-1] += v",
"A[f-1][r-1]",
"A[f-1]",
"A",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}",
"b == 2",
"b",
"2",
"{\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}",
"B[f-1][r-1] += v",
"B[f-1][r-1]",
"B[f-1]",
"B",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}",
"b == 3",
"b",
"3",
"{\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}",
"C[f-1][r-1] += v",
"C[f-1][r-1]",
"C[f-1]",
"C",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}",
"b == 4",
"b",
"4",
"{\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}",
"D[f-1][r-1] += v",
"D[f-1][r-1]",
"D[f-1]",
"D",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}",
"System.out.print(\" \"+A[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+A[i][j]",
"\" \"",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}",
"System.out.print(\" \"+B[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+B[i][j]",
"\" \"",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}",
"System.out.print(\" \"+C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}",
"System.out.print(\" \"+D[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+D[i][j]",
"\" \"",
"D[i][j]",
"D[i]",
"D",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] main",
"main",
"public class Main {\n\tpublic static void main(String[] main){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\t\t\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] main){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\t\t\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tA[i][j] = 0;\n\t\t\t\tB[i][j] = 0;\n\t\t\t\tC[i][j] = 0;\n\t\t\t\tD[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n;i++){\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tint v = scan.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\tA[f-1][r-1] += v;\n\t\t\t}else if(b == 2){\n\t\t\t\tB[f-1][r-1] += v;\n\t\t\t}else if(b == 3){\n\t\t\t\tC[f-1][r-1] += v;\n\t\t\t}else if(b == 4){\n\t\t\t\tD[f-1][r-1] += v;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main"
] | public class Main {
public static void main(String[] main){
java.util.Scanner scan = new java.util.Scanner(System.in);
int n = scan.nextInt();
int[][] A = new int[3][10];
int[][] B = new int[3][10];
int[][] C = new int[3][10];
int[][] D = new int[3][10];
for(int i = 0;i<3;i++){
for(int j = 0;j<10;j++){
A[i][j] = 0;
B[i][j] = 0;
C[i][j] = 0;
D[i][j] = 0;
}
}
for(int i = 0; i < n;i++){
int b = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
int v = scan.nextInt();
if(b == 1){
A[f-1][r-1] += v;
}else if(b == 2){
B[f-1][r-1] += v;
}else if(b == 3){
C[f-1][r-1] += v;
}else if(b == 4){
D[f-1][r-1] += v;
}
}
for(int i = 0;i<3;i++){
for(int j = 0;j<10;j++){
System.out.print(" "+A[i][j]);
}
System.out.println();
}
System.out.println("####################");
for(int i = 0;i<3;i++){
for(int j = 0;j<10;j++){
System.out.print(" "+B[i][j]);
}
System.out.println();
}
System.out.println("####################");
for(int i = 0;i<3;i++){
for(int j = 0;j<10;j++){
System.out.print(" "+C[i][j]);
}
System.out.println();
}
System.out.println("####################");
for(int i = 0;i<3;i++){
for(int j = 0;j<10;j++){
System.out.print(" "+D[i][j]);
}
System.out.println();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
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,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
3,
14,
2,
13,
17,
30,
3,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
165,
5
],
[
165,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
47,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
79,
81
],
[
68,
82
],
[
8,
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
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
108,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
108,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
95,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
95,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
8,
159
],
[
159,
160
],
[
160,
161
],
[
6,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint num = scan.nextInt();\n\n\t\tint[] [] [] officialHouse = new int[4] [3] [10];\n\n\t\tint building = 0;\n\t\tint floor = 0;\n\t\tint roomNumber = 0;\n\t\tint residents = 0;\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint num = scan.nextInt();\n\n\t\tint[] [] [] officialHouse = new int[4] [3] [10];\n\n\t\tint building = 0;\n\t\tint floor = 0;\n\t\tint roomNumber = 0;\n\t\tint residents = 0;\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint num = scan.nextInt();\n\n\t\tint[] [] [] officialHouse = new int[4] [3] [10];\n\n\t\tint building = 0;\n\t\tint floor = 0;\n\t\tint roomNumber = 0;\n\t\tint residents = 0;\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner (System.in);\n\t\tint num = scan.nextInt();\n\n\t\tint[] [] [] officialHouse = new int[4] [3] [10];\n\n\t\tint building = 0;\n\t\tint floor = 0;\n\t\tint roomNumber = 0;\n\t\tint residents = 0;\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner (System.in);",
"scan",
"new Scanner (System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] [] [] officialHouse = new int[4] [3] [10];",
"officialHouse",
"new int[4] [3] [10]",
"4",
"3",
"10",
"int building = 0;",
"building",
"0",
"int floor = 0;",
"floor",
"0",
"int roomNumber = 0;",
"roomNumber",
"0",
"int residents = 0;",
"residents",
"0",
"for (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}",
"{\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}",
"building = scan.nextInt()",
"building",
"scan.nextInt()",
"scan.nextInt",
"scan",
"floor = scan.nextInt()",
"floor",
"scan.nextInt()",
"scan.nextInt",
"scan",
"roomNumber = scan.nextInt()",
"roomNumber",
"scan.nextInt()",
"scan.nextInt",
"scan",
"residents = scan.nextInt()",
"residents",
"scan.nextInt()",
"scan.nextInt",
"scan",
"officialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents",
"officialHouse[building - 1] [floor - 1] [roomNumber - 1]",
"officialHouse[building - 1] [floor - 1]",
"officialHouse[building - 1]",
"officialHouse",
"building - 1",
"building",
"1",
"floor - 1",
"floor",
"1",
"roomNumber - 1",
"roomNumber",
"1",
"residents",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}",
"for (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}",
"System.out.print(\" \" + officialHouse [i] [j] [k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + officialHouse [i] [j] [k]",
"\" \"",
"officialHouse [i] [j] [k]",
"officialHouse [i] [j]",
"officialHouse [i]",
"officialHouse",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"j == 3",
"j",
"3",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"if (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}",
"i == 3",
"i",
"3",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint num = scan.nextInt();\n\n\t\tint[] [] [] officialHouse = new int[4] [3] [10];\n\n\t\tint building = 0;\n\t\tint floor = 0;\n\t\tint roomNumber = 0;\n\t\tint residents = 0;\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint num = scan.nextInt();\n\n\t\tint[] [] [] officialHouse = new int[4] [3] [10];\n\n\t\tint building = 0;\n\t\tint floor = 0;\n\t\tint roomNumber = 0;\n\t\tint residents = 0;\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tbuilding = scan.nextInt();\n\t\t\tfloor = scan.nextInt();\n\t\t\troomNumber = scan.nextInt();\n\t\t\tresidents = scan.nextInt();\n\n\t\t\tofficialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;\n\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + officialHouse [i] [j] [k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (i == 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
int num = scan.nextInt();
int[] [] [] officialHouse = new int[4] [3] [10];
int building = 0;
int floor = 0;
int roomNumber = 0;
int residents = 0;
for (int i = 0; i < num; i++) {
building = scan.nextInt();
floor = scan.nextInt();
roomNumber = scan.nextInt();
residents = scan.nextInt();
officialHouse[building - 1] [floor - 1] [roomNumber - 1] += residents;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + officialHouse [i] [j] [k]);
}
System.out.println();
if (j == 3) {
break;
}
}
if (i == 3) {
break;
}
System.out.println("####################");
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
18,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
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,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
49,
56
],
[
38,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
38,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
38,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
8,
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
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
116,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
103,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
6,
160
],
[
160,
161
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_input = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n_input; i++) {\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_input = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n_input; i++) {\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_input = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n_input; i++) {\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_input = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n_input; i++) {\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"int[][][] room = new int[4][3][10];",
"room",
"new int[4][3][10]",
"4",
"3",
"10",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n_input = Integer.parseInt(br.readLine());",
"n_input",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n_input; i++) {\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n_input",
"i",
"n_input",
"i++",
"i++",
"i",
"{\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}",
"{\n\t\t\tString[] sz_line = (br.readLine()).split(\" \");\n\t\t\tint block = Integer.parseInt(sz_line[0]) -1;\n\t\t\tint floor = Integer.parseInt(sz_line[1]) -1;\n\t\t\tint room_number = Integer.parseInt(sz_line[2]) -1;\n\t\t\t\n\t\t\troom[block][floor][room_number] += Integer.parseInt(sz_line[3]);\n\t\t}",
"String[] sz_line = (br.readLine()).split(\" \");",
"sz_line",
"(br.readLine()).split(\" \")",
"(br.readLine()).split",
"(br.readLine())",
"br.readLine",
"br",
"\" \"",
"int block = Integer.parseInt(sz_line[0]) -1;",
"block",
"Integer.parseInt(sz_line[0]) -1",
"Integer.parseInt(sz_line[0])",
"Integer.parseInt",
"Integer",
"sz_line[0]",
"sz_line",
"0",
"1",
"int floor = Integer.parseInt(sz_line[1]) -1;",
"floor",
"Integer.parseInt(sz_line[1]) -1",
"Integer.parseInt(sz_line[1])",
"Integer.parseInt",
"Integer",
"sz_line[1]",
"sz_line",
"1",
"1",
"int room_number = Integer.parseInt(sz_line[2]) -1;",
"room_number",
"Integer.parseInt(sz_line[2]) -1",
"Integer.parseInt(sz_line[2])",
"Integer.parseInt",
"Integer",
"sz_line[2]",
"sz_line",
"2",
"1",
"room[block][floor][room_number] += Integer.parseInt(sz_line[3])",
"room[block][floor][room_number]",
"room[block][floor]",
"room[block]",
"room",
"block",
"floor",
"room_number",
"Integer.parseInt(sz_line[3])",
"Integer.parseInt",
"Integer",
"sz_line[3]",
"sz_line",
"3",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + room[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room[i][j][k]",
"\" \"",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (i < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i < 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
int[][][] room = new int[4][3][10];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n_input = Integer.parseInt(br.readLine());
for (int i = 0; i < n_input; i++) {
String[] sz_line = (br.readLine()).split(" ");
int block = Integer.parseInt(sz_line[0]) -1;
int floor = Integer.parseInt(sz_line[1]) -1;
int room_number = Integer.parseInt(sz_line[2]) -1;
room[block][floor][room_number] += Integer.parseInt(sz_line[3]);
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + room[i][j][k]);
}
System.out.println();
}
if (i < 3) {
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
20,
40,
13,
14,
2,
13,
13,
30,
3,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
39,
39,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
12,
13,
30,
12,
13,
30,
0,
18,
18,
18,
13,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
17,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
391,
17
],
[
391,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
391,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
58,
74
],
[
74,
75
],
[
58,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
44,
82
],
[
82,
83
],
[
82,
84
],
[
44,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
44,
94
],
[
94,
95
],
[
95,
96
],
[
391,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
97,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
97,
105
],
[
105,
106
],
[
97,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
109,
116
],
[
116,
117
],
[
116,
118
],
[
109,
119
],
[
119,
120
],
[
119,
121
],
[
107,
122
],
[
122,
123
],
[
107,
124
],
[
124,
125
],
[
107,
126
],
[
126,
127
],
[
107,
128
],
[
128,
129
],
[
391,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
136,
139
],
[
136,
140
],
[
136,
141
],
[
136,
142
],
[
136,
143
],
[
136,
144
],
[
136,
145
],
[
136,
146
],
[
135,
147
],
[
147,
148
],
[
147,
149
],
[
147,
150
],
[
147,
151
],
[
147,
152
],
[
147,
153
],
[
147,
154
],
[
147,
155
],
[
147,
156
],
[
147,
157
],
[
135,
158
],
[
158,
159
],
[
158,
160
],
[
158,
161
],
[
158,
162
],
[
158,
163
],
[
158,
164
],
[
158,
165
],
[
158,
166
],
[
158,
167
],
[
158,
168
],
[
134,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
170,
173
],
[
170,
174
],
[
170,
175
],
[
170,
176
],
[
170,
177
],
[
170,
178
],
[
170,
179
],
[
170,
180
],
[
169,
181
],
[
181,
182
],
[
181,
183
],
[
181,
184
],
[
181,
185
],
[
181,
186
],
[
181,
187
],
[
181,
188
],
[
181,
189
],
[
181,
190
],
[
181,
191
],
[
169,
192
],
[
192,
193
],
[
192,
194
],
[
192,
195
],
[
192,
196
],
[
192,
197
],
[
192,
198
],
[
192,
199
],
[
192,
200
],
[
192,
201
],
[
192,
202
],
[
134,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
204,
207
],
[
204,
208
],
[
204,
209
],
[
204,
210
],
[
204,
211
],
[
204,
212
],
[
204,
213
],
[
204,
214
],
[
203,
215
],
[
215,
216
],
[
215,
217
],
[
215,
218
],
[
215,
219
],
[
215,
220
],
[
215,
221
],
[
215,
222
],
[
215,
223
],
[
215,
224
],
[
215,
225
],
[
203,
226
],
[
226,
227
],
[
226,
228
],
[
226,
229
],
[
226,
230
],
[
226,
231
],
[
226,
232
],
[
226,
233
],
[
226,
234
],
[
226,
235
],
[
226,
236
],
[
134,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
238,
241
],
[
238,
242
],
[
238,
243
],
[
238,
244
],
[
238,
245
],
[
238,
246
],
[
238,
247
],
[
238,
248
],
[
237,
249
],
[
249,
250
],
[
249,
251
],
[
249,
252
],
[
249,
253
],
[
249,
254
],
[
249,
255
],
[
249,
256
],
[
249,
257
],
[
249,
258
],
[
249,
259
],
[
237,
260
],
[
260,
261
],
[
260,
262
],
[
260,
263
],
[
260,
264
],
[
260,
265
],
[
260,
266
],
[
260,
267
],
[
260,
268
],
[
260,
269
],
[
260,
270
],
[
130,
271
],
[
271,
272
],
[
271,
273
],
[
130,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
279,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
278,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
277,
297
],
[
297,
298
],
[
297,
299
],
[
274,
300
],
[
300,
301
],
[
130,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
305,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
312,
314
],
[
305,
315
],
[
315,
316
],
[
316,
317
],
[
305,
318
],
[
319,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
320,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
320,
332
],
[
332,
333
],
[
333,
334
],
[
320,
335
],
[
336,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
337,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
349
],
[
344,
350
],
[
337,
351
],
[
351,
352
],
[
352,
353
],
[
337,
354
],
[
355,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
356,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
363,
369
],
[
336,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
319,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
375,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
384,
389
],
[
0,
390
],
[
390,
391
],
[
390,
392
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n *\n\n?????§?????????????????¢????????¨?±?????????????????????¬???????£??????????????????????????????¬????????\\?±??????????????????±???????????????????????¨?±??????\\?±??????°???????????????????????°?????????????????????????????????\n\nn??¶????????±????????????????????????????????±??§?????????????????´??°b, f, r, v????????????????????????????????????b?£?f??????r???????????¨?±????v??????????????§??\\?±????????????¨??????????????????v?????????????????´??????v????????????????????¨??????????????????\n\n???????????¨????????¨?±?????????°?????\\?±????????????????????????¨????????????\n\nhttp://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_C\n\n *\n *\n * @author wsKmatsuda\n *\n */\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().run();\n\n\t}\n\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n List<InputData> inputDataList = new ArrayList<InputData>();\n\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n\t/**\n\t * InputData?????????\n\t * ?£????????????¨?±????????????\\?±??????°?????????\n\t */\n\tclass InputData{\n\n\t\t//?£?\n\t\tpublic int b;\n\t\t//???\n\t\tpublic int f;\n\t\t//??¨?±???????\n\t\tpublic int r;\n\t\t//??\\?±??????°???????????´?????????????????°???\n\t\tpublic int v;\n\n\t\tInputData(int _b ,int _f,int _r,int _v){\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}\n\t}\n\n\tclass Collage{\n\n\t\tint[][][] room = {\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t};\n\n\t\t/**\n\t\t * ?????????????????????\n\t\t */\n\t\tCollage(){\n\n\t\t}\n\n\t\t/**\n\t\t * ??\\????????????????¨??????????\n\t\t * @param inputData\n\t\t */\n\t\tpublic void setData(InputData inputData){\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}\n\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tpublic void output(){\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().run();\n\n\t}\n\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n List<InputData> inputDataList = new ArrayList<InputData>();\n\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n\t/**\n\t * InputData?????????\n\t * ?£????????????¨?±????????????\\?±??????°?????????\n\t */\n\tclass InputData{\n\n\t\t//?£?\n\t\tpublic int b;\n\t\t//???\n\t\tpublic int f;\n\t\t//??¨?±???????\n\t\tpublic int r;\n\t\t//??\\?±??????°???????????´?????????????????°???\n\t\tpublic int v;\n\n\t\tInputData(int _b ,int _f,int _r,int _v){\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}\n\t}\n\n\tclass Collage{\n\n\t\tint[][][] room = {\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t};\n\n\t\t/**\n\t\t * ?????????????????????\n\t\t */\n\t\tCollage(){\n\n\t\t}\n\n\t\t/**\n\t\t * ??\\????????????????¨??????????\n\t\t * @param inputData\n\t\t */\n\t\tpublic void setData(InputData inputData){\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}\n\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tpublic void output(){\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tnew Main().run();\n\n\t}",
"main",
"{\n\n\t\tnew Main().run();\n\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n List<InputData> inputDataList = new ArrayList<InputData>();\n\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"run",
"{\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n List<InputData> inputDataList = new ArrayList<InputData>();\n\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String inputData;",
"inputData",
"List<InputData> inputDataList = new ArrayList<InputData>();",
"inputDataList",
"new ArrayList<InputData>()",
"try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t}",
"int cardNum = Integer.parseInt(reader.readLine());",
"cardNum",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int cnt = 0;",
"cnt",
"0",
"while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }",
"true",
"{\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }",
"inputData = reader.readLine()",
"inputData",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] strData = inputData.split(\" \");",
"strData",
"inputData.split(\" \")",
"inputData.split",
"inputData",
"\" \"",
"inputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])))",
"inputDataList.add",
"inputDataList",
"new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3]))",
"cnt++",
"cnt",
"if(cnt == cardNum){\n\t \tbreak;\n\t }",
"cnt == cardNum",
"cnt",
"cardNum",
"{\n\t \tbreak;\n\t }",
"break;",
"Collage collage = new Collage();",
"collage",
"new Collage()",
"for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }",
"InputData data",
"inputDataList",
"{\n\t \tcollage.setData(data);\n\t }",
"{\n\t \tcollage.setData(data);\n\t }",
"collage.setData(data)",
"collage.setData",
"collage",
"data",
"collage.output()",
"collage.output",
"collage",
"class InputData{\n\n\t\t//?£?\n\t\tpublic int b;\n\t\t//???\n\t\tpublic int f;\n\t\t//??¨?±???????\n\t\tpublic int r;\n\t\t//??\\?±??????°???????????´?????????????????°???\n\t\tpublic int v;\n\n\t\tInputData(int _b ,int _f,int _r,int _v){\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}\n\t}",
"InputData",
"//?£?\n\t\tpublic int b;",
"b",
"//???\n\t\tpublic int f;",
"f",
"//??¨?±???????\n\t\tpublic int r;",
"r",
"//??\\?±??????°???????????´?????????????????°???\n\t\tpublic int v;",
"v",
"InputData(int _b ,int _f,int _r,int _v){\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}",
"InputData",
"{\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}",
"b = _b",
"b",
"_b",
"f = _f",
"f",
"_f",
"r = _r",
"r",
"_r",
"v = _v",
"v",
"_v",
"int _b",
"_b",
"int _f",
"_f",
"int _r",
"_r",
"int _v",
"_v",
"class Collage{\n\n\t\tint[][][] room = {\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t};\n\n\t\t/**\n\t\t * ?????????????????????\n\t\t */\n\t\tCollage(){\n\n\t\t}\n\n\t\t/**\n\t\t * ??\\????????????????¨??????????\n\t\t * @param inputData\n\t\t */\n\t\tpublic void setData(InputData inputData){\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}\n\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tpublic void output(){\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t}",
"Collage",
"int[][][] room = {\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t};",
"room",
"{\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t}",
"{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t}",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t}",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t}",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t}",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"{0,0,0,0,0,0,0,0,0,0}",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"/**\n\t\t * ?????????????????????\n\t\t */\n\t\tCollage(){\n\n\t\t}",
"Collage",
"{\n\n\t\t}",
"/**\n\t\t * ??\\????????????????¨??????????\n\t\t * @param inputData\n\t\t */\n\t\tpublic void setData(InputData inputData){\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}",
"setData",
"{\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}",
"room[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v",
"room[inputData.b-1][inputData.f-1][inputData.r-1]",
"room[inputData.b-1][inputData.f-1]",
"room[inputData.b-1]",
"room",
"inputData.b-1",
"inputData.b",
"inputData",
"inputData.b",
"1",
"inputData.f-1",
"inputData.f",
"inputData",
"inputData.f",
"1",
"inputData.r-1",
"inputData.r",
"inputData",
"inputData.r",
"1",
"inputData.v",
"inputData",
"inputData.v",
"InputData inputData",
"inputData",
"/**\n\t\t * ??????\n\t\t */\n\t\tpublic void output(){\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"output",
"{\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"for(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"int bc = 0;",
"int bc = 0;",
"bc",
"0",
"bc < room.length",
"bc",
"room.length",
"room",
"room.length",
"bc++",
"bc++",
"bc",
"{\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"for(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"int fc=0;",
"int fc=0;",
"fc",
"0",
"fc < room[0].length",
"fc",
"room[0].length",
"room[0]",
"room",
"0",
"room[0].length",
"fc++",
"fc++",
"fc",
"{\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"for(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}",
"int rc=0;",
"int rc=0;",
"rc",
"0",
"rc < room[0][0].length",
"rc",
"room[0][0].length",
"room[0][0]",
"room[0]",
"room",
"0",
"0",
"room[0][0].length",
"rc++",
"rc++",
"rc",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}",
"System.out.print(\" \" + room[bc][fc][rc])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room[bc][fc][rc]",
"\" \"",
"room[bc][fc][rc]",
"room[bc][fc]",
"room[bc]",
"room",
"bc",
"fc",
"rc",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"bc != room.length-1",
"bc",
"room.length-1",
"room.length",
"room",
"room.length",
"1",
"{\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().run();\n\n\t}\n\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n List<InputData> inputDataList = new ArrayList<InputData>();\n\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n\t/**\n\t * InputData?????????\n\t * ?£????????????¨?±????????????\\?±??????°?????????\n\t */\n\tclass InputData{\n\n\t\t//?£?\n\t\tpublic int b;\n\t\t//???\n\t\tpublic int f;\n\t\t//??¨?±???????\n\t\tpublic int r;\n\t\t//??\\?±??????°???????????´?????????????????°???\n\t\tpublic int v;\n\n\t\tInputData(int _b ,int _f,int _r,int _v){\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}\n\t}\n\n\tclass Collage{\n\n\t\tint[][][] room = {\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t};\n\n\t\t/**\n\t\t * ?????????????????????\n\t\t */\n\t\tCollage(){\n\n\t\t}\n\n\t\t/**\n\t\t * ??\\????????????????¨??????????\n\t\t * @param inputData\n\t\t */\n\t\tpublic void setData(InputData inputData){\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}\n\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tpublic void output(){\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().run();\n\n\t}\n\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n List<InputData> inputDataList = new ArrayList<InputData>();\n\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tString[] strData = inputData.split(\" \");\n\t\t\t\tinputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??\\??????????¨????\n\t Collage collage = new Collage();\n\t for(InputData data :inputDataList){\n\t \tcollage.setData(data);\n\t }\n\n\t //????????????\n\t collage.output();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n\t/**\n\t * InputData?????????\n\t * ?£????????????¨?±????????????\\?±??????°?????????\n\t */\n\tclass InputData{\n\n\t\t//?£?\n\t\tpublic int b;\n\t\t//???\n\t\tpublic int f;\n\t\t//??¨?±???????\n\t\tpublic int r;\n\t\t//??\\?±??????°???????????´?????????????????°???\n\t\tpublic int v;\n\n\t\tInputData(int _b ,int _f,int _r,int _v){\n\t\t\tb = _b;\n\t\t\tf = _f;\n\t\t\tr = _r;\n\t\t\tv = _v;\n\t\t}\n\t}\n\n\tclass Collage{\n\n\t\tint[][][] room = {\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0}\n\t\t\t\t},\n\t\t};\n\n\t\t/**\n\t\t * ?????????????????????\n\t\t */\n\t\tCollage(){\n\n\t\t}\n\n\t\t/**\n\t\t * ??\\????????????????¨??????????\n\t\t * @param inputData\n\t\t */\n\t\tpublic void setData(InputData inputData){\n\n\t\t\troom[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;\n\n\t\t}\n\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tpublic void output(){\n\n\t\t\tfor(int bc = 0;bc < room.length ; bc++){\n\t\t\t\tfor(int fc=0;fc < room[0].length ; fc++){\n\t\t\t\t\tfor(int rc=0;rc < room[0][0].length ; rc++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[bc][fc][rc]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif(bc != room.length-1){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/**
*
?????§?????????????????¢????????¨?±?????????????????????¬???????£??????????????????????????????¬????????\?±??????????????????±???????????????????????¨?±??????\?±??????°???????????????????????°?????????????????????????????????
n??¶????????±????????????????????????????????±??§?????????????????´??°b, f, r, v????????????????????????????????????b?£?f??????r???????????¨?±????v??????????????§??\?±????????????¨??????????????????v?????????????????´??????v????????????????????¨??????????????????
???????????¨????????¨?±?????????°?????\?±????????????????????????¨????????????
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_C
*
*
* @author wsKmatsuda
*
*/
public class Main {
public static void main(String[] args) {
new Main().run();
}
public void run(){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String inputData;
List<InputData> inputDataList = new ArrayList<InputData>();
try {
int cardNum = Integer.parseInt(reader.readLine());
int cnt = 0;
//??\???
while(true){
inputData = reader.readLine();
String[] strData = inputData.split(" ");
inputDataList.add(new InputData(Integer.parseInt(strData[0]) , Integer.parseInt(strData[1]) , Integer.parseInt(strData[2]),Integer.parseInt(strData[3])));
cnt++;
if(cnt == cardNum){
break;
}
}
//??\??????????¨????
Collage collage = new Collage();
for(InputData data :inputDataList){
collage.setData(data);
}
//????????????
collage.output();
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* InputData?????????
* ?£????????????¨?±????????????\?±??????°?????????
*/
class InputData{
//?£?
public int b;
//???
public int f;
//??¨?±???????
public int r;
//??\?±??????°???????????´?????????????????°???
public int v;
InputData(int _b ,int _f,int _r,int _v){
b = _b;
f = _f;
r = _r;
v = _v;
}
}
class Collage{
int[][][] room = {
{
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0}
},
{
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0}
},
{
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0}
},
{
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0}
},
};
/**
* ?????????????????????
*/
Collage(){
}
/**
* ??\????????????????¨??????????
* @param inputData
*/
public void setData(InputData inputData){
room[inputData.b-1][inputData.f-1][inputData.r-1] += inputData.v;
}
/**
* ??????
*/
public void output(){
for(int bc = 0;bc < room.length ; bc++){
for(int fc=0;fc < room[0].length ; fc++){
for(int rc=0;rc < room[0][0].length ; rc++){
System.out.print(" " + room[bc][fc][rc]);
}
System.out.println();
}
if(bc != room.length-1){
System.out.println("####################");
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
29,
30,
0,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
29,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
0,
13,
17,
14,
2,
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
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
34,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
11,
51
],
[
51,
52
],
[
51,
53
],
[
11,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
74,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
85,
90
],
[
82,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
82,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
82,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
82,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
82,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
134,
136
],
[
123,
137
],
[
11,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
163,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
163,
194
],
[
194,
195
],
[
194,
196
],
[
150,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
9,
207
],
[
207,
208
]
] | [
"import java.io.*;\nimport java.io.IOException;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\t\t\t\t\t\t\t\t\t//入力件数\n\t\t\t,b\t\t\t\t\t\t\t\t\t//棟\n\t\t\t,f\t\t\t\t\t\t\t\t\t//階\n\t\t\t,r\t\t\t\t\t\t\t\t\t//部屋\n\t\t\t,v;\t\t\t\t\t\t\t\t\t//入居者\n\t\tint[][][] house = new int[4][3][10]; \t\n\t\t\t\n\t\ttry{\n\t\t\t//入力件数の入力\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString[] input = new String[n];\n\t\tString output = \"\";\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(b=0;b<4;b++){\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main{\n\tpublic static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\t\t\t\t\t\t\t\t\t//入力件数\n\t\t\t,b\t\t\t\t\t\t\t\t\t//棟\n\t\t\t,f\t\t\t\t\t\t\t\t\t//階\n\t\t\t,r\t\t\t\t\t\t\t\t\t//部屋\n\t\t\t,v;\t\t\t\t\t\t\t\t\t//入居者\n\t\tint[][][] house = new int[4][3][10]; \t\n\t\t\t\n\t\ttry{\n\t\t\t//入力件数の入力\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString[] input = new String[n];\n\t\tString output = \"\";\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(b=0;b<4;b++){\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\t\t\t\t\t\t\t\t\t//入力件数\n\t\t\t,b\t\t\t\t\t\t\t\t\t//棟\n\t\t\t,f\t\t\t\t\t\t\t\t\t//階\n\t\t\t,r\t\t\t\t\t\t\t\t\t//部屋\n\t\t\t,v;\t\t\t\t\t\t\t\t\t//入居者\n\t\tint[][][] house = new int[4][3][10]; \t\n\t\t\t\n\t\ttry{\n\t\t\t//入力件数の入力\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString[] input = new String[n];\n\t\tString output = \"\";\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(b=0;b<4;b++){\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\t\t\t\t\t\t\t\t\t//入力件数\n\t\t\t,b\t\t\t\t\t\t\t\t\t//棟\n\t\t\t,f\t\t\t\t\t\t\t\t\t//階\n\t\t\t,r\t\t\t\t\t\t\t\t\t//部屋\n\t\t\t,v;\t\t\t\t\t\t\t\t\t//入居者\n\t\tint[][][] house = new int[4][3][10]; \t\n\t\t\t\n\t\ttry{\n\t\t\t//入力件数の入力\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString[] input = new String[n];\n\t\tString output = \"\";\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(b=0;b<4;b++){\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n",
"n",
"b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"try{\n\t\t\t//入力件数の入力\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"return;",
"{\n\t\t\t//入力件数の入力\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}",
"n = Integer.parseInt(br.readLine())",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] input = new String[n];",
"input",
"new String[n]",
"n",
"String output = \"\";",
"output",
"\"\"",
"for(int i=0;i<n;i++){\n\t\t\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\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\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"{\n\t\t\ttry{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}",
"catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn;\n\t\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"return;",
"{\n\t\t\t\t//各情報の入力\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tb = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\t\n\t\t\t\thouse[b-1][f-1][r-1] += v;\n\t\t\t\t\n\t\t\t}",
"input = br.readLine().split(\"[\\\\s]+\")",
"input",
"br.readLine().split(\"[\\\\s]+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"[\\\\s]+\"",
"b = Integer.parseInt(input[0])",
"b",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"f = Integer.parseInt(input[1])",
"f",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"r = Integer.parseInt(input[2])",
"r",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"v = Integer.parseInt(input[3])",
"v",
"Integer.parseInt(input[3])",
"Integer.parseInt",
"Integer",
"input[3]",
"input",
"3",
"house[b-1][f-1][r-1] += v",
"house[b-1][f-1][r-1]",
"house[b-1][f-1]",
"house[b-1]",
"house",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(b=0;b<4;b++){\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}",
"b=0;",
"b=0",
"b",
"0",
"b<4",
"b",
"4",
"b++",
"b++",
"b",
"{\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}\n\t\t\tif(b<3)System.out.println(\"####################\");\n\t\t}",
"for(f=0;f<3;f++){\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}",
"f=0;",
"f=0",
"f",
"0",
"f<3",
"f",
"3",
"f++",
"f++",
"f",
"{\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}",
"{\n\t\t\t\tfor(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t\toutput = \"\";\n\t\t\t}",
"for(r=0;r<10;r++){\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}",
"r=0;",
"r=0",
"r",
"0",
"r<10",
"r",
"10",
"r++",
"r++",
"r",
"{\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}",
"{\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}",
"output += \" \" + house[b][f][r]",
"output",
"\" \" + house[b][f][r]",
"\" \"",
"house[b][f][r]",
"house[b][f]",
"house[b]",
"house",
"b",
"f",
"r",
"System.out.println(output)",
"System.out.println",
"System.out",
"System",
"System.out",
"output",
"output = \"\"",
"output",
"\"\"",
"if(b<3)System.out.println(\"####################\");",
"b<3",
"b",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String args[]",
"args"
] | import java.io.*;
import java.io.IOException;
class Main{
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n //入力件数
,b //棟
,f //階
,r //部屋
,v; //入居者
int[][][] house = new int[4][3][10];
try{
//入力件数の入力
n = Integer.parseInt(br.readLine());
}catch(IOException e){
System.out.println(e);
return;
}
String[] input = new String[n];
String output = "";
for(int i=0;i<n;i++){
try{
//各情報の入力
input = br.readLine().split("[\\s]+");
b = Integer.parseInt(input[0]);
f = Integer.parseInt(input[1]);
r = Integer.parseInt(input[2]);
v = Integer.parseInt(input[3]);
house[b-1][f-1][r-1] += v;
}catch(IOException e){
System.out.println(e);
return;
}
}
//出力
for(b=0;b<4;b++){
for(f=0;f<3;f++){
for(r=0;r<10;r++){
output += " " + house[b][f][r];
}
System.out.println(output);
output = "";
}
if(b<3)System.out.println("####################");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
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,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
45,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
45,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
67,
77
],
[
77,
78
],
[
77,
79
],
[
66,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
106,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
93,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
8,
150
],
[
150,
151
],
[
151,
152
],
[
6,
153
],
[
153,
154
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tint residents[][][] = new int[4][3][10];\n int n,b, f, r, v;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}\t\t\n \tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n \tint residents[][][] = new int[4][3][10];\n int n,b, f, r, v;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}\t\t\n \tscanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n \tint residents[][][] = new int[4][3][10];\n int n,b, f, r, v;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}\t\t\n \tscanner.close();\n }",
"main",
"{\n \tint residents[][][] = new int[4][3][10];\n int n,b, f, r, v;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}\t\t\n \tscanner.close();\n }",
"int residents[][][] = new int[4][3][10];",
"residents",
"new int[4][3][10]",
"4",
"3",
"10",
"int n",
"n",
"b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0;i < n;i++){\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}",
"{\n\t\t\tb = scanner.nextInt();\n\t\t\tf = scanner.nextInt();\n\t\t\tr = scanner.nextInt();\n\t\t\tv = scanner.nextInt();\n\t\t\t\n\t\t\tresidents[b-1][f-1][r-1] += v;\n\t\t}",
"b = scanner.nextInt()",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"f = scanner.nextInt()",
"f",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"r = scanner.nextInt()",
"r",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"v = scanner.nextInt()",
"v",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"residents[b-1][f-1][r-1] += v",
"residents[b-1][f-1][r-1]",
"residents[b-1][f-1]",
"residents[b-1]",
"residents",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"for(int j = 0;j < 3;j++){\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k = 0;k < 10;k++){\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+residents[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \"+residents[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+residents[i][j][k]",
"\" \"",
"residents[i][j][k]",
"residents[i][j]",
"residents[i]",
"residents",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
int residents[][][] = new int[4][3][10];
int n,b, f, r, v;
Scanner scanner = new Scanner(System.in);
n = scanner.nextInt();
for(int i = 0;i < n;i++){
b = scanner.nextInt();
f = scanner.nextInt();
r = scanner.nextInt();
v = scanner.nextInt();
residents[b-1][f-1][r-1] += v;
}
for(int i = 0;i < 4;i++){
for(int j = 0;j < 3;j++){
for(int k = 0;k < 10;k++){
System.out.print(" "+residents[i][j][k]);
}
System.out.println();
}
if(i != 3){
System.out.println("####################");
}
}
scanner.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
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,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
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
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
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
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
60,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
11,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
11,
94
],
[
94,
95
],
[
11,
96
],
[
96,
97
],
[
11,
98
],
[
98,
99
],
[
11,
100
],
[
100,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
114,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
114,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
114,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
141,
147
],
[
147,
148
],
[
147,
149
],
[
140,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
154,
156
],
[
151,
157
],
[
157,
158
],
[
157,
159
],
[
150,
160
],
[
135,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
167,
173
],
[
173,
174
],
[
173,
175
],
[
166,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
177,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
161,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
193,
199
],
[
199,
200
],
[
199,
201
],
[
192,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
206,
208
],
[
203,
209
],
[
209,
210
],
[
209,
211
],
[
202,
212
],
[
187,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
219,
225
],
[
225,
226
],
[
225,
227
],
[
218,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
229,
235
],
[
235,
236
],
[
235,
237
],
[
228,
238
],
[
11,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
239,
249
],
[
249,
250
],
[
250,
251
],
[
239,
252
],
[
253,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
265
],
[
254,
266
],
[
266,
267
],
[
267,
268
],
[
254,
269
],
[
270,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
271,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
253,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
283,
288
],
[
11,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
289,
294
],
[
294,
295
],
[
294,
296
],
[
289,
297
],
[
297,
298
],
[
298,
299
],
[
289,
300
],
[
301,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
302,
307
],
[
11,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
308,
313
],
[
11,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
314,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
321,
323
],
[
314,
324
],
[
324,
325
],
[
325,
326
],
[
314,
327
],
[
328,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
329,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
329,
341
],
[
341,
342
],
[
342,
343
],
[
329,
344
],
[
345,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
346,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
353,
357
],
[
328,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
11,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
364,
369
],
[
369,
370
],
[
369,
371
],
[
364,
372
],
[
372,
373
],
[
373,
374
],
[
364,
375
],
[
376,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
377,
382
],
[
11,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
383,
388
],
[
11,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
389,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
396,
398
],
[
389,
399
],
[
399,
400
],
[
400,
401
],
[
389,
402
],
[
403,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
404,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
411,
415
],
[
404,
416
],
[
416,
417
],
[
417,
418
],
[
404,
419
],
[
420,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
421,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
429,
430
],
[
429,
431
],
[
428,
432
],
[
403,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
433,
438
],
[
11,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
439,
444
],
[
444,
445
],
[
444,
446
],
[
439,
447
],
[
447,
448
],
[
448,
449
],
[
439,
450
],
[
451,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
454,
456
],
[
452,
457
],
[
11,
458
],
[
458,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
458,
463
],
[
11,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
466,
468
],
[
464,
469
],
[
469,
470
],
[
469,
471
],
[
471,
472
],
[
471,
473
],
[
464,
474
],
[
474,
475
],
[
475,
476
],
[
464,
477
],
[
478,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
479,
484
],
[
484,
485
],
[
484,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
486,
490
],
[
479,
491
],
[
491,
492
],
[
492,
493
],
[
479,
494
],
[
495,
495
],
[
495,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
498,
500
],
[
496,
501
],
[
501,
502
],
[
501,
503
],
[
503,
504
],
[
504,
505
],
[
504,
506
],
[
503,
507
],
[
478,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
508,
513
],
[
9,
514
],
[
514,
515
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\n\t\tfor(int i =0; i<3;i++){\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}\n\n\t\tint n = scane.nextInt();\n\t\tint b, f, r, v;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < B.length; i++) {\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\n\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\n\t\tfor(int i =0; i<3;i++){\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}\n\n\t\tint n = scane.nextInt();\n\t\tint b, f, r, v;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < B.length; i++) {\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\n\t\tfor(int i =0; i<3;i++){\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}\n\n\t\tint n = scane.nextInt();\n\t\tint b, f, r, v;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < B.length; i++) {\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\n\n\t}",
"main",
"{\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint[][] A = new int[3][10];\n\t\tint[][] B = new int[3][10];\n\t\tint[][] C = new int[3][10];\n\t\tint[][] D = new int[3][10];\n\n\t\tfor(int i =0; i<3;i++){\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}\n\n\t\tint n = scane.nextInt();\n\t\tint b, f, r, v;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < B.length; i++) {\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\n\n\t}",
"Scanner scane = new Scanner(System.in);",
"scane",
"new Scanner(System.in)",
"int[][] A = new int[3][10];",
"A",
"new int[3][10]",
"3",
"10",
"int[][] B = new int[3][10];",
"B",
"new int[3][10]",
"3",
"10",
"int[][] C = new int[3][10];",
"C",
"new int[3][10]",
"3",
"10",
"int[][] D = new int[3][10];",
"D",
"new int[3][10]",
"3",
"10",
"for(int i =0; i<3;i++){\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tfor(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}\n\n\t\t}",
"for(int j = 0; j<10; j++){\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}",
"{\n\t\t\t\tA[i][j] =0;\n\t\t\t\tB[i][j] =0;\n\t\t\t\tC[i][j] =0;\n\t\t\t\tD[i][j] =0;\n\t\t\t}",
"A[i][j] =0",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"0",
"B[i][j] =0",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"0",
"C[i][j] =0",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"0",
"D[i][j] =0",
"D[i][j]",
"D[i]",
"D",
"i",
"j",
"0",
"int n = scane.nextInt();",
"n",
"scane.nextInt()",
"scane.nextInt",
"scane",
"int b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"for (int i = 0; i < n; i++) {\n\t\t\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\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\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}\n\t\t}",
"{\n\t\t\tb = scane.nextInt();\n\t\t\tf = scane.nextInt();\n\t\t\tr = scane.nextInt();\n\t\t\tv = scane.nextInt();\n\n\t\t\tif (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}\n\t\t}",
"b = scane.nextInt()",
"b",
"scane.nextInt()",
"scane.nextInt",
"scane",
"f = scane.nextInt()",
"f",
"scane.nextInt()",
"scane.nextInt",
"scane",
"r = scane.nextInt()",
"r",
"scane.nextInt()",
"scane.nextInt",
"scane",
"v = scane.nextInt()",
"v",
"scane.nextInt()",
"scane.nextInt",
"scane",
"if (b == 1) {\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t} else if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}",
"b == 1",
"b",
"1",
"{\n\t\t\t\tA[f - 1][r - 1] = A[f - 1][r - 1]+v;\n\t\t\t}",
"A[f - 1][r - 1] = A[f - 1][r - 1]+v",
"A[f - 1][r - 1]",
"A[f - 1]",
"A",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"A[f - 1][r - 1]+v",
"A[f - 1][r - 1]",
"A[f - 1]",
"A",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"if (b == 2) {\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t} else if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}",
"b == 2",
"b",
"2",
"{\n\t\t\t\tB[f - 1][r - 1] = B[f - 1][r - 1]+v;\n\t\t\t}",
"B[f - 1][r - 1] = B[f - 1][r - 1]+v",
"B[f - 1][r - 1]",
"B[f - 1]",
"B",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"B[f - 1][r - 1]+v",
"B[f - 1][r - 1]",
"B[f - 1]",
"B",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"if (b == 3) {\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t} else if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}",
"b == 3",
"b",
"3",
"{\n\t\t\t\tC[f - 1][r - 1] = C[f - 1][r - 1]+v;\n\t\t\t}",
"C[f - 1][r - 1] = C[f - 1][r - 1]+v",
"C[f - 1][r - 1]",
"C[f - 1]",
"C",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"C[f - 1][r - 1]+v",
"C[f - 1][r - 1]",
"C[f - 1]",
"C",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"if (b == 4) {\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}",
"b == 4",
"b",
"4",
"{\n\t\t\t\tD[f - 1][r - 1] = D[f - 1][r - 1]+v;\n\t\t\t}",
"D[f - 1][r - 1] = D[f - 1][r - 1]+v",
"D[f - 1][r - 1]",
"D[f - 1]",
"D",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"D[f - 1][r - 1]+v",
"D[f - 1][r - 1]",
"D[f - 1]",
"D",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int j = 0; j < A[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < A[0].length",
"j",
"A[0].length",
"A[0]",
"A",
"0",
"A[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + A[i][j]);\n\t\t\t}",
"System.out.print(\" \" + A[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + A[i][j]",
"\" \"",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 20",
"i",
"20",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for (int i = 0; i < B.length; i++) {\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < B.length",
"i",
"B.length",
"B",
"B.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int j = 0; j < B[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < B[0].length",
"j",
"B[0].length",
"B[0]",
"B",
"0",
"B[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + B[i][j]);\n\t\t\t}",
"System.out.print(\" \" + B[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + B[i][j]",
"\" \"",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 20",
"i",
"20",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for (int i = 0; i < C.length; i++) {\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < C.length",
"i",
"C.length",
"C",
"C.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int j = 0; j < C[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < C[0].length",
"j",
"C[0].length",
"C[0]",
"C",
"0",
"C[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"System.out.print(\" \" + C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for (int i = 0; i < 20; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 20",
"i",
"20",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"{\n\t\t\tSystem.out.print(\"#\");\n\t\t}",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"for (int i = 0; i < D.length; i++) {\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < D.length",
"i",
"D.length",
"D",
"D.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int j = 0; j < D[0].length; j++) {\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < D[0].length",
"j",
"D[0].length",
"D[0]",
"D",
"0",
"D[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + D[i][j]);\n\t\t\t}",
"System.out.print(\" \" + D[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + D[i][j]",
"\" \"",
"D[i][j]",
"D[i]",
"D",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner scane = new Scanner(System.in);
int[][] A = new int[3][10];
int[][] B = new int[3][10];
int[][] C = new int[3][10];
int[][] D = new int[3][10];
for(int i =0; i<3;i++){
for(int j = 0; j<10; j++){
A[i][j] =0;
B[i][j] =0;
C[i][j] =0;
D[i][j] =0;
}
}
int n = scane.nextInt();
int b, f, r, v;
for (int i = 0; i < n; i++) {
b = scane.nextInt();
f = scane.nextInt();
r = scane.nextInt();
v = scane.nextInt();
if (b == 1) {
A[f - 1][r - 1] = A[f - 1][r - 1]+v;
} else if (b == 2) {
B[f - 1][r - 1] = B[f - 1][r - 1]+v;
} else if (b == 3) {
C[f - 1][r - 1] = C[f - 1][r - 1]+v;
} else if (b == 4) {
D[f - 1][r - 1] = D[f - 1][r - 1]+v;
}
}
for (int i = 0; i < A.length; i++) {
for (int j = 0; j < A[0].length; j++) {
System.out.print(" " + A[i][j]);
}
System.out.println("");
}
for (int i = 0; i < 20; i++) {
System.out.print("#");
}
System.out.println("");
for (int i = 0; i < B.length; i++) {
for (int j = 0; j < B[0].length; j++) {
System.out.print(" " + B[i][j]);
}
System.out.println("");
}
for (int i = 0; i < 20; i++) {
System.out.print("#");
}
System.out.println("");
for (int i = 0; i < C.length; i++) {
for (int j = 0; j < C[0].length; j++) {
System.out.print(" " + C[i][j]);
}
System.out.println("");
}
for (int i = 0; i < 20; i++) {
System.out.print("#");
}
System.out.println("");
for (int i = 0; i < D.length; i++) {
for (int j = 0; j < D[0].length; j++) {
System.out.print(" " + D[i][j]);
}
System.out.println("");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
188,
5
],
[
188,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
61,
69
],
[
8,
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
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
82,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
82,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
111,
113
],
[
104,
114
],
[
114,
115
],
[
114,
116
],
[
103,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
143,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
130,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
6,
185
],
[
185,
186
],
[
0,
187
],
[
187,
188
],
[
187,
189
]
] | [
"\nimport java.util.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tchar rooms[][][]=new char[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tchar rooms[][][]=new char[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tchar rooms[][][]=new char[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tchar rooms[][][]=new char[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}",
"Scanner cin=new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int n=cin.nextInt();",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"char rooms[][][]=new char[4][3][10];",
"rooms",
"new char[4][3][10]",
"4",
"3",
"10",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}",
"for(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}",
"for(int k=0;k<10;k++)rooms[i][j][k]=0;",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"rooms[i][j][k]=0;",
"rooms[i][j][k]=0",
"rooms[i][j][k]",
"rooms[i][j]",
"rooms[i]",
"rooms",
"i",
"j",
"k",
"0",
"for(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}",
"{\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}",
"int b=cin.nextInt()",
"b",
"cin.nextInt()",
"cin.nextInt",
"cin",
"f=cin.nextInt()",
"f",
"cin.nextInt()",
"cin.nextInt",
"cin",
"r=cin.nextInt()",
"r",
"cin.nextInt()",
"cin.nextInt",
"cin",
"v=cin.nextInt();",
"v",
"cin.nextInt()",
"cin.nextInt",
"cin",
"rooms[b-1][f-1][r-1]+=v",
"rooms[b-1][f-1][r-1]",
"rooms[b-1][f-1]",
"rooms[b-1]",
"rooms",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}",
"for(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"System.out.print(\" \"+(int)rooms[i][j][k]);",
"System.out.print(\" \"+(int)rooms[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+(int)rooms[i][j][k]",
"\" \"",
"(int)rooms[i][j][k]",
"rooms[i][j]",
"rooms[i]",
"rooms",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i!=3)System.out.println(\"####################\");",
"i!=3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tchar rooms[][][]=new char[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tchar rooms[][][]=new char[4][3][10];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)rooms[i][j][k]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();\n\t\t\trooms[b-1][f-1][r-1]+=v;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++)System.out.print(\" \"+(int)rooms[i][j][k]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
int n=cin.nextInt();
char rooms[][][]=new char[4][3][10];
for(int i=0;i<4;i++) {
for(int j=0;j<3;j++) {
for(int k=0;k<10;k++)rooms[i][j][k]=0;
}
}
for(int i=0;i<n;i++) {
int b=cin.nextInt(),f=cin.nextInt(),r=cin.nextInt(),v=cin.nextInt();
rooms[b-1][f-1][r-1]+=v;
}
for(int i=0;i<4;i++) {
for(int j=0;j<3;j++) {
for(int k=0;k<10;k++)System.out.print(" "+(int)rooms[i][j][k]);
System.out.println();
}
if(i!=3)System.out.println("####################");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
4,
18,
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,
4,
18,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
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
],
[
203,
11
],
[
203,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
14,
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
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
64,
69
],
[
61,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
61,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
61,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
61,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
61,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
104,
110
],
[
110,
111
],
[
110,
112
],
[
103,
113
],
[
113,
114
],
[
113,
115
],
[
102,
116
],
[
14,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
129,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
150,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
14,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
183,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
14,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
14,
197
],
[
197,
198
],
[
198,
199
],
[
12,
200
],
[
200,
201
],
[
0,
202
],
[
202,
203
],
[
202,
204
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n, b,f,r,v;\n\t\tString[] list;\n\t\tint[][][] building;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tbuilding = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tbuilder.delete(builder.length() -1 , builder.length());\n\t\tSystem.out.println(builder);\n\t\tbr.close();\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n, b,f,r,v;\n\t\tString[] list;\n\t\tint[][][] building;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tbuilding = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tbuilder.delete(builder.length() -1 , builder.length());\n\t\tSystem.out.println(builder);\n\t\tbr.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tint n, b,f,r,v;\n\t\tString[] list;\n\t\tint[][][] building;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tbuilding = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tbuilder.delete(builder.length() -1 , builder.length());\n\t\tSystem.out.println(builder);\n\t\tbr.close();\n\t}",
"main",
"{\n\t\tint n, b,f,r,v;\n\t\tString[] list;\n\t\tint[][][] building;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tbuilding = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tbuilder.delete(builder.length() -1 , builder.length());\n\t\tSystem.out.println(builder);\n\t\tbr.close();\n\t}",
"int n",
"n",
"b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"String[] list;",
"list",
"int[][][] building;",
"building",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"n = Integer.parseInt(br.readLine())",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"building = new int[4][3][10]",
"building",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}",
"{\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}",
"list = br.readLine().split(\" \")",
"list",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"b = Integer.parseInt(list[0])",
"b",
"Integer.parseInt(list[0])",
"Integer.parseInt",
"Integer",
"list[0]",
"list",
"0",
"f = Integer.parseInt(list[1])",
"f",
"Integer.parseInt(list[1])",
"Integer.parseInt",
"Integer",
"list[1]",
"list",
"1",
"r = Integer.parseInt(list[2])",
"r",
"Integer.parseInt(list[2])",
"Integer.parseInt",
"Integer",
"list[2]",
"list",
"2",
"v = Integer.parseInt(list[3])",
"v",
"Integer.parseInt(list[3])",
"Integer.parseInt",
"Integer",
"list[3]",
"list",
"3",
"building[b - 1][f - 1][r - 1] += v",
"building[b - 1][f - 1][r - 1]",
"building[b - 1][f - 1]",
"building[b - 1]",
"building",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"for(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}",
"if(i != 0)builder.append(\"####################\\n\");",
"i != 0",
"i",
"0",
"builder.append(\"####################\\n\")",
"builder.append",
"builder",
"\"####################\\n\"",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}",
"builder.append(\" \" + building[i][j][k])",
"builder.append",
"builder",
"\" \" + building[i][j][k]",
"\" \"",
"building[i][j][k]",
"building[i][j]",
"building[i]",
"building",
"i",
"j",
"k",
"builder.append(\"\\n\")",
"builder.append",
"builder",
"\"\\n\"",
"builder.delete(builder.length() -1 , builder.length())",
"builder.delete",
"builder",
"builder.length() -1",
"builder.length()",
"builder.length",
"builder",
"1",
"builder.length()",
"builder.length",
"builder",
"System.out.println(builder)",
"System.out.println",
"System.out",
"System",
"System.out",
"builder",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n, b,f,r,v;\n\t\tString[] list;\n\t\tint[][][] building;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tbuilding = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tbuilder.delete(builder.length() -1 , builder.length());\n\t\tSystem.out.println(builder);\n\t\tbr.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n, b,f,r,v;\n\t\tString[] list;\n\t\tint[][][] building;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tbuilding = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(list[0]);\n\t\t\tf = Integer.parseInt(list[1]);\n\t\t\tr = Integer.parseInt(list[2]);\n\t\t\tv = Integer.parseInt(list[3]);\n\t\t\tbuilding[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(i != 0)builder.append(\"####################\\n\");\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tbuilder.append(\" \" + building[i][j][k]);\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tbuilder.delete(builder.length() -1 , builder.length());\n\t\tSystem.out.println(builder);\n\t\tbr.close();\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
int n, b,f,r,v;
String[] list;
int[][][] building;
StringBuilder builder = new StringBuilder();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(br.readLine());
building = new int[4][3][10];
for(int i=0; i<n; i++){
list = br.readLine().split(" ");
b = Integer.parseInt(list[0]);
f = Integer.parseInt(list[1]);
r = Integer.parseInt(list[2]);
v = Integer.parseInt(list[3]);
building[b - 1][f - 1][r - 1] += v;
}
for(int i = 0; i < 4; i++){
if(i != 0)builder.append("####################\n");
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
builder.append(" " + building[i][j][k]);
}
builder.append("\n");
}
}
builder.delete(builder.length() -1 , builder.length());
System.out.println(builder);
br.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
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,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
13,
30,
0,
18,
18,
13,
2,
13,
17,
2,
13,
17,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
385,
5
],
[
385,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
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
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
62,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
62,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
8,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
8,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
111,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
111,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
111,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
138,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
132,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
157,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
153,
163
],
[
148,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
176,
178
],
[
169,
179
],
[
164,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
182,
188
],
[
188,
189
],
[
188,
190
],
[
181,
191
],
[
8,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
192,
200
],
[
200,
201
],
[
201,
202
],
[
192,
203
],
[
204,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
210,
211
],
[
210,
212
],
[
205,
213
],
[
213,
214
],
[
214,
215
],
[
205,
216
],
[
217,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
204,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
8,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
235,
240
],
[
8,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
241,
249
],
[
249,
250
],
[
250,
251
],
[
241,
252
],
[
253,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
254,
262
],
[
262,
263
],
[
263,
264
],
[
254,
265
],
[
266,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
267,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
253,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
8,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
284,
289
],
[
8,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
290,
295
],
[
295,
296
],
[
295,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
290,
301
],
[
302,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
303,
308
],
[
308,
309
],
[
308,
310
],
[
303,
311
],
[
311,
312
],
[
312,
313
],
[
303,
314
],
[
315,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
316,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
302,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
8,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
333,
338
],
[
8,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
339,
344
],
[
344,
345
],
[
344,
346
],
[
339,
347
],
[
347,
348
],
[
348,
349
],
[
339,
350
],
[
351,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
352,
357
],
[
357,
358
],
[
357,
359
],
[
352,
360
],
[
360,
361
],
[
361,
362
],
[
352,
363
],
[
364,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
365,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
372,
376
],
[
351,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
6,
382
],
[
382,
383
],
[
0,
384
],
[
384,
385
],
[
384,
386
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint room1[][] = new int[3][10];\n\t\tint room2[][] = new int[3][10];\n\t\tint room3[][] = new int[3][10];\n\t\tint room4[][] = new int[3][10];\n\t\tint n = x.nextInt();\n\t\tfor( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}\n\t\tint b ;\n\t\tint f ;\n\t\tint r ;\n\t\tint v ;\n\t\tfor( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 x = new Scanner(System.in);\n\t\tint room1[][] = new int[3][10];\n\t\tint room2[][] = new int[3][10];\n\t\tint room3[][] = new int[3][10];\n\t\tint room4[][] = new int[3][10];\n\t\tint n = x.nextInt();\n\t\tfor( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}\n\t\tint b ;\n\t\tint f ;\n\t\tint r ;\n\t\tint v ;\n\t\tfor( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint room1[][] = new int[3][10];\n\t\tint room2[][] = new int[3][10];\n\t\tint room3[][] = new int[3][10];\n\t\tint room4[][] = new int[3][10];\n\t\tint n = x.nextInt();\n\t\tfor( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}\n\t\tint b ;\n\t\tint f ;\n\t\tint r ;\n\t\tint v ;\n\t\tfor( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner x = new Scanner(System.in);\n\t\tint room1[][] = new int[3][10];\n\t\tint room2[][] = new int[3][10];\n\t\tint room3[][] = new int[3][10];\n\t\tint room4[][] = new int[3][10];\n\t\tint n = x.nextInt();\n\t\tfor( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}\n\t\tint b ;\n\t\tint f ;\n\t\tint r ;\n\t\tint v ;\n\t\tfor( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"Scanner x = new Scanner(System.in);",
"x",
"new Scanner(System.in)",
"int room1[][] = new int[3][10];",
"room1",
"new int[3][10]",
"3",
"10",
"int room2[][] = new int[3][10];",
"room2",
"new int[3][10]",
"3",
"10",
"int room3[][] = new int[3][10];",
"room3",
"new int[3][10]",
"3",
"10",
"int room4[][] = new int[3][10];",
"room4",
"new int[3][10]",
"3",
"10",
"int n = x.nextInt();",
"n",
"x.nextInt()",
"x.nextInt",
"x",
"for( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}",
"int a = 0 ;",
"int a = 0 ;",
"a",
"0",
"a < 3",
"a",
"3",
"a++",
"a++",
"a",
"{\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}",
"for(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}",
"int t = 0 ;",
"int t = 0 ;",
"t",
"0",
"t <10",
"t",
"10",
"t++",
"t++",
"t",
"{\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}",
"{\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}",
"room1[a][t] = 0",
"room1[a][t]",
"room1[a]",
"room1",
"a",
"t",
"0",
"room2[a][t] = 0",
"room2[a][t]",
"room2[a]",
"room2",
"a",
"t",
"0",
"room3[a][t] = 0",
"room3[a][t]",
"room3[a]",
"room3",
"a",
"t",
"0",
"room4[a][t] = 0",
"room4[a][t]",
"room4[a]",
"room4",
"a",
"t",
"0",
"int b ;",
"b",
"int f ;",
"f",
"int r ;",
"r",
"int v ;",
"v",
"for( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\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\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}",
"{\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}",
"b = x.nextInt()",
"b",
"x.nextInt()",
"x.nextInt",
"x",
"f = x.nextInt()",
"f",
"x.nextInt()",
"x.nextInt",
"x",
"r = x.nextInt()",
"r",
"x.nextInt()",
"x.nextInt",
"x",
"v = x.nextInt()",
"v",
"x.nextInt()",
"x.nextInt",
"x",
"if(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}",
"b == 1",
"b",
"1",
"{\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}",
"room1[f-1][r-1]+= v",
"room1[f-1][r-1]",
"room1[f-1]",
"room1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}",
"b ==2",
"b",
"2",
"{\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}",
"room2[f-1][r-1]+= v",
"room2[f-1][r-1]",
"room2[f-1]",
"room2",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}",
"b== 3",
"b",
"3",
"{\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}",
"room3[f-1][r-1]+= v",
"room3[f-1][r-1]",
"room3[f-1]",
"room3",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}",
"room4[f-1][r-1]+= v",
"room4[f-1][r-1]",
"room4[f-1]",
"room4",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int d = 0 ;",
"int d = 0 ;",
"d",
"0",
"d <3",
"d",
"3",
"d++",
"d++",
"d",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}",
"int c = 0 ;",
"int c = 0 ;",
"c",
"0",
"c < 10",
"c",
"10",
"c++",
"c++",
"c",
"{\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}",
"{\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}",
"System.out.print(\" \" + room1[d][c])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room1[d][c]",
"\" \"",
"room1[d][c]",
"room1[d]",
"room1",
"d",
"c",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int d = 0 ;",
"int d = 0 ;",
"d",
"0",
"d <3",
"d",
"3",
"d++",
"d++",
"d",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}",
"int c = 0 ;",
"int c = 0 ;",
"c",
"0",
"c < 10",
"c",
"10",
"c++",
"c++",
"c",
"{\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}",
"{\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}",
"System.out.print(\" \" + room2[d][c])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room2[d][c]",
"\" \"",
"room2[d][c]",
"room2[d]",
"room2",
"d",
"c",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int d = 0 ;",
"int d = 0 ;",
"d",
"0",
"d <3",
"d",
"3",
"d++",
"d++",
"d",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}",
"int c = 0 ;",
"int c = 0 ;",
"c",
"0",
"c < 10",
"c",
"10",
"c++",
"c++",
"c",
"{\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}",
"{\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}",
"System.out.print(\" \" + room3[d][c])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room3[d][c]",
"\" \"",
"room3[d][c]",
"room3[d]",
"room3",
"d",
"c",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int d = 0 ;",
"int d = 0 ;",
"d",
"0",
"d <3",
"d",
"3",
"d++",
"d++",
"d",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}",
"int c = 0 ;",
"int c = 0 ;",
"c",
"0",
"c < 10",
"c",
"10",
"c++",
"c++",
"c",
"{\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}",
"{\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}",
"System.out.print(\" \" + room4[d][c])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room4[d][c]",
"\" \"",
"room4[d][c]",
"room4[d]",
"room4",
"d",
"c",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint room1[][] = new int[3][10];\n\t\tint room2[][] = new int[3][10];\n\t\tint room3[][] = new int[3][10];\n\t\tint room4[][] = new int[3][10];\n\t\tint n = x.nextInt();\n\t\tfor( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}\n\t\tint b ;\n\t\tint f ;\n\t\tint r ;\n\t\tint v ;\n\t\tfor( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint room1[][] = new int[3][10];\n\t\tint room2[][] = new int[3][10];\n\t\tint room3[][] = new int[3][10];\n\t\tint room4[][] = new int[3][10];\n\t\tint n = x.nextInt();\n\t\tfor( int a = 0 ; a < 3 ; a++){\n\t\t\tfor(int t = 0 ; t <10 ; t++){\n\t\t\t\troom1[a][t] = 0;\n\t\t\t\troom2[a][t] = 0;\n\t\t\t\troom3[a][t] = 0;\n\t\t\t\troom4[a][t] = 0;\n\t\t\t}\n\t\t}\n\t\tint b ;\n\t\tint f ;\n\t\tint r ;\n\t\tint v ;\n\t\tfor( int i = 0 ; i < n ; i++){\n\t\t\tb = x.nextInt();\n\t\t\tf = x.nextInt();\n\t\t\tr = x.nextInt();\n\t\t\tv = x.nextInt();\n\t\t\tif(b == 1){\n\t\t\t\troom1[f-1][r-1]+= v;\n\t\t\t}else if(b ==2){\n\t\t\t\troom2[f-1][r-1]+= v;\n\t\t\t}else if( b== 3){\n\t\t\t\troom3[f-1][r-1]+= v;\n\t\t\t}else{\n\t\t\t\troom4[f-1][r-1]+= v;\n\t\t\t}\n\t\t}\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room1[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room2[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room3[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int d = 0 ; d <3 ; d++){\n\t\t\tfor( int c = 0 ; c < 10 ; c++){\n\t\t\tSystem.out.print(\" \" + room4[d][c]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner x = new Scanner(System.in);
int room1[][] = new int[3][10];
int room2[][] = new int[3][10];
int room3[][] = new int[3][10];
int room4[][] = new int[3][10];
int n = x.nextInt();
for( int a = 0 ; a < 3 ; a++){
for(int t = 0 ; t <10 ; t++){
room1[a][t] = 0;
room2[a][t] = 0;
room3[a][t] = 0;
room4[a][t] = 0;
}
}
int b ;
int f ;
int r ;
int v ;
for( int i = 0 ; i < n ; i++){
b = x.nextInt();
f = x.nextInt();
r = x.nextInt();
v = x.nextInt();
if(b == 1){
room1[f-1][r-1]+= v;
}else if(b ==2){
room2[f-1][r-1]+= v;
}else if( b== 3){
room3[f-1][r-1]+= v;
}else{
room4[f-1][r-1]+= v;
}
}
for(int d = 0 ; d <3 ; d++){
for( int c = 0 ; c < 10 ; c++){
System.out.print(" " + room1[d][c]);
}
System.out.println();
}
System.out.println("####################");
for(int d = 0 ; d <3 ; d++){
for( int c = 0 ; c < 10 ; c++){
System.out.print(" " + room2[d][c]);
}
System.out.println();
}
System.out.println("####################");
for(int d = 0 ; d <3 ; d++){
for( int c = 0 ; c < 10 ; c++){
System.out.print(" " + room3[d][c]);
}
System.out.println();
}
System.out.println("####################");
for(int d = 0 ; d <3 ; d++){
for( int c = 0 ; c < 10 ; c++){
System.out.print(" " + room4[d][c]);
}
System.out.println();
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
13,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
147,
5
],
[
147,
6
],
[
6,
7
],
[
6,
8
],
[
147,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
35,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
35,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
35,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
35,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
11,
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
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
96,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
132,
133
],
[
83,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
9,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int[][][] ary = new int[4][3][10];\n \n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int[][][] ary = new int[4][3][10];\n \n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}",
"Main",
"public static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n int[][][] ary = new int[4][3][10];\n \n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }",
"main",
"{\n int[][][] ary = new int[4][3][10];\n \n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }",
"int[][][] ary = new int[4][3][10];",
"ary",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }",
"{\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }",
"int b = sc.nextInt()-1;",
"b",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int f = sc.nextInt()-1;",
"f",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int r = sc.nextInt()-1;",
"r",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ary[b][f][r] += v",
"ary[b][f][r]",
"ary[b][f]",
"ary[b]",
"ary",
"b",
"f",
"r",
"v",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }",
"{\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }",
"for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }",
"{\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n sb.append(\" \").append(ary[i][j][k]);\n }",
"{\n sb.append(\" \").append(ary[i][j][k]);\n }",
"sb.append(\" \").append(ary[i][j][k])",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"ary[i][j][k]",
"ary[i][j]",
"ary[i]",
"ary",
"i",
"j",
"k",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"if (i != 3) System.out.println(\"####################\");",
"i != 3",
"i",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int[][][] ary = new int[4][3][10];\n \n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int[][][] ary = new int[4][3][10];\n \n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int b = sc.nextInt()-1;\n int f = sc.nextInt()-1;\n int r = sc.nextInt()-1;\n int v = sc.nextInt();\n ary[b][f][r] += v;\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n StringBuilder sb = new StringBuilder();\n for (int k = 0; k < 10; k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
int[][][] ary = new int[4][3][10];
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int b = sc.nextInt()-1;
int f = sc.nextInt()-1;
int r = sc.nextInt()-1;
int v = sc.nextInt();
ary[b][f][r] += v;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
StringBuilder sb = new StringBuilder();
for (int k = 0; k < 10; k++) {
sb.append(" ").append(ary[i][j][k]);
}
System.out.println(sb.toString());
}
if (i != 3) System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
2,
4,
18,
13,
18,
13,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
174,
5
],
[
174,
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
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
8,
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
],
[
51,
52
],
[
52,
53
],
[
49,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
57,
64
],
[
46,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
46,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
77,
84
],
[
46,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
46,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
93,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
148,
154
],
[
127,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
114,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
6,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
]
] | [
"import java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][][] dormitory = new int[4][3][10]; //??????????????????\n\t\tint b,f,r,v;\n\t\t\n\t\t//?±?????????°?????¨????????????????¨????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}\n\t\t\n\t\t//?????????????±?????????°?????¨???\n\t\tfor(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][][] dormitory = new int[4][3][10]; //??????????????????\n\t\tint b,f,r,v;\n\t\t\n\t\t//?±?????????°?????¨????????????????¨????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}\n\t\t\n\t\t//?????????????±?????????°?????¨???\n\t\tfor(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][][] dormitory = new int[4][3][10]; //??????????????????\n\t\tint b,f,r,v;\n\t\t\n\t\t//?±?????????°?????¨????????????????¨????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}\n\t\t\n\t\t//?????????????±?????????°?????¨???\n\t\tfor(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][][] dormitory = new int[4][3][10]; //??????????????????\n\t\tint b,f,r,v;\n\t\t\n\t\t//?±?????????°?????¨????????????????¨????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}\n\t\t\n\t\t//?????????????±?????????°?????¨???\n\t\tfor(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][][] dormitory = new int[4][3][10];",
"dormitory",
"new int[4][3][10]",
"4",
"3",
"10",
"int b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"for(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"b = Integer.parseInt(str[0])-1",
"b",
"Integer.parseInt(str[0])-1",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"1",
"f = Integer.parseInt(str[1])-1",
"f",
"Integer.parseInt(str[1])-1",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"1",
"r = Integer.parseInt(str[2])-1",
"r",
"Integer.parseInt(str[2])-1",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"1",
"v = Integer.parseInt(str[3])",
"v",
"Integer.parseInt(str[3])",
"Integer.parseInt",
"Integer",
"str[3]",
"str",
"3",
"dormitory[b][f][r] += v",
"dormitory[b][f][r]",
"dormitory[b][f]",
"dormitory[b]",
"dormitory",
"b",
"f",
"r",
"v",
"for(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \"+dormitory[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+dormitory[i][j][k]",
"\" \"",
"dormitory[i][j][k]",
"dormitory[i][j]",
"dormitory[i]",
"dormitory",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i!=3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][][] dormitory = new int[4][3][10]; //??????????????????\n\t\tint b,f,r,v;\n\t\t\n\t\t//?±?????????°?????¨????????????????¨????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}\n\t\t\n\t\t//?????????????±?????????°?????¨???\n\t\tfor(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][][] dormitory = new int[4][3][10]; //??????????????????\n\t\tint b,f,r,v;\n\t\t\n\t\t//?±?????????°?????¨????????????????¨????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(str[0])-1;\n\t\t\tf = Integer.parseInt(str[1])-1;\n\t\t\tr = Integer.parseInt(str[2])-1;\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\t\n\t\t\tdormitory[b][f][r] += v; //v????????????????????????????????§???????????????\n\t\t}\n\t\t\n\t\t//?????????????±?????????°?????¨???\n\t\tfor(int i=0; i<4; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tfor(int k=0; k<10; k++){\n\t\t\t\t\tSystem.out.print(\" \"+dormitory[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int[][][] dormitory = new int[4][3][10]; //??????????????????
int b,f,r,v;
//?±?????????°?????¨????????????????¨????
for(int i=0; i<n; i++){
String[] str = br.readLine().split(" ");
b = Integer.parseInt(str[0])-1;
f = Integer.parseInt(str[1])-1;
r = Integer.parseInt(str[2])-1;
v = Integer.parseInt(str[3]);
dormitory[b][f][r] += v; //v????????????????????????????????§???????????????
}
//?????????????±?????????°?????¨???
for(int i=0; i<4; i++){
for(int j=0; j<3; j++){
for(int k=0; k<10; k++){
System.out.print(" "+dormitory[i][j][k]);
}
System.out.println();
}
if(i!=3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
40,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
2,
17,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
205,
5
],
[
205,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
27,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
27,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
59,
61
],
[
48,
62
],
[
27,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
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
],
[
104,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
138,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
125,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
171,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
178,
186
],
[
186,
187
],
[
187,
188
],
[
178,
189
],
[
190,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
177,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
6,
202
],
[
202,
203
],
[
0,
204
],
[
204,
205
],
[
204,
206
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] hu = new int[4][3][10];\n\n //b?£?f???r?????????v?????\\????????????\n while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }\n\n //????????¨??????0?????\\??????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }\n\n //??¨?????????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] hu = new int[4][3][10];\n\n //b?£?f???r?????????v?????\\????????????\n while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }\n\n //????????¨??????0?????\\??????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }\n\n //??¨?????????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] hu = new int[4][3][10];\n\n //b?£?f???r?????????v?????\\????????????\n while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }\n\n //????????¨??????0?????\\??????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }\n\n //??¨?????????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] hu = new int[4][3][10];\n\n //b?£?f???r?????????v?????\\????????????\n while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }\n\n //????????¨??????0?????\\??????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }\n\n //??¨?????????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][][] hu = new int[4][3][10];",
"hu",
"new int[4][3][10]",
"4",
"3",
"10",
"while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }",
"n != 0",
"n",
"0",
"{\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v = scan.nextInt();",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"hu[b - 1][f - 1][r - 1] += v",
"hu[b - 1][f - 1][r - 1]",
"hu[b - 1][f - 1]",
"hu[b - 1]",
"hu",
"b - 1",
"b",
"1",
"f - 1",
"f",
"1",
"r - 1",
"r",
"1",
"v",
"n--",
"n",
"for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }",
"int num = 0;",
"int num = 0;",
"num",
"0",
"num < 4",
"num",
"4",
"num++",
"num++",
"num",
"{\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }",
"{\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }",
"for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }",
"{\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }",
"for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < 10",
"a",
"10",
"a++",
"a++",
"a",
"{\n hu[num][i][a] += 0;\n }",
"{\n hu[num][i][a] += 0;\n }",
"hu[num][i][a] += 0",
"hu[num][i][a]",
"hu[num][i]",
"hu[num]",
"hu",
"num",
"i",
"a",
"0",
"for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }",
"int num = 0;",
"int num = 0;",
"num",
"0",
"num < 4",
"num",
"4",
"num++",
"num++",
"num",
"{\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }",
"{\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }",
"for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }",
"{\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }",
"for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < 10",
"a",
"10",
"a++",
"a++",
"a",
"{\n System.out.print(\" \" + hu[num][i][a]);\n }",
"{\n System.out.print(\" \" + hu[num][i][a]);\n }",
"System.out.print(\" \" + hu[num][i][a])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + hu[num][i][a]",
"\" \"",
"hu[num][i][a]",
"hu[num][i]",
"hu[num]",
"hu",
"num",
"i",
"a",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }",
"num != 4 - 1",
"num",
"4 - 1",
"4",
"1",
"{\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }",
"for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 20",
"i",
"20",
"i++",
"i++",
"i",
"{\n System.out.print(\"#\");\n }",
"{\n System.out.print(\"#\");\n }",
"System.out.print(\"#\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"#\"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] hu = new int[4][3][10];\n\n //b?£?f???r?????????v?????\\????????????\n while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }\n\n //????????¨??????0?????\\??????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }\n\n //??¨?????????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] hu = new int[4][3][10];\n\n //b?£?f???r?????????v?????\\????????????\n while (n != 0) {\n int b = scan.nextInt();\n int f = scan.nextInt();\n int r = scan.nextInt();\n int v = scan.nextInt();\n hu[b - 1][f - 1][r - 1] += v;\n n--;\n }\n\n //????????¨??????0?????\\??????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n hu[num][i][a] += 0;\n }\n }\n }\n\n //??¨?????????\n for (int num = 0; num < 4; num++) {\n for (int i = 0; i < 3; i++) {\n for (int a = 0; a < 10; a++) {\n System.out.print(\" \" + hu[num][i][a]);\n }\n System.out.println();\n }\n\n if (num != 4 - 1) {\n for (int i = 0; i < 20; i++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[][][] hu = new int[4][3][10];
//b?£?f???r?????????v?????\????????????
while (n != 0) {
int b = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
int v = scan.nextInt();
hu[b - 1][f - 1][r - 1] += v;
n--;
}
//????????¨??????0?????\??????
for (int num = 0; num < 4; num++) {
for (int i = 0; i < 3; i++) {
for (int a = 0; a < 10; a++) {
hu[num][i][a] += 0;
}
}
}
//??¨?????????
for (int num = 0; num < 4; num++) {
for (int i = 0; i < 3; i++) {
for (int a = 0; a < 10; a++) {
System.out.print(" " + hu[num][i][a]);
}
System.out.println();
}
if (num != 4 - 1) {
for (int i = 0; i < 20; i++) {
System.out.print("#");
}
System.out.println();
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
40,
17,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
41,
13,
39,
17,
17,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
28,
13,
13,
30,
30,
28,
13,
13,
30,
30,
28,
13,
13,
30,
30,
4,
18,
13,
20,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
3,
41,
13,
17,
28,
13,
13,
30,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
2,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
17,
12,
13,
30,
41,
13,
17,
41,
13,
17,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
29,
13,
12,
13,
30,
14,
2,
36,
13,
29,
17,
14,
2,
13,
17,
29,
17,
14,
2,
4,
13,
4,
18,
13,
29,
17,
41,
13,
13,
14,
2,
13,
18,
13,
13,
29,
17,
14,
2,
13,
18,
13,
13,
29,
17,
14,
2,
13,
18,
13,
13,
29,
17,
29,
17,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
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
],
[
453,
11
],
[
453,
12
],
[
12,
13
],
[
12,
14
],
[
453,
15
],
[
15,
16
],
[
15,
17
],
[
453,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
21,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
30,
39
],
[
39,
40
],
[
39,
41
],
[
30,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
44,
48
],
[
30,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
30,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
57,
60
],
[
57,
61
],
[
57,
62
],
[
57,
63
],
[
57,
64
],
[
57,
65
],
[
57,
66
],
[
57,
67
],
[
30,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
30,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
88,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
102,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
114,
116
],
[
95,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
123,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
135,
137
],
[
123,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
123,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
151,
153
],
[
123,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
159,
161
],
[
123,
162
],
[
162,
163
],
[
162,
164
],
[
123,
165
],
[
165,
166
],
[
165,
167
],
[
165,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
171,
174
],
[
170,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
123,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
181,
185
],
[
180,
186
],
[
30,
187
],
[
187,
188
],
[
187,
189
],
[
30,
190
],
[
190,
191
],
[
190,
192
],
[
190,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
194,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
207,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
194,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
225,
226
],
[
225,
227
],
[
218,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
30,
234
],
[
234,
235
],
[
235,
236
],
[
18,
237
],
[
237,
238
],
[
453,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
239,
246
],
[
246,
247
],
[
239,
248
],
[
248,
249
],
[
239,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
250,
262
],
[
262,
263
],
[
239,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
273,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
271,
277
],
[
270,
278
],
[
269,
279
],
[
273,
280
],
[
239,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
287,
288
],
[
287,
289
],
[
283,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
283,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
283,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
310
],
[
283,
311
],
[
311,
312
],
[
239,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
320
],
[
320,
321
],
[
315,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
315,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
329,
332
],
[
332,
333
],
[
333,
334
],
[
328,
335
],
[
335,
336
],
[
315,
337
],
[
337,
338
],
[
337,
339
],
[
315,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
343,
345
],
[
340,
346
],
[
346,
347
],
[
315,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
351,
353
],
[
348,
354
],
[
354,
355
],
[
315,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
356,
362
],
[
362,
363
],
[
315,
364
],
[
364,
365
],
[
313,
366
],
[
366,
367
],
[
239,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
371,
375
],
[
370,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
370,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
368,
386
],
[
386,
387
],
[
368,
388
],
[
388,
389
],
[
368,
390
],
[
390,
391
],
[
239,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
239,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
401,
403
],
[
400,
404
],
[
397,
405
],
[
405,
406
],
[
239,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
410,
411
],
[
239,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
412,
420
],
[
420,
421
],
[
239,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
425,
426
],
[
239,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
427,
435
],
[
435,
436
],
[
239,
437
],
[
437,
438
],
[
437,
439
],
[
439,
440
],
[
440,
441
],
[
239,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
445,
449
],
[
442,
450
],
[
450,
451
],
[
0,
452
],
[
452,
453
],
[
452,
454
]
] | [
"import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\nimport java.util.ArrayList;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_C\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n private final static String SPACE = \" \";\n private final static String SEPARATOR = \"####################\";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static class Room {\n private int numOfRoommate=0;\n private int block;\n private int roomNo;\n private int floor;\n\n /**\n * \n * @param v ?¢??????°?????\\???.\n */\n public void updateNumOfRoommate(int v) {\n this.numOfRoommate = this.numOfRoommate + v;\n }\n\n @Override\n public String toString() {\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }\n\n @Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }\n\n @Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }\n\n Room(int block, int floor, int roomNo) {\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }\n \n public int getNumOfRoommate() {\n return numOfRoommate;\n }\n public void setNumOfRoommate(int numOfRoommate) {\n this.numOfRoommate = numOfRoommate;\n }\n public int getBlock() {\n return block;\n }\n public void setBlock(int block) {\n this.block = block;\n }\n public int getRoomNo() {\n return roomNo;\n }\n public void setRoomNo(int roomNo) {\n this.roomNo = roomNo;\n }\n public int getFloor() {\n return floor;\n }\n public void setFloor(int floor) {\n this.floor = floor;\n }\n }\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.LineNumberReader;",
"LineNumberReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n private final static String SPACE = \" \";\n private final static String SEPARATOR = \"####################\";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static class Room {\n private int numOfRoommate=0;\n private int block;\n private int roomNo;\n private int floor;\n\n /**\n * \n * @param v ?¢??????°?????\\???.\n */\n public void updateNumOfRoommate(int v) {\n this.numOfRoommate = this.numOfRoommate + v;\n }\n\n @Override\n public String toString() {\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }\n\n @Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }\n\n @Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }\n\n Room(int block, int floor, int roomNo) {\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }\n \n public int getNumOfRoommate() {\n return numOfRoommate;\n }\n public void setNumOfRoommate(int numOfRoommate) {\n this.numOfRoommate = numOfRoommate;\n }\n public int getBlock() {\n return block;\n }\n public void setBlock(int block) {\n this.block = block;\n }\n public int getRoomNo() {\n return roomNo;\n }\n public void setRoomNo(int roomNo) {\n this.roomNo = roomNo;\n }\n public int getFloor() {\n return floor;\n }\n public void setFloor(int floor) {\n this.floor = floor;\n }\n }\n}",
"Main",
"private final static String SPACE = \" \";",
"SPACE",
"\" \"",
"private final static String SEPARATOR = \"####################\";",
"SEPARATOR",
"\"####################\"",
"public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }",
"main",
"{\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }",
"try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }",
"catch (Exception e) {\n System.exit(-1);\n }",
"Exception e",
"{\n System.exit(-1);\n }",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"{\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n }",
"LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));",
"stdReader",
"new LineNumberReader(\n new InputStreamReader(System.in))",
"String sStr;",
"sStr",
"int n = 0;",
"n",
"0",
"ArrayList<Room> allRooms = new ArrayList<Room>();",
"allRooms",
"new ArrayList<Room>()",
"int[] blocks = { 1, 2, 3, 4 };",
"blocks",
"{ 1, 2, 3, 4 }",
"1",
"2",
"3",
"4",
"int[] floors = { 1, 2, 3 };",
"floors",
"{ 1, 2, 3 }",
"1",
"2",
"3",
"int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };",
"rooms",
"{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }",
"int block",
"blocks",
"{\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }",
"{\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }",
"for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }",
"int floor",
"floors",
"{\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }",
"{\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }",
"for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }",
"int room",
"rooms",
"{\n allRooms.add(new Room(block, floor, room));\n }",
"{\n allRooms.add(new Room(block, floor, room));\n }",
"allRooms.add(new Room(block, floor, room))",
"allRooms.add",
"allRooms",
"new Room(block, floor, room)",
"while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }",
"(sStr = stdReader.readLine()) != null",
"(sStr = stdReader.readLine())",
"sStr",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }",
"if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }",
"stdReader.getLineNumber() == 1",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1",
"{\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }",
"String[] inputs = sStr.split(\" \");",
"inputs",
"sStr.split(\" \")",
"sStr.split",
"sStr",
"\" \"",
"n = Integer.valueOf(inputs[0])",
"n",
"Integer.valueOf(inputs[0])",
"Integer.valueOf",
"Integer",
"inputs[0]",
"inputs",
"0",
"if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }",
"stdReader.getLineNumber() > 1",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1",
"{\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }",
"String[] inputs = sStr.split(SPACE);",
"inputs",
"sStr.split(SPACE)",
"sStr.split",
"sStr",
"SPACE",
"int b = Integer.parseInt(inputs[0]);",
"b",
"Integer.parseInt(inputs[0])",
"Integer.parseInt",
"Integer",
"inputs[0]",
"inputs",
"0",
"int f = Integer.parseInt(inputs[1]);",
"f",
"Integer.parseInt(inputs[1])",
"Integer.parseInt",
"Integer",
"inputs[1]",
"inputs",
"1",
"int r = Integer.parseInt(inputs[2]);",
"r",
"Integer.parseInt(inputs[2])",
"Integer.parseInt",
"Integer",
"inputs[2]",
"inputs",
"2",
"int v = Integer.parseInt(inputs[3]);",
"v",
"Integer.parseInt(inputs[3])",
"Integer.parseInt",
"Integer",
"inputs[3]",
"inputs",
"3",
"Room target = new Room(b, f, r);",
"target",
"new Room(b, f, r)",
"for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }",
"Room room",
"allRooms",
"{\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }",
"{\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }",
"if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }",
"target.equals(room)",
"target.equals",
"target",
"room",
"{\n room.updateNumOfRoommate(v);\n }",
"room.updateNumOfRoommate(v)",
"room.updateNumOfRoommate",
"room",
"v",
"if (stdReader.getLineNumber() > n)\n break;",
"stdReader.getLineNumber() > n",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"n",
"break;",
"int count = 0;",
"count",
"0",
"for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }",
"Room r",
"allRooms",
"{\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }",
"{\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }",
"count ++",
"count",
"System.out.print(SPACE + r.getNumOfRoommate())",
"System.out.print",
"System.out",
"System",
"System.out",
"SPACE + r.getNumOfRoommate()",
"SPACE",
"r.getNumOfRoommate()",
"r.getNumOfRoommate",
"r",
"if (count % 10 == 0) System.out.println();",
"count % 10 == 0",
"count % 10",
"count",
"10",
"0",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);",
"count % 30 == 0 && count !=120",
"count % 30 == 0",
"count % 30",
"count",
"30",
"0",
"count !=120",
"count",
"120",
"System.out.println(SEPARATOR)",
"System.out.println",
"System.out",
"System",
"System.out",
"SEPARATOR",
"stdReader.close()",
"stdReader.close",
"stdReader",
"String[] args",
"args",
"public static class Room {\n private int numOfRoommate=0;\n private int block;\n private int roomNo;\n private int floor;\n\n /**\n * \n * @param v ?¢??????°?????\\???.\n */\n public void updateNumOfRoommate(int v) {\n this.numOfRoommate = this.numOfRoommate + v;\n }\n\n @Override\n public String toString() {\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }\n\n @Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }\n\n @Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }\n\n Room(int block, int floor, int roomNo) {\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }\n \n public int getNumOfRoommate() {\n return numOfRoommate;\n }\n public void setNumOfRoommate(int numOfRoommate) {\n this.numOfRoommate = numOfRoommate;\n }\n public int getBlock() {\n return block;\n }\n public void setBlock(int block) {\n this.block = block;\n }\n public int getRoomNo() {\n return roomNo;\n }\n public void setRoomNo(int roomNo) {\n this.roomNo = roomNo;\n }\n public int getFloor() {\n return floor;\n }\n public void setFloor(int floor) {\n this.floor = floor;\n }\n }",
"Room",
"private int numOfRoommate=0;",
"numOfRoommate",
"0",
"private int block;",
"block",
"private int roomNo;",
"roomNo",
"private int floor;",
"floor",
"/**\n * \n * @param v ?¢??????°?????\\???.\n */\n public void updateNumOfRoommate(int v) {\n this.numOfRoommate = this.numOfRoommate + v;\n }",
"updateNumOfRoommate",
"{\n this.numOfRoommate = this.numOfRoommate + v;\n }",
"this.numOfRoommate = this.numOfRoommate + v",
"this.numOfRoommate",
"this",
"this.numOfRoommate",
"this.numOfRoommate + v",
"this.numOfRoommate",
"this",
"this.numOfRoommate",
"v",
"int v",
"v",
"@Override\n public String toString() {\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }",
"toString",
"{\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }",
"return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";",
"\"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\"",
"floor",
"\", floor=\"",
"roomNo",
"\", roomNo=\"",
"\"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\"",
"\"Room [block=\"",
"block",
"\", roomNo=\"",
"roomNo",
"\", floor=\"",
"floor",
"\"]\"",
"@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }",
"hashCode",
"{\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }",
"final int prime = 31;",
"prime",
"31",
"int result = 1;",
"result",
"1",
"result = prime * result + block",
"result",
"prime * result + block",
"prime * result",
"prime",
"result",
"block",
"result = prime * result + floor",
"result",
"prime * result + floor",
"prime * result",
"prime",
"result",
"floor",
"result = prime * result + roomNo",
"result",
"prime * result + roomNo",
"prime * result",
"prime",
"result",
"roomNo",
"return result;",
"result",
"@Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }",
"equals",
"{\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }",
"if (this == obj)\n return true;",
"this == obj",
"this",
"obj",
"return true;",
"true",
"if (obj == null)\n return false;",
"obj == null",
"obj",
"null",
"return false;",
"false",
"if (getClass() != obj.getClass())\n return false;",
"getClass() != obj.getClass()",
"getClass()",
"getClass",
"obj.getClass()",
"obj.getClass",
"obj",
"return false;",
"false",
"Room other = (Room) obj;",
"other",
"(Room) obj",
"if (block != other.block)\n return false;",
"block != other.block",
"block",
"other.block",
"other",
"other.block",
"return false;",
"false",
"if (floor != other.floor)\n return false;",
"floor != other.floor",
"floor",
"other.floor",
"other",
"other.floor",
"return false;",
"false",
"if (roomNo != other.roomNo)\n return false;",
"roomNo != other.roomNo",
"roomNo",
"other.roomNo",
"other",
"other.roomNo",
"return false;",
"false",
"return true;",
"true",
"Object obj",
"obj",
"Room(int block, int floor, int roomNo) {\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }",
"Room",
"{\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }",
"this.block = block",
"this.block",
"this",
"this.block",
"block",
"this.floor = floor",
"this.floor",
"this",
"this.floor",
"floor",
"this.roomNo = roomNo",
"this.roomNo",
"this",
"this.roomNo",
"roomNo",
"int block",
"block",
"int floor",
"floor",
"int roomNo",
"roomNo",
"public int getNumOfRoommate() {\n return numOfRoommate;\n }",
"getNumOfRoommate",
"{\n return numOfRoommate;\n }",
"return numOfRoommate;",
"numOfRoommate",
"public void setNumOfRoommate(int numOfRoommate) {\n this.numOfRoommate = numOfRoommate;\n }",
"setNumOfRoommate",
"{\n this.numOfRoommate = numOfRoommate;\n }",
"this.numOfRoommate = numOfRoommate",
"this.numOfRoommate",
"this",
"this.numOfRoommate",
"numOfRoommate",
"int numOfRoommate",
"numOfRoommate",
"public int getBlock() {\n return block;\n }",
"getBlock",
"{\n return block;\n }",
"return block;",
"block",
"public void setBlock(int block) {\n this.block = block;\n }",
"setBlock",
"{\n this.block = block;\n }",
"this.block = block",
"this.block",
"this",
"this.block",
"block",
"int block",
"block",
"public int getRoomNo() {\n return roomNo;\n }",
"getRoomNo",
"{\n return roomNo;\n }",
"return roomNo;",
"roomNo",
"public void setRoomNo(int roomNo) {\n this.roomNo = roomNo;\n }",
"setRoomNo",
"{\n this.roomNo = roomNo;\n }",
"this.roomNo = roomNo",
"this.roomNo",
"this",
"this.roomNo",
"roomNo",
"int roomNo",
"roomNo",
"public int getFloor() {\n return floor;\n }",
"getFloor",
"{\n return floor;\n }",
"return floor;",
"floor",
"public void setFloor(int floor) {\n this.floor = floor;\n }",
"setFloor",
"{\n this.floor = floor;\n }",
"this.floor = floor",
"this.floor",
"this",
"this.floor",
"floor",
"int floor",
"floor",
"public class Main {\n private final static String SPACE = \" \";\n private final static String SEPARATOR = \"####################\";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static class Room {\n private int numOfRoommate=0;\n private int block;\n private int roomNo;\n private int floor;\n\n /**\n * \n * @param v ?¢??????°?????\\???.\n */\n public void updateNumOfRoommate(int v) {\n this.numOfRoommate = this.numOfRoommate + v;\n }\n\n @Override\n public String toString() {\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }\n\n @Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }\n\n @Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }\n\n Room(int block, int floor, int roomNo) {\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }\n \n public int getNumOfRoommate() {\n return numOfRoommate;\n }\n public void setNumOfRoommate(int numOfRoommate) {\n this.numOfRoommate = numOfRoommate;\n }\n public int getBlock() {\n return block;\n }\n public void setBlock(int block) {\n this.block = block;\n }\n public int getRoomNo() {\n return roomNo;\n }\n public void setRoomNo(int roomNo) {\n this.roomNo = roomNo;\n }\n public int getFloor() {\n return floor;\n }\n public void setFloor(int floor) {\n this.floor = floor;\n }\n }\n}",
"public class Main {\n private final static String SPACE = \" \";\n private final static String SEPARATOR = \"####################\";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n\n \n // ??¬?????????????????§???????????????.\n ArrayList<Room> allRooms = new ArrayList<Room>();\n int[] blocks = { 1, 2, 3, 4 };\n int[] floors = { 1, 2, 3 };\n int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\n for (int block : blocks) {\n for (int floor : floors) {\n for (int room : rooms) {\n allRooms.add(new Room(block, floor, room));\n }\n }\n }\n\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n // 2????????\\??????????????????\n if (stdReader.getLineNumber() > 1) {\n String[] inputs = sStr.split(SPACE);\n int b = Integer.parseInt(inputs[0]);\n int f = Integer.parseInt(inputs[1]);\n int r = Integer.parseInt(inputs[2]);\n int v = Integer.parseInt(inputs[3]);\n \n // ??´??°????±??????¬?????????????????§????????????????????¨???.\n Room target = new Room(b, f, r);\n \n for (Room room: allRooms) {\n if (target.equals(room)) {\n room.updateNumOfRoommate(v);\n }\n }\n \n if (stdReader.getLineNumber() > n)\n break;\n }\n }\n\n\n // ??¨?????????????????????????????????????????????????????????\n int count = 0;\n for (Room r : allRooms) {\n count ++;\n System.out.print(SPACE + r.getNumOfRoommate());\n if (count % 10 == 0) System.out.println();\n if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static class Room {\n private int numOfRoommate=0;\n private int block;\n private int roomNo;\n private int floor;\n\n /**\n * \n * @param v ?¢??????°?????\\???.\n */\n public void updateNumOfRoommate(int v) {\n this.numOfRoommate = this.numOfRoommate + v;\n }\n\n @Override\n public String toString() {\n return \"Room [block=\" + block + \", roomNo=\" + roomNo + \", floor=\"\n + floor + \"]\";\n }\n\n @Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + block;\n result = prime * result + floor;\n result = prime * result + roomNo;\n return result;\n }\n\n @Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Room other = (Room) obj;\n if (block != other.block)\n return false;\n if (floor != other.floor)\n return false;\n if (roomNo != other.roomNo)\n return false;\n return true;\n }\n\n Room(int block, int floor, int roomNo) {\n this.block = block;\n this.floor = floor;\n this.roomNo = roomNo;\n }\n \n public int getNumOfRoommate() {\n return numOfRoommate;\n }\n public void setNumOfRoommate(int numOfRoommate) {\n this.numOfRoommate = numOfRoommate;\n }\n public int getBlock() {\n return block;\n }\n public void setBlock(int block) {\n this.block = block;\n }\n public int getRoomNo() {\n return roomNo;\n }\n public void setRoomNo(int roomNo) {\n this.roomNo = roomNo;\n }\n public int getFloor() {\n return floor;\n }\n public void setFloor(int floor) {\n this.floor = floor;\n }\n }\n}",
"Main"
] | import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.ArrayList;
/**
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_C
*
* @author eitatsuro
*
*/
public class Main {
private final static String SPACE = " ";
private final static String SEPARATOR = "####################";
public static void main(String[] args) {
try {
LineNumberReader stdReader = new LineNumberReader(
new InputStreamReader(System.in));
String sStr;
int n = 0;
// ??¬?????????????????§???????????????.
ArrayList<Room> allRooms = new ArrayList<Room>();
int[] blocks = { 1, 2, 3, 4 };
int[] floors = { 1, 2, 3 };
int[] rooms = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
for (int block : blocks) {
for (int floor : floors) {
for (int room : rooms) {
allRooms.add(new Room(block, floor, room));
}
}
}
while ((sStr = stdReader.readLine()) != null) {
// ????????????????????????
if (stdReader.getLineNumber() == 1) {
String[] inputs = sStr.split(" ");
n = Integer.valueOf(inputs[0]);
}
// 2????????\??????????????????
if (stdReader.getLineNumber() > 1) {
String[] inputs = sStr.split(SPACE);
int b = Integer.parseInt(inputs[0]);
int f = Integer.parseInt(inputs[1]);
int r = Integer.parseInt(inputs[2]);
int v = Integer.parseInt(inputs[3]);
// ??´??°????±??????¬?????????????????§????????????????????¨???.
Room target = new Room(b, f, r);
for (Room room: allRooms) {
if (target.equals(room)) {
room.updateNumOfRoommate(v);
}
}
if (stdReader.getLineNumber() > n)
break;
}
}
// ??¨?????????????????????????????????????????????????????????
int count = 0;
for (Room r : allRooms) {
count ++;
System.out.print(SPACE + r.getNumOfRoommate());
if (count % 10 == 0) System.out.println();
if (count % 30 == 0 && count !=120) System.out.println(SEPARATOR);
}
stdReader.close();
} catch (Exception e) {
System.exit(-1);
}
}
public static class Room {
private int numOfRoommate=0;
private int block;
private int roomNo;
private int floor;
/**
*
* @param v ?¢??????°?????\???.
*/
public void updateNumOfRoommate(int v) {
this.numOfRoommate = this.numOfRoommate + v;
}
@Override
public String toString() {
return "Room [block=" + block + ", roomNo=" + roomNo + ", floor="
+ floor + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + block;
result = prime * result + floor;
result = prime * result + roomNo;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Room other = (Room) obj;
if (block != other.block)
return false;
if (floor != other.floor)
return false;
if (roomNo != other.roomNo)
return false;
return true;
}
Room(int block, int floor, int roomNo) {
this.block = block;
this.floor = floor;
this.roomNo = roomNo;
}
public int getNumOfRoommate() {
return numOfRoommate;
}
public void setNumOfRoommate(int numOfRoommate) {
this.numOfRoommate = numOfRoommate;
}
public int getBlock() {
return block;
}
public void setBlock(int block) {
this.block = block;
}
public int getRoomNo() {
return roomNo;
}
public void setRoomNo(int roomNo) {
this.roomNo = roomNo;
}
public int getFloor() {
return floor;
}
public void setFloor(int floor) {
this.floor = floor;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
18,
13,
13,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
238,
5
],
[
238,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
45,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
62,
76
],
[
76,
77
],
[
77,
78
],
[
62,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
81,
89
],
[
8,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
110,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
110,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
110,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
132,
142
],
[
142,
143
],
[
142,
144
],
[
131,
145
],
[
8,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
146,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
161,
173
],
[
173,
174
],
[
174,
175
],
[
161,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
185,
191
],
[
178,
192
],
[
192,
193
],
[
193,
194
],
[
178,
195
],
[
196,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
204,
210
],
[
177,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
160,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
217,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
8,
232
],
[
232,
233
],
[
233,
234
],
[
6,
235
],
[
235,
236
],
[
0,
237
],
[
237,
238
],
[
237,
239
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][][] room = new int[4][3][10];\n\t\tint n = 0;\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\n \t//初期化\n \tfor( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tn = sc.nextInt();\n\n \tfor ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}\n\n \tfor ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][][] room = new int[4][3][10];\n\t\tint n = 0;\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\n \t//初期化\n \tfor( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tn = sc.nextInt();\n\n \tfor ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}\n\n \tfor ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint[][][] room = new int[4][3][10];\n\t\tint n = 0;\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\n \t//初期化\n \tfor( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tn = sc.nextInt();\n\n \tfor ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}\n\n \tfor ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}\n \tsc.close();\n\t}",
"main",
"{\n\n\t\tint[][][] room = new int[4][3][10];\n\t\tint n = 0;\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\n \t//初期化\n \tfor( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tn = sc.nextInt();\n\n \tfor ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}\n\n \tfor ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}\n \tsc.close();\n\t}",
"int[][][] room = new int[4][3][10];",
"room",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = 0;",
"n",
"0",
"int b = 0;",
"b",
"0",
"int f = 0;",
"f",
"0",
"int r = 0;",
"r",
"0",
"int v = 0;",
"v",
"0",
"for( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < room.length",
"i",
"room.length",
"room",
"room.length",
"i++",
"i++",
"i",
"{\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}",
"{\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}",
"for ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j <room[i].length",
"j",
"room[i].length",
"room[i]",
"room",
"i",
"room[i].length",
"j++",
"j++",
"j",
"{\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}",
"{\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}",
"for ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}",
"int k = 0 ;",
"int k = 0 ;",
"k",
"0",
"k < room[i][j].length",
"k",
"room[i][j].length",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"room[i][j].length",
"k++",
"k++",
"k",
"{\n \t\t\troom[i][j][k] = 0;\n \t\t}",
"{\n \t\t\troom[i][j][k] = 0;\n \t\t}",
"room[i][j][k] = 0",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"0",
"Scanner sc= new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}",
"{\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"room[b-1][f-1][r-1] += v",
"room[b-1][f-1][r-1]",
"room[b-1][f-1]",
"room[b-1]",
"room",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < room.length",
"i",
"room.length",
"room",
"room.length",
"i++",
"i++",
"i",
"{\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}",
"{\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}",
"for ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j <room[i].length",
"j",
"room[i].length",
"room[i]",
"room",
"i",
"room[i].length",
"j++",
"j++",
"j",
"{\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}",
"{\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}",
"for ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}",
"int k = 0 ;",
"int k = 0 ;",
"k",
"0",
"k < room[i][j].length",
"k",
"room[i][j].length",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"room[i][j].length",
"k++",
"k++",
"k",
"{\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}",
"{\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}",
"System.out.print( \" \" + room[i][j][k] )",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room[i][j][k]",
"\" \"",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"System.out.print( \"\\n\" )",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"if ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}",
"i != room.length-1",
"i",
"room.length-1",
"room.length",
"room",
"room.length",
"1",
"{\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}",
"System.out.println( \"####################\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][][] room = new int[4][3][10];\n\t\tint n = 0;\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\n \t//初期化\n \tfor( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tn = sc.nextInt();\n\n \tfor ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}\n\n \tfor ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][][] room = new int[4][3][10];\n\t\tint n = 0;\n\t\tint b = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\tint v = 0;\n\n \t//初期化\n \tfor( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\troom[i][j][k] = 0;\n \t\t}\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tn = sc.nextInt();\n\n \tfor ( int i = 0 ; i < n ; i++ ) {\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n\n \troom[b-1][f-1][r-1] += v;\n\n \t}\n\n \tfor ( int i = 0 ; i < room.length ; i++ ) {\n \t\tfor ( int j = 0 ; j <room[i].length ; j++ ) {\n \t\tfor ( int k = 0 ; k < room[i][j].length ; k++ ) {\n \t\t\t\tSystem.out.print( \" \" + room[i][j][k] );\n \t\t}\n\t\t\t\tSystem.out.print( \"\\n\" );\n \t\t}\n \t\tif ( i != room.length-1 ) {\n\t\t\t\tSystem.out.println( \"####################\" );\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[][][] room = new int[4][3][10];
int n = 0;
int b = 0;
int f = 0;
int r = 0;
int v = 0;
//初期化
for( int i = 0 ; i < room.length ; i++ ) {
for ( int j = 0 ; j <room[i].length ; j++ ) {
for ( int k = 0 ; k < room[i][j].length ; k++ ) {
room[i][j][k] = 0;
}
}
}
Scanner sc= new Scanner( System.in );
n = sc.nextInt();
for ( int i = 0 ; i < n ; i++ ) {
b = sc.nextInt();
f = sc.nextInt();
r = sc.nextInt();
v = sc.nextInt();
room[b-1][f-1][r-1] += v;
}
for ( int i = 0 ; i < room.length ; i++ ) {
for ( int j = 0 ; j <room[i].length ; j++ ) {
for ( int k = 0 ; k < room[i][j].length ; k++ ) {
System.out.print( " " + room[i][j][k] );
}
System.out.print( "\n" );
}
if ( i != room.length-1 ) {
System.out.println( "####################" );
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
143,
5
],
[
143,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
8,
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
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
96,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
83,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
6,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
] | [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}\n\t\tfor(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}\n\t\tfor(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}\n\t\tfor(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}\n\t\tfor(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"int[][][] array = new int [4][3][10];",
"array",
"new int [4][3][10]",
"4",
"3",
"10",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int number = scan.nextInt();",
"number",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}",
"{\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}",
"int building = scan.nextInt();",
"building",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int floor = scan.nextInt();",
"floor",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int room_number = scan.nextInt();",
"room_number",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int change = scan.nextInt();",
"change",
"scan.nextInt()",
"scan.nextInt",
"scan",
"array[building-1][floor-1][room_number-1] += change",
"array[building-1][floor-1][room_number-1]",
"array[building-1][floor-1]",
"array[building-1]",
"array",
"building-1",
"building",
"1",
"floor-1",
"floor",
"1",
"room_number-1",
"room_number",
"1",
"change",
"for(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<3",
"k",
"3",
"k++",
"k++",
"k",
"{\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l<10",
"l",
"10",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}",
"System.out.print(\" \"+array[j][k][l])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+array[j][k][l]",
"\" \"",
"array[j][k][l]",
"array[j][k]",
"array[j]",
"array",
"j",
"k",
"l",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"j!=3",
"j",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}\n\t\tfor(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 0; i<number; i++){\n\t\t\tint building = scan.nextInt();\n\t\t\tint floor = scan.nextInt();\n\t\t\tint room_number = scan.nextInt();\n\t\t\tint change = scan.nextInt();\n\n\t\t\tarray[building-1][floor-1][room_number-1] += change;\n\n\t\t}\n\t\tfor(int j = 0; j<4; j++){\n\t\t\tfor(int k = 0; k<3; k++){\n\t\t\t\tfor(int l = 0; l<10; l++){\n\t\t\t\t\tSystem.out.print(\" \"+array[j][k][l]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(j!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int[][][] array = new int [4][3][10];
Scanner scan = new Scanner(System.in);
int number = scan.nextInt();
for(int i = 0; i<number; i++){
int building = scan.nextInt();
int floor = scan.nextInt();
int room_number = scan.nextInt();
int change = scan.nextInt();
array[building-1][floor-1][room_number-1] += change;
}
for(int j = 0; j<4; j++){
for(int k = 0; k<3; k++){
for(int l = 0; l<10; l++){
System.out.print(" "+array[j][k][l]);
}
System.out.println();
}
if(j!=3){
System.out.println("####################");
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
2,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
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
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
8,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
83,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
83,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
112,
120
],
[
8,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
146,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
133,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
6,
189
],
[
189,
190
]
] | [
"import java.util.Scanner;\nclass Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][][] c=new int[5][4][11];\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}\nfor(int b=0;b<a;b++){\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][][] c=new int[5][4][11];\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}\nfor(int b=0;b<a;b++){\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}\n}\n}",
"Main",
"public static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][][] c=new int[5][4][11];\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}\nfor(int b=0;b<a;b++){\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}\n}",
"main",
"{\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][][] c=new int[5][4][11];\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}\nfor(int b=0;b<a;b++){\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}\nfor(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}\n}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a=scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][][] c=new int[5][4][11];",
"c",
"new int[5][4][11]",
"5",
"4",
"11",
"for(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}",
"int x=1;",
"int x=1;",
"x",
"1",
"x<5",
"x",
"5",
"x++",
"x++",
"x",
"{\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}",
"{\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}\n}",
"for(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}",
"int y=1;",
"int y=1;",
"y",
"1",
"y<4",
"y",
"4",
"y++",
"y++",
"y",
"{\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}",
"{\nfor(int z=1;z<11;z++){\nc[x][y][z]=0;\n}\n}",
"for(int z=1;z<11;z++){\nc[x][y][z]=0;\n}",
"int z=1;",
"int z=1;",
"z",
"1",
"z<11",
"z",
"11",
"z++",
"z++",
"z",
"{\nc[x][y][z]=0;\n}",
"{\nc[x][y][z]=0;\n}",
"c[x][y][z]=0",
"c[x][y][z]",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"z",
"0",
"for(int b=0;b<a;b++){\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}",
"int b=0;",
"int b=0;",
"b",
"0",
"b<a",
"b",
"a",
"b++",
"b++",
"b",
"{\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}",
"{\nint d=scan.nextInt();\nint e=scan.nextInt();\nint f=scan.nextInt();\nint g=scan.nextInt();\nc[d][e][f]=c[d][e][f]+g;\n}",
"int d=scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int e=scan.nextInt();",
"e",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f=scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int g=scan.nextInt();",
"g",
"scan.nextInt()",
"scan.nextInt",
"scan",
"c[d][e][f]=c[d][e][f]+g",
"c[d][e][f]",
"c[d][e]",
"c[d]",
"c",
"d",
"e",
"f",
"c[d][e][f]+g",
"c[d][e][f]",
"c[d][e]",
"c[d]",
"c",
"d",
"e",
"f",
"g",
"for(int x=1;x<5;x++){\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}",
"int x=1;",
"int x=1;",
"x",
"1",
"x<5",
"x",
"5",
"x++",
"x++",
"x",
"{\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}",
"{\nfor(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}\nif(x!=4)\nSystem.out.println(\"####################\");\n}",
"for(int y=1;y<4;y++){\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}",
"int y=1;",
"int y=1;",
"y",
"1",
"y<4",
"y",
"4",
"y++",
"y++",
"y",
"{\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}",
"{\nfor(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}\nSystem.out.println();\n}",
"for(int z=1;z<11;z++){\nSystem.out.print(\" \"+c[x][y][z]);\n}",
"int z=1;",
"int z=1;",
"z",
"1",
"z<11",
"z",
"11",
"z++",
"z++",
"z",
"{\nSystem.out.print(\" \"+c[x][y][z]);\n}",
"{\nSystem.out.print(\" \"+c[x][y][z]);\n}",
"System.out.print(\" \"+c[x][y][z])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+c[x][y][z]",
"\" \"",
"c[x][y][z]",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"z",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(x!=4)\nSystem.out.println(\"####################\");",
"x!=4",
"x",
"4",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][][] c=new int[5][4][11];
for(int x=1;x<5;x++){
for(int y=1;y<4;y++){
for(int z=1;z<11;z++){
c[x][y][z]=0;
}
}
}
for(int b=0;b<a;b++){
int d=scan.nextInt();
int e=scan.nextInt();
int f=scan.nextInt();
int g=scan.nextInt();
c[d][e][f]=c[d][e][f]+g;
}
for(int x=1;x<5;x++){
for(int y=1;y<4;y++){
for(int z=1;z<11;z++){
System.out.print(" "+c[x][y][z]);
}
System.out.println();
}
if(x!=4)
System.out.println("####################");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
165,
5
],
[
165,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
43,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
43,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
65,
75
],
[
75,
76
],
[
75,
77
],
[
64,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
89,
91
],
[
78,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
118,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
105,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
6,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
] | [
"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 n = sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint d[][][] = new int[4][3][10];\n\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint d[][][] = new int[4][3][10];\n\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint d[][][] = new int[4][3][10];\n\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint d[][][] = new int[4][3][10];\n\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\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 b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"int d[][][] = new int[4][3][10];",
"d",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}",
"{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v",
"d[b-1][f-1][r-1]",
"d[b-1][f-1]",
"d[b-1]",
"d",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"d[b-1][f-1][r-1]+v",
"d[b-1][f-1][r-1]",
"d[b-1][f-1]",
"d[b-1]",
"d",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=2",
"j",
"2",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<=9",
"k",
"9",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \"+d[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+d[i][j][k]",
"\" \"",
"d[i][j][k]",
"d[i][j]",
"d[i]",
"d",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i!=3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"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 n = sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint d[][][] = new int[4][3][10];\n\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint b,f,r,v;\n\t\tint d[][][] = new int[4][3][10];\n\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\td[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<=2;j++){\n\t\t\t\tfor(int k=0;k<=9;k++){\n\t\t\t\t\tSystem.out.print(\" \"+d[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int b,f,r,v;
int d[][][] = new int[4][3][10];
for(int i=1;i<=n;i++){
b = sc.nextInt();
f = sc.nextInt();
r = sc.nextInt();
v = sc.nextInt();
d[b-1][f-1][r-1] = d[b-1][f-1][r-1]+v;
}
for(int i=0;i<4;i++){
for(int j=0;j<=2;j++){
for(int k=0;k<=9;k++){
System.out.print(" "+d[i][j][k]);
}
System.out.println();
}
if(i!=3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
13,
41,
13,
41,
13,
41,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
17,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
199,
5
],
[
199,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
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
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
70,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
94,
98
],
[
91,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
101,
105
],
[
91,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
108,
112
],
[
91,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
91,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
118,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
153,
164
],
[
165,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
173,
179
],
[
152,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
139,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
6,
196
],
[
196,
197
],
[
0,
198
],
[
198,
199
],
[
198,
200
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(); //??\\??????????£??????°\n\t\tInteger[][][] building = new Integer[4][3][10];\t\t\n\t\tint b;\t\t\t\t\t//b?£?\n\t\tint f;\t\t\t\t\t//f???\n\t\tint r;\t\t\t\t\t//r???????????¨?±?\n\t\tint v;\t\t\t\t\t//v?????\\?±?\n\t\t\n\t\t//?????????\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??\\???\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\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 n = sc.nextInt(); //??\\??????????£??????°\n\t\tInteger[][][] building = new Integer[4][3][10];\t\t\n\t\tint b;\t\t\t\t\t//b?£?\n\t\tint f;\t\t\t\t\t//f???\n\t\tint r;\t\t\t\t\t//r???????????¨?±?\n\t\tint v;\t\t\t\t\t//v?????\\?±?\n\t\t\n\t\t//?????????\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??\\???\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(); //??\\??????????£??????°\n\t\tInteger[][][] building = new Integer[4][3][10];\t\t\n\t\tint b;\t\t\t\t\t//b?£?\n\t\tint f;\t\t\t\t\t//f???\n\t\tint r;\t\t\t\t\t//r???????????¨?±?\n\t\tint v;\t\t\t\t\t//v?????\\?±?\n\t\t\n\t\t//?????????\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??\\???\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(); //??\\??????????£??????°\n\t\tInteger[][][] building = new Integer[4][3][10];\t\t\n\t\tint b;\t\t\t\t\t//b?£?\n\t\tint f;\t\t\t\t\t//f???\n\t\tint r;\t\t\t\t\t//r???????????¨?±?\n\t\tint v;\t\t\t\t\t//v?????\\?±?\n\t\t\n\t\t//?????????\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??\\???\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\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",
"Integer[][][] building = new Integer[4][3][10];",
"building",
"new Integer[4][3][10]",
"4",
"3",
"10",
"int b;",
"b",
"int f;",
"f",
"int r;",
"r",
"int v;",
"v",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}",
"for (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}",
"int j2 = 0;",
"int j2 = 0;",
"j2",
"0",
"j2 < 10",
"j2",
"10",
"j2++",
"j2++",
"j2",
"{\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}",
"{\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}",
"building[i][j][j2]=0",
"building[i][j][j2]",
"building[i][j]",
"building[i]",
"building",
"i",
"j",
"j2",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}",
"{\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}",
"b=sc.nextInt()-1",
"b",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"f=sc.nextInt()-1",
"f",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"r=sc.nextInt()-1",
"r",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"v=sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"building[b][f][r] += v",
"building[b][f][r]",
"building[b][f]",
"building[b]",
"building",
"b",
"f",
"r",
"v",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}",
"int j2 = 0;",
"int j2 = 0;",
"j2",
"0",
"j2 < 10",
"j2",
"10",
"j2++",
"j2++",
"j2",
"{\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}",
"System.out.print(\" \"+building[i][j][j2])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+building[i][j][j2]",
"\" \"",
"building[i][j][j2]",
"building[i][j]",
"building[i]",
"building",
"i",
"j",
"j2",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i!=3",
"i",
"3",
"{\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(); //??\\??????????£??????°\n\t\tInteger[][][] building = new Integer[4][3][10];\t\t\n\t\tint b;\t\t\t\t\t//b?£?\n\t\tint f;\t\t\t\t\t//f???\n\t\tint r;\t\t\t\t\t//r???????????¨?±?\n\t\tint v;\t\t\t\t\t//v?????\\?±?\n\t\t\n\t\t//?????????\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??\\???\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\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\tint n = sc.nextInt(); //??\\??????????£??????°\n\t\tInteger[][][] building = new Integer[4][3][10];\t\t\n\t\tint b;\t\t\t\t\t//b?£?\n\t\tint f;\t\t\t\t\t//f???\n\t\tint r;\t\t\t\t\t//r???????????¨?±?\n\t\tint v;\t\t\t\t\t//v?????\\?±?\n\t\t\n\t\t//?????????\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tbuilding[i][j][j2]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??\\???\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb=sc.nextInt()-1;\n\t\t\tf=sc.nextInt()-1;\n\t\t\tr=sc.nextInt()-1;\n\t\t\tv=sc.nextInt();\n\t\t\t\n\t\t\tbuilding[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tfor (int j2 = 0; j2 < 10; j2++) {\n\t\t\t\t\tSystem.out.print(\" \"+building[i][j][j2]);\n\t\t\t\t}\n\t\t\t\t//??????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//????£??????????????????????\n\t\t\tif(i!=3){\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(); //??\??????????£??????°
Integer[][][] building = new Integer[4][3][10];
int b; //b?£?
int f; //f???
int r; //r???????????¨?±?
int v; //v?????\?±?
//?????????
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int j2 = 0; j2 < 10; j2++) {
building[i][j][j2]=0;
}
}
}
//??\???
for (int i = 0; i < n; i++) {
b=sc.nextInt()-1;
f=sc.nextInt()-1;
r=sc.nextInt()-1;
v=sc.nextInt();
building[b][f][r] += v;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int j2 = 0; j2 < 10; j2++) {
System.out.print(" "+building[i][j][j2]);
}
//??????
System.out.println();
}
//????£??????????????????????
if(i!=3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
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,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
199,
11
],
[
199,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
21,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
21,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
40,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
40,
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
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
67,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
67,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
67,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
67,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
67,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
122,
124
],
[
111,
125
],
[
40,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
152,
163
],
[
164,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
151,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
138,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
12,
196
],
[
196,
197
],
[
0,
198
],
[
198,
199
],
[
198,
200
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * Lesson6C A大学は1フロア10部屋、3階建ての公舎4棟を管理しています。\n * 公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラム\n * n件の情報が与えられます。各情報では、4つの整数b, f, r, vが与えられます。\n * これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。\n * vが負の値の場合、v人退去したことを示します。\n * 最初、全ての部屋には誰も入居していないものとします。\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので \n\t\t//4x3x10の配列に最大9が入る配列を初期化\n\t\tint[][][] intRoom = new int[4][3][10];\n\n\t\t//1列目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので \n\t\t//4x3x10の配列に最大9が入る配列を初期化\n\t\tint[][][] intRoom = new int[4][3][10];\n\n\t\t//1列目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"Main",
"/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので \n\t\t//4x3x10の配列に最大9が入る配列を初期化\n\t\tint[][][] intRoom = new int[4][3][10];\n\n\t\t//1列目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}",
"main",
"{\n\n\t\t//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので \n\t\t//4x3x10の配列に最大9が入る配列を初期化\n\t\tint[][][] intRoom = new int[4][3][10];\n\n\t\t//1列目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}",
"int[][][] intRoom = new int[4][3][10];",
"intRoom",
"new int[4][3][10]",
"4",
"3",
"10",
"try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"NumberFormatException e",
"{\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"System.out.println(\"数字で入力して下さい\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"数字で入力して下さい\"",
"{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}",
"BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));",
"insBR",
"new BufferedReader(new InputStreamReader(System.in))",
"String strLine1 = insBR.readLine();",
"strLine1",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"int intLine1 = Integer.parseInt(strLine1);",
"intLine1",
"Integer.parseInt(strLine1)",
"Integer.parseInt",
"Integer",
"strLine1",
"for(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intLine1",
"i",
"intLine1",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}",
"{\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}",
"String strLineAll = insBR.readLine();",
"strLineAll",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"String[] strAry = strLineAll.split(\" \");",
"strAry",
"strLineAll.split(\" \")",
"strLineAll.split",
"strLineAll",
"\" \"",
"int intBuilding = Integer.parseInt(strAry[0]);",
"intBuilding",
"Integer.parseInt(strAry[0])",
"Integer.parseInt",
"Integer",
"strAry[0]",
"strAry",
"0",
"int intFloor = Integer.parseInt(strAry[1]);",
"intFloor",
"Integer.parseInt(strAry[1])",
"Integer.parseInt",
"Integer",
"strAry[1]",
"strAry",
"1",
"int intRoomFirst = Integer.parseInt(strAry[2]);",
"intRoomFirst",
"Integer.parseInt(strAry[2])",
"Integer.parseInt",
"Integer",
"strAry[2]",
"strAry",
"2",
"int intPeople = Integer.parseInt(strAry[3]);",
"intPeople",
"Integer.parseInt(strAry[3])",
"Integer.parseInt",
"Integer",
"strAry[3]",
"strAry",
"3",
"intRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople",
"intRoom[intBuilding -1][intFloor -1][intRoomFirst -1]",
"intRoom[intBuilding -1][intFloor -1]",
"intRoom[intBuilding -1]",
"intRoom",
"intBuilding -1",
"intBuilding",
"1",
"intFloor -1",
"intFloor",
"1",
"intRoomFirst -1",
"intRoomFirst",
"1",
"intPeople",
"for(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < 4",
"l",
"4",
"l++",
"l++",
"l",
"{\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}",
"for(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}",
"System.out.print(\" \" + intRoom[l][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + intRoom[l][j][k]",
"\" \"",
"intRoom[l][j][k]",
"intRoom[l][j]",
"intRoom[l]",
"intRoom",
"l",
"j",
"k",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"l != 3",
"l",
"3",
"{\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので \n\t\t//4x3x10の配列に最大9が入る配列を初期化\n\t\tint[][][] intRoom = new int[4][3][10];\n\n\t\t//1列目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので \n\t\t//4x3x10の配列に最大9が入る配列を初期化\n\t\tint[][][] intRoom = new int[4][3][10];\n\n\t\t//1列目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\tint intLine1 = Integer.parseInt(strLine1);\n\n\n\t\t\t//3\n\t\t\t//1 1 3 8\n\t\t\t//3 2 2 7\n\t\t\t//4 3 8 1\n\n\t\t\t//2列目以降を取得\n\t\t\tfor(int i = 0; i < intLine1; i++) {\n\n\t\t\t\tString strLineAll = insBR.readLine();\n\n\t\t\t\t//入力値を分解\n\t\t\t\tString[] strAry = strLineAll.split(\" \");\n\n\t\t\t\t//棟\n\t\t\t\tint intBuilding = Integer.parseInt(strAry[0]);\n\n\t\t\t\t//階\n\t\t\t\tint intFloor = Integer.parseInt(strAry[1]);\n\n\t\t\t\t//部屋\n\t\t\t\tint intRoomFirst = Integer.parseInt(strAry[2]);\n\n\t\t\t\t//人数\n\t\t\t\tint intPeople = Integer.parseInt(strAry[3]);\n\n\t\t\t\t//入力値を配列に格納\n\t\t\t\tintRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;\n\n\n\n\n\t\t\t}\n\n\t\t\t//出力\n\n\t\t\tfor(int l = 0; l < 4; l++) {\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tfor(int k = 0; k < 10; k++) {\n\t\t\t\t\t\tSystem.out.print(\" \" + intRoom[l][j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\t\t\t\t\t\t//改行\n\t\t\t\t}\n\t\t\t\tif(l != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Lesson6C A大学は1フロア10部屋、3階建ての公舎4棟を管理しています。
* 公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラム
* n件の情報が与えられます。各情報では、4つの整数b, f, r, vが与えられます。
* これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。
* vが負の値の場合、v人退去したことを示します。
* 最初、全ての部屋には誰も入居していないものとします。
*
* @author Internship
*
*/
public class Main{
/**
* プログラムのエントリポイント
*
* @param args
*/
public static void main(String[] args) {
//棟が4個 階が3個 部屋が10個でそれぞれに最大9人は入れるので
//4x3x10の配列に最大9が入る配列を初期化
int[][][] intRoom = new int[4][3][10];
//1列目を取得
try {
BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
String strLine1 = insBR.readLine();
int intLine1 = Integer.parseInt(strLine1);
//3
//1 1 3 8
//3 2 2 7
//4 3 8 1
//2列目以降を取得
for(int i = 0; i < intLine1; i++) {
String strLineAll = insBR.readLine();
//入力値を分解
String[] strAry = strLineAll.split(" ");
//棟
int intBuilding = Integer.parseInt(strAry[0]);
//階
int intFloor = Integer.parseInt(strAry[1]);
//部屋
int intRoomFirst = Integer.parseInt(strAry[2]);
//人数
int intPeople = Integer.parseInt(strAry[3]);
//入力値を配列に格納
intRoom[intBuilding -1][intFloor -1][intRoomFirst -1] += intPeople;
}
//出力
for(int l = 0; l < 4; l++) {
for(int j = 0; j < 3; j++) {
for(int k = 0; k < 10; k++) {
System.out.print(" " + intRoom[l][j][k]);
}
System.out.println(""); //改行
}
if(l != 3) {
System.out.println("####################");
}
}
} catch (IOException e) {
System.out.println(e);
} catch (NumberFormatException e) {
System.out.println("数字で入力して下さい");
}
}
} |
[
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,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
152,
14
],
[
152,
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
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
47,
51
],
[
44,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
54,
58
],
[
44,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
44,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
44,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
71,
79
],
[
17,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
105,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
92,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
15,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] | [
"import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tint[][][] people = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tint[][][] people = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tint[][][] people = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tint[][][] people = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][][] people = new int[4][3][10];",
"people",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}",
"{\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}",
"final int b = sc.nextInt() - 1;",
"b",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"final int f = sc.nextInt() - 1;",
"f",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"final int r = sc.nextInt() - 1;",
"r",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"final int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"people[b][f][r] += v",
"people[b][f][r]",
"people[b][f]",
"people[b]",
"people",
"b",
"f",
"r",
"v",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + people[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + people[i][j][k]",
"\" \"",
"people[i][j][k]",
"people[i][j]",
"people[i]",
"people",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i != 3",
"i",
"3",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String args[]",
"args",
"public class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tint[][][] people = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\n}",
"public class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tint[][][] people = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfinal int b = sc.nextInt() - 1;\n\t\t\tfinal int f = sc.nextInt() - 1;\n\t\t\tfinal int r = sc.nextInt() - 1;\n\t\t\tfinal int v = sc.nextInt();\t\n\t\t\t\n\t\t\tpeople[b][f][r] += v;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 10; k++){\n\t\t\t\t\tSystem.out.print(\" \" + people[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
final int n = sc.nextInt();
int[][][] people = new int[4][3][10];
for(int i = 0; i < n; i++){
final int b = sc.nextInt() - 1;
final int f = sc.nextInt() - 1;
final int r = sc.nextInt() - 1;
final int v = sc.nextInt();
people[b][f][r] += v;
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
System.out.print(" " + people[i][j][k]);
}
System.out.println();
}
if(i != 3){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
155,
5
],
[
155,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
8,
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
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
53,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
53,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
74,
82
],
[
8,
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
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
108,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
95,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
6,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,i,x,y,z,b,f,r,v;\n\t int[][][] count = new int[5][4][11];\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }\n for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,i,x,y,z,b,f,r,v;\n\t int[][][] count = new int[5][4][11];\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }\n for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n,i,x,y,z,b,f,r,v;\n\t int[][][] count = new int[5][4][11];\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }\n for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }\n\t}",
"main",
"{\n\t\tint n,i,x,y,z,b,f,r,v;\n\t int[][][] count = new int[5][4][11];\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }\n for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }\n\t}",
"int n",
"n",
"i",
"i",
"x",
"x",
"y",
"y",
"z",
"z",
"b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"int[][][] count = new int[5][4][11];",
"count",
"new int[5][4][11]",
"5",
"4",
"11",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }",
"{\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"count[b][f][r] += v",
"count[b][f][r]",
"count[b][f]",
"count[b]",
"count",
"b",
"f",
"r",
"v",
"for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }",
"x = 1;",
"x = 1",
"x",
"1",
"x <= 4",
"x",
"4",
"x++",
"x++",
"x",
"{\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }",
"{\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }",
"for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }",
"y = 1;",
"y = 1",
"y",
"1",
"y < 4",
"y",
"4",
"y++",
"y++",
"y",
"{\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }",
"{\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }",
"for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }",
"z = 1;",
"z = 1",
"z",
"1",
"z < 11",
"z",
"11",
"z++",
"z++",
"z",
"{\n System.out.print(\" \" + count[x][y][z]);\n }",
"{\n System.out.print(\" \" + count[x][y][z]);\n }",
"System.out.print(\" \" + count[x][y][z])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + count[x][y][z]",
"\" \"",
"count[x][y][z]",
"count[x][y]",
"count[x]",
"count",
"x",
"y",
"z",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(x < 4){\n System.out.println(\"####################\");\n }",
"x < 4",
"x",
"4",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,i,x,y,z,b,f,r,v;\n\t int[][][] count = new int[5][4][11];\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }\n for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,i,x,y,z,b,f,r,v;\n\t int[][][] count = new int[5][4][11];\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n count[b][f][r] += v;\n }\n for(x = 1;x <= 4;x++){\n for(y = 1;y < 4;y++){\n for(z = 1;z < 11;z++){\n System.out.print(\" \" + count[x][y][z]);\n }\n System.out.println();\n }\n if(x < 4){\n System.out.println(\"####################\");\n }\n }\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n,i,x,y,z,b,f,r,v;
int[][][] count = new int[5][4][11];
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
for(i = 0;i < n;i++){
b = sc.nextInt();
f = sc.nextInt();
r = sc.nextInt();
v = sc.nextInt();
count[b][f][r] += v;
}
for(x = 1;x <= 4;x++){
for(y = 1;y < 4;y++){
for(z = 1;z < 11;z++){
System.out.print(" " + count[x][y][z]);
}
System.out.println();
}
if(x < 4){
System.out.println("####################");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
2,
4,
18,
13,
17,
0,
13,
2,
4,
18,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
13,
13,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
13,
13,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
13,
13,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
13,
13,
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,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
17,
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
],
[
326,
5
],
[
326,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
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
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
69,
73
],
[
61,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
76,
80
],
[
61,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
61,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
86,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
98,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
110,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
8,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
160,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
146,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
8,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
8,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
182,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
200,
201
],
[
200,
202
],
[
195,
203
],
[
203,
204
],
[
204,
205
],
[
195,
206
],
[
207,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
208,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
194,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
8,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
8,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
230,
241
],
[
242,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
248,
249
],
[
248,
250
],
[
243,
251
],
[
251,
252
],
[
252,
253
],
[
243,
254
],
[
255,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
256,
261
],
[
256,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
242,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
8,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
8,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
278,
283
],
[
283,
284
],
[
283,
285
],
[
278,
286
],
[
286,
287
],
[
287,
288
],
[
278,
289
],
[
290,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
296,
297
],
[
296,
298
],
[
291,
299
],
[
299,
300
],
[
300,
301
],
[
291,
302
],
[
303,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
304,
309
],
[
304,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
290,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
8,
320
],
[
320,
321
],
[
321,
322
],
[
6,
323
],
[
323,
324
],
[
0,
325
],
[
325,
326
],
[
325,
327
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][] tow1 = new int[3][10];\n int[][] tow2 = new int[3][10];\n int[][] tow3 = new int[3][10];\n int[][] tow4 = new int[3][10];\n int b = 0, f = 0, r = 0, v = 0;\n int num = sc.nextInt();\n\n for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }\n\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 int[][] tow1 = new int[3][10];\n int[][] tow2 = new int[3][10];\n int[][] tow3 = new int[3][10];\n int[][] tow4 = new int[3][10];\n int b = 0, f = 0, r = 0, v = 0;\n int num = sc.nextInt();\n\n for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][] tow1 = new int[3][10];\n int[][] tow2 = new int[3][10];\n int[][] tow3 = new int[3][10];\n int[][] tow4 = new int[3][10];\n int b = 0, f = 0, r = 0, v = 0;\n int num = sc.nextInt();\n\n for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[][] tow1 = new int[3][10];\n int[][] tow2 = new int[3][10];\n int[][] tow3 = new int[3][10];\n int[][] tow4 = new int[3][10];\n int b = 0, f = 0, r = 0, v = 0;\n int num = sc.nextInt();\n\n for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[][] tow1 = new int[3][10];",
"tow1",
"new int[3][10]",
"3",
"10",
"int[][] tow2 = new int[3][10];",
"tow2",
"new int[3][10]",
"3",
"10",
"int[][] tow3 = new int[3][10];",
"tow3",
"new int[3][10]",
"3",
"10",
"int[][] tow4 = new int[3][10];",
"tow4",
"new int[3][10]",
"3",
"10",
"int b = 0",
"b",
"0",
"f = 0",
"f",
"0",
"r = 0",
"r",
"0",
"v = 0;",
"v",
"0",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }",
"{\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()-1",
"f",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"r = sc.nextInt()-1",
"r",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }",
"b == 1",
"b",
"1",
"{\n tow1[f][r] += v;\n }",
"tow1[f][r] += v",
"tow1[f][r]",
"tow1[f]",
"tow1",
"f",
"r",
"v",
"if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }",
"b == 2",
"b",
"2",
"{\n tow2[f][r] += v;\n }",
"tow2[f][r] += v",
"tow2[f][r]",
"tow2[f]",
"tow2",
"f",
"r",
"v",
"if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }",
"b == 3",
"b",
"3",
"{\n tow3[f][r] += v;\n }",
"tow3[f][r] += v",
"tow3[f][r]",
"tow3[f]",
"tow3",
"f",
"r",
"v",
"if (b == 4) {\n tow4[f][r] += v;\n }",
"b == 4",
"b",
"4",
"{\n tow4[f][r] += v;\n }",
"tow4[f][r] += v",
"tow4[f][r]",
"tow4[f]",
"tow4",
"f",
"r",
"v",
"for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 2",
"i",
"2",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }",
"for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n System.out.printf(\" %d\", tow1[i][j]);\n }",
"{\n System.out.printf(\" %d\", tow1[i][j]);\n }",
"System.out.printf(\" %d\", tow1[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"tow1[i][j]",
"tow1[i]",
"tow1",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 2",
"i",
"2",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }",
"for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n System.out.printf(\" %d\", tow2[i][j]);\n }",
"{\n System.out.printf(\" %d\", tow2[i][j]);\n }",
"System.out.printf(\" %d\", tow2[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"tow2[i][j]",
"tow2[i]",
"tow2",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 2",
"i",
"2",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }",
"for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n System.out.printf(\" %d\", tow3[i][j]);\n }",
"{\n System.out.printf(\" %d\", tow3[i][j]);\n }",
"System.out.printf(\" %d\", tow3[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"tow3[i][j]",
"tow3[i]",
"tow3",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= 2",
"i",
"2",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }",
"{\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }",
"for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n System.out.printf(\" %d\", tow4[i][j]);\n }",
"{\n System.out.printf(\" %d\", tow4[i][j]);\n }",
"System.out.printf(\" %d\", tow4[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"tow4[i][j]",
"tow4[i]",
"tow4",
"i",
"j",
"System.out.println()",
"System.out.println",
"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 int[][] tow1 = new int[3][10];\n int[][] tow2 = new int[3][10];\n int[][] tow3 = new int[3][10];\n int[][] tow4 = new int[3][10];\n int b = 0, f = 0, r = 0, v = 0;\n int num = sc.nextInt();\n\n for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[][] tow1 = new int[3][10];\n int[][] tow2 = new int[3][10];\n int[][] tow3 = new int[3][10];\n int[][] tow4 = new int[3][10];\n int b = 0, f = 0, r = 0, v = 0;\n int num = sc.nextInt();\n\n for (int i = 0; i < num; i++) {\n b = sc.nextInt();\n f = sc.nextInt()-1;\n r = sc.nextInt()-1;\n v = sc.nextInt();\n if (b == 1) {\n tow1[f][r] += v;\n } else if (b == 2) {\n tow2[f][r] += v;\n } else if (b == 3) {\n tow3[f][r] += v;\n } else if (b == 4) {\n tow4[f][r] += v;\n }\n \n }\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow1[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow2[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow3[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n for (int i = 0; i <= 2; i++) {\n for (int j = 0; j < 10; j++) {\n System.out.printf(\" %d\", tow4[i][j]);\n }\n System.out.println();\n }\n\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[][] tow1 = new int[3][10];
int[][] tow2 = new int[3][10];
int[][] tow3 = new int[3][10];
int[][] tow4 = new int[3][10];
int b = 0, f = 0, r = 0, v = 0;
int num = sc.nextInt();
for (int i = 0; i < num; i++) {
b = sc.nextInt();
f = sc.nextInt()-1;
r = sc.nextInt()-1;
v = sc.nextInt();
if (b == 1) {
tow1[f][r] += v;
} else if (b == 2) {
tow2[f][r] += v;
} else if (b == 3) {
tow3[f][r] += v;
} else if (b == 4) {
tow4[f][r] += v;
}
}
for (int i = 0; i <= 2; i++) {
for (int j = 0; j < 10; j++) {
System.out.printf(" %d", tow1[i][j]);
}
System.out.println();
}
System.out.println("####################");
for (int i = 0; i <= 2; i++) {
for (int j = 0; j < 10; j++) {
System.out.printf(" %d", tow2[i][j]);
}
System.out.println();
}
System.out.println("####################");
for (int i = 0; i <= 2; i++) {
for (int j = 0; j < 10; j++) {
System.out.printf(" %d", tow3[i][j]);
}
System.out.println();
}
System.out.println("####################");
for (int i = 0; i <= 2; i++) {
for (int j = 0; j < 10; j++) {
System.out.printf(" %d", tow4[i][j]);
}
System.out.println();
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
4,
18,
13,
18,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
224,
11
],
[
224,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
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
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
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
],
[
76,
80
],
[
75,
81
],
[
74,
82
],
[
14,
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
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
98,
103
],
[
95,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
95,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
95,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
95,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
129,
139
],
[
139,
140
],
[
139,
141
],
[
128,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
145,
147
],
[
14,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
161,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
174,
185
],
[
186,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
186,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
198,
204
],
[
173,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
160,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
12,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String line = br.readLine();\n int num = Integer.parseInt(line);\n int[][][] numAry = new int[4][3][10];\n \n //????????????\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }\n \n //input?????£??\\\n for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }\n \n //??????\n for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String line = br.readLine();\n int num = Integer.parseInt(line);\n int[][][] numAry = new int[4][3][10];\n \n //????????????\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }\n \n //input?????£??\\\n for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }\n \n //??????\n for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String line = br.readLine();\n int num = Integer.parseInt(line);\n int[][][] numAry = new int[4][3][10];\n \n //????????????\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }\n \n //input?????£??\\\n for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }\n \n //??????\n for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String line = br.readLine();\n int num = Integer.parseInt(line);\n int[][][] numAry = new int[4][3][10];\n \n //????????????\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }\n \n //input?????£??\\\n for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }\n \n //??????\n for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int num = Integer.parseInt(line);",
"num",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int[][][] numAry = new int[4][3][10];",
"numAry",
"new int[4][3][10]",
"4",
"3",
"10",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }",
"{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }",
"for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }",
"{\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }",
"for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n numAry[i][j][k] = 0;\n }",
"{\n numAry[i][j][k] = 0;\n }",
"numAry[i][j][k] = 0",
"numAry[i][j][k]",
"numAry[i][j]",
"numAry[i]",
"numAry",
"i",
"j",
"k",
"0",
"for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i ++",
"i ++",
"i",
"{\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }",
"{\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }",
"String[] aryInput = br.readLine().split(\" \");",
"aryInput",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a = Integer.parseInt(aryInput[0]);",
"a",
"Integer.parseInt(aryInput[0])",
"Integer.parseInt",
"Integer",
"aryInput[0]",
"aryInput",
"0",
"int b = Integer.parseInt(aryInput[1]);",
"b",
"Integer.parseInt(aryInput[1])",
"Integer.parseInt",
"Integer",
"aryInput[1]",
"aryInput",
"1",
"int c = Integer.parseInt(aryInput[2]);",
"c",
"Integer.parseInt(aryInput[2])",
"Integer.parseInt",
"Integer",
"aryInput[2]",
"aryInput",
"2",
"numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3])",
"numAry[a - 1][b - 1][c - 1]",
"numAry[a - 1][b - 1]",
"numAry[a - 1]",
"numAry",
"a - 1",
"a",
"1",
"b - 1",
"b",
"1",
"c - 1",
"c",
"1",
"Integer.parseInt(aryInput[3])",
"Integer.parseInt",
"Integer",
"aryInput[3]",
"aryInput",
"3",
"for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }",
"{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }",
"for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }",
"{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }",
"for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }",
"{\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(numAry[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"numAry[i][j][k]",
"numAry[i][j]",
"numAry[i]",
"numAry",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i != 3){\n System.out.println(\"####################\");\n }",
"i != 3",
"i",
"3",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String line = br.readLine();\n int num = Integer.parseInt(line);\n int[][][] numAry = new int[4][3][10];\n \n //????????????\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }\n \n //input?????£??\\\n for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }\n \n //??????\n for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String line = br.readLine();\n int num = Integer.parseInt(line);\n int[][][] numAry = new int[4][3][10];\n \n //????????????\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n numAry[i][j][k] = 0;\n }\n }\n }\n \n //input?????£??\\\n for (int i = 0; i < num; i ++) {\n String[] aryInput = br.readLine().split(\" \");\n \n int a = Integer.parseInt(aryInput[0]);\n int b = Integer.parseInt(aryInput[1]);\n int c = Integer.parseInt(aryInput[2]);\n \n numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);\n }\n \n //??????\n for(int i = 0; i < 4; i++){\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \");\n System.out.print(numAry[i][j][k]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int num = Integer.parseInt(line);
int[][][] numAry = new int[4][3][10];
//????????????
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
numAry[i][j][k] = 0;
}
}
}
//input?????£??\
for (int i = 0; i < num; i ++) {
String[] aryInput = br.readLine().split(" ");
int a = Integer.parseInt(aryInput[0]);
int b = Integer.parseInt(aryInput[1]);
int c = Integer.parseInt(aryInput[2]);
numAry[a - 1][b - 1][c - 1] += Integer.parseInt(aryInput[3]);
}
//??????
for(int i = 0; i < 4; i++){
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" ");
System.out.print(numAry[i][j][k]);
}
System.out.println();
}
if(i != 3){
System.out.println("####################");
}
}
}
} |
[
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,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
17,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
2,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
13,
17,
4,
18,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
17,
14,
2,
13,
17,
3,
4,
18,
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
],
[
248,
11
],
[
248,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
14,
41
],
[
41,
42
],
[
41,
43
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
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
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
86,
94
],
[
14,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
110,
115
],
[
107,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
122,
124
],
[
118,
125
],
[
107,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
132,
134
],
[
128,
135
],
[
107,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
142,
144
],
[
138,
145
],
[
107,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
151,
153
],
[
107,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
162,
170
],
[
14,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
184,
192
],
[
192,
193
],
[
193,
194
],
[
184,
195
],
[
196,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
197,
205
],
[
205,
206
],
[
206,
207
],
[
197,
208
],
[
209,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
212,
215
],
[
210,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
196,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
183,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
183,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
14,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
12,
245
],
[
245,
246
],
[
0,
247
],
[
247,
248
],
[
247,
249
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString input = br.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\tint room[][][] = new int[4][3][10];\n\t\tfor( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString input = br.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\tint room[][][] = new int[4][3][10];\n\t\tfor( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString input = br.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\tint room[][][] = new int[4][3][10];\n\t\tfor( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString input = br.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\tint room[][][] = new int[4][3][10];\n\t\tfor( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(input);",
"n",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"int k = 0;",
"k",
"0",
"int room[][][] = new int[4][3][10];",
"room",
"new int[4][3][10]",
"4",
"3",
"10",
"for( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"j=0 ;",
"j=0",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}",
"for ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}",
"k=0 ;",
"k=0",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}",
"{\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}",
"room[i][j][k]=0",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"0",
"for( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}",
"{\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}",
"String[] reinput = br.readLine().split(\" \");",
"reinput",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int b = Integer.parseInt(reinput[0])-1;",
"b",
"Integer.parseInt(reinput[0])-1",
"Integer.parseInt(reinput[0])",
"Integer.parseInt",
"Integer",
"reinput[0]",
"reinput",
"0",
"1",
"int f = Integer.parseInt(reinput[1])-1;",
"f",
"Integer.parseInt(reinput[1])-1",
"Integer.parseInt(reinput[1])",
"Integer.parseInt",
"Integer",
"reinput[1]",
"reinput",
"1",
"1",
"int r = Integer.parseInt(reinput[2])-1;",
"r",
"Integer.parseInt(reinput[2])-1",
"Integer.parseInt(reinput[2])",
"Integer.parseInt",
"Integer",
"reinput[2]",
"reinput",
"2",
"1",
"int v = Integer.parseInt(reinput[3]);",
"v",
"Integer.parseInt(reinput[3])",
"Integer.parseInt",
"Integer",
"reinput[3]",
"reinput",
"3",
"room[b][f][r] = room[b][f][r] + v",
"room[b][f][r]",
"room[b][f]",
"room[b]",
"room",
"b",
"f",
"r",
"room[b][f][r] + v",
"room[b][f][r]",
"room[b][f]",
"room[b]",
"room",
"b",
"f",
"r",
"v",
"for( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}",
"{\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}",
"for( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"j=0 ;",
"j=0",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"{\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"for( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}",
"k=0 ;",
"k=0",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}",
"{\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}",
"sb.append(\" \").append(Integer.toString(room[i][j][k]))",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"Integer.toString(room[i][j][k])",
"Integer.toString",
"Integer",
"room[i][j][k]",
"room[i][j]",
"room[i]",
"room",
"i",
"j",
"k",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"if( i==3 ) break;",
"i==3",
"i",
"3",
"break;",
"sb.append(\"####################\\n\")",
"sb.append",
"sb",
"\"####################\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] age",
"age",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString input = br.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\tint room[][][] = new int[4][3][10];\n\t\tfor( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString input = br.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = 0;\n\n\t\tint room[][][] = new int[4][3][10];\n\t\tfor( i=0 ; i<4; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor ( k=0 ; k<10 ; k++ ){\n\t\t\t\t\troom[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++){\n\t\t\tString[] reinput = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(reinput[0])-1;\n\t\t\tint f = Integer.parseInt(reinput[1])-1;\n\t\t\tint r = Integer.parseInt(reinput[2])-1;\n\t\t\tint v = Integer.parseInt(reinput[3]);\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor( i=0 ; i<4 ; i++ ){\n\t\t\tfor( j=0 ; j<3 ; j++ ){\n\t\t\t\tfor( k=0 ; k<10 ; k++ ){\n\t\t\t\t\tsb.append(\" \").append(Integer.toString(room[i][j][k]));\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif( i==3 ) break;\n\t\t\tsb.append(\"####################\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuffer sb = new StringBuffer();
String input = br.readLine();
int n = Integer.parseInt(input);
int i = 0;
int j = 0;
int k = 0;
int room[][][] = new int[4][3][10];
for( i=0 ; i<4; i++ ){
for( j=0 ; j<3 ; j++ ){
for ( k=0 ; k<10 ; k++ ){
room[i][j][k]=0;
}
}
}
for( i=0 ; i<n ; i++){
String[] reinput = br.readLine().split(" ");
int b = Integer.parseInt(reinput[0])-1;
int f = Integer.parseInt(reinput[1])-1;
int r = Integer.parseInt(reinput[2])-1;
int v = Integer.parseInt(reinput[3]);
room[b][f][r] = room[b][f][r] + v;
}
for( i=0 ; i<4 ; i++ ){
for( j=0 ; j<3 ; j++ ){
for( k=0 ; k<10 ; k++ ){
sb.append(" ").append(Integer.toString(room[i][j][k]));
}
sb.append("\n");
}
if( i==3 ) break;
sb.append("####################\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
147,
5
],
[
147,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
37,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
37,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
69,
71
],
[
58,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
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
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
85,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
8,
141
],
[
141,
142
],
[
142,
143
],
[
6,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint a[][][] = new int[4][3][10];\n\t\tint i;\n\t\tfor(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}\n\t\tfor(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\tscan.close();\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint a[][][] = new int[4][3][10];\n\t\tint i;\n\t\tfor(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}\n\t\tfor(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\tscan.close();\n}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint a[][][] = new int[4][3][10];\n\t\tint i;\n\t\tfor(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}\n\t\tfor(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\tscan.close();\n}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint a[][][] = new int[4][3][10];\n\t\tint i;\n\t\tfor(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}\n\t\tfor(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\tscan.close();\n}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int a[][][] = new int[4][3][10];",
"a",
"new int[4][3][10]",
"4",
"3",
"10",
"int i;",
"i",
"for(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}",
"{\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}",
"int b=scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f=scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r=scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int v=scan.nextInt();",
"v",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a[b-1][f-1][r-1] +=v",
"a[b-1][f-1][r-1]",
"a[b-1][f-1]",
"a[b-1]",
"a",
"b-1",
"b",
"1",
"f-1",
"f",
"1",
"r-1",
"r",
"1",
"v",
"for(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"int b=0;",
"int b=0;",
"b",
"0",
"b<4",
"b",
"4",
"b++",
"b++",
"b",
"{\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"{\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"for(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int f=0;",
"int f=0;",
"f",
"0",
"f<3",
"f",
"3",
"f++",
"f++",
"f",
"{\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}",
"int r=0;",
"int r=0;",
"r",
"0",
"r<10",
"r",
"10",
"r++",
"r++",
"r",
"{\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}",
"System.out.print(\" \"+ a[b][f][r])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+ a[b][f][r]",
"\" \"",
"a[b][f][r]",
"a[b][f]",
"a[b]",
"a",
"b",
"f",
"r",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(b<3)\n\t\t\t\tSystem.out.println(\"####################\");",
"b<3",
"b",
"3",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint a[][][] = new int[4][3][10];\n\t\tint i;\n\t\tfor(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}\n\t\tfor(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\tscan.close();\n}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint a[][][] = new int[4][3][10];\n\t\tint i;\n\t\tfor(i=0;i<n;i++) {\n\t\t\tint b=scan.nextInt();\n\t\t\tint f=scan.nextInt();\n\t\t\tint r=scan.nextInt();\n\t\t\tint v=scan.nextInt();\n\t\t\ta[b-1][f-1][r-1] +=v;\n\t\t}\n\t\tfor(int b=0;b<4;b++) {\n\t\t\tfor(int f=0;f<3;f++) {\n\t\t\t\tfor(int r=0;r<10;r++) {\n\t\t\t\t\tSystem.out.print(\" \"+ a[b][f][r]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(b<3)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\tscan.close();\n}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
int a[][][] = new int[4][3][10];
int i;
for(i=0;i<n;i++) {
int b=scan.nextInt();
int f=scan.nextInt();
int r=scan.nextInt();
int v=scan.nextInt();
a[b-1][f-1][r-1] +=v;
}
for(int b=0;b<4;b++) {
for(int f=0;f<3;f++) {
for(int r=0;r<10;r++) {
System.out.print(" "+ a[b][f][r]);
}
System.out.println();
}
if(b<3)
System.out.println("####################");
}
scan.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
149,
8
],
[
149,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
51,
55
],
[
41,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
58,
62
],
[
41,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
41,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
68,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
89,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
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
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
113,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
9,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int[][][] r = new int[4][3][10];\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }\n for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }\n }\n\n\n }",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int[][][] r = new int[4][3][10];\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }\n for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }\n }\n\n\n }",
"Main",
"public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int[][][] r = new int[4][3][10];\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }\n for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int[][][] r = new int[4][3][10];\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }\n for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"int[][][] r = new int[4][3][10];",
"r",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }",
"{\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }",
"int b =sc.nextInt() - 1;",
"b",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int c =sc.nextInt() - 1;",
"c",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int d =sc.nextInt() - 1;",
"d",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int e =sc.nextInt();",
"e",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r[b][c][d] += e",
"r[b][c][d]",
"r[b][c]",
"r[b]",
"r",
"b",
"c",
"d",
"e",
"for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"++i",
"++i",
"i",
"{\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }",
"{\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }",
"if (i != 0) {\n System.out.println(\"####################\");\n }",
"i != 0",
"i",
"0",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }",
"{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }",
"for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n System.out.print(\" \" + r[i][j][k]);\n }",
"{\n System.out.print(\" \" + r[i][j][k]);\n }",
"System.out.print(\" \" + r[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + r[i][j][k]",
"\" \"",
"r[i][j][k]",
"r[i][j]",
"r[i]",
"r",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String args[]",
"args",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int[][][] r = new int[4][3][10];\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }\n for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }\n }\n\n\n }",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int[][][] r = new int[4][3][10];\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n \tint b =sc.nextInt() - 1;\n \tint c =sc.nextInt() - 1;\n \tint d =sc.nextInt() - 1;\n \tint e =sc.nextInt();\n r[b][c][d] += e;\n }\n for (int i = 0; i < 4; ++i) {\n if (i != 0) {\n System.out.println(\"####################\");\n }\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + r[i][j][k]);\n }\n System.out.println();\n }\n }\n }\n\n\n }",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main (String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
StringBuffer sb = new StringBuffer();
int[][][] r = new int[4][3][10];
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int b =sc.nextInt() - 1;
int c =sc.nextInt() - 1;
int d =sc.nextInt() - 1;
int e =sc.nextInt();
r[b][c][d] += e;
}
for (int i = 0; i < 4; ++i) {
if (i != 0) {
System.out.println("####################");
}
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 10; k++) {
System.out.print(" " + r[i][j][k]);
}
System.out.println();
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
17,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
18,
13,
17,
13,
13,
13,
3,
34,
17,
1,
0,
18,
18,
18,
13,
17,
13,
13,
13,
3,
34,
17,
1,
0,
18,
18,
18,
13,
17,
13,
13,
13,
3,
34,
17,
1,
0,
18,
18,
18,
13,
17,
13,
13,
13,
3,
34,
1,
3,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
12
],
[
12,
13
],
[
12,
14
],
[
4,
15
],
[
15,
16
],
[
15,
17
],
[
4,
18
],
[
18,
19
],
[
18,
20
],
[
4,
21
],
[
21,
22
],
[
21,
23
],
[
4,
24
],
[
24,
25
],
[
24,
26
],
[
4,
27
],
[
27,
28
],
[
27,
29
],
[
4,
30
],
[
30,
31
],
[
30,
32
],
[
4,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
35,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
56,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
56,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
82,
90
],
[
81,
91
],
[
77,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
95,
103
],
[
94,
104
],
[
77,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
108,
116
],
[
107,
117
],
[
77,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
121,
129
],
[
120,
130
],
[
77,
131
],
[
131,
132
],
[
132,
133
],
[
35,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
160,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
179,
185
],
[
159,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
146,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
4,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
202,
208
],
[
208,
209
]
] | [
"import java.util.Scanner;\nclass Main {\n\tint[][][] t = new int [5][5][11];\n\tint n = 0, b = 0, f = 0, r = 0, v = 0, i = 0, k = 0;\n\tpublic void of() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(i = 1; i <= n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(n = 1; n <= 4; n++) {\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().of();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tint[][][] t = new int [5][5][11];\n\tint n = 0, b = 0, f = 0, r = 0, v = 0, i = 0, k = 0;\n\tpublic void of() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(i = 1; i <= n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(n = 1; n <= 4; n++) {\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().of();\n\t}\n}",
"Main",
"int[][][] t = new int [5][5][11];",
"t",
"new int [5][5][11]",
"5",
"5",
"11",
"int n = 0",
"n",
"0",
"b = 0",
"b",
"0",
"f = 0",
"f",
"0",
"r = 0",
"r",
"0",
"v = 0",
"v",
"0",
"i = 0",
"i",
"0",
"k = 0;",
"k",
"0",
"public void of() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(i = 1; i <= n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(n = 1; n <= 4; n++) {\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"of",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(i = 1; i <= n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(n = 1; n <= 4; n++) {\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 1; i <= n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\t\t\tswitch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"f = sc.nextInt()",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"r = sc.nextInt()",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"v = sc.nextInt()",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(b) {\n\t\t\t\tcase 1:\n\t\t\t\t\tt[1][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[2][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tt[3][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tt[4][f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}",
"b",
"case 1:",
"1",
"case 1:",
"t[1][f][r] += v",
"t[1][f][r]",
"t[1][f]",
"t[1]",
"t",
"1",
"f",
"r",
"v",
"break;",
"case 2:",
"2",
"case 2:",
"t[2][f][r] += v",
"t[2][f][r]",
"t[2][f]",
"t[2]",
"t",
"2",
"f",
"r",
"v",
"break;",
"case 3:",
"3",
"case 3:",
"t[3][f][r] += v",
"t[3][f][r]",
"t[3][f]",
"t[3]",
"t",
"3",
"f",
"r",
"v",
"break;",
"case 4:",
"4",
"case 4:",
"t[4][f][r] += v",
"t[4][f][r]",
"t[4][f]",
"t[4]",
"t",
"4",
"f",
"r",
"v",
"break;",
"default:",
"default:",
"break;",
"for(n = 1; n <= 4; n++) {\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"n = 1;",
"n = 1",
"n",
"1",
"n <= 4",
"n",
"4",
"n++",
"n++",
"n",
"{\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(i = 1; i < 4; i++) {\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(k = 1; k < 11; k++) {\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}",
"k = 1;",
"k = 1",
"k",
"1",
"k < 11",
"k",
"11",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[n][i][k]);\n\t\t\t\t}",
"System.out.printf(\" %d\",t[n][i][k])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"t[n][i][k]",
"t[n][i]",
"t[n]",
"t",
"n",
"i",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(n < 4) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"n < 4",
"n",
"4",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"public static void main(String[] args) {\n\t\tnew Main().of();\n\t}",
"main",
"{\n\t\tnew Main().of();\n\t}",
"new Main().of()",
"new Main().of",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
int[][][] t = new int [5][5][11];
int n = 0, b = 0, f = 0, r = 0, v = 0, i = 0, k = 0;
public void of() {
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
for(i = 1; i <= n; i++) {
b = sc.nextInt();
f = sc.nextInt();
r = sc.nextInt();
v = sc.nextInt();
switch(b) {
case 1:
t[1][f][r] += v;
break;
case 2:
t[2][f][r] += v;
break;
case 3:
t[3][f][r] += v;
break;
case 4:
t[4][f][r] += v;
break;
default:
break;
}
}
for(n = 1; n <= 4; n++) {
for(i = 1; i < 4; i++) {
for(k = 1; k < 11; k++) {
System.out.printf(" %d",t[n][i][k]);
}
System.out.println();
}
if(n < 4) {
System.out.println("####################");
}
}
}
public static void main(String[] args) {
new Main().of();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
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,
4,
18,
13,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
4,
18,
13,
13,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
18,
36,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
36,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
4,
18,
18,
36,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
0,
18,
36,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
12,
13,
30,
41,
13,
4,
18,
18,
36,
13,
2,
13,
17,
41,
13,
4,
18,
13,
2,
13,
17,
41,
13,
4,
18,
13,
2,
13,
17,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
18,
36,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
18,
36,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
14,
2,
18,
36,
13,
17,
30,
0,
18,
36,
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
],
[
513,
11
],
[
513,
12
],
[
12,
13
],
[
513,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
24,
25
],
[
16,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
16,
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
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
46,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
46,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
46,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
46,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
96,
101
],
[
96,
102
],
[
16,
103
],
[
103,
104
],
[
104,
105
],
[
14,
106
],
[
106,
107
],
[
513,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
111,
123
],
[
123,
124
],
[
124,
125
],
[
111,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
136,
146
],
[
146,
147
],
[
147,
148
],
[
136,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
150,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
157,
167
],
[
167,
168
],
[
168,
169
],
[
157,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
171,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
150,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
127,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
197,
203
],
[
194,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
513,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
213,
223
],
[
223,
224
],
[
224,
225
],
[
223,
226
],
[
213,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
213,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
513,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
245,
246
],
[
245,
247
],
[
237,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
253,
254
],
[
253,
255
],
[
237,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
258,
261
],
[
261,
262
],
[
261,
263
],
[
237,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
235,
268
],
[
268,
269
],
[
235,
270
],
[
270,
271
],
[
235,
272
],
[
272,
273
],
[
235,
274
],
[
274,
275
],
[
513,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
276,
280
],
[
280,
281
],
[
276,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
285,
289
],
[
284,
290
],
[
290,
291
],
[
290,
292
],
[
284,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
284,
297
],
[
297,
298
],
[
298,
299
],
[
297,
300
],
[
284,
301
],
[
301,
302
],
[
302,
303
],
[
301,
304
],
[
282,
305
],
[
305,
306
],
[
276,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
276,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
312,
320
],
[
320,
321
],
[
276,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
276,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
335,
338
],
[
331,
339
],
[
339,
340
],
[
276,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
344,
348
],
[
341,
349
],
[
349,
350
],
[
513,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
351,
355
],
[
355,
356
],
[
351,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
359,
365
],
[
365,
366
],
[
365,
367
],
[
359,
368
],
[
368,
369
],
[
369,
370
],
[
368,
371
],
[
359,
372
],
[
372,
373
],
[
373,
374
],
[
372,
375
],
[
359,
376
],
[
376,
377
],
[
377,
378
],
[
376,
379
],
[
359,
380
],
[
380,
381
],
[
381,
382
],
[
380,
383
],
[
359,
384
],
[
384,
385
],
[
385,
386
],
[
384,
387
],
[
359,
388
],
[
388,
389
],
[
389,
390
],
[
388,
391
],
[
359,
392
],
[
392,
393
],
[
393,
394
],
[
392,
395
],
[
359,
396
],
[
396,
397
],
[
397,
398
],
[
396,
399
],
[
359,
400
],
[
400,
401
],
[
401,
402
],
[
400,
403
],
[
359,
404
],
[
404,
405
],
[
405,
406
],
[
404,
407
],
[
357,
408
],
[
408,
409
],
[
351,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
351,
415
],
[
415,
416
],
[
415,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
415,
423
],
[
423,
424
],
[
351,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
429,
432
],
[
425,
433
],
[
433,
434
],
[
351,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
438,
442
],
[
435,
443
],
[
443,
444
],
[
351,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
513,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
454,
458
],
[
458,
459
],
[
454,
460
],
[
460,
461
],
[
460,
462
],
[
462,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
467
],
[
460,
468
],
[
468,
469
],
[
454,
470
],
[
470,
471
],
[
470,
472
],
[
472,
473
],
[
473,
474
],
[
454,
475
],
[
475,
476
],
[
475,
477
],
[
477,
478
],
[
478,
479
],
[
479,
480
],
[
479,
481
],
[
478,
482
],
[
475,
483
],
[
483,
484
],
[
454,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
488,
489
],
[
454,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
493,
494
],
[
494,
495
],
[
494,
496
],
[
493,
497
],
[
492,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
499,
503
],
[
498,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
505,
509
],
[
490,
510
],
[
510,
511
],
[
0,
512
],
[
512,
513
],
[
512,
514
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\tprivate ArrayList<Kousha> kousha;\n\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }\n\n\t main.disp();\n\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tthis.kousha = new ArrayList<Kousha>();\n\n\t\tkousha.add(new Kousha(1));\n\t\tkousha.add(new Kousha(2));\n\t\tkousha.add(new Kousha(3));\n\t\tkousha.add(new Kousha(4));\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tKousha kousha = this.kousha.get(b - 1);\n\t\tFloor floor = kousha.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Kousha {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tKousha(int koushaNo) {\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getFloorCount() {\n\t\t\treturn this.floor.size();\n\t\t}\n\n\t\tpublic Floor getFloor(int floorNo) {\n\t\t\treturn floor.get(floorNo);\n\t\t}\n\n\t\tpublic void setFloor(ArrayList<Floor> floor) {\n\t\t\tthis.floor = floor;\n\t\t}\n\t}\n\n\tclass Floor {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Room> room;\n\n\t\tFloor(int floorNo) {\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic Room getRoom(int roomNo) {\n\t\t\treturn room.get(roomNo);\n\t\t}\n\n\t\tpublic void setRoom(ArrayList<Room> room) {\n\t\t\tthis.room = room;\n\t\t}\n\n\t\tpublic int getRoomCount() {\n\t\t\treturn this.room.size();\n\t\t}\n\t}\n\n\tclass Room {\n\t\tprivate int num;\n\n\t\tprivate int ninzu;\n\n\t\tRoom(int roomNo) {\n\t\t\tthis.num = roomNo;\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getNinzu() {\n\t\t\treturn ninzu;\n\t\t}\n\n\t\tpublic void setNinzu(int ninzu) {\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\tprivate ArrayList<Kousha> kousha;\n\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }\n\n\t main.disp();\n\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tthis.kousha = new ArrayList<Kousha>();\n\n\t\tkousha.add(new Kousha(1));\n\t\tkousha.add(new Kousha(2));\n\t\tkousha.add(new Kousha(3));\n\t\tkousha.add(new Kousha(4));\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tKousha kousha = this.kousha.get(b - 1);\n\t\tFloor floor = kousha.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Kousha {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tKousha(int koushaNo) {\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getFloorCount() {\n\t\t\treturn this.floor.size();\n\t\t}\n\n\t\tpublic Floor getFloor(int floorNo) {\n\t\t\treturn floor.get(floorNo);\n\t\t}\n\n\t\tpublic void setFloor(ArrayList<Floor> floor) {\n\t\t\tthis.floor = floor;\n\t\t}\n\t}\n\n\tclass Floor {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Room> room;\n\n\t\tFloor(int floorNo) {\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic Room getRoom(int roomNo) {\n\t\t\treturn room.get(roomNo);\n\t\t}\n\n\t\tpublic void setRoom(ArrayList<Room> room) {\n\t\t\tthis.room = room;\n\t\t}\n\n\t\tpublic int getRoomCount() {\n\t\t\treturn this.room.size();\n\t\t}\n\t}\n\n\tclass Room {\n\t\tprivate int num;\n\n\t\tprivate int ninzu;\n\n\t\tRoom(int roomNo) {\n\t\t\tthis.num = roomNo;\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getNinzu() {\n\t\t\treturn ninzu;\n\t\t}\n\n\t\tpublic void setNinzu(int ninzu) {\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"private ArrayList<Kousha> kousha;",
"kousha",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }\n\n\t main.disp();\n\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }\n\n\t main.disp();\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"Main main = new Main();",
"main",
"new Main()",
"main.init()",
"main.init",
"main",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }",
"{\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int b = Integer.parseInt(line.split(\" \")[0]);",
"b",
"Integer.parseInt(line.split(\" \")[0])",
"Integer.parseInt",
"Integer",
"line.split(\" \")[0]",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"0",
"int f = Integer.parseInt(line.split(\" \")[1]);",
"f",
"Integer.parseInt(line.split(\" \")[1])",
"Integer.parseInt",
"Integer",
"line.split(\" \")[1]",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"1",
"int r = Integer.parseInt(line.split(\" \")[2]);",
"r",
"Integer.parseInt(line.split(\" \")[2])",
"Integer.parseInt",
"Integer",
"line.split(\" \")[2]",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"2",
"int v = Integer.parseInt(line.split(\" \")[3]);",
"v",
"Integer.parseInt(line.split(\" \")[3])",
"Integer.parseInt",
"Integer",
"line.split(\" \")[3]",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"3",
"main.movePeople(b, f, r, v)",
"main.movePeople",
"main",
"b",
"f",
"r",
"v",
"main.disp()",
"main.disp",
"main",
"String[] args",
"args",
"private void disp() {\n\t\tfor (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"disp",
"{\n\t\tfor (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}",
"for (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int b = 0;",
"int b = 0;",
"b",
"0",
"b < this.kousha.size()",
"b",
"this.kousha.size()",
"this.kousha.size",
"this.kousha",
"this",
"this.kousha",
"b++",
"b++",
"b",
"{\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"Kousha kousha = this.kousha.get(b);",
"kousha",
"this.kousha.get(b)",
"this.kousha.get",
"this.kousha",
"this",
"this.kousha",
"b",
"for (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < kousha.getFloorCount()",
"f",
"kousha.getFloorCount()",
"kousha.getFloorCount",
"kousha",
"f++",
"f++",
"f",
"{\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"{\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"Floor floor = kousha.getFloor(f);",
"floor",
"kousha.getFloor(f)",
"kousha.getFloor",
"kousha",
"f",
"for (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < floor.getRoomCount()",
"r",
"floor.getRoomCount()",
"floor.getRoomCount",
"floor",
"r++",
"r++",
"r",
"{\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}",
"{\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}",
"Room room = floor.getRoom(r);",
"room",
"floor.getRoom(r)",
"floor.getRoom",
"floor",
"r",
"System.out.print(\" \" + room.getNinzu())",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + room.getNinzu()",
"\" \"",
"room.getNinzu()",
"room.getNinzu",
"room",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"if (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"b != this.kousha.size() - 1",
"b",
"this.kousha.size() - 1",
"this.kousha.size()",
"this.kousha.size",
"this.kousha",
"this",
"this.kousha",
"1",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"private void init() {\n\t\tthis.kousha = new ArrayList<Kousha>();\n\n\t\tkousha.add(new Kousha(1));\n\t\tkousha.add(new Kousha(2));\n\t\tkousha.add(new Kousha(3));\n\t\tkousha.add(new Kousha(4));\n\t}",
"init",
"{\n\t\tthis.kousha = new ArrayList<Kousha>();\n\n\t\tkousha.add(new Kousha(1));\n\t\tkousha.add(new Kousha(2));\n\t\tkousha.add(new Kousha(3));\n\t\tkousha.add(new Kousha(4));\n\t}",
"this.kousha = new ArrayList<Kousha>()",
"this.kousha",
"this",
"this.kousha",
"new ArrayList<Kousha>()",
"kousha.add(new Kousha(1))",
"kousha.add",
"kousha",
"new Kousha(1)",
"kousha.add(new Kousha(2))",
"kousha.add",
"kousha",
"new Kousha(2)",
"kousha.add(new Kousha(3))",
"kousha.add",
"kousha",
"new Kousha(3)",
"kousha.add(new Kousha(4))",
"kousha.add",
"kousha",
"new Kousha(4)",
"private void movePeople(int b, int f, int r, int v) {\n\t\tKousha kousha = this.kousha.get(b - 1);\n\t\tFloor floor = kousha.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}",
"movePeople",
"{\n\t\tKousha kousha = this.kousha.get(b - 1);\n\t\tFloor floor = kousha.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}",
"Kousha kousha = this.kousha.get(b - 1);",
"kousha",
"this.kousha.get(b - 1)",
"this.kousha.get",
"this.kousha",
"this",
"this.kousha",
"b - 1",
"b",
"1",
"Floor floor = kousha.getFloor(f - 1);",
"floor",
"kousha.getFloor(f - 1)",
"kousha.getFloor",
"kousha",
"f - 1",
"f",
"1",
"Room room = floor.getRoom(r - 1);",
"room",
"floor.getRoom(r - 1)",
"floor.getRoom",
"floor",
"r - 1",
"r",
"1",
"room.setNinzu(v)",
"room.setNinzu",
"room",
"v",
"int b",
"b",
"int f",
"f",
"int r",
"r",
"int v",
"v",
"class Kousha {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tKousha(int koushaNo) {\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getFloorCount() {\n\t\t\treturn this.floor.size();\n\t\t}\n\n\t\tpublic Floor getFloor(int floorNo) {\n\t\t\treturn floor.get(floorNo);\n\t\t}\n\n\t\tpublic void setFloor(ArrayList<Floor> floor) {\n\t\t\tthis.floor = floor;\n\t\t}\n\t}",
"Kousha",
"private int num;",
"num",
"private ArrayList<Floor> floor;",
"floor",
"Kousha(int koushaNo) {\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}",
"Kousha",
"{\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}",
"this.num = koushaNo",
"this.num",
"this",
"this.num",
"koushaNo",
"floor = new ArrayList<Floor>()",
"floor",
"new ArrayList<Floor>()",
"floor.add(new Floor(1))",
"floor.add",
"floor",
"new Floor(1)",
"floor.add(new Floor(2))",
"floor.add",
"floor",
"new Floor(2)",
"floor.add(new Floor(3))",
"floor.add",
"floor",
"new Floor(3)",
"int koushaNo",
"koushaNo",
"public int getNum() {\n\t\t\treturn num;\n\t\t}",
"getNum",
"{\n\t\t\treturn num;\n\t\t}",
"return num;",
"num",
"public void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}",
"setNum",
"{\n\t\t\tthis.num = num;\n\t\t}",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"int num",
"num",
"public int getFloorCount() {\n\t\t\treturn this.floor.size();\n\t\t}",
"getFloorCount",
"{\n\t\t\treturn this.floor.size();\n\t\t}",
"return this.floor.size();",
"this.floor.size()",
"this.floor.size",
"this.floor",
"this",
"this.floor",
"public Floor getFloor(int floorNo) {\n\t\t\treturn floor.get(floorNo);\n\t\t}",
"getFloor",
"{\n\t\t\treturn floor.get(floorNo);\n\t\t}",
"return floor.get(floorNo);",
"floor.get(floorNo)",
"floor.get",
"floor",
"floorNo",
"int floorNo",
"floorNo",
"public void setFloor(ArrayList<Floor> floor) {\n\t\t\tthis.floor = floor;\n\t\t}",
"setFloor",
"{\n\t\t\tthis.floor = floor;\n\t\t}",
"this.floor = floor",
"this.floor",
"this",
"this.floor",
"floor",
"ArrayList<Floor> floor",
"floor",
"class Floor {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Room> room;\n\n\t\tFloor(int floorNo) {\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic Room getRoom(int roomNo) {\n\t\t\treturn room.get(roomNo);\n\t\t}\n\n\t\tpublic void setRoom(ArrayList<Room> room) {\n\t\t\tthis.room = room;\n\t\t}\n\n\t\tpublic int getRoomCount() {\n\t\t\treturn this.room.size();\n\t\t}\n\t}",
"Floor",
"private int num;",
"num",
"private ArrayList<Room> room;",
"room",
"Floor(int floorNo) {\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}",
"Floor",
"{\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}",
"this.num = floorNo",
"this.num",
"this",
"this.num",
"floorNo",
"room = new ArrayList<Room>()",
"room",
"new ArrayList<Room>()",
"room.add(new Room(1))",
"room.add",
"room",
"new Room(1)",
"room.add(new Room(2))",
"room.add",
"room",
"new Room(2)",
"room.add(new Room(3))",
"room.add",
"room",
"new Room(3)",
"room.add(new Room(4))",
"room.add",
"room",
"new Room(4)",
"room.add(new Room(5))",
"room.add",
"room",
"new Room(5)",
"room.add(new Room(6))",
"room.add",
"room",
"new Room(6)",
"room.add(new Room(7))",
"room.add",
"room",
"new Room(7)",
"room.add(new Room(8))",
"room.add",
"room",
"new Room(8)",
"room.add(new Room(9))",
"room.add",
"room",
"new Room(9)",
"room.add(new Room(10))",
"room.add",
"room",
"new Room(10)",
"int floorNo",
"floorNo",
"public int getNum() {\n\t\t\treturn num;\n\t\t}",
"getNum",
"{\n\t\t\treturn num;\n\t\t}",
"return num;",
"num",
"public void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}",
"setNum",
"{\n\t\t\tthis.num = num;\n\t\t}",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"int num",
"num",
"public Room getRoom(int roomNo) {\n\t\t\treturn room.get(roomNo);\n\t\t}",
"getRoom",
"{\n\t\t\treturn room.get(roomNo);\n\t\t}",
"return room.get(roomNo);",
"room.get(roomNo)",
"room.get",
"room",
"roomNo",
"int roomNo",
"roomNo",
"public void setRoom(ArrayList<Room> room) {\n\t\t\tthis.room = room;\n\t\t}",
"setRoom",
"{\n\t\t\tthis.room = room;\n\t\t}",
"this.room = room",
"this.room",
"this",
"this.room",
"room",
"ArrayList<Room> room",
"room",
"public int getRoomCount() {\n\t\t\treturn this.room.size();\n\t\t}",
"getRoomCount",
"{\n\t\t\treturn this.room.size();\n\t\t}",
"return this.room.size();",
"this.room.size()",
"this.room.size",
"this.room",
"this",
"this.room",
"class Room {\n\t\tprivate int num;\n\n\t\tprivate int ninzu;\n\n\t\tRoom(int roomNo) {\n\t\t\tthis.num = roomNo;\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getNinzu() {\n\t\t\treturn ninzu;\n\t\t}\n\n\t\tpublic void setNinzu(int ninzu) {\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}\n\t}",
"Room",
"private int num;",
"num",
"private int ninzu;",
"ninzu",
"Room(int roomNo) {\n\t\t\tthis.num = roomNo;\n\t\t}",
"Room",
"{\n\t\t\tthis.num = roomNo;\n\t\t}",
"this.num = roomNo",
"this.num",
"this",
"this.num",
"roomNo",
"int roomNo",
"roomNo",
"public int getNum() {\n\t\t\treturn num;\n\t\t}",
"getNum",
"{\n\t\t\treturn num;\n\t\t}",
"return num;",
"num",
"public void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}",
"setNum",
"{\n\t\t\tthis.num = num;\n\t\t}",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"int num",
"num",
"public int getNinzu() {\n\t\t\treturn ninzu;\n\t\t}",
"getNinzu",
"{\n\t\t\treturn ninzu;\n\t\t}",
"return ninzu;",
"ninzu",
"public void setNinzu(int ninzu) {\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}",
"setNinzu",
"{\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}",
"this.ninzu += ninzu",
"this.ninzu",
"this",
"this.ninzu",
"ninzu",
"if (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}",
"this.ninzu < 0",
"this.ninzu",
"this",
"this.ninzu",
"0",
"{\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}",
"this.ninzu = 0",
"this.ninzu",
"this",
"this.ninzu",
"0",
"int ninzu",
"ninzu",
"public class Main {\n\tprivate ArrayList<Kousha> kousha;\n\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }\n\n\t main.disp();\n\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tthis.kousha = new ArrayList<Kousha>();\n\n\t\tkousha.add(new Kousha(1));\n\t\tkousha.add(new Kousha(2));\n\t\tkousha.add(new Kousha(3));\n\t\tkousha.add(new Kousha(4));\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tKousha kousha = this.kousha.get(b - 1);\n\t\tFloor floor = kousha.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Kousha {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tKousha(int koushaNo) {\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getFloorCount() {\n\t\t\treturn this.floor.size();\n\t\t}\n\n\t\tpublic Floor getFloor(int floorNo) {\n\t\t\treturn floor.get(floorNo);\n\t\t}\n\n\t\tpublic void setFloor(ArrayList<Floor> floor) {\n\t\t\tthis.floor = floor;\n\t\t}\n\t}\n\n\tclass Floor {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Room> room;\n\n\t\tFloor(int floorNo) {\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic Room getRoom(int roomNo) {\n\t\t\treturn room.get(roomNo);\n\t\t}\n\n\t\tpublic void setRoom(ArrayList<Room> room) {\n\t\t\tthis.room = room;\n\t\t}\n\n\t\tpublic int getRoomCount() {\n\t\t\treturn this.room.size();\n\t\t}\n\t}\n\n\tclass Room {\n\t\tprivate int num;\n\n\t\tprivate int ninzu;\n\n\t\tRoom(int roomNo) {\n\t\t\tthis.num = roomNo;\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getNinzu() {\n\t\t\treturn ninzu;\n\t\t}\n\n\t\tpublic void setNinzu(int ninzu) {\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate ArrayList<Kousha> kousha;\n\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t // ?£?\n\t\t int b = Integer.parseInt(line.split(\" \")[0]);\n\t\t // ???\n\t\t int f = Integer.parseInt(line.split(\" \")[1]);\n\t\t // ??¨?±???????\n\t\t int r = Integer.parseInt(line.split(\" \")[2]);\n\t\t // ?¢?????????°\n\t\t int v = Integer.parseInt(line.split(\" \")[3]);\n\n\t\t main.movePeople(b, f, r, v);\n\t }\n\n\t main.disp();\n\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.kousha.size(); b++) {\n\n\t\t\tKousha kousha = this.kousha.get(b);\n\t\t\tfor (int f = 0; f < kousha.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = kousha.getFloor(f);\n\t\t\t\tfor (int r = 0; r < floor.getRoomCount(); r++) {\n\t\t\t\t\tRoom room = floor.getRoom(r);\n\t\t\t\t\tSystem.out.print(\" \" + room.getNinzu());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\tif (b != this.kousha.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tthis.kousha = new ArrayList<Kousha>();\n\n\t\tkousha.add(new Kousha(1));\n\t\tkousha.add(new Kousha(2));\n\t\tkousha.add(new Kousha(3));\n\t\tkousha.add(new Kousha(4));\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tKousha kousha = this.kousha.get(b - 1);\n\t\tFloor floor = kousha.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Kousha {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tKousha(int koushaNo) {\n\t\t\tthis.num = koushaNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfloor.add(new Floor(1));\n\t\t\tfloor.add(new Floor(2));\n\t\t\tfloor.add(new Floor(3));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getFloorCount() {\n\t\t\treturn this.floor.size();\n\t\t}\n\n\t\tpublic Floor getFloor(int floorNo) {\n\t\t\treturn floor.get(floorNo);\n\t\t}\n\n\t\tpublic void setFloor(ArrayList<Floor> floor) {\n\t\t\tthis.floor = floor;\n\t\t}\n\t}\n\n\tclass Floor {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Room> room;\n\n\t\tFloor(int floorNo) {\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\n\t\t\troom.add(new Room(1));\n\t\t\troom.add(new Room(2));\n\t\t\troom.add(new Room(3));\n\t\t\troom.add(new Room(4));\n\t\t\troom.add(new Room(5));\n\t\t\troom.add(new Room(6));\n\t\t\troom.add(new Room(7));\n\t\t\troom.add(new Room(8));\n\t\t\troom.add(new Room(9));\n\t\t\troom.add(new Room(10));\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic Room getRoom(int roomNo) {\n\t\t\treturn room.get(roomNo);\n\t\t}\n\n\t\tpublic void setRoom(ArrayList<Room> room) {\n\t\t\tthis.room = room;\n\t\t}\n\n\t\tpublic int getRoomCount() {\n\t\t\treturn this.room.size();\n\t\t}\n\t}\n\n\tclass Room {\n\t\tprivate int num;\n\n\t\tprivate int ninzu;\n\n\t\tRoom(int roomNo) {\n\t\t\tthis.num = roomNo;\n\t\t}\n\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\n\t\tpublic int getNinzu() {\n\t\t\treturn ninzu;\n\t\t}\n\n\t\tpublic void setNinzu(int ninzu) {\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) {\n\t\t\t\tthis.ninzu = 0;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
private ArrayList<Kousha> kousha;
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Main main = new Main();
main.init();
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String line = br.readLine();
// ?£?
int b = Integer.parseInt(line.split(" ")[0]);
// ???
int f = Integer.parseInt(line.split(" ")[1]);
// ??¨?±???????
int r = Integer.parseInt(line.split(" ")[2]);
// ?¢?????????°
int v = Integer.parseInt(line.split(" ")[3]);
main.movePeople(b, f, r, v);
}
main.disp();
}
private void disp() {
for (int b = 0; b < this.kousha.size(); b++) {
Kousha kousha = this.kousha.get(b);
for (int f = 0; f < kousha.getFloorCount(); f++) {
Floor floor = kousha.getFloor(f);
for (int r = 0; r < floor.getRoomCount(); r++) {
Room room = floor.getRoom(r);
System.out.print(" " + room.getNinzu());
}
System.out.println("");
}
if (b != this.kousha.size() - 1) {
System.out.println("####################");
}
}
}
private void init() {
this.kousha = new ArrayList<Kousha>();
kousha.add(new Kousha(1));
kousha.add(new Kousha(2));
kousha.add(new Kousha(3));
kousha.add(new Kousha(4));
}
private void movePeople(int b, int f, int r, int v) {
Kousha kousha = this.kousha.get(b - 1);
Floor floor = kousha.getFloor(f - 1);
Room room = floor.getRoom(r - 1);
room.setNinzu(v);
}
class Kousha {
private int num;
private ArrayList<Floor> floor;
Kousha(int koushaNo) {
this.num = koushaNo;
floor = new ArrayList<Floor>();
floor.add(new Floor(1));
floor.add(new Floor(2));
floor.add(new Floor(3));
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public int getFloorCount() {
return this.floor.size();
}
public Floor getFloor(int floorNo) {
return floor.get(floorNo);
}
public void setFloor(ArrayList<Floor> floor) {
this.floor = floor;
}
}
class Floor {
private int num;
private ArrayList<Room> room;
Floor(int floorNo) {
this.num = floorNo;
room = new ArrayList<Room>();
room.add(new Room(1));
room.add(new Room(2));
room.add(new Room(3));
room.add(new Room(4));
room.add(new Room(5));
room.add(new Room(6));
room.add(new Room(7));
room.add(new Room(8));
room.add(new Room(9));
room.add(new Room(10));
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public Room getRoom(int roomNo) {
return room.get(roomNo);
}
public void setRoom(ArrayList<Room> room) {
this.room = room;
}
public int getRoomCount() {
return this.room.size();
}
}
class Room {
private int num;
private int ninzu;
Room(int roomNo) {
this.num = roomNo;
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public int getNinzu() {
return ninzu;
}
public void setNinzu(int ninzu) {
this.ninzu += ninzu;
if (this.ninzu < 0) {
this.ninzu = 0;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
2,
2,
2,
13,
17,
17,
13,
13,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
17,
42,
2,
13,
17,
30,
4,
18,
13,
2,
17,
18,
18,
13,
13,
13,
40,
13,
4,
18,
13,
17,
35,
13,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
1,
0,
13,
17,
3,
14,
2,
13,
17,
30,
4,
18,
13,
17,
0,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
222,
5
],
[
222,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
8,
47
],
[
47,
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
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
61,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
61,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
61,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
61,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
61,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
106,
116
],
[
105,
117
],
[
8,
118
],
[
118,
119
],
[
118,
120
],
[
8,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
144,
155
],
[
155,
156
],
[
136,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
136,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
161,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
161,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
161,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
136,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
195,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
8,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
205,
209
],
[
202,
210
],
[
210,
211
],
[
211,
212
],
[
8,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
6,
219
],
[
219,
220
],
[
0,
221
],
[
221,
222
],
[
221,
223
]
] | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] arg)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint p,b,f,r,v;\n\t\tint room[][]=new int[13][11];\n\n\t\tString str=br.readLine();\n\t\tif(str.equals(\"\")) System.exit(0);\n\t\tint n=Integer.parseInt(str);\n\t\n\t\tString[] strArray; \n\t\t//Arrays.fill(room,0); //room[][]に初期値0を設定\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}\n StringBuilder output = new StringBuilder();\n\t\t//出力\n boolean div =false;\n \t\tfor (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}\n \t\toutput.delete(output.length()-1,output.length());\n\t\tSystem.out.println(output);\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] arg)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint p,b,f,r,v;\n\t\tint room[][]=new int[13][11];\n\n\t\tString str=br.readLine();\n\t\tif(str.equals(\"\")) System.exit(0);\n\t\tint n=Integer.parseInt(str);\n\t\n\t\tString[] strArray; \n\t\t//Arrays.fill(room,0); //room[][]に初期値0を設定\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}\n StringBuilder output = new StringBuilder();\n\t\t//出力\n boolean div =false;\n \t\tfor (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}\n \t\toutput.delete(output.length()-1,output.length());\n\t\tSystem.out.println(output);\n\t}\n\n}",
"Main",
"public static void main(String[] arg)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint p,b,f,r,v;\n\t\tint room[][]=new int[13][11];\n\n\t\tString str=br.readLine();\n\t\tif(str.equals(\"\")) System.exit(0);\n\t\tint n=Integer.parseInt(str);\n\t\n\t\tString[] strArray; \n\t\t//Arrays.fill(room,0); //room[][]に初期値0を設定\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}\n StringBuilder output = new StringBuilder();\n\t\t//出力\n boolean div =false;\n \t\tfor (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}\n \t\toutput.delete(output.length()-1,output.length());\n\t\tSystem.out.println(output);\n\t}",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint p,b,f,r,v;\n\t\tint room[][]=new int[13][11];\n\n\t\tString str=br.readLine();\n\t\tif(str.equals(\"\")) System.exit(0);\n\t\tint n=Integer.parseInt(str);\n\t\n\t\tString[] strArray; \n\t\t//Arrays.fill(room,0); //room[][]に初期値0を設定\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}\n StringBuilder output = new StringBuilder();\n\t\t//出力\n boolean div =false;\n \t\tfor (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}\n \t\toutput.delete(output.length()-1,output.length());\n\t\tSystem.out.println(output);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int p",
"p",
"b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"int room[][]=new int[13][11];",
"room",
"new int[13][11]",
"13",
"11",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str.equals(\"\")) System.exit(0);",
"str.equals(\"\")",
"str.equals",
"str",
"\"\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"String[] strArray;",
"strArray",
"for(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}",
"{\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}",
"str=br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"strArray=str.split(\" \")",
"strArray",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"b=Integer.parseInt(strArray[0])",
"b",
"Integer.parseInt(strArray[0])",
"Integer.parseInt",
"Integer",
"strArray[0]",
"strArray",
"0",
"f=Integer.parseInt(strArray[1])",
"f",
"Integer.parseInt(strArray[1])",
"Integer.parseInt",
"Integer",
"strArray[1]",
"strArray",
"1",
"r=Integer.parseInt(strArray[2])",
"r",
"Integer.parseInt(strArray[2])",
"Integer.parseInt",
"Integer",
"strArray[2]",
"strArray",
"2",
"v=Integer.parseInt(strArray[3])",
"v",
"Integer.parseInt(strArray[3])",
"Integer.parseInt",
"Integer",
"strArray[3]",
"strArray",
"3",
"room[(b-1)*3+f][r]+=v",
"room[(b-1)*3+f][r]",
"room[(b-1)*3+f]",
"room",
"(b-1)*3+f",
"(b-1)*3",
"(b-1)",
"b",
"1",
"3",
"f",
"r",
"v",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"boolean div =false;",
"div",
"false",
"for (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=12",
"i",
"12",
"i++",
"i++",
"i",
"{\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}",
"{\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}",
"p=1",
"p",
"1",
"while (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}",
"p<=10",
"p",
"10",
"{\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}",
"output.append(\" \"+ room[i][p])",
"output.append",
"output",
"\" \"+ room[i][p]",
"\" \"",
"room[i][p]",
"room[i]",
"room",
"i",
"p",
"p++",
"p",
"output.append(\"\\n\")",
"output.append",
"output",
"\"\\n\"",
"switch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}",
"i",
"case 3:",
"3",
"case 3:",
"div=true",
"div",
"true",
"break;",
"case 6:",
"6",
"case 6:",
"div=true",
"div",
"true",
"break;",
"case 9:",
"9",
"case 9:",
"div=true",
"div",
"true",
"break;",
"default:",
"default:",
"div=false",
"div",
"false",
"break;",
"if(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}",
"div==true",
"div",
"true",
"{\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}",
"output.append(\"####################\\n\")",
"output.append",
"output",
"\"####################\\n\"",
"div=false",
"div",
"false",
"output.delete(output.length()-1,output.length())",
"output.delete",
"output",
"output.length()-1",
"output.length()",
"output.length",
"output",
"1",
"output.length()",
"output.length",
"output",
"System.out.println(output)",
"System.out.println",
"System.out",
"System",
"System.out",
"output",
"String[] arg",
"arg",
"public class Main{\n public static void main(String[] arg)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint p,b,f,r,v;\n\t\tint room[][]=new int[13][11];\n\n\t\tString str=br.readLine();\n\t\tif(str.equals(\"\")) System.exit(0);\n\t\tint n=Integer.parseInt(str);\n\t\n\t\tString[] strArray; \n\t\t//Arrays.fill(room,0); //room[][]に初期値0を設定\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}\n StringBuilder output = new StringBuilder();\n\t\t//出力\n boolean div =false;\n \t\tfor (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}\n \t\toutput.delete(output.length()-1,output.length());\n\t\tSystem.out.println(output);\n\t}\n\n}",
"public class Main{\n public static void main(String[] arg)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint p,b,f,r,v;\n\t\tint room[][]=new int[13][11];\n\n\t\tString str=br.readLine();\n\t\tif(str.equals(\"\")) System.exit(0);\n\t\tint n=Integer.parseInt(str);\n\t\n\t\tString[] strArray; \n\t\t//Arrays.fill(room,0); //room[][]に初期値0を設定\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tstr=br.readLine();\n\t\t\tstrArray=str.split(\" \");\n\t\t\tb=Integer.parseInt(strArray[0]);\n\t\t\tf=Integer.parseInt(strArray[1]);\n\t\t\tr=Integer.parseInt(strArray[2]);\n\t\t\tv=Integer.parseInt(strArray[3]);\n\t\t\t\n\t\t\t\n\t\t\troom[(b-1)*3+f][r]+=v;\n\t\t}\n StringBuilder output = new StringBuilder();\n\t\t//出力\n boolean div =false;\n \t\tfor (int i=1;i<=12;i++){\n\t\t\tp=1;\n\t\t\twhile (p<=10){\n\t\t\t\toutput.append(\" \"+ room[i][p]);\n\t\t\t\tp++;\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t\tswitch (i){\n\t\t\t\tcase 3:\t\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdiv=true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:div=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(div==true){\n\t\t\t\toutput.append(\"####################\\n\");\n\t\t\t\tdiv=false;}\n\t\t\t\n\t\t}\n \t\toutput.delete(output.length()-1,output.length());\n\t\tSystem.out.println(output);\n\t}\n\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] arg)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int p,b,f,r,v;
int room[][]=new int[13][11];
String str=br.readLine();
if(str.equals("")) System.exit(0);
int n=Integer.parseInt(str);
String[] strArray;
//Arrays.fill(room,0); //room[][]に初期値0を設定
for(int i=1;i<=n;i++){
str=br.readLine();
strArray=str.split(" ");
b=Integer.parseInt(strArray[0]);
f=Integer.parseInt(strArray[1]);
r=Integer.parseInt(strArray[2]);
v=Integer.parseInt(strArray[3]);
room[(b-1)*3+f][r]+=v;
}
StringBuilder output = new StringBuilder();
//出力
boolean div =false;
for (int i=1;i<=12;i++){
p=1;
while (p<=10){
output.append(" "+ room[i][p]);
p++;
}
output.append("\n");
switch (i){
case 3:
div=true;
break;
case 6:
div=true;
break;
case 9:
div=true;
break;
default:div=false;
break;
}
if(div==true){
output.append("####################\n");
div=false;}
}
output.delete(output.length()-1,output.length());
System.out.println(output);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
18,
13,
2,
13,
17,
2,
13,
17,
2,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
14,
2,
13,
2,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
151,
8
],
[
151,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
38,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
38,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
60,
70
],
[
70,
71
],
[
70,
72
],
[
59,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
99,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
86,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
135,
137
],
[
132,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
11,
145
],
[
145,
146
],
[
146,
147
],
[
9,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[][][] array = new int[4][3][10];\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[][][] array = new int[4][3][10];\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[][][] array = new int[4][3][10];\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[][][] array = new int[4][3][10];\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\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 x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][][] array = new int[4][3][10];",
"array",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}",
"{\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int p = sc.nextInt();",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"array[t-1][k-1][b-1] += p",
"array[t-1][k-1][b-1]",
"array[t-1][k-1]",
"array[t-1]",
"array",
"t-1",
"t",
"1",
"k-1",
"k",
"1",
"b-1",
"b",
"1",
"p",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}",
"for(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<10",
"k",
"10",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}",
"System.out.print(\" \" + array[i][j][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + array[i][j][k]",
"\" \"",
"array[i][j][k]",
"array[i][j]",
"array[i]",
"array",
"i",
"j",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"if(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"i!=4-1",
"i",
"4-1",
"4",
"1",
"{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[][][] array = new int[4][3][10];\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[][][] array = new int[4][3][10];\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tint t = sc.nextInt();\n\t\t\tint k = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint p = sc.nextInt();\n\t\t\tarray[t-1][k-1][b-1] += p;\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tSystem.out.print(\" \" + array[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i!=4-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int[][][] array = new int[4][3][10];
for(int i=0;i<x;i++) {
int t = sc.nextInt();
int k = sc.nextInt();
int b = sc.nextInt();
int p = sc.nextInt();
array[t-1][k-1][b-1] += p;
}
for(int i=0;i<4;i++) {
for(int j=0;j<3;j++) {
for(int k=0;k<10;k++) {
System.out.print(" " + array[i][j][k]);
}
System.out.println();
}
if(i!=4-1) {
System.out.println("####################");
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
18,
13,
13,
13,
13,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
18,
13,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
18,
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
],
[
230,
11
],
[
230,
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
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
68,
76
],
[
14,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
14,
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
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
109,
116
],
[
95,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
123,
125
],
[
119,
126
],
[
95,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
133,
135
],
[
129,
136
],
[
95,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
142,
144
],
[
95,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
145,
153
],
[
14,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
166,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
178,
186
],
[
186,
187
],
[
187,
188
],
[
178,
189
],
[
190,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
203,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
215,
221
],
[
190,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
12,
227
],
[
227,
228
],
[
0,
229
],
[
229,
230
],
[
229,
231
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n\n int[][][] house = new int[4][3][10];\n\n// ???????????¨????????¨?±?????????°???0\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }\n\n// ????????????????????±?????°n\n int n = Integer.parseInt(input);\n\n for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }\n\n// ??????\n for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n\n int[][][] house = new int[4][3][10];\n\n// ???????????¨????????¨?±?????????°???0\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }\n\n// ????????????????????±?????°n\n int n = Integer.parseInt(input);\n\n for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }\n\n// ??????\n for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n\n int[][][] house = new int[4][3][10];\n\n// ???????????¨????????¨?±?????????°???0\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }\n\n// ????????????????????±?????°n\n int n = Integer.parseInt(input);\n\n for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }\n\n// ??????\n for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n\n int[][][] house = new int[4][3][10];\n\n// ???????????¨????????¨?±?????????°???0\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }\n\n// ????????????????????±?????°n\n int n = Integer.parseInt(input);\n\n for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }\n\n// ??????\n for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"int[][][] house = new int[4][3][10];",
"house",
"new int[4][3][10]",
"4",
"3",
"10",
"for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }",
"{\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }",
"for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }",
"{\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }",
"for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n house[i][j][k] = 0;\n }",
"{\n house[i][j][k] = 0;\n }",
"house[i][j][k] = 0",
"house[i][j][k]",
"house[i][j]",
"house[i]",
"house",
"i",
"j",
"k",
"0",
"int n = Integer.parseInt(input);",
"n",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }",
"{\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }",
"input = br.readLine()",
"input",
"br.readLine()",
"br.readLine",
"br",
"String[] strArray = input.split(\" \");",
"strArray",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int building = Integer.parseInt(strArray[0]) -1;",
"building",
"Integer.parseInt(strArray[0]) -1",
"Integer.parseInt(strArray[0])",
"Integer.parseInt",
"Integer",
"strArray[0]",
"strArray",
"0",
"1",
"int floor = Integer.parseInt(strArray[1]) -1;",
"floor",
"Integer.parseInt(strArray[1]) -1",
"Integer.parseInt(strArray[1])",
"Integer.parseInt",
"Integer",
"strArray[1]",
"strArray",
"1",
"1",
"int room = Integer.parseInt(strArray[2]) -1;",
"room",
"Integer.parseInt(strArray[2]) -1",
"Integer.parseInt(strArray[2])",
"Integer.parseInt",
"Integer",
"strArray[2]",
"strArray",
"2",
"1",
"int resident = Integer.parseInt(strArray[3]);",
"resident",
"Integer.parseInt(strArray[3])",
"Integer.parseInt",
"Integer",
"strArray[3]",
"strArray",
"3",
"house[building][floor][room] += resident",
"house[building][floor][room]",
"house[building][floor]",
"house[building]",
"house",
"building",
"floor",
"room",
"resident",
"for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }",
"{\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }",
"if(i != 0){\n System.out.println(\"####################\");\n }",
"i != 0",
"i",
"0",
"{\n System.out.println(\"####################\");\n }",
"System.out.println(\"####################\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"####################\"",
"for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < 3",
"l",
"3",
"l++",
"l++",
"l",
"{\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }",
"{\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }",
"for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 10",
"k",
"10",
"k++",
"k++",
"k",
"{\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }",
"{\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(house[i][l][k])",
"System.out.print",
"System.out",
"System",
"System.out",
"house[i][l][k]",
"house[i][l]",
"house[i]",
"house",
"i",
"l",
"k",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n\n int[][][] house = new int[4][3][10];\n\n// ???????????¨????????¨?±?????????°???0\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }\n\n// ????????????????????±?????°n\n int n = Integer.parseInt(input);\n\n for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }\n\n// ??????\n for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n\n int[][][] house = new int[4][3][10];\n\n// ???????????¨????????¨?±?????????°???0\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n house[i][j][k] = 0;\n }\n }\n }\n\n// ????????????????????±?????°n\n int n = Integer.parseInt(input);\n\n for(int i = 0 ; i < n; i++){\n input = br.readLine();\n String[] strArray = input.split(\" \");\n\n int building = Integer.parseInt(strArray[0]) -1; //?£?\n int floor = Integer.parseInt(strArray[1]) -1; //???\n int room = Integer.parseInt(strArray[2]) -1; //?????????\n int resident = Integer.parseInt(strArray[3]); //?????°\n\n house[building][floor][room] += resident;\n }\n\n// ??????\n for(int i = 0; i < 4; i++){\n// ?£??????????\n if(i != 0){\n System.out.println(\"####################\");\n }\n for(int l = 0; l < 3; l++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \");\n System.out.print(house[i][l][k]);\n }\n System.out.println();\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
int[][][] house = new int[4][3][10];
// ???????????¨????????¨?±?????????°???0
for(int i = 0; i < 4; i++){
for(int j = 0; j < 3; j++){
for(int k = 0; k < 10; k++){
house[i][j][k] = 0;
}
}
}
// ????????????????????±?????°n
int n = Integer.parseInt(input);
for(int i = 0 ; i < n; i++){
input = br.readLine();
String[] strArray = input.split(" ");
int building = Integer.parseInt(strArray[0]) -1; //?£?
int floor = Integer.parseInt(strArray[1]) -1; //???
int room = Integer.parseInt(strArray[2]) -1; //?????????
int resident = Integer.parseInt(strArray[3]); //?????°
house[building][floor][room] += resident;
}
// ??????
for(int i = 0; i < 4; i++){
// ?£??????????
if(i != 0){
System.out.println("####################");
}
for(int l = 0; l < 3; l++){
for(int k = 0; k < 10; k++){
System.out.print(" ");
System.out.print(house[i][l][k]);
}
System.out.println();
}
}
}
} |
[
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,
13,
13,
41,
13,
20,
13,
41,
13,
20,
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,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
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,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
157,
5
],
[
157,
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,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
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
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
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
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
6,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???, ?????\\??????????????????\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[m][n];\n\t\tint vectorB[] = new int[m];\n\t\tint vectorC[] = new int[n];\n\t\t\n\t\t//??????A????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//????????????b????????????????´?\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}\n\t\t\n\t\t//????????????c????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???, ?????\\??????????????????\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[m][n];\n\t\tint vectorB[] = new int[m];\n\t\tint vectorC[] = new int[n];\n\t\t\n\t\t//??????A????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//????????????b????????????????´?\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}\n\t\t\n\t\t//????????????c????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???, ?????\\??????????????????\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[m][n];\n\t\tint vectorB[] = new int[m];\n\t\tint vectorC[] = new int[n];\n\t\t\n\t\t//??????A????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//????????????b????????????????´?\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}\n\t\t\n\t\t//????????????c????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???, ?????\\??????????????????\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[m][n];\n\t\tint vectorB[] = new int[m];\n\t\tint vectorC[] = new int[n];\n\t\t\n\t\t//??????A????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//????????????b????????????????´?\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}\n\t\t\n\t\t//????????????c????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\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 m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int matrixA[][] = new int[m][n];",
"matrixA",
"new int[m][n]",
"m",
"n",
"int vectorB[] = new int[m];",
"vectorB",
"new int[m]",
"m",
"int vectorC[] = new int[n];",
"vectorC",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\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\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}",
"matrixA[j][i] = sc.nextInt()",
"matrixA[j][i]",
"matrixA[j]",
"matrixA",
"j",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}",
"vectorB[j] = sc.nextInt()",
"vectorB[j]",
"vectorB",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\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\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}",
"{\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}",
"vectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j]",
"vectorC[i]",
"vectorC",
"i",
"vectorC[i] + matrixA[j][i] * vectorB[j]",
"vectorC[i]",
"vectorC",
"i",
"matrixA[j][i] * vectorB[j]",
"matrixA[j][i]",
"matrixA[j]",
"matrixA",
"j",
"i",
"vectorB[j]",
"vectorB",
"j",
"for(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}",
"System.out.println(vectorC[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"vectorC[i]",
"vectorC",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???, ?????\\??????????????????\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[m][n];\n\t\tint vectorB[] = new int[m];\n\t\tint vectorC[] = new int[n];\n\t\t\n\t\t//??????A????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//????????????b????????????????´?\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}\n\t\t\n\t\t//????????????c????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???, ?????\\??????????????????\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[m][n];\n\t\tint vectorB[] = new int[m];\n\t\tint vectorC[] = new int[n];\n\t\t\n\t\t//??????A????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//????????????b????????????????´?\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tvectorB[j] = sc.nextInt();\n\t\t}\n\t\t\n\t\t//????????????c????????????????´?\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vectorC[i]);\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 n = sc.nextInt();
int m = sc.nextInt();
int matrixA[][] = new int[m][n];
int vectorB[] = new int[m];
int vectorC[] = new int[n];
//??????A????????????????´?
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
matrixA[j][i] = sc.nextInt();
}
}
//????????????b????????????????´?
for(int j = 0; j < m; j++) {
vectorB[j] = sc.nextInt();
}
//????????????c????????????????´?
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
vectorC[i] = vectorC[i] + matrixA[j][i] * vectorB[j];
}
}
for(int i = 0; i < n; i++) {
System.out.println(vectorC[i]);
}
}
} |
[
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,
13,
13,
41,
13,
20,
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,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
187,
5
],
[
187,
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,
27
],
[
27,
28
],
[
27,
29
],
[
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
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
88,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
92,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
6,
118
],
[
118,
119
],
[
187,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
126,
127
],
[
126,
128
],
[
122,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
129,
139
],
[
139,
140
],
[
140,
141
],
[
129,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
147,
159
],
[
159,
160
],
[
160,
161
],
[
147,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
172,
174
],
[
143,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
122,
180
],
[
180,
181
],
[
120,
182
],
[
182,
183
],
[
120,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] A = new int[N][M];\n\t\tint[] b = new int[M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tint[] c = multiMV(A, b);\n\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 行列とベクトルの掛け算\n\tpublic static int[] multiMV(int[][] A, int[] b) {\n\t\tint[] c = new int[A.length];\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}\n\t\treturn c;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] A = new int[N][M];\n\t\tint[] b = new int[M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tint[] c = multiMV(A, b);\n\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 行列とベクトルの掛け算\n\tpublic static int[] multiMV(int[][] A, int[] b) {\n\t\tint[] c = new int[A.length];\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}\n\t\treturn c;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] A = new int[N][M];\n\t\tint[] b = new int[M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tint[] c = multiMV(A, b);\n\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] A = new int[N][M];\n\t\tint[] b = new int[M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tint[] c = multiMV(A, b);\n\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[N][M];",
"A",
"new int[N][M]",
"N",
"M",
"int[] b = new int[M];",
"b",
"new int[M]",
"M",
"for(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\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\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j< M",
"j",
"M",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < M",
"i",
"M",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"b[i] = sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] c = multiMV(A, b);",
"c",
"multiMV(A, b)",
"multiMV",
"A",
"b",
"for(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"// 行列とベクトルの掛け算\n\tpublic static int[] multiMV(int[][] A, int[] b) {\n\t\tint[] c = new int[A.length];\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}\n\t\treturn c;\n\t}",
"multiMV",
"{\n\t\tint[] c = new int[A.length];\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}\n\t\treturn c;\n\t}",
"int[] c = new int[A.length];",
"c",
"new int[A.length]",
"A.length",
"A",
"A.length",
"for(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}",
"{\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}",
"int e = 0;",
"e",
"0",
"for(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < A[i].length",
"j",
"A[i].length",
"A[i]",
"A",
"i",
"A[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}",
"e += A[i][j] * b[j]",
"e",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"c[i] = e",
"c[i]",
"c",
"i",
"e",
"return c;",
"c",
"int[][] A",
"A",
"int[] b",
"b",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] A = new int[N][M];\n\t\tint[] b = new int[M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tint[] c = multiMV(A, b);\n\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 行列とベクトルの掛け算\n\tpublic static int[] multiMV(int[][] A, int[] b) {\n\t\tint[] c = new int[A.length];\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}\n\t\treturn c;\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] A = new int[N][M];\n\t\tint[] b = new int[M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j< M; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < M; i++) {\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tint[] c = multiMV(A, b);\n\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 行列とベクトルの掛け算\n\tpublic static int[] multiMV(int[][] A, int[] b) {\n\t\tint[] c = new int[A.length];\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tint e = 0;\n\t\t\tfor(int j = 0; j < A[i].length; j++) {\n\t\t\t\te += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = e;\n\t\t}\n\t\treturn c;\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
int[][] A = new int[N][M];
int[] b = new int[M];
for(int i = 0; i < N; i++) {
for(int j = 0; j< M; j++) {
A[i][j] = sc.nextInt();
}
}
for(int i = 0; i < M; i++) {
b[i] = sc.nextInt();
}
int[] c = multiMV(A, b);
for(int i = 0; i < c.length; i++) {
System.out.println(c[i]);
}
sc.close();
}
// 行列とベクトルの掛け算
public static int[] multiMV(int[][] A, int[] b) {
int[] c = new int[A.length];
for(int i = 0; i < A.length; i++) {
int e = 0;
for(int j = 0; j < A[i].length; j++) {
e += A[i][j] * b[j];
}
c[i] = e;
}
return c;
}
}
|
[
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,
13,
13,
41,
13,
20,
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,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
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
],
[
138,
5
],
[
138,
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,
27
],
[
27,
28
],
[
27,
29
],
[
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
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
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
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"import java.util.Scanner;\n\n//20180509\n//02\n\npublic class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\n\t\tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\n\t\tscanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\n\t\tscanner.close();\n }",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\n\t\tscanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int m = scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < n",
"y",
"n",
"y++",
"y++",
"y",
"{\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"for (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}",
"a[y][x] = scanner.nextInt()",
"a[y][x]",
"a[y]",
"a",
"y",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n\t\t\tb[y] = scanner.nextInt();\n\t\t}",
"{\n\t\t\tb[y] = scanner.nextInt();\n\t\t}",
"b[y] = scanner.nextInt()",
"b[y]",
"b",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < n",
"y",
"n",
"y++",
"y++",
"y",
"{\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"{\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int ans = 0;",
"ans",
"0",
"for (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}",
"{\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}",
"ans += a[y][x] * b[x]",
"ans",
"a[y][x] * b[x]",
"a[y][x]",
"a[y]",
"a",
"y",
"x",
"b[x]",
"b",
"x",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\n\t\tscanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\ta[y][x] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int y = 0;y < m;y++) {\n\t\t\tb[y] = scanner.nextInt();\n\t\t}\n\n\t\tfor(int y = 0;y < n;y++) {\n\t\t\tint ans = 0;\n\t\t\tfor (int x = 0; x < m; x++) {\n\t\t\t\tans += a[y][x] * b[x];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\n\t\tscanner.close();\n }\n}",
"Main"
] | import java.util.Scanner;
//20180509
//02
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
for(int y = 0;y < n;y++) {
for (int x = 0; x < m; x++) {
a[y][x] = scanner.nextInt();
}
}
for(int y = 0;y < m;y++) {
b[y] = scanner.nextInt();
}
for(int y = 0;y < n;y++) {
int ans = 0;
for (int x = 0; x < m; x++) {
ans += a[y][x] * b[x];
}
System.out.println(ans);
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
41,
13,
17,
41,
13,
20,
13,
13,
41,
13,
42,
2,
13,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
4,
18,
13,
17,
13,
40,
13,
0,
13,
17,
41,
13,
20,
13,
42,
2,
13,
13,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
40,
13,
41,
13,
20,
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,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
183,
5
],
[
183,
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
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
53,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
92,
94
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
100,
114
],
[
114,
115
],
[
8,
116
],
[
116,
117
],
[
116,
118
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
156,
157
],
[
156,
158
],
[
8,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
159,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
6,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n int n = Integer.parseInt(num.split(\" \")[0]);\n int m = Integer.parseInt(num.split(\" \")[1]);\n int j = 0;\n int[][] A = new int[n][m];\n String tmp;\n while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }\n j = 0;\n int[] b = new int[m];\n while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }\n\n int[] sum = new int[n];\n\n for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n int n = Integer.parseInt(num.split(\" \")[0]);\n int m = Integer.parseInt(num.split(\" \")[1]);\n int j = 0;\n int[][] A = new int[n][m];\n String tmp;\n while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }\n j = 0;\n int[] b = new int[m];\n while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }\n\n int[] sum = new int[n];\n\n for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n int n = Integer.parseInt(num.split(\" \")[0]);\n int m = Integer.parseInt(num.split(\" \")[1]);\n int j = 0;\n int[][] A = new int[n][m];\n String tmp;\n while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }\n j = 0;\n int[] b = new int[m];\n while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }\n\n int[] sum = new int[n];\n\n for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n int n = Integer.parseInt(num.split(\" \")[0]);\n int m = Integer.parseInt(num.split(\" \")[1]);\n int j = 0;\n int[][] A = new int[n][m];\n String tmp;\n while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }\n j = 0;\n int[] b = new int[m];\n while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }\n\n int[] sum = new int[n];\n\n for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String num = scan.nextLine();",
"num",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int n = Integer.parseInt(num.split(\" \")[0]);",
"n",
"Integer.parseInt(num.split(\" \")[0])",
"Integer.parseInt",
"Integer",
"num.split(\" \")[0]",
"num.split(\" \")",
"num.split",
"num",
"\" \"",
"0",
"int m = Integer.parseInt(num.split(\" \")[1]);",
"m",
"Integer.parseInt(num.split(\" \")[1])",
"Integer.parseInt",
"Integer",
"num.split(\" \")[1]",
"num.split(\" \")",
"num.split",
"num",
"\" \"",
"1",
"int j = 0;",
"j",
"0",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"String tmp;",
"tmp",
"while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }",
"j < n",
"j",
"n",
"{\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }",
"tmp = scan.nextLine()",
"tmp",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }",
"{\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }",
"A[j][i] = Integer.parseInt(tmp.split(\" \")[i])",
"A[j][i]",
"A[j]",
"A",
"j",
"i",
"Integer.parseInt(tmp.split(\" \")[i])",
"Integer.parseInt",
"Integer",
"tmp.split(\" \")[i]",
"tmp.split(\" \")",
"tmp.split",
"tmp",
"\" \"",
"i",
"j++",
"j",
"j = 0",
"j",
"0",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }",
"j < m",
"j",
"m",
"{\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }",
"tmp = scan.nextLine()",
"tmp",
"scan.nextLine()",
"scan.nextLine",
"scan",
"b[j] = Integer.parseInt(tmp)",
"b[j]",
"b",
"j",
"Integer.parseInt(tmp)",
"Integer.parseInt",
"Integer",
"tmp",
"j++",
"j",
"int[] sum = new int[n];",
"sum",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }",
"{\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }",
"for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }",
"int q = 0;",
"int q = 0;",
"q",
"0",
"q < m",
"q",
"m",
"q++",
"q++",
"q",
"{\n sum[i] += A[i][q] * b[q];\n }",
"{\n sum[i] += A[i][q] * b[q];\n }",
"sum[i] += A[i][q] * b[q]",
"sum[i]",
"sum",
"i",
"A[i][q] * b[q]",
"A[i][q]",
"A[i]",
"A",
"i",
"q",
"b[q]",
"b",
"q",
"for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(sum[i]);\n }",
"{\n System.out.println(sum[i]);\n }",
"System.out.println(sum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[i]",
"sum",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n int n = Integer.parseInt(num.split(\" \")[0]);\n int m = Integer.parseInt(num.split(\" \")[1]);\n int j = 0;\n int[][] A = new int[n][m];\n String tmp;\n while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }\n j = 0;\n int[] b = new int[m];\n while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }\n\n int[] sum = new int[n];\n\n for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n int n = Integer.parseInt(num.split(\" \")[0]);\n int m = Integer.parseInt(num.split(\" \")[1]);\n int j = 0;\n int[][] A = new int[n][m];\n String tmp;\n while (j < n) {\n tmp = scan.nextLine();\n for (int i = 0; i < m; i++) {\n A[j][i] = Integer.parseInt(tmp.split(\" \")[i]);\n // System.out.println(Integer.parseInt(tmp.split(\" \")[i]));\n }\n j++;\n }\n j = 0;\n int[] b = new int[m];\n while (j < m) {\n tmp = scan.nextLine();\n b[j] = Integer.parseInt(tmp);\n j++;\n }\n\n int[] sum = new int[n];\n\n for (int i = 0; i < n; i++) {\n for (int q = 0; q < m; q++) {\n sum[i] += A[i][q] * b[q];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String num = scan.nextLine();
int n = Integer.parseInt(num.split(" ")[0]);
int m = Integer.parseInt(num.split(" ")[1]);
int j = 0;
int[][] A = new int[n][m];
String tmp;
while (j < n) {
tmp = scan.nextLine();
for (int i = 0; i < m; i++) {
A[j][i] = Integer.parseInt(tmp.split(" ")[i]);
// System.out.println(Integer.parseInt(tmp.split(" ")[i]));
}
j++;
}
j = 0;
int[] b = new int[m];
while (j < m) {
tmp = scan.nextLine();
b[j] = Integer.parseInt(tmp);
j++;
}
int[] sum = new int[n];
for (int i = 0; i < n; i++) {
for (int q = 0; q < m; q++) {
sum[i] += A[i][q] * b[q];
}
}
for (int i = 0; i < n; i++) {
System.out.println(sum[i]);
}
}
}
|
[
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,
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,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
2,
18,
13,
13,
13,
4,
18,
4,
18,
13,
4,
18,
13,
18,
13,
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
],
[
200,
11
],
[
200,
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
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
48,
50
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
56
],
[
56,
57
],
[
56,
58
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
79,
84
],
[
76,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
14,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
131,
132
],
[
14,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
167,
168
],
[
167,
169
],
[
158,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
145,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
187,
189
],
[
179,
190
],
[
14,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
12,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] age) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString[] Ginput = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(Ginput[0]);\n\t\tint m = Integer.parseInt(Ginput[1]);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint matrix[][] = new int[n][m];\n\t\tint mul[] = new int[m];\n\t\tint ans[] = new int[n];\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] age) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString[] Ginput = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(Ginput[0]);\n\t\tint m = Integer.parseInt(Ginput[1]);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint matrix[][] = new int[n][m];\n\t\tint mul[] = new int[m];\n\t\tint ans[] = new int[n];\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] age) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString[] Ginput = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(Ginput[0]);\n\t\tint m = Integer.parseInt(Ginput[1]);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint matrix[][] = new int[n][m];\n\t\tint mul[] = new int[m];\n\t\tint ans[] = new int[n];\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString[] Ginput = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(Ginput[0]);\n\t\tint m = Integer.parseInt(Ginput[1]);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint matrix[][] = new int[n][m];\n\t\tint mul[] = new int[m];\n\t\tint ans[] = new int[n];\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"String[] Ginput = br.readLine().split(\" \");",
"Ginput",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(Ginput[0]);",
"n",
"Integer.parseInt(Ginput[0])",
"Integer.parseInt",
"Integer",
"Ginput[0]",
"Ginput",
"0",
"int m = Integer.parseInt(Ginput[1]);",
"m",
"Integer.parseInt(Ginput[1])",
"Integer.parseInt",
"Integer",
"Ginput[1]",
"Ginput",
"1",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"int matrix[][] = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int mul[] = new int[m];",
"mul",
"new int[m]",
"m",
"int ans[] = new int[n];",
"ans",
"new int[n]",
"n",
"for( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}",
"j=0 ;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}",
"matrix[i][j]=Integer.parseInt(input[j])",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}",
"{\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}",
"mul[i] = Integer.parseInt(br.readLine())",
"mul[i]",
"mul",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}",
"{\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}",
"for( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}",
"j=0 ;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}",
"{\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}",
"int k = matrix[i][j] * mul[j];",
"k",
"matrix[i][j] * mul[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"mul[j]",
"mul",
"j",
"ans[i] = ans[i] + k",
"ans[i]",
"ans",
"i",
"ans[i] + k",
"ans[i]",
"ans",
"i",
"k",
"sb.append(Integer.toString(ans[i])).append(\"\\n\")",
"sb.append(Integer.toString(ans[i])).append",
"sb.append(Integer.toString(ans[i]))",
"sb.append",
"sb",
"Integer.toString(ans[i])",
"Integer.toString",
"Integer",
"ans[i]",
"ans",
"i",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] age",
"age",
"public class Main {\n\tpublic static void main(String[] age) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString[] Ginput = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(Ginput[0]);\n\t\tint m = Integer.parseInt(Ginput[1]);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint matrix[][] = new int[n][m];\n\t\tint mul[] = new int[m];\n\t\tint ans[] = new int[n];\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] age) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tString[] Ginput = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(Ginput[0]);\n\t\tint m = Integer.parseInt(Ginput[1]);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint matrix[][] = new int[n][m];\n\t\tint mul[] = new int[m];\n\t\tint ans[] = new int[n];\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tmatrix[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\tmul[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\tfor( j=0 ; j<m ; j++ ){\n\t\t\t\tint k = matrix[i][j] * mul[j];\n\t\t\t\tans[i] = ans[i] + k;\n\t\t\t}\n\t\t\tsb.append(Integer.toString(ans[i])).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuffer sb = new StringBuffer();
String[] Ginput = br.readLine().split(" ");
int n = Integer.parseInt(Ginput[0]);
int m = Integer.parseInt(Ginput[1]);
int i = 0;
int j = 0;
int matrix[][] = new int[n][m];
int mul[] = new int[m];
int ans[] = new int[n];
for( i=0 ; i<n ; i++ ){
String[] input = br.readLine().split(" ");
for( j=0 ; j<m ; j++ ){
matrix[i][j]=Integer.parseInt(input[j]);
}
}
for( i=0 ; i<m ; i++ ){
mul[i] = Integer.parseInt(br.readLine());
}
for( i=0 ; i<n ; i++ ){
for( j=0 ; j<m ; j++ ){
int k = matrix[i][j] * mul[j];
ans[i] = ans[i] + k;
}
sb.append(Integer.toString(ans[i])).append("\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
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,
0,
18,
18,
13,
13,
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,
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,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
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
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
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
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
11,
69
],
[
69,
70
],
[
69,
71
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
11,
93
],
[
93,
94
],
[
93,
95
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
11,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
9,
157
],
[
157,
158
]
] | [
"import java.util.*;\nimport java.util.stream.*;\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n,m;\n n = input.nextInt();\n m = input.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++){\n vec[i] = input.nextInt();\n }\n int[] ans = new int[n];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }\n for (int i = 0; i < n; i++){\n System.out.println(ans[i]);\n }\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 input = new Scanner(System.in);\n int n,m;\n n = input.nextInt();\n m = input.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++){\n vec[i] = input.nextInt();\n }\n int[] ans = new int[n];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }\n for (int i = 0; i < n; i++){\n System.out.println(ans[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n,m;\n n = input.nextInt();\n m = input.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++){\n vec[i] = input.nextInt();\n }\n int[] ans = new int[n];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }\n for (int i = 0; i < n; i++){\n System.out.println(ans[i]);\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int n,m;\n n = input.nextInt();\n m = input.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++){\n vec[i] = input.nextInt();\n }\n int[] ans = new int[n];\n for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }\n for (int i = 0; i < n; i++){\n System.out.println(ans[i]);\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n",
"n",
"m;",
"m",
"n = input.nextInt()",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"m = input.nextInt()",
"m",
"input.nextInt()",
"input.nextInt",
"input",
"int[][] mat = new int[n][m];",
"mat",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }\n }",
"for (int j = 0; j < m; j++){\n mat[i][j] = input.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n mat[i][j] = input.nextInt();\n }",
"{\n mat[i][j] = input.nextInt();\n }",
"mat[i][j] = input.nextInt()",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"input.nextInt()",
"input.nextInt",
"input",
"int[] vec = new int[m];",
"vec",
"new int[m]",
"m",
"for (int i = 0; i < m; i++){\n vec[i] = input.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n vec[i] = input.nextInt();\n }",
"{\n vec[i] = input.nextInt();\n }",
"vec[i] = input.nextInt()",
"vec[i]",
"vec",
"i",
"input.nextInt()",
"input.nextInt",
"input",
"int[] ans = new int[n];",
"ans",
"new int[n]",
"n",
"for (int i = 0; i < n; i++){\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }",
"{\n for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }\n }",
"for (int j = 0; j < m; j++){\n ans[i] += (mat[i][j] * vec[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans[i] += (mat[i][j] * vec[j]);\n }",
"{\n ans[i] += (mat[i][j] * vec[j]);\n }",
"ans[i] += (mat[i][j] * vec[j])",
"ans[i]",
"ans",
"i",
"(mat[i][j] * vec[j])",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"vec[j]",
"vec",
"j",
"for (int i = 0; i < n; i++){\n System.out.println(ans[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(ans[i]);\n }",
"{\n System.out.println(ans[i]);\n }",
"System.out.println(ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i]",
"ans",
"i",
"String[] args",
"args"
] | import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n,m;
n = input.nextInt();
m = input.nextInt();
int[][] mat = new int[n][m];
for (int i = 0; i < n; i++){
for (int j = 0; j < m; j++){
mat[i][j] = input.nextInt();
}
}
int[] vec = new int[m];
for (int i = 0; i < m; i++){
vec[i] = input.nextInt();
}
int[] ans = new int[n];
for (int i = 0; i < n; i++){
for (int j = 0; j < m; j++){
ans[i] += (mat[i][j] * vec[j]);
}
}
for (int i = 0; i < n; i++){
System.out.println(ans[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
38,
5,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
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,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
13,
18,
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
],
[
179,
11
],
[
179,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
18,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
39,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
39,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
39,
67
],
[
67,
68
],
[
67,
69
],
[
39,
72
],
[
72,
73
],
[
72,
74
],
[
39,
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
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
39,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
39,
122
],
[
122,
123
],
[
39,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
155,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
167,
169
],
[
136,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
12,
176
],
[
176,
177
],
[
0,
178
],
[
178,
179
],
[
178,
180
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}",
"try{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}",
"catch(IOException ioe){\n\t\t\t}",
"IOException ioe",
"{\n\t\t\t}",
"{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}",
"if(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}",
"br != null",
"br",
"null",
"{\n\t\t\t\t\tbr.close();\n\t\t\t\t}",
"br.close()",
"br.close",
"br",
"{\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] strArr = str.split(\" \");",
"strArr",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int n = Integer.parseInt(strArr[0]);",
"n",
"Integer.parseInt(strArr[0])",
"Integer.parseInt",
"Integer",
"strArr[0]",
"strArr",
"0",
"int m = Integer.parseInt(strArr[1]);",
"m",
"Integer.parseInt(strArr[1])",
"Integer.parseInt",
"Integer",
"strArr[1]",
"strArr",
"1",
"String[][] a = new String[n][m];",
"a",
"new String[n][m]",
"n",
"m",
"String[] b = new String[m];",
"b",
"new String[m]",
"m",
"for(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"a[i] = str.split(\" \")",
"a[i]",
"a",
"i",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}",
"{\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}",
"b[i] = br.readLine()",
"b[i]",
"b",
"i",
"br.readLine()",
"br.readLine",
"br",
"int sum;",
"sum",
"for(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}",
"{\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}",
"sum=0",
"sum",
"0",
"for(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}",
"sum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j])",
"sum",
"Integer.parseInt(a[i][j]) * Integer.parseInt(b[j])",
"Integer.parseInt(a[i][j])",
"Integer.parseInt",
"Integer",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(b[j])",
"Integer.parseInt",
"Integer",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\t// ??\\?????¶??°???????????¨????????\\???\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\n\t\t\t// ?¨??????¨??????\n\t\t\tString[][] a = new String[n][m];\n\t\t\tString[] b = new String[m];\n\n\t\t\t// n ?? m ?????? ?????\\???\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\ta[i] = str.split(\" \");\n\n\t\t\t}\n\t\t\t// n ?? 1 ?????? ?????\\???\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i] = br.readLine();\n\t\t\t}\n\n\t\t\t// ?¨???? ??????\n\t\t\tint sum;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum=0;\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tsum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}catch(IOException ioe){\n\t\t\t}\n\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String str = br.readLine();
String[] strArr = str.split(" ");
// ??\?????¶??°???????????¨????????\???
int n = Integer.parseInt(strArr[0]);
int m = Integer.parseInt(strArr[1]);
// ?¨??????¨??????
String[][] a = new String[n][m];
String[] b = new String[m];
// n ?? m ?????? ?????\???
for(int i=0;i<n;i++){
str = br.readLine();
a[i] = str.split(" ");
}
// n ?? 1 ?????? ?????\???
for(int i=0;i<m;i++){
b[i] = br.readLine();
}
// ?¨???? ??????
int sum;
for(int i=0;i<n;i++){
sum=0;
for(int j=0;j<m;j++){
sum+=Integer.parseInt(a[i][j]) * Integer.parseInt(b[j]);
}
System.out.println(sum);
}
} catch (IOException e) {
e.printStackTrace();
}finally{
try{
if(br != null){
br.close();
}
}catch(IOException ioe){
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
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,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
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
],
[
11,
13
],
[
7,
14
],
[
14,
15
],
[
14,
16
],
[
7,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
30,
31
],
[
30,
32
],
[
19,
35
],
[
35,
36
],
[
35,
37
],
[
19,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
19,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
19,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
106,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
17,
138
],
[
138,
139
]
] | [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = in.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = in.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}\n\t}\n}",
"Main",
"static PrintStream out = System.out;",
"out",
"System.out",
"System",
"System.out",
"static Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = in.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}\n\t}",
"main",
"{\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = in.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}\n\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int m = in.nextInt();",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\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\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = in.nextInt();\n\t\t\t}",
"a[i][j] = in.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i < m; i++) {\n\t\t\tb[i] = in.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = in.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = in.nextInt();\n\t\t}",
"b[i] = in.nextInt()",
"b[i]",
"b",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i < n; i++) {\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}",
"{\n\t\t\tlong sum = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tout.println(sum);\n\t\t}",
"long sum = 0;",
"sum",
"0",
"for(int j = 0; j < m; j++) {\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}",
"sum += a[i][j] * b[j]",
"sum",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"out.println(sum)",
"out.println",
"out",
"sum",
"String[] args",
"args"
] | import java.util.*;
import java.io.*;
class Main {
static PrintStream out = System.out;
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
int n = in.nextInt();
int m = in.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
a[i][j] = in.nextInt();
}
}
for(int i = 0; i < m; i++) {
b[i] = in.nextInt();
}
for(int i = 0; i < n; i++) {
long sum = 0;
for(int j = 0; j < m; j++) {
sum += a[i][j] * b[j];
}
out.println(sum);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
201,
8
],
[
201,
9
],
[
9,
10
],
[
9,
11
],
[
201,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
36,
41
],
[
33,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
33,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
33,
58
],
[
58,
59
],
[
58,
60
],
[
33,
63
],
[
63,
64
],
[
63,
65
],
[
33,
67
],
[
67,
68
],
[
67,
69
],
[
33,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
86,
91
],
[
83,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
114,
116
],
[
33,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
138,
139
],
[
33,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
156,
164
],
[
164,
165
],
[
165,
166
],
[
156,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
171,
177
],
[
177,
178
],
[
177,
179
],
[
152,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
152,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
188,
189
],
[
187,
190
],
[
187,
191
],
[
14,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
12,
198
],
[
198,
199
],
[
0,
200
],
[
200,
201
],
[
200,
202
]
] | [
"//Accepted\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tstatic StringBuilder sb=new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString work[]=new String[2];\n\t\tint n;\n\t\tint m;\n\n\t\t\n\t\t//入力\n\t\ttry {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//出力\n\t\tSystem.out.print(sb);\n\t}\n\t\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tstatic StringBuilder sb=new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString work[]=new String[2];\n\t\tint n;\n\t\tint m;\n\n\t\t\n\t\t//入力\n\t\ttry {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//出力\n\t\tSystem.out.print(sb);\n\t}\n\t\n}",
"Main",
"static StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"public static void main(String[] args) {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString work[]=new String[2];\n\t\tint n;\n\t\tint m;\n\n\t\t\n\t\t//入力\n\t\ttry {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//出力\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString work[]=new String[2];\n\t\tint n;\n\t\tint m;\n\n\t\t\n\t\t//入力\n\t\ttry {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//出力\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String work[]=new String[2];",
"work",
"new String[2]",
"2",
"int n;",
"n",
"int m;",
"m",
"try {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"Exception e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}",
"work=br.readLine().split(\"\\\\s+\")",
"work",
"br.readLine().split(\"\\\\s+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\\\\s+\"",
"n=Integer.parseInt(work[0])",
"n",
"Integer.parseInt(work[0])",
"Integer.parseInt",
"Integer",
"work[0]",
"work",
"0",
"m=Integer.parseInt(work[1])",
"m",
"Integer.parseInt(work[1])",
"Integer.parseInt",
"Integer",
"work[1]",
"work",
"1",
"int[][] A=new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b=new int[m];",
"b",
"new int[m]",
"m",
"String work2[]=new String[m];",
"work2",
"new String[m]",
"m",
"for(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<n",
"x",
"n",
"x++",
"x++",
"x",
"{\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}",
"work2=br.readLine().split(\"\\\\s+\")",
"work2",
"br.readLine().split(\"\\\\s+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\\\\s+\"",
"for(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}",
"int y=0;",
"int y=0;",
"y",
"0",
"y<m",
"y",
"m",
"y++",
"y++",
"y",
"{\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}",
"{\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}",
"A[x][y]=Integer.parseInt(work2[y])",
"A[x][y]",
"A[x]",
"A",
"x",
"y",
"Integer.parseInt(work2[y])",
"Integer.parseInt",
"Integer",
"work2[y]",
"work2",
"y",
"for(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}",
"{\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}",
"b[i]=Integer.parseInt(br.readLine())",
"b[i]",
"b",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<n",
"x",
"n",
"x++",
"x++",
"x",
"{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}",
"{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}",
"int sum=0;",
"sum",
"0",
"for(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}",
"int y=0;",
"int y=0;",
"y",
"0",
"y<m",
"y",
"m",
"y++",
"y++",
"y",
"{\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}",
"sum += A[x][y]*b[y]",
"sum",
"A[x][y]*b[y]",
"A[x][y]",
"A[x]",
"A",
"x",
"y",
"b[y]",
"b",
"y",
"sb.append(sum)",
"sb.append",
"sb",
"sum",
"sb.append(String.format(\"%n\", \"\"))",
"sb.append",
"sb",
"String.format(\"%n\", \"\")",
"String.format",
"String",
"\"%n\"",
"\"\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main{\n\tstatic StringBuilder sb=new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString work[]=new String[2];\n\t\tint n;\n\t\tint m;\n\n\t\t\n\t\t//入力\n\t\ttry {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//出力\n\t\tSystem.out.print(sb);\n\t}\n\t\n}",
"public class Main{\n\tstatic StringBuilder sb=new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString work[]=new String[2];\n\t\tint n;\n\t\tint m;\n\n\t\t\n\t\t//入力\n\t\ttry {\n\t\t\t//sample=Integer.parseInt(br.readLine());\n\t\t\t//nとmの入力\n\t\t\twork=br.readLine().split(\"\\\\s+\");\n\t\t\tn=Integer.parseInt(work[0]);\n\t\t\tm=Integer.parseInt(work[1]);\n\n\t\t\tint[][] A=new int[n][m];\n\t\t\tint[] b=new int[m];\n\t\t\t\n\t\t\t//Aの入力\n\t\t\tString work2[]=new String[m];\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\twork2=br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tA[x][y]=Integer.parseInt(work2[y]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//bの入力\n\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t\n\t\t\t//計算処理\n\t\t\tfor(int x=0; x<n; x++) {\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int y=0; y<m; y++) {\n\t\t\t\t\tsum += A[x][y]*b[y];\n\t\t\t\t}\n\t\t\t\tsb.append(sum);\n\t\t\t\tsb.append(String.format(\"%n\", \"\"));\n\t\t\t}\n\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//出力\n\t\tSystem.out.print(sb);\n\t}\n\t\n}",
"Main"
] | //Accepted
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
static StringBuilder sb=new StringBuilder();
public static void main(String[] args) {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String work[]=new String[2];
int n;
int m;
//入力
try {
//sample=Integer.parseInt(br.readLine());
//nとmの入力
work=br.readLine().split("\\s+");
n=Integer.parseInt(work[0]);
m=Integer.parseInt(work[1]);
int[][] A=new int[n][m];
int[] b=new int[m];
//Aの入力
String work2[]=new String[m];
for(int x=0; x<n; x++) {
work2=br.readLine().split("\\s+");
for(int y=0; y<m; y++) {
A[x][y]=Integer.parseInt(work2[y]);
}
}
//bの入力
for(int i=0; i<m; i++) {
b[i]=Integer.parseInt(br.readLine());
}
//計算処理
for(int x=0; x<n; x++) {
int sum=0;
for(int y=0; y<m; y++) {
sum += A[x][y]*b[y];
}
sb.append(sum);
sb.append(String.format("%n", ""));
}
}catch(Exception e) {
e.printStackTrace();
}
//出力
System.out.print(sb);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
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,
41,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
64,
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
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
161,
162
],
[
161,
163
],
[
152,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
139,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
8,
177
],
[
177,
178
],
[
178,
179
],
[
6,
180
],
[
180,
181
]
] | [
"import java.io.*;\nclass Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n int[] c=new int[n];\n for(int i=0; i<n; i++){\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }\n for(int k=0; k<m; k++){\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }\n for(int x=0;x<n;x++){\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }\n br.close();\n}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n int[] c=new int[n];\n for(int i=0; i<n; i++){\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }\n for(int k=0; k<m; k++){\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }\n for(int x=0;x<n;x++){\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }\n br.close();\n}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n int[] c=new int[n];\n for(int i=0; i<n; i++){\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }\n for(int k=0; k<m; k++){\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }\n for(int x=0;x<n;x++){\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }\n br.close();\n}",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n int[] c=new int[n];\n for(int i=0; i<n; i++){\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }\n for(int k=0; k<m; k++){\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }\n for(int x=0;x<n;x++){\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }\n br.close();\n}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] nm=str.split(\" \");",
"nm",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int n=Integer.parseInt(nm[0]);",
"n",
"Integer.parseInt(nm[0])",
"Integer.parseInt",
"Integer",
"nm[0]",
"nm",
"0",
"int m=Integer.parseInt(nm[1]);",
"m",
"Integer.parseInt(nm[1])",
"Integer.parseInt",
"Integer",
"nm[1]",
"nm",
"1",
"int[][] a=new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b=new int[m];",
"b",
"new int[m]",
"m",
"int[] c=new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0; i<n; i++){\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }",
"{\n String str2=br.readLine();\n String[] arr=str2.split(\" \");\n for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }\n }",
"String str2=br.readLine();",
"str2",
"br.readLine()",
"br.readLine",
"br",
"String[] arr=str2.split(\" \");",
"arr",
"str2.split(\" \")",
"str2.split",
"str2",
"\" \"",
"for(int j=0; j<m; j++){\n a[i][j]=Integer.parseInt(arr[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j]=Integer.parseInt(arr[j]);\n }",
"{\n a[i][j]=Integer.parseInt(arr[j]);\n }",
"a[i][j]=Integer.parseInt(arr[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(arr[j])",
"Integer.parseInt",
"Integer",
"arr[j]",
"arr",
"j",
"for(int k=0; k<m; k++){\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }",
"{\n String str3=br.readLine();\n b[k]=Integer.parseInt(str3);\n }",
"String str3=br.readLine();",
"str3",
"br.readLine()",
"br.readLine",
"br",
"b[k]=Integer.parseInt(str3)",
"b[k]",
"b",
"k",
"Integer.parseInt(str3)",
"Integer.parseInt",
"Integer",
"str3",
"for(int x=0;x<n;x++){\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }",
"int x=0;",
"int x=0;",
"x",
"0",
"x<n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }",
"{\n for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }\n System.out.println(c[x]);\n }",
"for(int y=0;y<m;y++){\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }",
"int y=0;",
"int y=0;",
"y",
"0",
"y<m",
"y",
"m",
"y++",
"y++",
"y",
"{\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }",
"{\n int tmp= a[x][y]*b[y];\n c[x] += tmp;\n }",
"int tmp= a[x][y]*b[y];",
"tmp",
"a[x][y]*b[y]",
"a[x][y]",
"a[x]",
"a",
"x",
"y",
"b[y]",
"b",
"y",
"c[x] += tmp",
"c[x]",
"c",
"x",
"tmp",
"System.out.println(c[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[x]",
"c",
"x",
"br.close()",
"br.close",
"br",
"String[] args",
"args"
] | import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] nm=str.split(" ");
int n=Integer.parseInt(nm[0]);
int m=Integer.parseInt(nm[1]);
int[][] a=new int[n][m];
int[] b=new int[m];
int[] c=new int[n];
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] arr=str2.split(" ");
for(int j=0; j<m; j++){
a[i][j]=Integer.parseInt(arr[j]);
}
}
for(int k=0; k<m; k++){
String str3=br.readLine();
b[k]=Integer.parseInt(str3);
}
for(int x=0;x<n;x++){
for(int y=0;y<m;y++){
int tmp= a[x][y]*b[y];
c[x] += tmp;
}
System.out.println(c[x]);
}
br.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
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,
20,
13,
13,
41,
13,
20,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
22,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
22,
50
],
[
50,
51
],
[
50,
52
],
[
22,
55
],
[
55,
56
],
[
55,
57
],
[
22,
59
],
[
59,
60
],
[
22,
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
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
73,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
22,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
22,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
152,
163
],
[
164,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
173,
174
],
[
173,
175
],
[
148,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
6,
184
],
[
184,
185
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str = kb.readLine();\n\t\t\tString[] tmpArr = str.split( \" \" );\n\t\t\tint n = Integer.parseInt( tmpArr[0] );\n\t\t\tint m = Integer.parseInt( tmpArr[1] );\n\t\t\t\t\t\t\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint c;\n\n\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}\n\t\t\t\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str = kb.readLine();\n\t\t\tString[] tmpArr = str.split( \" \" );\n\t\t\tint n = Integer.parseInt( tmpArr[0] );\n\t\t\tint m = Integer.parseInt( tmpArr[1] );\n\t\t\t\t\t\t\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint c;\n\n\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}\n\t\t\t\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str = kb.readLine();\n\t\t\tString[] tmpArr = str.split( \" \" );\n\t\t\tint n = Integer.parseInt( tmpArr[0] );\n\t\t\tint m = Integer.parseInt( tmpArr[1] );\n\t\t\t\t\t\t\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint c;\n\n\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}\n\t\t\t\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str = kb.readLine();\n\t\t\tString[] tmpArr = str.split( \" \" );\n\t\t\tint n = Integer.parseInt( tmpArr[0] );\n\t\t\tint m = Integer.parseInt( tmpArr[1] );\n\t\t\t\t\t\t\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint c;\n\n\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}\n\t\t\t\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );",
"kb",
"new BufferedReader( new InputStreamReader( System.in ) )",
"try {\n\t\t\tString str = kb.readLine();\n\t\t\tString[] tmpArr = str.split( \" \" );\n\t\t\tint n = Integer.parseInt( tmpArr[0] );\n\t\t\tint m = Integer.parseInt( tmpArr[1] );\n\t\t\t\t\t\t\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint c;\n\n\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}\n\t\t\t\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.err.println( e );\n\t\t}",
"System.err.println( e )",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tString str = kb.readLine();\n\t\t\tString[] tmpArr = str.split( \" \" );\n\t\t\tint n = Integer.parseInt( tmpArr[0] );\n\t\t\tint m = Integer.parseInt( tmpArr[1] );\n\t\t\t\t\t\t\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint c;\n\n\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}\n\t\t\t\n\t\t\tfor( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}\n\t\t}",
"String str = kb.readLine();",
"str",
"kb.readLine()",
"kb.readLine",
"kb",
"String[] tmpArr = str.split( \" \" );",
"tmpArr",
"str.split( \" \" )",
"str.split",
"str",
"\" \"",
"int n = Integer.parseInt( tmpArr[0] );",
"n",
"Integer.parseInt( tmpArr[0] )",
"Integer.parseInt",
"Integer",
"tmpArr[0]",
"tmpArr",
"0",
"int m = Integer.parseInt( tmpArr[1] );",
"m",
"Integer.parseInt( tmpArr[1] )",
"Integer.parseInt",
"Integer",
"tmpArr[1]",
"tmpArr",
"1",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int c;",
"c",
"for( int i=0; i<n; i++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = kb.readLine();\n\t\t\t\ttmpArr = str.split( \" \" );\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}\n\t\t\t}",
"str = kb.readLine()",
"str",
"kb.readLine()",
"kb.readLine",
"kb",
"tmpArr = str.split( \" \" )",
"tmpArr",
"str.split( \" \" )",
"str.split",
"str",
"\" \"",
"for( int j=0; j<m; j++ ) {\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][j]=Integer.parseInt( tmpArr[j] );\n\t\t\t\t}",
"a[i][j]=Integer.parseInt( tmpArr[j] )",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt( tmpArr[j] )",
"Integer.parseInt",
"Integer",
"tmpArr[j]",
"tmpArr",
"j",
"for( int j=0; j<m; j++ ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}",
"{\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tb[j]=Integer.parseInt( str );\n\t\t\t}",
"str = kb.readLine()",
"str",
"kb.readLine()",
"kb.readLine",
"kb",
"b[j]=Integer.parseInt( str )",
"b[j]",
"b",
"j",
"Integer.parseInt( str )",
"Integer.parseInt",
"Integer",
"str",
"for( int i=0; i<n; i++ ) {\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}",
"{\n\t\t\t\tc=0;\n\t\t\t\tfor( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print( c+\"\\n\" ); \n\t\t\t}",
"c=0",
"c",
"0",
"for( int j=0; j<m; j++ ) {\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc+=a[i][j]*b[j];\n\t\t\t\t}",
"c+=a[i][j]*b[j]",
"c",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.print( c+\"\\n\" )",
"System.out.print",
"System.out",
"System",
"System.out",
"c+\"\\n\"",
"c",
"\"\\n\"",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
String str = kb.readLine();
String[] tmpArr = str.split( " " );
int n = Integer.parseInt( tmpArr[0] );
int m = Integer.parseInt( tmpArr[1] );
int[][] a = new int[n][m];
int[] b = new int[m];
int c;
for( int i=0; i<n; i++ ) {
str = kb.readLine();
tmpArr = str.split( " " );
for( int j=0; j<m; j++ ) {
a[i][j]=Integer.parseInt( tmpArr[j] );
}
}
for( int j=0; j<m; j++ ) {
str = kb.readLine();
b[j]=Integer.parseInt( str );
}
for( int i=0; i<n; i++ ) {
c=0;
for( int j=0; j<m; j++ ) {
c+=a[i][j]*b[j];
}
System.out.print( c+"\n" );
}
} catch( IOException e ) {
System.err.println( e );
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.