node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 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, 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, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 14, 2, 13, 17, 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, 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, 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, 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, 13, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 297, 5 ], [ 297, 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, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 49, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 49, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 49, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 49, 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 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 49, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 150, 156 ], [ 156, 157 ], [ 156, 158 ], [ 149, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 160, 166 ], [ 166, 167 ], [ 166, 168 ], [ 159, 169 ], [ 8, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 170, 178 ], [ 178, 179 ], [ 179, 180 ], [ 170, 181 ], [ 182, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 188, 189 ], [ 188, 190 ], [ 183, 191 ], [ 191, 192 ], [ 192, 193 ], [ 183, 194 ], [ 195, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 201, 202 ], [ 201, 203 ], [ 196, 204 ], [ 204, 205 ], [ 205, 206 ], [ 196, 207 ], [ 208, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 213, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 209, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 225, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 241, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 245, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 256 ], [ 241, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 257, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 261, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 195, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 182, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 278, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 282, 287 ], [ 297, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 288, 294 ], [ 294, 295 ], [ 0, 296 ], [ 296, 297 ], [ 296, 298 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint home1[][] = new int[3][10];\n\t\tint home2[][] = new int[3][10];\n\t\tint home3[][] = new int[3][10];\n\t\tint home4[][] = new int[3][10];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}\n\t\tfor(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint home1[][] = new int[3][10];\n\t\tint home2[][] = new int[3][10];\n\t\tint home3[][] = new int[3][10];\n\t\tint home4[][] = new int[3][10];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}\n\t\tfor(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}", "Main", "void run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint home1[][] = new int[3][10];\n\t\tint home2[][] = new int[3][10];\n\t\tint home3[][] = new int[3][10];\n\t\tint home4[][] = new int[3][10];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}\n\t\tfor(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}\n\t}", "run", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint home1[][] = new int[3][10];\n\t\tint home2[][] = new int[3][10];\n\t\tint home3[][] = new int[3][10];\n\t\tint home4[][] = new int[3][10];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}\n\t\tfor(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int home1[][] = new int[3][10];", "home1", "new int[3][10]", "3", "10", "int home2[][] = new int[3][10];", "home2", "new int[3][10]", "3", "10", "int home3[][] = new int[3][10];", "home3", "new int[3][10]", "3", "10", "int home4[][] = new int[3][10];", "home4", "new int[3][10]", "3", "10", "for(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[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 = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}", "{\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}", "int b = s.nextInt();", "b", "s.nextInt()", "s.nextInt", "s", "int f = s.nextInt();", "f", "s.nextInt()", "s.nextInt", "s", "int r = s.nextInt();", "r", "s.nextInt()", "s.nextInt", "s", "int v = s.nextInt();", "v", "s.nextInt()", "s.nextInt", "s", "if(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;", "b == 1", "b", "1", "home1[f - 1][r - 1] = home1[f - 1][r - 1] + v", "home1[f - 1][r - 1]", "home1[f - 1]", "home1", "f - 1", "f", "1", "r - 1", "r", "1", "home1[f - 1][r - 1] + v", "home1[f - 1][r - 1]", "home1[f - 1]", "home1", "f - 1", "f", "1", "r - 1", "r", "1", "v", "if(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;", "b == 2", "b", "2", "home2[f - 1][r - 1] = home2[f - 1][r - 1] + v", "home2[f - 1][r - 1]", "home2[f - 1]", "home2", "f - 1", "f", "1", "r - 1", "r", "1", "home2[f - 1][r - 1] + v", "home2[f - 1][r - 1]", "home2[f - 1]", "home2", "f - 1", "f", "1", "r - 1", "r", "1", "v", "if(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;", "b == 3", "b", "3", "home3[f - 1][r - 1] = home3[f - 1][r - 1] + v", "home3[f - 1][r - 1]", "home3[f - 1]", "home3", "f - 1", "f", "1", "r - 1", "r", "1", "home3[f - 1][r - 1] + v", "home3[f - 1][r - 1]", "home3[f - 1]", "home3", "f - 1", "f", "1", "r - 1", "r", "1", "v", "if(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;", "b == 4", "b", "4", "home4[f - 1][r - 1] = home4[f - 1][r - 1] + v", "home4[f - 1][r - 1]", "home4[f - 1]", "home4", "f - 1", "f", "1", "r - 1", "r", "1", "home4[f - 1][r - 1] + v", "home4[f - 1][r - 1]", "home4[f - 1]", "home4", "f - 1", "f", "1", "r - 1", "r", "1", "v", "for(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}", "int a = 0;", "int a = 0;", "a", "0", "a < 4", "a", "4", "a++", "a++", "a", "{\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}", "{\n\t\t\t\t\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}", "if (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);", "a == 0", "a", "0", "System.out.print(\" \" + home1[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + home1[i][j]", "\" \"", "home1[i][j]", "home1[i]", "home1", "i", "j", "if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);", "a == 1", "a", "1", "System.out.print(\" \" + home2[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + home2[i][j]", "\" \"", "home2[i][j]", "home2[i]", "home2", "i", "j", "if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);", "a == 2", "a", "2", "System.out.print(\" \" + home3[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + home3[i][j]", "\" \"", "home3[i][j]", "home3[i]", "home3", "i", "j", "if(a == 3) System.out.print(\" \" + home4[i][j]);", "a == 3", "a", "3", "System.out.print(\" \" + home4[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + home4[i][j]", "\" \"", "home4[i][j]", "home4[i]", "home4", "i", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(a != 3) System.out.println(\"####################\");", "a != 3", "a", "3", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "public static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}", "main", "{\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint home1[][] = new int[3][10];\n\t\tint home2[][] = new int[3][10];\n\t\tint home3[][] = new int[3][10];\n\t\tint home4[][] = new int[3][10];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}\n\t\tfor(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint home1[][] = new int[3][10];\n\t\tint home2[][] = new int[3][10];\n\t\tint home3[][] = new int[3][10];\n\t\tint home4[][] = new int[3][10];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint b = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tint v = s.nextInt();\n\t\t\tif(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v;\n\t\t\tif(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v;\n\t\t\tif(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v;\n\t\t\tif(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v;\n\t\t}\n\t\tfor(int a = 0; a < 4; a++){\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\t\n\t\t\t\t\t\tif (a == 0) System.out.print(\" \" + home1[i][j]);\n\t\t\t\t\t\telse if(a == 1) System.out.print(\" \" + home2[i][j]);\n\t\t\t\t\t\telse if(a == 2) System.out.print(\" \" + home3[i][j]);\n\t\t\t\t\t\telse if(a == 3) System.out.print(\" \" + home4[i][j]);\n\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(a != 3) System.out.println(\"####################\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run(){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int home1[][] = new int[3][10]; int home2[][] = new int[3][10]; int home3[][] = new int[3][10]; int home4[][] = new int[3][10]; for(int i = 0; i < n; i++){ int b = s.nextInt(); int f = s.nextInt(); int r = s.nextInt(); int v = s.nextInt(); if(b == 1) home1[f - 1][r - 1] = home1[f - 1][r - 1] + v; if(b == 2) home2[f - 1][r - 1] = home2[f - 1][r - 1] + v; if(b == 3) home3[f - 1][r - 1] = home3[f - 1][r - 1] + v; if(b == 4) home4[f - 1][r - 1] = home4[f - 1][r - 1] + v; } for(int a = 0; a < 4; a++){ for(int i = 0; i < 3; i++){ for(int j = 0; j < 10;j++){ if (a == 0) System.out.print(" " + home1[i][j]); else if(a == 1) System.out.print(" " + home2[i][j]); else if(a == 2) System.out.print(" " + home3[i][j]); else if(a == 3) System.out.print(" " + home4[i][j]); } System.out.println(); } if(a != 3) System.out.println("####################"); } } public static void main(String[] args) { /* * Main x; * x = new Main(); * x.run(); * ??¨???????????? */ new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 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, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 13, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 157, 8 ], [ 157, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 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 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 41, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 41, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 72, 73 ], [ 41, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 85, 87 ], [ 74, 88 ], [ 11, 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 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 115, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 133, 139 ], [ 114, 140 ], [ 140, 141 ], [ 141, 142 ], [ 101, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 11, 151 ], [ 151, 152 ], [ 152, 153 ], [ 9, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),A[][][]=new int[4][3][10];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)out.println(\"####################\");\n\t\t}\n\t\tout.flush();\n\t}\n\n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),A[][][]=new int[4][3][10];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)out.println(\"####################\");\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),A[][][]=new int[4][3][10];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)out.println(\"####################\");\n\t\t}\n\t\tout.flush();\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),A[][][]=new int[4][3][10];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)out.println(\"####################\");\n\t\t}\n\t\tout.flush();\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int n=in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "A[][][]=new int[4][3][10];", "A", "new int[4][3][10]", "4", "3", "10", "for(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[b-1][f-1][r-1]+=v;\n\t\t}", "{\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[b-1][f-1][r-1]+=v;\n\t\t}", "int b=Integer.parseInt(in.next())", "b", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "f=Integer.parseInt(in.next())", "f", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "r=Integer.parseInt(in.next())", "r", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "v=Integer.parseInt(in.next());", "v", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "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 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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}", "{\n\t\t\t\tfor(int k=0;k<10;k++) {\n\t\t\t\t\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}", "for(int k=0;k<10;k++) {\n\t\t\t\t\tout.print(\" \"+A[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}", "out.print(\" \"+A[i][j][k])", "out.print", "out", "\" \"+A[i][j][k]", "\" \"", "A[i][j][k]", "A[i][j]", "A[i]", "A", "i", "j", "k", "out.println()", "out.println", "out", "if(i<3)out.println(\"####################\");", "i<3", "i", "3", "out.println(\"####################\")", "out.println", "out", "\"####################\"", "out.flush()", "out.flush", "out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),A[][][]=new int[4][3][10];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)out.println(\"####################\");\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),A[][][]=new int[4][3][10];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next());\n\t\t\tA[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\tout.print(\" \"+A[i][j][k]);\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t\tif(i<3)out.println(\"####################\");\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); int n=in.nextInt(),A[][][]=new int[4][3][10]; for(int i=0;i<n;i++) { int b=Integer.parseInt(in.next()), f=Integer.parseInt(in.next()), r=Integer.parseInt(in.next()), v=Integer.parseInt(in.next()); A[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++) { out.print(" "+A[i][j][k]); } out.println(); } if(i<3)out.println("####################"); } out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 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, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 0, 18, 18, 18, 18, 18, 13, 2, 13, 17, 13, 2, 13, 17, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 17, 23, 13, 6, 13, 41, 13, 20, 17, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 20, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 18, 36, 13, 13, 13, 13, 4, 18, 18, 13, 13, 6, 13, 41, 13, 20, 17, 12, 13, 30, 4, 18, 13, 13, 17 ]
[ [ 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, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 24, 25 ], [ 24, 26 ], [ 19, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 31, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 11, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 11, 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 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 57, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 57, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 57, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 57, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 96, 104 ], [ 104, 105 ], [ 104, 106 ], [ 95, 107 ], [ 94, 108 ], [ 108, 109 ], [ 108, 110 ], [ 93, 111 ], [ 11, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 11, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 9, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 149 ], [ 149, 150 ], [ 149, 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 ], [ 166, 168 ], [ 165, 169 ], [ 143, 170 ], [ 170, 171 ], [ 170, 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 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 191, 192 ], [ 191, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 186, 197 ], [ 198, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 207, 213 ], [ 206, 214 ], [ 185, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 0, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 229, 233 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Building[] building=new Building[4];\n for(int i=0;i<4;i++){\n building[i]=new Building();\n }\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }\n for(int i=0;i<3;i++){\n building[i].show();\n System.out.println(\"####################\");\n }building[3].show();\n\n }\n\n}\n\nclass Building {\n\n Floor[] floor = new Floor[3];\n\n Building() {\n for (int i = 0; i < 3; i++) {\n floor[i] = new Floor();\n }\n }\n \n void show(){\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[j]);\n }System.out.println();\n }\n }\n \n}\n\nclass Floor {\n\n int[] room = new int[10];\n\n Floor() {\n Arrays.fill(room, 0);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Building[] building=new Building[4];\n for(int i=0;i<4;i++){\n building[i]=new Building();\n }\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }\n for(int i=0;i<3;i++){\n building[i].show();\n System.out.println(\"####################\");\n }building[3].show();\n\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Building[] building=new Building[4];\n for(int i=0;i<4;i++){\n building[i]=new Building();\n }\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }\n for(int i=0;i<3;i++){\n building[i].show();\n System.out.println(\"####################\");\n }building[3].show();\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Building[] building=new Building[4];\n for(int i=0;i<4;i++){\n building[i]=new Building();\n }\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }\n for(int i=0;i<3;i++){\n building[i].show();\n System.out.println(\"####################\");\n }building[3].show();\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "Building[] building=new Building[4];", "building", "new Building[4]", "4", "for(int i=0;i<4;i++){\n building[i]=new Building();\n }", "int i=0;", "int i=0;", "i", "0", "i<4", "i", "4", "i++", "i++", "i", "{\n building[i]=new Building();\n }", "{\n building[i]=new Building();\n }", "building[i]=new Building()", "building[i]", "building", "i", "new Building()", "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 StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }", "{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int b = Integer.parseInt(st.nextToken());\n int f = Integer.parseInt(st.nextToken());\n int r = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n building[b-1].floor[f-1].room[r-1]+=v;\n }", "StringTokenizer st = new StringTokenizer(br.readLine());", "st", "new StringTokenizer(br.readLine())", "int b = Integer.parseInt(st.nextToken());", "b", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int f = Integer.parseInt(st.nextToken());", "f", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int r = Integer.parseInt(st.nextToken());", "r", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int v = Integer.parseInt(st.nextToken());", "v", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "building[b-1].floor[f-1].room[r-1]+=v", "building[b-1].floor[f-1].room[r-1]", "building[b-1].floor[f-1].room", "building[b-1].floor[f-1]", "building[b-1].floor", "building[b-1]", "building", "b-1", "b", "1", "building[b-1].floor", "f-1", "f", "1", "building[b-1].floor[f-1].room", "r-1", "r", "1", "v", "for(int i=0;i<3;i++){\n building[i].show();\n System.out.println(\"####################\");\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n building[i].show();\n System.out.println(\"####################\");\n }", "{\n building[i].show();\n System.out.println(\"####################\");\n }", "building[i].show()", "building[i].show", "building[i]", "building", "i", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "building[3].show()", "building[3].show", "building[3]", "building", "3", "String[] args", "args", "class Building {\n\n Floor[] floor = new Floor[3];\n\n Building() {\n for (int i = 0; i < 3; i++) {\n floor[i] = new Floor();\n }\n }\n \n void show(){\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[j]);\n }System.out.println();\n }\n }\n \n}", "Building", "Floor[] floor = new Floor[3];", "floor", "new Floor[3]", "3", "Building() {\n for (int i = 0; i < 3; i++) {\n floor[i] = new Floor();\n }\n }", "Building", "{\n for (int i = 0; i < 3; i++) {\n floor[i] = new Floor();\n }\n }", "for (int i = 0; i < 3; i++) {\n floor[i] = new Floor();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n floor[i] = new Floor();\n }", "{\n floor[i] = new Floor();\n }", "floor[i] = new Floor()", "floor[i]", "floor", "i", "new Floor()", "void show(){\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[j]);\n }System.out.println();\n }\n }", "show", "{\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[j]);\n }System.out.println();\n }\n }", "for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[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(\" \"+this.floor[i].room[j]);\n }System.out.println();\n }", "{\n for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[j]);\n }System.out.println();\n }", "for(int j=0;j<10;j++){\n System.out.print(\" \"+this.floor[i].room[j]);\n }", "int j=0;", "int j=0;", "j", "0", "j<10", "j", "10", "j++", "j++", "j", "{\n System.out.print(\" \"+this.floor[i].room[j]);\n }", "{\n System.out.print(\" \"+this.floor[i].room[j]);\n }", "System.out.print(\" \"+this.floor[i].room[j])", "System.out.print", "System.out", "System", "System.out", "\" \"+this.floor[i].room[j]", "\" \"", "this.floor[i].room[j]", "this.floor[i].room", "this.floor[i]", "this.floor", "this", "this.floor", "i", "this.floor[i].room", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "class Floor {\n\n int[] room = new int[10];\n\n Floor() {\n Arrays.fill(room, 0);\n }\n}", "Floor", "int[] room = new int[10];", "room", "new int[10]", "10", "Floor() {\n Arrays.fill(room, 0);\n }", "Floor", "{\n Arrays.fill(room, 0);\n }", "Arrays.fill(room, 0)", "Arrays.fill", "Arrays", "room", "0" ]
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Building[] building=new Building[4]; for(int i=0;i<4;i++){ building[i]=new Building(); } int n = Integer.parseInt(br.readLine()); for (int i = 0; i < n; i++) { StringTokenizer st = new StringTokenizer(br.readLine()); int b = Integer.parseInt(st.nextToken()); int f = Integer.parseInt(st.nextToken()); int r = Integer.parseInt(st.nextToken()); int v = Integer.parseInt(st.nextToken()); building[b-1].floor[f-1].room[r-1]+=v; } for(int i=0;i<3;i++){ building[i].show(); System.out.println("####################"); }building[3].show(); } } class Building { Floor[] floor = new Floor[3]; Building() { for (int i = 0; i < 3; i++) { floor[i] = new Floor(); } } void show(){ for(int i=0;i<3;i++){ for(int j=0;j<10;j++){ System.out.print(" "+this.floor[i].room[j]); }System.out.println(); } } } class Floor { int[] room = new int[10]; Floor() { Arrays.fill(room, 0); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 17, 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, 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, 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, 4, 18, 13, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 13, 17, 14, 2, 13, 18, 18, 13, 13, 13, 30, 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 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 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 ], [ 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 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 103, 116 ], [ 117, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 118, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 142, 148 ], [ 135, 149 ], [ 149, 150 ], [ 150, 151 ], [ 135, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 154, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 134, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 117, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 171, 179 ], [ 179, 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\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 N = Integer.parseInt(br.readLine());\n\t\tint[][][] all = new int[4][3][10];\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\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\tStringBuilder sb = new StringBuilder();\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint[][][] all = new int[4][3][10];\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\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\tStringBuilder sb = new StringBuilder();\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint[][][] all = new int[4][3][10];\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\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\tStringBuilder sb = new StringBuilder();\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint[][][] all = new int[4][3][10];\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\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))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int N = Integer.parseInt(br.readLine());", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[][][] all = new int[4][3][10];", "all", "new int[4][3][10]", "4", "3", "10", "for(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l<N", "l", "N", "l++", "l++", "l", "{\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}", "{\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}", "String[] set = br.readLine().split(\" \");", "set", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int b = Integer.parseInt(set[0]);", "b", "Integer.parseInt(set[0])", "Integer.parseInt", "Integer", "set[0]", "set", "0", "int f = Integer.parseInt(set[1]);", "f", "Integer.parseInt(set[1])", "Integer.parseInt", "Integer", "set[1]", "set", "1", "int r = Integer.parseInt(set[2]);", "r", "Integer.parseInt(set[2])", "Integer.parseInt", "Integer", "set[2]", "set", "2", "int v = Integer.parseInt(set[3]);", "v", "Integer.parseInt(set[3])", "Integer.parseInt", "Integer", "set[3]", "set", "3", "all[b-1][f-1][r-1] += v", "all[b-1][f-1][r-1]", "all[b-1][f-1]", "all[b-1]", "all", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < all.length", "i", "all.length", "all", "all.length", "i++", "i++", "i", "{\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}", "for(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < all[i].length", "j", "all[i].length", "all[i]", "all", "i", "all[i].length", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "for(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < all[i][j].length", "k", "all[i][j].length", "all[i][j]", "all[i]", "all", "i", "j", "all[i][j].length", "k++", "k++", "k", "{\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}", "sb.append(\" \").append(all[i][j][k])", "sb.append(\" \").append", "sb.append(\" \")", "sb.append", "sb", "\" \"", "all[i][j][k]", "all[i][j]", "all[i]", "all", "i", "j", "k", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "if (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}", "i != all[i].length", "i", "all[i].length", "all[i]", "all", "i", "all[i].length", "{\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}", "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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint[][][] all = new int[4][3][10];\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\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\tStringBuilder sb = new StringBuilder();\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint[][][] all = new int[4][3][10];\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0]);\n\t\t\tint f = Integer.parseInt(set[1]);\n\t\t\tint r = Integer.parseInt(set[2]);\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tsb.append(\" \").append(all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tif (i != all[i].length) {\n\t\t\t\tsb.append(\"####################\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\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)); StringBuilder sb = new StringBuilder(); int N = Integer.parseInt(br.readLine()); int[][][] all = new int[4][3][10]; for(int l = 0; l<N; l++){ String[] set = br.readLine().split(" "); int b = Integer.parseInt(set[0]); int f = Integer.parseInt(set[1]); int r = Integer.parseInt(set[2]); int v = Integer.parseInt(set[3]); all[b-1][f-1][r-1] += v; } for(int i = 0; i < all.length; i++){ for(int j = 0; j < all[i].length; j++) { for(int k = 0; k < all[i][j].length; k++) { sb.append(" ").append(all[i][j][k]); } sb.append("\n"); } if (i != all[i].length) { sb.append("####################\n"); } } System.out.print(sb); } }
[ 7, 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, 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 ], [ 184, 5 ], [ 184, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 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 ], [ 38, 40 ], [ 29, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 45, 50 ], [ 42, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 42, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 42, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 42, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 42, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 94, 95 ], [ 94, 96 ], [ 83, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 98, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 112, 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 ], [ 135, 137 ], [ 126, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 139, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 147, 153 ], [ 125, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 111, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 8, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 6, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.io.*;\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(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.*;", "io.*", "java", "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(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(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(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(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(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(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(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(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(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(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(houses[x][y][z]);\n\t\t\t\t}", "{\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\tsb.append(houses[x][y][z]);\n\t\t\t\t}", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(houses[x][y][z])", "sb.append", "sb", "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(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(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.*; 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(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, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 13, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 18, 13, 13, 13, 13, 17, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 12, 13, 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, 0, 18, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 261, 8 ], [ 261, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 25, 32 ], [ 32, 33 ], [ 32, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 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 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 25, 57 ], [ 57, 58 ], [ 58, 59 ], [ 11, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 9, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 74, 76 ], [ 66, 77 ], [ 77, 78 ], [ 77, 79 ], [ 66, 83 ], [ 83, 84 ], [ 83, 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 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 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 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 122, 130 ], [ 66, 131 ], [ 131, 132 ], [ 131, 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 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 146, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 157, 165 ], [ 165, 166 ], [ 166, 167 ], [ 157, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 170, 178 ], [ 178, 179 ], [ 179, 180 ], [ 170, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 189, 195 ], [ 169, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 66, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 207, 210 ], [ 204, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 213, 216 ], [ 216, 217 ], [ 216, 218 ], [ 204, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 221, 224 ], [ 224, 225 ], [ 224, 226 ], [ 204, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 232, 233 ], [ 232, 234 ], [ 204, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 237, 240 ], [ 240, 241 ], [ 240, 242 ], [ 204, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 248, 250 ], [ 245, 251 ], [ 251, 252 ], [ 251, 253 ], [ 244, 254 ], [ 254, 255 ], [ 254, 256 ], [ 243, 257 ], [ 202, 258 ], [ 258, 259 ], [ 0, 260 ], [ 260, 261 ], [ 260, 262 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}\n\nclass Domi {\n\tprivate int bc = 4;\n\tprivate int fc = 3;\n\tprivate int rc = 10;\n\tprivate int[][][] psn = new int[bc][fc][rc];\n\n\tpublic void init() {\n\t\tfor (int b = 0; b < bc; b++)\n\t\t\tfor (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;\n\n\t}\n\n\tpublic void printAll() {\n\t\tfor (int b = 0; b < bc; b++) {\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic void moving(String log) {\n\t\tString[] logs = log.split(\" \");\n\t\tint b = Integer.valueOf(logs[0]);\n\t\tint f = Integer.valueOf(logs[1]);\n\t\tint r = Integer.valueOf(logs[2]);\n\t\tint v = Integer.valueOf(logs[3]);\n\t\tpsn[b - 1][f - 1][r - 1] += v;\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}\n\t\tSystem.exit(0);\n\t}", "main", "{\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}\n\t\tSystem.exit(0);\n\t}", "BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));", "stdIn", "new BufferedReader(new InputStreamReader(System.in))", "String s;", "s", "while ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}", "(s = stdIn.readLine()) != null", "(s = stdIn.readLine())", "s", "stdIn.readLine()", "stdIn.readLine", "stdIn", "null", "{\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}", "int cnt = Integer.valueOf(s);", "cnt", "Integer.valueOf(s)", "Integer.valueOf", "Integer", "s", "Domi aUniv = new Domi();", "aUniv", "new Domi()", "aUniv.init()", "aUniv.init", "aUniv", "for (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < cnt", "i", "cnt", "i++", "i++", "i", "{\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}", "{\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}", "aUniv.moving(stdIn.readLine())", "aUniv.moving", "aUniv", "stdIn.readLine()", "stdIn.readLine", "stdIn", "aUniv.printAll()", "aUniv.printAll", "aUniv", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "class Domi {\n\tprivate int bc = 4;\n\tprivate int fc = 3;\n\tprivate int rc = 10;\n\tprivate int[][][] psn = new int[bc][fc][rc];\n\n\tpublic void init() {\n\t\tfor (int b = 0; b < bc; b++)\n\t\t\tfor (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;\n\n\t}\n\n\tpublic void printAll() {\n\t\tfor (int b = 0; b < bc; b++) {\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic void moving(String log) {\n\t\tString[] logs = log.split(\" \");\n\t\tint b = Integer.valueOf(logs[0]);\n\t\tint f = Integer.valueOf(logs[1]);\n\t\tint r = Integer.valueOf(logs[2]);\n\t\tint v = Integer.valueOf(logs[3]);\n\t\tpsn[b - 1][f - 1][r - 1] += v;\n\t}\n\n}", "Domi", "private int bc = 4;", "bc", "4", "private int fc = 3;", "fc", "3", "private int rc = 10;", "rc", "10", "private int[][][] psn = new int[bc][fc][rc];", "psn", "new int[bc][fc][rc]", "bc", "fc", "rc", "public void init() {\n\t\tfor (int b = 0; b < bc; b++)\n\t\t\tfor (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;\n\n\t}", "init", "{\n\t\tfor (int b = 0; b < bc; b++)\n\t\t\tfor (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;\n\n\t}", "for (int b = 0; b < bc; b++)\n\t\t\tfor (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;", "int b = 0;", "int b = 0;", "b", "0", "b < bc", "b", "bc", "b++", "b++", "b", "for (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;", "for (int f = 0; f < fc; f++)\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;", "int f = 0;", "int f = 0;", "f", "0", "f < fc", "f", "fc", "f++", "f++", "f", "for (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;", "for (int r = 0; r < rc; r++)\n\t\t\t\t\tpsn[b][f][r] = 0;", "int r = 0;", "int r = 0;", "r", "0", "r < rc", "r", "rc", "r++", "r++", "r", "psn[b][f][r] = 0;", "psn[b][f][r] = 0", "psn[b][f][r]", "psn[b][f]", "psn[b]", "psn", "b", "f", "r", "0", "public void printAll() {\n\t\tfor (int b = 0; b < bc; b++) {\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}", "printAll", "{\n\t\tfor (int b = 0; b < bc; b++) {\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}", "for (int b = 0; b < bc; b++) {\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "int b = 0;", "int b = 0;", "b", "0", "b < bc", "b", "bc", "b++", "b++", "b", "{\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "{\n\t\t\tif (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\tfor (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "if (b > 0)\n\t\t\t\tSystem.out.println(\"####################\");", "b > 0", "b", "0", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "for (int f = 0; f < fc; f++) {\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "int f = 0;", "int f = 0;", "f", "0", "f < fc", "f", "fc", "f++", "f++", "f", "{\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for (int r = 0; r < rc; r++)\n\t\t\t\t\tSystem.out.print(\" \" + psn[b][f][r]);", "int r = 0;", "int r = 0;", "r", "0", "r < rc", "r", "rc", "r++", "r++", "r", "System.out.print(\" \" + psn[b][f][r]);", "System.out.print(\" \" + psn[b][f][r])", "System.out.print", "System.out", "System", "System.out", "\" \" + psn[b][f][r]", "\" \"", "psn[b][f][r]", "psn[b][f]", "psn[b]", "psn", "b", "f", "r", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "public void moving(String log) {\n\t\tString[] logs = log.split(\" \");\n\t\tint b = Integer.valueOf(logs[0]);\n\t\tint f = Integer.valueOf(logs[1]);\n\t\tint r = Integer.valueOf(logs[2]);\n\t\tint v = Integer.valueOf(logs[3]);\n\t\tpsn[b - 1][f - 1][r - 1] += v;\n\t}", "moving", "{\n\t\tString[] logs = log.split(\" \");\n\t\tint b = Integer.valueOf(logs[0]);\n\t\tint f = Integer.valueOf(logs[1]);\n\t\tint r = Integer.valueOf(logs[2]);\n\t\tint v = Integer.valueOf(logs[3]);\n\t\tpsn[b - 1][f - 1][r - 1] += v;\n\t}", "String[] logs = log.split(\" \");", "logs", "log.split(\" \")", "log.split", "log", "\" \"", "int b = Integer.valueOf(logs[0]);", "b", "Integer.valueOf(logs[0])", "Integer.valueOf", "Integer", "logs[0]", "logs", "0", "int f = Integer.valueOf(logs[1]);", "f", "Integer.valueOf(logs[1])", "Integer.valueOf", "Integer", "logs[1]", "logs", "1", "int r = Integer.valueOf(logs[2]);", "r", "Integer.valueOf(logs[2])", "Integer.valueOf", "Integer", "logs[2]", "logs", "2", "int v = Integer.valueOf(logs[3]);", "v", "Integer.valueOf(logs[3])", "Integer.valueOf", "Integer", "logs[3]", "logs", "3", "psn[b - 1][f - 1][r - 1] += v", "psn[b - 1][f - 1][r - 1]", "psn[b - 1][f - 1]", "psn[b - 1]", "psn", "b - 1", "b", "1", "f - 1", "f", "1", "r - 1", "r", "1", "v", "String log", "log", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint cnt = Integer.valueOf(s);\n\t\t\tDomi aUniv = new Domi();\n\t\t\taUniv.init();\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\taUniv.moving(stdIn.readLine());\n\t\t\t}\n\t\t\taUniv.printAll();\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); String s; while ((s = stdIn.readLine()) != null) { int cnt = Integer.valueOf(s); Domi aUniv = new Domi(); aUniv.init(); for (int i = 0; i < cnt; i++) { aUniv.moving(stdIn.readLine()); } aUniv.printAll(); } System.exit(0); } } class Domi { private int bc = 4; private int fc = 3; private int rc = 10; private int[][][] psn = new int[bc][fc][rc]; public void init() { for (int b = 0; b < bc; b++) for (int f = 0; f < fc; f++) for (int r = 0; r < rc; r++) psn[b][f][r] = 0; } public void printAll() { for (int b = 0; b < bc; b++) { if (b > 0) System.out.println("####################"); for (int f = 0; f < fc; f++) { for (int r = 0; r < rc; r++) System.out.print(" " + psn[b][f][r]); System.out.println(""); } } } public void moving(String log) { String[] logs = log.split(" "); int b = Integer.valueOf(logs[0]); int f = Integer.valueOf(logs[1]); int r = Integer.valueOf(logs[2]); int v = Integer.valueOf(logs[3]); psn[b - 1][f - 1][r - 1] += v; } }
[ 7, 15, 13, 17, 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, 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, 35, 18, 13, 17, 34, 17, 1, 0, 18, 18, 13, 2, 4, 18, 13, 18, 13, 17, 17, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 3, 34, 17, 1, 0, 18, 18, 13, 2, 4, 18, 13, 18, 13, 17, 17, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 3, 34, 17, 1, 0, 18, 18, 13, 2, 4, 18, 13, 18, 13, 17, 17, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 3, 34, 17, 1, 0, 18, 18, 13, 2, 4, 18, 13, 18, 13, 17, 17, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 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, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 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, 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, 13, 13, 13, 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, 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, 13, 13, 13, 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 2, 17, 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 ], [ 448, 11 ], [ 448, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 61, 66 ], [ 58, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 75, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 86, 93 ], [ 74, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 73, 100 ], [ 67, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 108, 115 ], [ 105, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 120, 122 ], [ 116, 123 ], [ 104, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 127, 129 ], [ 103, 130 ], [ 67, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 142, 144 ], [ 138, 145 ], [ 135, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 150, 151 ], [ 150, 152 ], [ 146, 153 ], [ 134, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 157, 159 ], [ 133, 160 ], [ 67, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 172, 173 ], [ 172, 174 ], [ 168, 175 ], [ 165, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 180, 182 ], [ 176, 183 ], [ 164, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 187, 188 ], [ 187, 189 ], [ 163, 190 ], [ 14, 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 ], [ 218, 220 ], [ 217, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 221, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 228, 232 ], [ 217, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 233, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 240, 244 ], [ 14, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 245, 250 ], [ 14, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 251, 256 ], [ 256, 257 ], [ 256, 258 ], [ 251, 259 ], [ 259, 260 ], [ 260, 261 ], [ 251, 262 ], [ 263, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 264, 269 ], [ 269, 270 ], [ 269, 271 ], [ 264, 272 ], [ 272, 273 ], [ 273, 274 ], [ 264, 275 ], [ 276, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 277, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 281, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 288, 292 ], [ 277, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 293, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 300, 304 ], [ 14, 305 ], [ 305, 306 ], [ 306, 307 ], [ 307, 308 ], [ 307, 309 ], [ 305, 310 ], [ 14, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 311, 316 ], [ 316, 317 ], [ 316, 318 ], [ 311, 319 ], [ 319, 320 ], [ 320, 321 ], [ 311, 322 ], [ 323, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 324, 329 ], [ 329, 330 ], [ 329, 331 ], [ 324, 332 ], [ 332, 333 ], [ 333, 334 ], [ 324, 335 ], [ 336, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 337, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 341, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 348, 352 ], [ 337, 353 ], [ 353, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 353, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 360, 364 ], [ 14, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 365, 370 ], [ 14, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 373, 375 ], [ 371, 376 ], [ 376, 377 ], [ 376, 378 ], [ 371, 379 ], [ 379, 380 ], [ 380, 381 ], [ 371, 382 ], [ 383, 383 ], [ 383, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 384, 389 ], [ 389, 390 ], [ 389, 391 ], [ 384, 392 ], [ 392, 393 ], [ 393, 394 ], [ 384, 395 ], [ 396, 396 ], [ 396, 397 ], [ 397, 398 ], [ 398, 399 ], [ 399, 400 ], [ 399, 401 ], [ 398, 402 ], [ 402, 403 ], [ 402, 404 ], [ 397, 405 ], [ 405, 406 ], [ 406, 407 ], [ 407, 408 ], [ 407, 409 ], [ 405, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 412, 416 ], [ 397, 417 ], [ 417, 418 ], [ 418, 419 ], [ 418, 420 ], [ 417, 421 ], [ 421, 422 ], [ 422, 423 ], [ 423, 424 ], [ 423, 425 ], [ 421, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 429, 430 ], [ 429, 431 ], [ 428, 432 ], [ 417, 433 ], [ 433, 434 ], [ 434, 435 ], [ 435, 436 ], [ 435, 437 ], [ 433, 438 ], [ 438, 439 ], [ 438, 440 ], [ 440, 441 ], [ 441, 442 ], [ 441, 443 ], [ 440, 444 ], [ 12, 445 ], [ 445, 446 ], [ 0, 447 ], [ 447, 448 ], [ 447, 449 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\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\tint[][] k_1 = new int[3][10];\n\t\tint[][] k_2 = new int[3][10];\n\t\tint[][] k_3 = new int[3][10];\n\t\tint[][] k_4 = new int[3][10];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "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\tint[][] k_1 = new int[3][10];\n\t\tint[][] k_2 = new int[3][10];\n\t\tint[][] k_3 = new int[3][10];\n\t\tint[][] k_4 = new int[3][10];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\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\tint[][] k_1 = new int[3][10];\n\t\tint[][] k_2 = new int[3][10];\n\t\tint[][] k_3 = new int[3][10];\n\t\tint[][] k_4 = new int[3][10];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n\t\tint[][] k_1 = new int[3][10];\n\t\tint[][] k_2 = new int[3][10];\n\t\tint[][] k_3 = new int[3][10];\n\t\tint[][] k_4 = new int[3][10];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\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[][] k_1 = new int[3][10];", "k_1", "new int[3][10]", "3", "10", "int[][] k_2 = new int[3][10];", "k_2", "new int[3][10]", "3", "10", "int[][] k_3 = new int[3][10];", "k_3", "new int[3][10]", "3", "10", "int[][] k_4 = new int[3][10];", "k_4", "new int[3][10]", "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[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "String[] strAry = br.readLine().split(\" \");", "strAry", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "switch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\t}", "strAry[0]", "strAry", "0", "case \"1\":", "\"1\"", "case \"1\":", "k_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3])", "k_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1]", "k_1[Integer.parseInt(strAry[1]) - 1]", "k_1", "Integer.parseInt(strAry[1]) - 1", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "1", "Integer.parseInt(strAry[2]) - 1", "Integer.parseInt(strAry[2])", "Integer.parseInt", "Integer", "strAry[2]", "strAry", "2", "1", "Integer.parseInt(strAry[3])", "Integer.parseInt", "Integer", "strAry[3]", "strAry", "3", "break;", "case \"2\":", "\"2\"", "case \"2\":", "k_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3])", "k_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1]", "k_2[Integer.parseInt(strAry[1]) - 1]", "k_2", "Integer.parseInt(strAry[1]) - 1", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "1", "Integer.parseInt(strAry[2]) - 1", "Integer.parseInt(strAry[2])", "Integer.parseInt", "Integer", "strAry[2]", "strAry", "2", "1", "Integer.parseInt(strAry[3])", "Integer.parseInt", "Integer", "strAry[3]", "strAry", "3", "break;", "case \"3\":", "\"3\"", "case \"3\":", "k_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3])", "k_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1]", "k_3[Integer.parseInt(strAry[1]) - 1]", "k_3", "Integer.parseInt(strAry[1]) - 1", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "1", "Integer.parseInt(strAry[2]) - 1", "Integer.parseInt(strAry[2])", "Integer.parseInt", "Integer", "strAry[2]", "strAry", "2", "1", "Integer.parseInt(strAry[3])", "Integer.parseInt", "Integer", "strAry[3]", "strAry", "3", "break;", "case \"4\":", "\"4\"", "case \"4\":", "k_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3])", "k_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1]", "k_4[Integer.parseInt(strAry[1]) - 1]", "k_4", "Integer.parseInt(strAry[1]) - 1", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "1", "Integer.parseInt(strAry[2]) - 1", "Integer.parseInt(strAry[2])", "Integer.parseInt", "Integer", "strAry[2]", "strAry", "2", "1", "Integer.parseInt(strAry[3])", "Integer.parseInt", "Integer", "strAry[3]", "strAry", "3", "break;", "for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\n\t\t}", "for (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}", "{\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}", "if (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);", "j == 9", "j", "9", "System.out.println(\" \" + k_1[i][j])", "System.out.println", "System.out", "System", "System.out", "\" \" + k_1[i][j]", "\" \"", "k_1[i][j]", "k_1[i]", "k_1", "i", "j", "System.out.print(\" \" + k_1[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + k_1[i][j]", "\" \"", "k_1[i][j]", "k_1[i]", "k_1", "i", "j", "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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\n\t\t}", "for (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}", "{\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}", "if (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);", "j == 9", "j", "9", "System.out.println(\" \" + k_2[i][j])", "System.out.println", "System.out", "System", "System.out", "\" \" + k_2[i][j]", "\" \"", "k_2[i][j]", "k_2[i]", "k_2", "i", "j", "System.out.print(\" \" + k_2[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + k_2[i][j]", "\" \"", "k_2[i][j]", "k_2[i]", "k_2", "i", "j", "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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\n\t\t}", "for (int j = 0; j < 10; j++) {\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}", "{\n\t\t\t\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}", "if (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);", "j == 9", "j", "9", "System.out.println(\" \" + k_3[i][j])", "System.out.println", "System.out", "System", "System.out", "\" \" + k_3[i][j]", "\" \"", "k_3[i][j]", "k_3[i]", "k_3", "i", "j", "System.out.print(\" \" + k_3[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + k_3[i][j]", "\" \"", "k_3[i][j]", "k_3[i]", "k_3", "i", "j", "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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\n\t\t}", "for (int j = 0; j < 10; j++) {\n\t\t\t\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}", "{\n\t\t\t\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}", "if (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);", "i == 3 && j == 9", "i == 3", "i", "3", "j == 9", "j", "9", "System.out.print(\" \" + k_4[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + k_4[i][j]", "\" \"", "k_4[i][j]", "k_4[i]", "k_4", "i", "j", "if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);", "j == 9", "j", "9", "System.out.println(\" \" + k_4[i][j])", "System.out.println", "System.out", "System", "System.out", "\" \" + k_4[i][j]", "\" \"", "k_4[i][j]", "k_4[i]", "k_4", "i", "j", "System.out.print(\" \" + k_4[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + k_4[i][j]", "\" \"", "k_4[i][j]", "k_4[i]", "k_4", "i", "j", "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\tint[][] k_1 = new int[3][10];\n\t\tint[][] k_2 = new int[3][10];\n\t\tint[][] k_3 = new int[3][10];\n\t\tint[][] k_4 = new int[3][10];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\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\tint[][] k_1 = new int[3][10];\n\t\tint[][] k_2 = new int[3][10];\n\t\tint[][] k_3 = new int[3][10];\n\t\tint[][] k_4 = new int[3][10];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"1\":\n\t\t\t\tk_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tk_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tk_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tk_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]);\n\t\t\t\tbreak;\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\tif (j == 9) System.out.println(\" \" + k_1[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_1[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_2[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_2[i][j]);\n\t\t\t}\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\tif (j == 9) System.out.println(\" \" + k_3[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_3[i][j]);\n\t\t\t}\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\tif (i == 3 && j == 9) System.out.print(\" \" + k_4[i][j]);\n\t\t\t\telse if (j == 9) System.out.println(\" \" + k_4[i][j]);\n\t\t\t\telse System.out.print(\" \" + k_4[i][j]);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[][] k_1 = new int[3][10]; int[][] k_2 = new int[3][10]; int[][] k_3 = new int[3][10]; int[][] k_4 = new int[3][10]; int n = Integer.parseInt(br.readLine()); for (int i = 0; i < n; i++) { String[] strAry = br.readLine().split(" "); switch (strAry[0]) { case "1": k_1[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]); break; case "2": k_2[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]); break; case "3": k_3[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]); break; case "4": k_4[Integer.parseInt(strAry[1]) - 1][Integer.parseInt(strAry[2]) - 1] += Integer.parseInt(strAry[3]); break; } } for (int i = 0; i < 3; i++) { for (int j = 0; j < 10; j++) { if (j == 9) System.out.println(" " + k_1[i][j]); else System.out.print(" " + k_1[i][j]); } } System.out.println("####################"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 10; j++) { if (j == 9) System.out.println(" " + k_2[i][j]); else System.out.print(" " + k_2[i][j]); } } System.out.println("####################"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 10; j++) { if (j == 9) System.out.println(" " + k_3[i][j]); else System.out.print(" " + k_3[i][j]); } } System.out.println("####################"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 10; j++) { if (i == 3 && j == 9) System.out.print(" " + k_4[i][j]); else if (j == 9) System.out.println(" " + k_4[i][j]); else System.out.print(" " + k_4[i][j]); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 35, 13, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 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, 4, 13, 13, 13, 13, 13, 4, 18, 13, 12, 13, 30, 4, 13, 4, 13, 13, 17, 4, 13, 13, 17, 4, 13, 13, 17, 4, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 301, 5 ], [ 301, 6 ], [ 6, 7 ], [ 6, 8 ], [ 301, 11 ], [ 11, 12 ], [ 11, 13 ], [ 301, 16 ], [ 16, 17 ], [ 16, 18 ], [ 301, 21 ], [ 21, 22 ], [ 21, 23 ], [ 301, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 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 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 41, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 28, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 84, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 28, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 26, 107 ], [ 107, 108 ], [ 26, 109 ], [ 109, 110 ], [ 301, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 126, 127 ], [ 126, 128 ], [ 119, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 136, 138 ], [ 129, 139 ], [ 118, 140 ], [ 114, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 151, 152 ], [ 151, 153 ], [ 144, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 161, 162 ], [ 161, 163 ], [ 154, 164 ], [ 143, 165 ], [ 114, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 173, 175 ], [ 170, 176 ], [ 176, 177 ], [ 176, 178 ], [ 169, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 183, 185 ], [ 180, 186 ], [ 186, 187 ], [ 186, 188 ], [ 179, 189 ], [ 168, 190 ], [ 114, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 195, 201 ], [ 201, 202 ], [ 201, 203 ], [ 194, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 208, 210 ], [ 205, 211 ], [ 211, 212 ], [ 211, 213 ], [ 204, 214 ], [ 193, 215 ], [ 111, 216 ], [ 216, 217 ], [ 111, 218 ], [ 218, 219 ], [ 111, 220 ], [ 220, 221 ], [ 111, 222 ], [ 222, 223 ], [ 301, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 226, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 233, 234 ], [ 226, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 235, 240 ], [ 240, 241 ], [ 240, 242 ], [ 235, 243 ], [ 243, 244 ], [ 244, 245 ], [ 235, 246 ], [ 247, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 247, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 256, 257 ], [ 247, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 261, 262 ], [ 247, 263 ], [ 263, 264 ], [ 263, 265 ], [ 265, 266 ], [ 266, 267 ], [ 247, 268 ], [ 268, 269 ], [ 268, 270 ], [ 268, 271 ], [ 268, 272 ], [ 268, 273 ], [ 226, 274 ], [ 274, 275 ], [ 275, 276 ], [ 301, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 280, 281 ], [ 279, 282 ], [ 282, 283 ], [ 282, 284 ], [ 282, 285 ], [ 279, 286 ], [ 286, 287 ], [ 286, 288 ], [ 286, 289 ], [ 279, 290 ], [ 290, 291 ], [ 290, 292 ], [ 290, 293 ], [ 279, 294 ], [ 294, 295 ], [ 294, 296 ], [ 294, 297 ], [ 277, 298 ], [ 298, 299 ], [ 0, 300 ], [ 300, 301 ], [ 300, 302 ] ]
[ "import java.util.*;\n\npublic class Main{\n\n\tstatic int[][] tou1 = new int[3][10];\n\tstatic int[][] tou2 = new int[3][10];\n\tstatic int[][] tou3 = new int[3][10];\n\tstatic int[][] tou4 = new int[3][10];\n\t\n\tstatic void Output(int[][] tou,int last){\n\t\tfor(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tif (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Jouhou(int b,int f,int r,int v){\n\t\tswitch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}\n\t}\n\t\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}\n\t\tscanner.close();\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t\tOutput(tou1, 0);\n\t\tOutput(tou2, 0);\n\t\tOutput(tou3, 0);\n\t\tOutput(tou4, 1);\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\n\tstatic int[][] tou1 = new int[3][10];\n\tstatic int[][] tou2 = new int[3][10];\n\tstatic int[][] tou3 = new int[3][10];\n\tstatic int[][] tou4 = new int[3][10];\n\t\n\tstatic void Output(int[][] tou,int last){\n\t\tfor(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tif (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Jouhou(int b,int f,int r,int v){\n\t\tswitch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}\n\t}\n\t\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}\n\t\tscanner.close();\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t\tOutput(tou1, 0);\n\t\tOutput(tou2, 0);\n\t\tOutput(tou3, 0);\n\t\tOutput(tou4, 1);\n\t}\n\n}", "Main", "static int[][] tou1 = new int[3][10];", "tou1", "new int[3][10]", "3", "10", "static int[][] tou2 = new int[3][10];", "tou2", "new int[3][10]", "3", "10", "static int[][] tou3 = new int[3][10];", "tou3", "new int[3][10]", "3", "10", "static int[][] tou4 = new int[3][10];", "tou4", "new int[3][10]", "3", "10", "static void Output(int[][] tou,int last){\n\t\tfor(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tif (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "Output", "{\n\t\tfor(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tif (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "for(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int x = 0 ;", "int x = 0 ;", "x", "0", "x < 3", "x", "3", "x++", "x++", "x", "{\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\n\t\t\t}", "int y = 0;", "int y = 0;", "y", "0", "y < 10", "y", "10", "y++", "y++", "y", "{\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\n\t\t\t}", "System.out.print(\" \" + tou[x][y])", "System.out.print", "System.out", "System", "System.out", "\" \" + tou[x][y]", "\" \"", "tou[x][y]", "tou[x]", "tou", "x", "y", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int i = 0 ; i < 20 ; i++){\n\t\t\tif(last == 1){break;}\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "{\n\t\t\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "if(last == 1){break;}", "last == 1", "last", "1", "{break;}", "break;", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}", "last != 1", "last", "1", "{\n\t\t\tSystem.out.println();\n\t\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[][] tou", "tou", "int last", "last", "static void Jouhou(int b,int f,int r,int v){\n\t\tswitch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}\n\t}", "Jouhou", "{\n\t\tswitch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}\n\t}", "switch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}", "b", "case 1:", "1", "case 1:", "tou1[f-1][r-1]=tou1[f-1][r-1]+v", "tou1[f-1][r-1]", "tou1[f-1]", "tou1", "f-1", "f", "1", "r-1", "r", "1", "tou1[f-1][r-1]+v", "tou1[f-1][r-1]", "tou1[f-1]", "tou1", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "case 2:", "2", "case 2:", "tou2[f-1][r-1]=tou2[f-1][r-1]+v", "tou2[f-1][r-1]", "tou2[f-1]", "tou2", "f-1", "f", "1", "r-1", "r", "1", "tou2[f-1][r-1]+v", "tou2[f-1][r-1]", "tou2[f-1]", "tou2", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "case 3:", "3", "case 3:", "tou3[f-1][r-1]=tou3[f-1][r-1]+v", "tou3[f-1][r-1]", "tou3[f-1]", "tou3", "f-1", "f", "1", "r-1", "r", "1", "tou3[f-1][r-1]+v", "tou3[f-1][r-1]", "tou3[f-1]", "tou3", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "case 4:", "4", "case 4:", "tou4[f-1][r-1]=tou4[f-1][r-1]+v", "tou4[f-1][r-1]", "tou4[f-1]", "tou4", "f-1", "f", "1", "r-1", "r", "1", "tou4[f-1][r-1]+v", "tou4[f-1][r-1]", "tou4[f-1]", "tou4", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "int b", "b", "int f", "f", "int r", "r", "int v", "v", "static void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}\n\t\tscanner.close();\n\t\t\n\t}", "Input", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}\n\t\tscanner.close();\n\t\t\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(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\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}", "{\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}", "int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "int f = scanner.nextInt();", "f", "scanner.nextInt()", "scanner.nextInt", "scanner", "int r = scanner.nextInt();", "r", "scanner.nextInt()", "scanner.nextInt", "scanner", "int v = scanner.nextInt();", "v", "scanner.nextInt()", "scanner.nextInt", "scanner", "Jouhou(b, f, r, v)", "Jouhou", "b", "f", "r", "v", "scanner.close()", "scanner.close", "scanner", "public static void main(String[] args) {\n\t\tInput();\n\t\t\n\t\tOutput(tou1, 0);\n\t\tOutput(tou2, 0);\n\t\tOutput(tou3, 0);\n\t\tOutput(tou4, 1);\n\t}", "main", "{\n\t\tInput();\n\t\t\n\t\tOutput(tou1, 0);\n\t\tOutput(tou2, 0);\n\t\tOutput(tou3, 0);\n\t\tOutput(tou4, 1);\n\t}", "Input()", "Input", "Output(tou1, 0)", "Output", "tou1", "0", "Output(tou2, 0)", "Output", "tou2", "0", "Output(tou3, 0)", "Output", "tou3", "0", "Output(tou4, 1)", "Output", "tou4", "1", "String[] args", "args", "public class Main{\n\n\tstatic int[][] tou1 = new int[3][10];\n\tstatic int[][] tou2 = new int[3][10];\n\tstatic int[][] tou3 = new int[3][10];\n\tstatic int[][] tou4 = new int[3][10];\n\t\n\tstatic void Output(int[][] tou,int last){\n\t\tfor(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tif (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Jouhou(int b,int f,int r,int v){\n\t\tswitch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}\n\t}\n\t\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}\n\t\tscanner.close();\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t\tOutput(tou1, 0);\n\t\tOutput(tou2, 0);\n\t\tOutput(tou3, 0);\n\t\tOutput(tou4, 1);\n\t}\n\n}", "public class Main{\n\n\tstatic int[][] tou1 = new int[3][10];\n\tstatic int[][] tou2 = new int[3][10];\n\tstatic int[][] tou3 = new int[3][10];\n\tstatic int[][] tou4 = new int[3][10];\n\t\n\tstatic void Output(int[][] tou,int last){\n\t\tfor(int x = 0 ; x < 3 ; x++){\n\t\t\tfor(int y = 0; y < 10 ; y++){\n\t\t\t\tSystem.out.print(\" \" + tou[x][y]);\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\tif(last == 1){break;}\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\tif (last != 1) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Jouhou(int b,int f,int r,int v){\n\t\tswitch(b){ \n\t\tcase 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v;\tbreak;\n\t\tcase 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v;\tbreak;\n\t\tcase 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v;\tbreak;\n\t\tcase 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v;\tbreak;\n\t\t}\n\t}\n\t\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tint b = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tint v = scanner.nextInt();\n\t\t\tJouhou(b, f, r, v);\n\t\t}\n\t\tscanner.close();\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t\tOutput(tou1, 0);\n\t\tOutput(tou2, 0);\n\t\tOutput(tou3, 0);\n\t\tOutput(tou4, 1);\n\t}\n\n}", "Main" ]
import java.util.*; public class Main{ static int[][] tou1 = new int[3][10]; static int[][] tou2 = new int[3][10]; static int[][] tou3 = new int[3][10]; static int[][] tou4 = new int[3][10]; static void Output(int[][] tou,int last){ for(int x = 0 ; x < 3 ; x++){ for(int y = 0; y < 10 ; y++){ System.out.print(" " + tou[x][y]); } System.out.println(); } for(int i = 0 ; i < 20 ; i++){ if(last == 1){break;} System.out.print("#"); } if (last != 1) { System.out.println(); } } static void Jouhou(int b,int f,int r,int v){ switch(b){ case 1: tou1[f-1][r-1]=tou1[f-1][r-1]+v; break; case 2: tou2[f-1][r-1]=tou2[f-1][r-1]+v; break; case 3: tou3[f-1][r-1]=tou3[f-1][r-1]+v; break; case 4: tou4[f-1][r-1]=tou4[f-1][r-1]+v; break; } } static void Input(){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); for(int i = 0; i < N ; i++){ int b = scanner.nextInt(); int f = scanner.nextInt(); int r = scanner.nextInt(); int v = scanner.nextInt(); Jouhou(b, f, r, v); } scanner.close(); } public static void main(String[] args) { Input(); Output(tou1, 0); Output(tou2, 0); Output(tou3, 0); Output(tou4, 1); } }
[ 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, 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, 2, 17, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 191, 2 ], [ 191, 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 ], [ 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 ], [ 5, 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 ], [ 178, 179 ], [ 178, 180 ], [ 175, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 3, 188 ], [ 188, 189 ], [ 0, 190 ], [ 190, 191 ], [ 190, 192 ] ]
[ "public class Main {\n public static void main(String[] args) {\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 java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\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 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 java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\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 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 java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\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 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 java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\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", "for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int 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 int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }", "{\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\n }", "int built = sc.nextInt();", "built", "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 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 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 java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\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 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 java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i ++) {\n int built = sc.nextInt();\n int floor = sc.nextInt();\n int room = sc.nextInt();\n int num = sc.nextInt();\n info[built - 1][floor - 1][room - 1] += num;\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(); for (int i = 0; i < n; i ++) { int built = sc.nextInt(); int floor = sc.nextInt(); int room = sc.nextInt(); int 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, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 0, 18, 36, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 20, 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 20, 23, 13, 12, 13, 30, 29, 4, 18, 18, 36, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 20, 23, 13, 12, 13, 30, 29, 4, 18, 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, 14, 2, 18, 36, 13, 17, 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 ], [ 439, 11 ], [ 439, 12 ], [ 12, 13 ], [ 439, 14 ], [ 14, 15 ], [ 14, 16 ], [ 439, 17 ], [ 17, 18 ], [ 17, 19 ], [ 439, 20 ], [ 20, 21 ], [ 20, 22 ], [ 439, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 25, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 25, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 55, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 55, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 55, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 99, 104 ], [ 55, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 105, 109 ], [ 105, 110 ], [ 105, 111 ], [ 25, 112 ], [ 112, 113 ], [ 113, 114 ], [ 23, 115 ], [ 115, 116 ], [ 439, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 125, 136 ], [ 137, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 439, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 145, 157 ], [ 157, 158 ], [ 158, 159 ], [ 145, 160 ], [ 161, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 161, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 170, 180 ], [ 180, 181 ], [ 181, 182 ], [ 170, 183 ], [ 184, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 184, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 191, 201 ], [ 201, 202 ], [ 202, 203 ], [ 191, 204 ], [ 205, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 205, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 212, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 220, 221 ], [ 184, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 222, 227 ], [ 161, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 231, 237 ], [ 228, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 239, 244 ], [ 439, 245 ], [ 245, 246 ], [ 245, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 250, 255 ], [ 255, 256 ], [ 255, 257 ], [ 247, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 261, 262 ], [ 260, 263 ], [ 263, 264 ], [ 263, 265 ], [ 247, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 268, 271 ], [ 271, 272 ], [ 271, 273 ], [ 247, 274 ], [ 274, 275 ], [ 275, 276 ], [ 274, 277 ], [ 245, 278 ], [ 278, 279 ], [ 245, 280 ], [ 280, 281 ], [ 245, 282 ], [ 282, 283 ], [ 245, 284 ], [ 284, 285 ], [ 439, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 286, 290 ], [ 290, 291 ], [ 286, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 295, 299 ], [ 294, 300 ], [ 300, 301 ], [ 300, 302 ], [ 294, 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 ], [ 316, 319 ], [ 292, 320 ], [ 320, 321 ], [ 286, 322 ], [ 322, 323 ], [ 322, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 286, 331 ], [ 331, 332 ], [ 331, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 335, 338 ], [ 331, 339 ], [ 339, 340 ], [ 439, 341 ], [ 341, 342 ], [ 341, 343 ], [ 343, 344 ], [ 341, 345 ], [ 345, 346 ], [ 341, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 350, 354 ], [ 349, 355 ], [ 355, 356 ], [ 355, 357 ], [ 349, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 358, 363 ], [ 363, 364 ], [ 363, 365 ], [ 358, 366 ], [ 366, 367 ], [ 367, 368 ], [ 358, 369 ], [ 370, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 371, 374 ], [ 347, 375 ], [ 375, 376 ], [ 341, 377 ], [ 377, 378 ], [ 377, 379 ], [ 379, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 381, 384 ], [ 377, 385 ], [ 385, 386 ], [ 341, 387 ], [ 387, 388 ], [ 387, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 393, 395 ], [ 439, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 396, 400 ], [ 400, 401 ], [ 396, 402 ], [ 402, 403 ], [ 402, 404 ], [ 404, 405 ], [ 405, 406 ], [ 406, 407 ], [ 406, 408 ], [ 405, 409 ], [ 402, 410 ], [ 410, 411 ], [ 396, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 396, 417 ], [ 417, 418 ], [ 417, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 421, 423 ], [ 420, 424 ], [ 419, 425 ], [ 425, 426 ], [ 426, 427 ], [ 427, 428 ], [ 427, 429 ], [ 426, 430 ], [ 425, 431 ], [ 431, 432 ], [ 432, 433 ], [ 432, 434 ], [ 431, 435 ], [ 417, 436 ], [ 436, 437 ], [ 0, 438 ], [ 438, 439 ], [ 438, 440 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\tprivate ArrayList<Building> building;\n\n\tfinal int BUILDING = 4;\n\tfinal int FLOOR = 3;\n\tfinal int ROOM = 10;\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\t main.disp();\n\t}\n\n\tprivate void init() {\n\t\tthis.building = new ArrayList<Building>();\n\n\t\tfor (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tBuilding building = this.building.get(b - 1);\n\t\tFloor floor = building.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Building {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tBuilding(int buildingNo) {\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\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\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\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\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 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 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) this.ninzu = 0;\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<Building> building;\n\n\tfinal int BUILDING = 4;\n\tfinal int FLOOR = 3;\n\tfinal int ROOM = 10;\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\t main.disp();\n\t}\n\n\tprivate void init() {\n\t\tthis.building = new ArrayList<Building>();\n\n\t\tfor (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tBuilding building = this.building.get(b - 1);\n\t\tFloor floor = building.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Building {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tBuilding(int buildingNo) {\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\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\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\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\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 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 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) this.ninzu = 0;\n\t\t}\n\t}\n}", "Main", "private ArrayList<Building> building;", "building", "final int BUILDING = 4;", "BUILDING", "4", "final int FLOOR = 3;", "FLOOR", "3", "final int ROOM = 10;", "ROOM", "10", "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\t main.disp();\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\t main.disp();\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 init() {\n\t\tthis.building = new ArrayList<Building>();\n\n\t\tfor (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}\n\t}", "init", "{\n\t\tthis.building = new ArrayList<Building>();\n\n\t\tfor (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}\n\t}", "this.building = new ArrayList<Building>()", "this.building", "this", "this.building", "new ArrayList<Building>()", "for (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= BUILDING", "i", "BUILDING", "i++", "i++", "i", "{\n\t\t\tbuilding.add(new Building(i));\n\t\t}", "{\n\t\t\tbuilding.add(new Building(i));\n\t\t}", "building.add(new Building(i))", "building.add", "building", "new Building(i)", "private void disp() {\n\t\tfor (int b = 0; b < this.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.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.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "for (int b = 0; b < this.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.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.building.size()", "b", "this.building.size()", "this.building.size", "this.building", "this", "this.building", "b++", "b++", "b", "{\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "Building building = this.building.get(b);", "building", "this.building.get(b)", "this.building.get", "this.building", "this", "this.building", "b", "for (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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 < building.getFloorCount()", "f", "building.getFloorCount()", "building.getFloorCount", "building", "f++", "f++", "f", "{\n\n\t\t\t\tFloor floor = building.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 = building.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 = building.getFloor(f);", "floor", "building.getFloor(f)", "building.getFloor", "building", "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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "b != this.building.size() - 1", "b", "this.building.size() - 1", "this.building.size()", "this.building.size", "this.building", "this", "this.building", "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 movePeople(int b, int f, int r, int v) {\n\t\tBuilding building = this.building.get(b - 1);\n\t\tFloor floor = building.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}", "movePeople", "{\n\t\tBuilding building = this.building.get(b - 1);\n\t\tFloor floor = building.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}", "Building building = this.building.get(b - 1);", "building", "this.building.get(b - 1)", "this.building.get", "this.building", "this", "this.building", "b - 1", "b", "1", "Floor floor = building.getFloor(f - 1);", "floor", "building.getFloor(f - 1)", "building.getFloor", "building", "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 Building {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tBuilding(int buildingNo) {\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\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\t}", "Building", "private int num;", "num", "private ArrayList<Floor> floor;", "floor", "Building(int buildingNo) {\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\n\t\t}", "Building", "{\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\n\t\t}", "this.num = buildingNo", "this.num", "this", "this.num", "buildingNo", "floor = new ArrayList<Floor>()", "floor", "new ArrayList<Floor>()", "for (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= FLOOR", "i", "FLOOR", "i++", "i++", "i", "{\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}", "{\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}", "floor.add(new Floor(i))", "floor.add", "floor", "new Floor(i)", "int buildingNo", "buildingNo", "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", "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\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\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 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\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\n\t\t}", "Floor", "{\n\t\t\tthis.num = floorNo;\n\n\t\t\troom = new ArrayList<Room>();\n\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\n\t\t}", "this.num = floorNo", "this.num", "this", "this.num", "floorNo", "room = new ArrayList<Room>()", "room", "new ArrayList<Room>()", "for (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= ROOM", "i", "ROOM", "i++", "i++", "i", "{\n\t\t\t\troom.add(new Room(i));\n\t\t\t}", "{\n\t\t\t\troom.add(new Room(i));\n\t\t\t}", "room.add(new Room(i))", "room.add", "room", "new Room(i)", "int floorNo", "floorNo", "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 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 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) this.ninzu = 0;\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 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) this.ninzu = 0;\n\t\t}", "setNinzu", "{\n\t\t\tthis.ninzu += ninzu;\n\n\t\t\tif (this.ninzu < 0) this.ninzu = 0;\n\t\t}", "this.ninzu += ninzu", "this.ninzu", "this", "this.ninzu", "ninzu", "if (this.ninzu < 0) this.ninzu = 0;", "this.ninzu < 0", "this.ninzu", "this", "this.ninzu", "0", "this.ninzu = 0", "this.ninzu", "this", "this.ninzu", "0", "int ninzu", "ninzu", "public class Main {\n\tprivate ArrayList<Building> building;\n\n\tfinal int BUILDING = 4;\n\tfinal int FLOOR = 3;\n\tfinal int ROOM = 10;\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\t main.disp();\n\t}\n\n\tprivate void init() {\n\t\tthis.building = new ArrayList<Building>();\n\n\t\tfor (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tBuilding building = this.building.get(b - 1);\n\t\tFloor floor = building.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Building {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tBuilding(int buildingNo) {\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\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\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\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\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 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 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) this.ninzu = 0;\n\t\t}\n\t}\n}", "public class Main {\n\tprivate ArrayList<Building> building;\n\n\tfinal int BUILDING = 4;\n\tfinal int FLOOR = 3;\n\tfinal int ROOM = 10;\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\t main.disp();\n\t}\n\n\tprivate void init() {\n\t\tthis.building = new ArrayList<Building>();\n\n\t\tfor (int i = 1; i <= BUILDING; i++) {\n\t\t\tbuilding.add(new Building(i));\n\t\t}\n\t}\n\n\tprivate void disp() {\n\t\tfor (int b = 0; b < this.building.size(); b++) {\n\n\t\t\tBuilding building = this.building.get(b);\n\t\t\tfor (int f = 0; f < building.getFloorCount(); f++) {\n\n\t\t\t\tFloor floor = building.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.building.size() - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void movePeople(int b, int f, int r, int v) {\n\t\tBuilding building = this.building.get(b - 1);\n\t\tFloor floor = building.getFloor(f - 1);\n\t\tRoom room = floor.getRoom(r - 1);\n\n\t\troom.setNinzu(v);\n\t}\n\n\tclass Building {\n\t\tprivate int num;\n\n\t\tprivate ArrayList<Floor> floor;\n\n\t\tBuilding(int buildingNo) {\n\t\t\tthis.num = buildingNo;\n\n\t\t\tfloor = new ArrayList<Floor>();\n\t\t\tfor (int i = 1; i <= FLOOR; i++) {\n\t\t\t\tfloor.add(new Floor(i));\n\t\t\t}\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\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\t\t\tfor (int i = 1; i <= ROOM; i++) {\n\t\t\t\troom.add(new Room(i));\n\t\t\t}\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 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 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) this.ninzu = 0;\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { private ArrayList<Building> building; final int BUILDING = 4; final int FLOOR = 3; final int ROOM = 10; 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 init() { this.building = new ArrayList<Building>(); for (int i = 1; i <= BUILDING; i++) { building.add(new Building(i)); } } private void disp() { for (int b = 0; b < this.building.size(); b++) { Building building = this.building.get(b); for (int f = 0; f < building.getFloorCount(); f++) { Floor floor = building.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.building.size() - 1) { System.out.println("####################"); } } } private void movePeople(int b, int f, int r, int v) { Building building = this.building.get(b - 1); Floor floor = building.getFloor(f - 1); Room room = floor.getRoom(r - 1); room.setNinzu(v); } class Building { private int num; private ArrayList<Floor> floor; Building(int buildingNo) { this.num = buildingNo; floor = new ArrayList<Floor>(); for (int i = 1; i <= FLOOR; i++) { floor.add(new Floor(i)); } } public int getFloorCount() { return this.floor.size(); } public Floor getFloor(int floorNo) { return floor.get(floorNo); } } class Floor { private int num; private ArrayList<Room> room; Floor(int floorNo) { this.num = floorNo; room = new ArrayList<Room>(); for (int i = 1; i <= ROOM; i++) { room.add(new Room(i)); } } public Room getRoom(int roomNo) { return room.get(roomNo); } public int getRoomCount() { return this.room.size(); } } class Room { private int num; private int ninzu; Room(int roomNo) { this.num = roomNo; } 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, 20, 17, 17, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 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, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 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 ], [ 155, 5 ], [ 155, 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 ], [ 8, 26 ], [ 26, 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 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 126, 132 ], [ 106, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 93, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 8, 149 ], [ 149, 150 ], [ 150, 151 ], [ 6, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "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 int data[][][] = new int[4][3][10];\n int n,b,f,r,v;\n\n n = sc.nextInt();\n for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }\n\n for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }\n\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int data[][][] = new int[4][3][10];\n int n,b,f,r,v;\n\n n = sc.nextInt();\n for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }\n\n for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int data[][][] = new int[4][3][10];\n int n,b,f,r,v;\n\n n = sc.nextInt();\n for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }\n\n for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int data[][][] = new int[4][3][10];\n int n,b,f,r,v;\n\n n = sc.nextInt();\n for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }\n\n for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int data[][][] = new int[4][3][10];", "data", "new int[4][3][10]", "4", "3", "10", "int n", "n", "b", "b", "f", "f", "r", "r", "v;", "v", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }", "{\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=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", "data[b-1][f-1][r-1]+=v", "data[b-1][f-1][r-1]", "data[b-1][f-1]", "data[b-1]", "data", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\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 k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }", "{\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }", "for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }", "int k=0;", "int k=0;", "k", "0", "k<3", "k", "3", "k++", "k++", "k", "{\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }", "{\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }", "for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }", "int m=0;", "int m=0;", "m", "0", "m<10", "m", "10", "m++", "m++", "m", "{\n System.out.printf(\" %d\",data[i][k][m]);\n }", "{\n System.out.printf(\" %d\",data[i][k][m]);\n }", "System.out.printf(\" %d\",data[i][k][m])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "data[i][k][m]", "data[i][k]", "data[i]", "data", "i", "k", "m", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "if(i<3) System.out.println(\"####################\");", "i<3", "i", "3", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int data[][][] = new int[4][3][10];\n int n,b,f,r,v;\n\n n = sc.nextInt();\n for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }\n\n for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) System.out.println(\"####################\");\n }\n\n sc.close();\n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int data[][][] = new int[4][3][10];\n int n,b,f,r,v;\n\n n = sc.nextInt();\n for(int i=0; i<n; i++)\n {\n b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt();\n data[b-1][f-1][r-1]+=v;\n }\n\n for(int i=0; i<4; i++)\n {\n for(int k=0; k<3; k++)\n {\n for(int m=0; m<10; m++)\n {\n System.out.printf(\" %d\",data[i][k][m]);\n }\n //System.out.printf(\"%d\\n\",data[i][k][9]);\n System.out.printf(\"\\n\");\n }\n if(i<3) 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 data[][][] = new int[4][3][10]; int n,b,f,r,v; n = sc.nextInt(); for(int i=0; i<n; i++) { b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt(); data[b-1][f-1][r-1]+=v; } for(int i=0; i<4; i++) { for(int k=0; k<3; k++) { for(int m=0; m<10; m++) { System.out.printf(" %d",data[i][k][m]); } //System.out.printf("%d\n",data[i][k][9]); System.out.printf("\n"); } 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, 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, 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, 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, 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, 13, 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, 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 ], [ 192, 11 ], [ 192, 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 ], [ 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 ], [ 14, 100 ], [ 100, 101 ], [ 100, 102 ], [ 14, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 103, 116 ], [ 117, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 118, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 142, 148 ], [ 135, 149 ], [ 149, 150 ], [ 150, 151 ], [ 135, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 161, 167 ], [ 134, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 117, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 174, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 12, 189 ], [ 189, 190 ], [ 0, 191 ], [ 191, 192 ], [ 191, 193 ] ]
[ "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\n\t\tint[][][] buildingInfo = new int [4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i =0; i < n; i++) {\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}\n\n\t\tString blank = \" \";\n\t\tfor (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\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\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tint[][][] buildingInfo = new int [4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i =0; i < n; i++) {\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}\n\n\t\tString blank = \" \";\n\t\tfor (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\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\n\t\tint[][][] buildingInfo = new int [4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i =0; i < n; i++) {\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}\n\n\t\tString blank = \" \";\n\t\tfor (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tint[][][] buildingInfo = new int [4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i =0; i < n; i++) {\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}\n\n\t\tString blank = \" \";\n\t\tfor (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "int[][][] buildingInfo = new int [4][3][10];", "buildingInfo", "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().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 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().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}", "{\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int building = Integer.parseInt(line[0]);", "building", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int floor = Integer.parseInt(line[1]);", "floor", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "int room = Integer.parseInt(line[2]);", "room", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "int v = Integer.parseInt(line[3]);", "v", "Integer.parseInt(line[3])", "Integer.parseInt", "Integer", "line[3]", "line", "3", "buildingInfo[building - 1][floor - 1][room - 1] += v", "buildingInfo[building - 1][floor - 1][room - 1]", "buildingInfo[building - 1][floor - 1]", "buildingInfo[building - 1]", "buildingInfo", "building - 1", "building", "1", "floor - 1", "floor", "1", "room - 1", "room", "1", "v", "String blank = \" \";", "blank", "\" \"", "for (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i< buildingInfo.length", "i", "buildingInfo.length", "buildingInfo", "buildingInfo.length", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[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 < buildingInfo[0].length", "j", "buildingInfo[0].length", "buildingInfo[0]", "buildingInfo", "0", "buildingInfo[0].length", "j++", "j++", "j", "{\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[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 < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < buildingInfo[0][0].length", "k", "buildingInfo[0][0].length", "buildingInfo[0][0]", "buildingInfo[0]", "buildingInfo", "0", "0", "buildingInfo[0][0].length", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}", "System.out.print(blank + buildingInfo[i][j][k])", "System.out.print", "System.out", "System", "System.out", "blank + buildingInfo[i][j][k]", "blank", "buildingInfo[i][j][k]", "buildingInfo[i][j]", "buildingInfo[i]", "buildingInfo", "i", "j", "k", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if (i != buildingInfo.length - 1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "i != buildingInfo.length - 1", "i", "buildingInfo.length - 1", "buildingInfo.length", "buildingInfo", "buildingInfo.length", "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", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tint[][][] buildingInfo = new int [4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i =0; i < n; i++) {\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}\n\n\t\tString blank = \" \";\n\t\tfor (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\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) throws IOException {\n\n\t\tint[][][] buildingInfo = new int [4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i =0; i < n; i++) {\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint building = Integer.parseInt(line[0]);\n\t\t\tint floor = Integer.parseInt(line[1]);\n\t\t\tint room = Integer.parseInt(line[2]);\n\t\t\tint v = Integer.parseInt(line[3]);\n\t\t\tbuildingInfo[building - 1][floor - 1][room - 1] += v;\n\t\t}\n\n\t\tString blank = \" \";\n\t\tfor (int i = 0; i< buildingInfo.length; i++) {\n\t\t\tfor (int j = 0; j < buildingInfo[0].length; j++) {\n\t\t\t\tfor (int k = 0; k < buildingInfo[0][0].length; k++) {\n\t\t\t\t\tSystem.out.print(blank + buildingInfo[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (i != buildingInfo.length - 1) {\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[][][] buildingInfo = 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().split(" "); int building = Integer.parseInt(line[0]); int floor = Integer.parseInt(line[1]); int room = Integer.parseInt(line[2]); int v = Integer.parseInt(line[3]); buildingInfo[building - 1][floor - 1][room - 1] += v; } String blank = " "; for (int i = 0; i< buildingInfo.length; i++) { for (int j = 0; j < buildingInfo[0].length; j++) { for (int k = 0; k < buildingInfo[0][0].length; k++) { System.out.print(blank + buildingInfo[i][j][k]); } System.out.println(""); } if (i != buildingInfo.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, 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, 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, 2, 2, 2, 4, 18, 13, 4, 18, 13, 17, 17, 2, 4, 18, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 0, 18, 18, 13, 2, 13, 17, 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, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 2, 17, 18, 18, 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 ], [ 211, 5 ], [ 211, 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, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 22, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 37, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 54, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 73, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 83, 90 ], [ 82, 91 ], [ 81, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 92, 99 ], [ 73, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 73, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 105, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 114, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 129, 141 ], [ 141, 142 ], [ 142, 143 ], [ 129, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 146, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 145, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 128, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 128, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 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 ], [ 183, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 6, 208 ], [ 208, 209 ], [ 0, 210 ], [ 210, 211 ], [ 210, 212 ] ]
[ "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 count = sc.nextInt();\n\t\tint[][] house = new int[4][30];\n\n\t\tfor(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}\n\n\t\tfor(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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\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 count = sc.nextInt();\n\t\tint[][] house = new int[4][30];\n\n\t\tfor(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}\n\n\t\tfor(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[][] house = new int[4][30];\n\n\t\tfor(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}\n\n\t\tfor(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[][] house = new int[4][30];\n\n\t\tfor(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}\n\n\t\tfor(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "int[][] house = new int[4][30];", "house", "new int[4][30]", "4", "30", "for(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\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[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}", "for(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\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\thouse[i][j] = 0;\n\t\t\t}", "{\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}", "house[i][j] = 0", "house[i][j]", "house[i]", "house", "i", "j", "0", "for(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}", "{\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}", "int houseNum = sc.nextInt();", "houseNum", "sc.nextInt()", "sc.nextInt", "sc", "int roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);", "roomNum", "(Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1)", "(Integer.parseInt(sc.next()) - 1) * 10", "(Integer.parseInt(sc.next()) - 1)", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "1", "10", "(Integer.parseInt(sc.next()) - 1)", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "1", "int member = sc.nextInt();", "member", "sc.nextInt()", "sc.nextInt", "sc", "house[houseNum - 1][roomNum] += member", "house[houseNum - 1][roomNum]", "house[houseNum - 1]", "house", "houseNum - 1", "houseNum", "1", "roomNum", "member", "for(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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 < house.length", "i", "house.length", "house", "house.length", "i++", "i++", "i", "{\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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 < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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 < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\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\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}", "{\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}", "if(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "j != 0 && j % 10 == 0", "j != 0", "j", "0", "j % 10 == 0", "j % 10", "j", "10", "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", "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 != 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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[][] house = new int[4][30];\n\n\t\tfor(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}\n\n\t\tfor(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[][] house = new int[4][30];\n\n\t\tfor(int i = 0;i < house.length; i ++) {\n\t\t\tfor(int j = 0;j < house[i].length; j++){\n\t\t\t\thouse[i][j] = 0;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tint houseNum = sc.nextInt();\n\t\t\tint roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1);\n\t\t\tint member = sc.nextInt();\n\t\t\thouse[houseNum - 1][roomNum] += member;\n\n\t\t}\n\n\t\tfor(int i = 0;i < house.length;i++) {\n\t\t\tfor(int j = 0;j < house[i].length;j++) {\n\t\t\t\tif(j != 0 && j % 10 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + house[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\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\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); int[][] house = new int[4][30]; for(int i = 0;i < house.length; i ++) { for(int j = 0;j < house[i].length; j++){ house[i][j] = 0; } } for(int i = 0;i < count;i++) { int houseNum = sc.nextInt(); int roomNum = (Integer.parseInt(sc.next()) - 1) * 10 + (Integer.parseInt(sc.next()) - 1); int member = sc.nextInt(); house[houseNum - 1][roomNum] += member; } for(int i = 0;i < house.length;i++) { for(int j = 0;j < house[i].length;j++) { if(j != 0 && j % 10 == 0) { System.out.println(); } System.out.print(" " + house[i][j]); } System.out.println(); if(i != 3) { for(int j = 0;j < 20 ;j++) { System.out.print("#"); } System.out.println(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 8, 4, 18, 13, 20, 20, 41, 13, 20, 4, 13, 13, 13, 4, 18, 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, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 41, 13, 41, 13, 41, 13, 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, 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 ], [ 236, 11 ], [ 236, 12 ], [ 12, 13 ], [ 12, 14 ], [ 236, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 236, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 28, 32 ], [ 28, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 25, 41 ], [ 41, 42 ], [ 42, 43 ], [ 236, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 92, 100 ], [ 46, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 46, 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 ], [ 118, 121 ], [ 121, 122 ], [ 118, 123 ], [ 123, 124 ], [ 118, 125 ], [ 125, 126 ], [ 118, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 118, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 118, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 118, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 118, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 155 ], [ 155, 156 ], [ 155, 157 ], [ 148, 158 ], [ 158, 159 ], [ 158, 160 ], [ 147, 161 ], [ 46, 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 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 175, 186 ], [ 187, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 193, 195 ], [ 188, 196 ], [ 196, 197 ], [ 197, 198 ], [ 188, 199 ], [ 200, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 208, 214 ], [ 187, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 174, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 225, 230 ], [ 44, 231 ], [ 231, 232 ], [ 44, 233 ], [ 233, 234 ], [ 0, 235 ], [ 235, 236 ], [ 235, 237 ] ]
[ "import java.io.ByteArrayInputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int flg[][][] = 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\tflg[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tint n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + flg[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 }\n}\n", "import java.io.ByteArrayInputStream;", "ByteArrayInputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int flg[][][] = 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\tflg[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tint n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + flg[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 }\n}", "Main", "String INPUT = \"\";", "INPUT", "\"\"", "public static void main(String[] args) throws Exception {\n new Main().run();\n }", "main", "{\n new Main().run();\n }", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }", "run", "{\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }", "Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));", "sc", "INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()))", "INPUT.isEmpty()", "INPUT.isEmpty", "INPUT", "new Scanner(System.in)", "new Scanner(new ByteArrayInputStream(INPUT.getBytes()))", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "solve(sc, out)", "solve", "sc", "out", "out.flush()", "out.flush", "out", "void solve(Scanner sc, PrintWriter out) {\n int flg[][][] = 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\tflg[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tint n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + flg[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 }", "solve", "{\n int flg[][][] = 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\tflg[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tint n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + flg[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 }", "int flg[][][] = new int[4][3][10];", "flg", "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\tflg[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\tflg[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\tflg[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\tflg[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\tflg[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\tflg[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\tflg[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\tflg[i][j][k] = 0;\n\t\t\t\t}", "{\n\t\t\t\t\tflg[i][j][k] = 0;\n\t\t\t\t}", "flg[i][j][k] = 0", "flg[i][j][k]", "flg[i][j]", "flg[i]", "flg", "i", "j", "k", "0", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[b-1][f-1][r-1] += v;\n\t\t}", "{\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[b-1][f-1][r-1] += v;\n\t\t}", "int b", "b", "f", "f", "r", "r", "v;", "v", "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", "flg[b-1][f-1][r-1] += v", "flg[b-1][f-1][r-1]", "flg[b-1][f-1]", "flg[b-1]", "flg", "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(\" \" + flg[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(\" \" + flg[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(\" \" + flg[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(\" \" + flg[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(\" \" + flg[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(\" \" + flg[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(\" \" + flg[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(\" \" + flg[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + flg[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \" + flg[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + flg[i][j][k]", "\" \"", "flg[i][j][k]", "flg[i][j]", "flg[i]", "flg", "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 sc", "sc", "PrintWriter out", "out", "public class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int flg[][][] = 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\tflg[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tint n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + flg[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 }\n}", "public class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int flg[][][] = 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\tflg[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tint n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n \tint b,f,r,v;\n \tb = sc.nextInt();\n \tf = sc.nextInt();\n \tr = sc.nextInt();\n \tv = sc.nextInt();\n \tflg[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 < 3; j++) {\n\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + flg[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 }\n}", "Main" ]
import java.io.ByteArrayInputStream; import java.io.PrintWriter; import java.util.Scanner; public class Main { String INPUT = ""; public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes())); PrintWriter out = new PrintWriter(System.out); solve(sc, out); out.flush(); } void solve(Scanner sc, PrintWriter out) { int flg[][][] = 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++) { flg[i][j][k] = 0; } } } int n = sc.nextInt(); for (int i = 0; i < n; i++) { int b,f,r,v; b = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); v = sc.nextInt(); flg[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(" " + flg[i][j][k]); } System.out.println(); } if (i != 3) { System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 17, 17, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 18, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 18, 13, 17, 4, 13, 23, 13, 12, 13, 30, 28, 13, 13, 30, 30, 28, 13, 13, 30, 30, 28, 13, 13, 30, 30, 0, 13, 17, 12, 13, 30, 28, 13, 13, 30, 30, 40, 13, 28, 13, 13, 30, 30, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 15 ], [ 15, 16 ], [ 15, 17 ], [ 7, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 20, 35 ], [ 35, 36 ], [ 36, 37 ], [ 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 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 53, 58 ], [ 50, 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 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 50, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 83, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 82, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 103, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 102, 122 ], [ 122, 123 ], [ 122, 124 ], [ 20, 125 ], [ 125, 126 ], [ 18, 127 ], [ 127, 128 ], [ 7, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 132, 135 ], [ 136, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 137, 140 ], [ 141, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 142, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 7, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 153, 156 ], [ 157, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 160, 161 ], [ 160, 162 ], [ 160, 163 ], [ 164, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 165, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 164, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 157, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n\n static int[][][] residence = new int[4][3][10];\n static int m = 0;\n\n public static void main(String[] args) {\n int[] v = new int[4];\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n init();\n sc.nextLine();\n for (int i = 0; i < n; i++) {\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }\n output();\n }\n\n static void init() {\n for (int[][] building : residence) { for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }\n }\n\n static void output() {\n for (int[][] building : residence) {\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }\n }\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n\n static int[][][] residence = new int[4][3][10];\n static int m = 0;\n\n public static void main(String[] args) {\n int[] v = new int[4];\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n init();\n sc.nextLine();\n for (int i = 0; i < n; i++) {\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }\n output();\n }\n\n static void init() {\n for (int[][] building : residence) { for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }\n }\n\n static void output() {\n for (int[][] building : residence) {\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }\n }\n\n}", "Main", "static int[][][] residence = new int[4][3][10];", "residence", "new int[4][3][10]", "4", "3", "10", "static int m = 0;", "m", "0", "public static void main(String[] args) {\n int[] v = new int[4];\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n init();\n sc.nextLine();\n for (int i = 0; i < n; i++) {\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }\n output();\n }", "main", "{\n int[] v = new int[4];\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n init();\n sc.nextLine();\n for (int i = 0; i < n; i++) {\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }\n output();\n }", "int[] v = new int[4];", "v", "new int[4]", "4", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "init()", "init", "sc.nextLine()", "sc.nextLine", "sc", "for (int i = 0; i < n; i++) {\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }", "{\n // line???????????§split???????????¨?±??????¨????????°?????±?????´??°????????????\n String[] s = sc.nextLine().split(\" \");\n for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }\n residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3];\n }", "String[] s = sc.nextLine().split(\" \");", "s", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "for (int j = 0; j < 4; j++) {\n v[j] = Integer.parseInt(s[j]);\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n v[j] = Integer.parseInt(s[j]);\n }", "{\n v[j] = Integer.parseInt(s[j]);\n }", "v[j] = Integer.parseInt(s[j])", "v[j]", "v", "j", "Integer.parseInt(s[j])", "Integer.parseInt", "Integer", "s[j]", "s", "j", "residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3]", "residence[v[0] - 1][v[1] - 1][v[2] - 1]", "residence[v[0] - 1][v[1] - 1]", "residence[v[0] - 1]", "residence", "v[0] - 1", "v[0]", "v", "0", "1", "v[1] - 1", "v[1]", "v", "1", "1", "v[2] - 1", "v[2]", "v", "2", "1", "residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3]", "residence[v[0] - 1][v[1] - 1][v[2] - 1]", "residence[v[0] - 1][v[1] - 1]", "residence[v[0] - 1]", "residence", "v[0] - 1", "v[0]", "v", "0", "1", "v[1] - 1", "v[1]", "v", "1", "1", "v[2] - 1", "v[2]", "v", "2", "1", "v[3]", "v", "3", "output()", "output", "String[] args", "args", "static void init() {\n for (int[][] building : residence) { for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }\n }", "init", "{\n for (int[][] building : residence) { for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }\n }", "for (int[][] building : residence) { for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }", "int[][] building", "residence", "{ for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }", "{ for (int[] floor : building) {\n for (int room : floor) { room = 0; } } }", "for (int[] floor : building) {\n for (int room : floor) { room = 0; } }", "int[] floor", "building", "{\n for (int room : floor) { room = 0; } }", "{\n for (int room : floor) { room = 0; } }", "for (int room : floor) { room = 0; }", "int room", "floor", "{ room = 0; }", "{ room = 0; }", "room = 0", "room", "0", "static void output() {\n for (int[][] building : residence) {\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }\n }", "output", "{\n for (int[][] building : residence) {\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }\n }", "for (int[][] building : residence) {\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }", "int[][] building", "residence", "{\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }", "{\n m++;\n for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }\n if (m != 4) System.out.println(\"####################\");\n }", "m++", "m", "for (int[] floor : building) { for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }", "int[] floor", "building", "{ for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }", "{ for (int room : floor) { System.out.print(\" \" + room); }\n System.out.println(); }", "for (int room : floor) { System.out.print(\" \" + room); }", "int room", "floor", "{ System.out.print(\" \" + room); }", "{ System.out.print(\" \" + room); }", "System.out.print(\" \" + room)", "System.out.print", "System.out", "System", "System.out", "\" \" + room", "\" \"", "room", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (m != 4) System.out.println(\"####################\");", "m != 4", "m", "4", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"" ]
import java.util.*; import java.io.*; class Main { static int[][][] residence = new int[4][3][10]; static int m = 0; public static void main(String[] args) { int[] v = new int[4]; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); init(); sc.nextLine(); for (int i = 0; i < n; i++) { // line???????????§split???????????¨?±??????¨????????°?????±?????´??°???????????? String[] s = sc.nextLine().split(" "); for (int j = 0; j < 4; j++) { v[j] = Integer.parseInt(s[j]); } residence[v[0] - 1][v[1] - 1][v[2] - 1] = residence[v[0] - 1][v[1] - 1][v[2] - 1] + v[3]; } output(); } static void init() { for (int[][] building : residence) { for (int[] floor : building) { for (int room : floor) { room = 0; } } } } static void output() { for (int[][] building : residence) { m++; for (int[] floor : building) { for (int room : floor) { System.out.print(" " + room); } System.out.println(); } if (m != 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, 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, 35, 13, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 13, 3, 34, 17, 1, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 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, 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 ], [ 379, 5 ], [ 379, 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 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 58, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 65, 71 ], [ 57, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 72, 78 ], [ 57, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 8, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 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 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 103, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 103, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 103, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 136, 138 ], [ 129, 139 ], [ 128, 140 ], [ 124, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 151, 152 ], [ 151, 153 ], [ 144, 154 ], [ 143, 155 ], [ 124, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 160, 166 ], [ 166, 167 ], [ 166, 168 ], [ 159, 169 ], [ 158, 170 ], [ 124, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 178, 180 ], [ 175, 181 ], [ 181, 182 ], [ 181, 183 ], [ 174, 184 ], [ 173, 185 ], [ 8, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 191, 192 ], [ 191, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 186, 197 ], [ 198, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 204, 205 ], [ 204, 206 ], [ 199, 207 ], [ 207, 208 ], [ 208, 209 ], [ 199, 210 ], [ 211, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 212, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 198, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 8, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 8, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 235, 240 ], [ 240, 241 ], [ 240, 242 ], [ 235, 243 ], [ 243, 244 ], [ 244, 245 ], [ 235, 246 ], [ 247, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 248, 253 ], [ 253, 254 ], [ 253, 255 ], [ 248, 256 ], [ 256, 257 ], [ 257, 258 ], [ 248, 259 ], [ 260, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 261, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 247, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 8, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 278, 283 ], [ 8, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 284, 289 ], [ 289, 290 ], [ 289, 291 ], [ 284, 292 ], [ 292, 293 ], [ 293, 294 ], [ 284, 295 ], [ 296, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 297, 302 ], [ 302, 303 ], [ 302, 304 ], [ 297, 305 ], [ 305, 306 ], [ 306, 307 ], [ 297, 308 ], [ 309, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 310, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 317, 321 ], [ 296, 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 ], [ 345, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 373, 375 ], [ 6, 376 ], [ 376, 377 ], [ 0, 378 ], [ 378, 379 ], [ 378, 380 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint ma[][]=new int[3][10];\n\t\tint mb[][]=new int[3][10];\n\t\tint mc[][]=new int[3][10];\n\t\tint md[][]=new int[3][10];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}\n\t\tint n=sc.nextInt();\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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(\" \"+ma[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(\" \"+mb[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(\" \"+mc[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(\" \"+md[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint ma[][]=new int[3][10];\n\t\tint mb[][]=new int[3][10];\n\t\tint mc[][]=new int[3][10];\n\t\tint md[][]=new int[3][10];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}\n\t\tint n=sc.nextInt();\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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(\" \"+ma[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(\" \"+mb[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(\" \"+mc[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(\" \"+md[i][j]);\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 sc= new Scanner(System.in);\n\t\tint ma[][]=new int[3][10];\n\t\tint mb[][]=new int[3][10];\n\t\tint mc[][]=new int[3][10];\n\t\tint md[][]=new int[3][10];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}\n\t\tint n=sc.nextInt();\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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(\" \"+ma[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(\" \"+mb[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(\" \"+mc[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(\" \"+md[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint ma[][]=new int[3][10];\n\t\tint mb[][]=new int[3][10];\n\t\tint mc[][]=new int[3][10];\n\t\tint md[][]=new int[3][10];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}\n\t\tint n=sc.nextInt();\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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(\" \"+ma[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(\" \"+mb[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(\" \"+mc[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(\" \"+md[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "int ma[][]=new int[3][10];", "ma", "new int[3][10]", "3", "10", "int mb[][]=new int[3][10];", "mb", "new int[3][10]", "3", "10", "int mc[][]=new int[3][10];", "mc", "new int[3][10]", "3", "10", "int md[][]=new int[3][10];", "md", "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\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[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\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}", "for(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[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\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}", "{\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}", "ma[i][j]=0", "ma[i][j]", "ma[i]", "ma", "i", "j", "0", "mb[i][j]=0", "mb[i][j]", "mb[i]", "mb", "i", "j", "0", "mc[i][j]=0", "mc[i][j]", "mc[i]", "mc", "i", "j", "0", "md[i][j]=0", "md[i][j]", "md[i]", "md", "i", "j", "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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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=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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\t}\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\t}\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\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\t}", "b", "case 1:", "1", "case 1:", "ma[f-1][r-1]+=v", "ma[f-1][r-1]", "ma[f-1]", "ma", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "case 2:", "2", "case 2:", "mb[f-1][r-1]+=v", "mb[f-1][r-1]", "mb[f-1]", "mb", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "case 3:", "3", "case 3:", "mc[f-1][r-1]+=v", "mc[f-1][r-1]", "mc[f-1]", "mc", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "case 4:", "4", "case 4:", "md[f-1][r-1]+=v", "md[f-1][r-1]", "md[f-1]", "md", "f-1", "f", "1", "r-1", "r", "1", "v", "break;", "for(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+ma[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(\" \"+ma[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(\" \"+ma[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(\" \"+ma[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(\" \"+ma[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+ma[i][j]);\n\t\t\t}", "System.out.print(\" \"+ma[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+ma[i][j]", "\" \"", "ma[i][j]", "ma[i]", "ma", "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(\" \"+mb[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(\" \"+mb[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(\" \"+mb[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(\" \"+mb[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(\" \"+mb[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+mb[i][j]);\n\t\t\t}", "System.out.print(\" \"+mb[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+mb[i][j]", "\" \"", "mb[i][j]", "mb[i]", "mb", "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(\" \"+mc[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(\" \"+mc[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(\" \"+mc[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(\" \"+mc[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(\" \"+mc[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+mc[i][j]);\n\t\t\t}", "System.out.print(\" \"+mc[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+mc[i][j]", "\" \"", "mc[i][j]", "mc[i]", "mc", "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(\" \"+md[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(\" \"+md[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(\" \"+md[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(\" \"+md[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(\" \"+md[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+md[i][j]);\n\t\t\t}", "System.out.print(\" \"+md[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+md[i][j]", "\" \"", "md[i][j]", "md[i]", "md", "i", "j", "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 ma[][]=new int[3][10];\n\t\tint mb[][]=new int[3][10];\n\t\tint mc[][]=new int[3][10];\n\t\tint md[][]=new int[3][10];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}\n\t\tint n=sc.nextInt();\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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(\" \"+ma[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(\" \"+mb[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(\" \"+mc[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(\" \"+md[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[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint ma[][]=new int[3][10];\n\t\tint mb[][]=new int[3][10];\n\t\tint mc[][]=new int[3][10];\n\t\tint md[][]=new int[3][10];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tma[i][j]=0;\n\t\t\t\tmb[i][j]=0;\n\t\t\t\tmc[i][j]=0;\n\t\t\t\tmd[i][j]=0;\n\t\t\t}\n\t\t}\n\t\tint n=sc.nextInt();\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\tswitch(b){\n\t\t\tcase 1:\n\t\t\t\tma[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmb[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmc[f-1][r-1]+=v;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmd[f-1][r-1]+=v;\n\t\t\t\tbreak;\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(\" \"+ma[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(\" \"+mb[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(\" \"+mc[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(\" \"+md[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 ma[][]=new int[3][10]; int mb[][]=new int[3][10]; int mc[][]=new int[3][10]; int md[][]=new int[3][10]; for(int i=0;i<3;i++){ for(int j=0;j<10;j++){ ma[i][j]=0; mb[i][j]=0; mc[i][j]=0; md[i][j]=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(); switch(b){ case 1: ma[f-1][r-1]+=v; break; case 2: mb[f-1][r-1]+=v; break; case 3: mc[f-1][r-1]+=v; break; case 4: md[f-1][r-1]+=v; break; } } for(int i=0;i<3;i++){ for(int j=0;j<10;j++){ System.out.print(" "+ma[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(" "+mb[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(" "+mc[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(" "+md[i][j]); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 13, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 18, 13, 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, 0, 18, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 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, 4, 18, 18, 13, 13, 17, 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, 17, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 252, 5 ], [ 252, 6 ], [ 6, 7 ], [ 6, 8 ], [ 252, 9 ], [ 9, 10 ], [ 9, 11 ], [ 252, 12 ], [ 12, 13 ], [ 12, 14 ], [ 252, 15 ], [ 15, 16 ], [ 15, 17 ], [ 252, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 252, 23 ], [ 23, 24 ], [ 23, 25 ], [ 252, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 72, 78 ], [ 71, 79 ], [ 31, 80 ], [ 80, 81 ], [ 31, 82 ], [ 82, 83 ], [ 31, 84 ], [ 84, 85 ], [ 31, 86 ], [ 86, 87 ], [ 31, 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 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 129, 131 ], [ 122, 132 ], [ 132, 133 ], [ 132, 134 ], [ 121, 135 ], [ 31, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 136, 146 ], [ 146, 147 ], [ 147, 148 ], [ 136, 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 ], [ 199, 200 ], [ 199, 201 ], [ 197, 202 ], [ 31, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 203, 208 ], [ 208, 209 ], [ 208, 210 ], [ 203, 211 ], [ 211, 212 ], [ 212, 213 ], [ 203, 214 ], [ 215, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 216, 221 ], [ 221, 222 ], [ 221, 223 ], [ 216, 224 ], [ 224, 225 ], [ 225, 226 ], [ 216, 227 ], [ 228, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 236, 242 ], [ 215, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 243, 248 ], [ 29, 249 ], [ 249, 250 ], [ 0, 251 ], [ 251, 252 ], [ 251, 253 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tprivate static final int MAX_B=4;\n\tprivate static final int MAX_F=3;\n\tprivate static final int MAX_R=10;\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int[][][] room=new int[MAX_B][MAX_F][MAX_R];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tint b,f,r,v;\n\t\tfor(int i=0;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\troom[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}\n\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\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\tprivate static final int MAX_B=4;\n\tprivate static final int MAX_F=3;\n\tprivate static final int MAX_R=10;\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int[][][] room=new int[MAX_B][MAX_F][MAX_R];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tint b,f,r,v;\n\t\tfor(int i=0;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\troom[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}\n\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "private static final int MAX_B=4;", "MAX_B", "4", "private static final int MAX_F=3;", "MAX_F", "3", "private static final int MAX_R=10;", "MAX_R", "10", "private static Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "private static int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "private static int[][][] room=new int[MAX_B][MAX_F][MAX_R];", "room", "new int[MAX_B][MAX_F][MAX_R]", "MAX_B", "MAX_F", "MAX_R", "public static void main(String[] args){\n\t\tfor(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tint b,f,r,v;\n\t\tfor(int i=0;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\troom[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}\n\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\tfor(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tint b,f,r,v;\n\t\tfor(int i=0;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\troom[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}\n\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "for(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_B", "i", "MAX_B", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_F", "j", "MAX_F", "j++", "j++", "j", "{\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_R;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<MAX_R;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<MAX_R", "k", "MAX_R", "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 b", "b", "f", "f", "r", "r", "v;", "v", "for(int i=0;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\troom[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=sc.nextInt();\n\t\t\tf=sc.nextInt();\n\t\t\tr=sc.nextInt();\n\t\t\tv=sc.nextInt();\n\t\t\troom[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\troom[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", "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<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<MAX_B-1", "i", "MAX_B-1", "MAX_B", "1", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}", "{\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}", "for(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_F", "j", "MAX_F", "j++", "j++", "j", "{\n\t\t\t\tfor(int k=0;k<MAX_R;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<MAX_R;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<MAX_R;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<MAX_R", "k", "MAX_R", "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", "\"\"", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "for(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int j=0;", "int j=0;", "j", "0", "j<MAX_F", "j", "MAX_F", "j++", "j++", "j", "{\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "for(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<MAX_R", "k", "MAX_R", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}", "System.out.print(\" \"+room[3][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \"+room[3][j][k]", "\" \"", "room[3][j][k]", "room[3][j]", "room[3]", "room", "3", "j", "k", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\tprivate static final int MAX_B=4;\n\tprivate static final int MAX_F=3;\n\tprivate static final int MAX_R=10;\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int[][][] room=new int[MAX_B][MAX_F][MAX_R];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tint b,f,r,v;\n\t\tfor(int i=0;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\troom[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}\n\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\tprivate static final int MAX_B=4;\n\tprivate static final int MAX_F=3;\n\tprivate static final int MAX_R=10;\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int[][][] room=new int[MAX_B][MAX_F][MAX_R];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<MAX_B;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tint b,f,r,v;\n\t\tfor(int i=0;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\troom[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<MAX_B-1;i++){\n\t\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\t\tfor(int k=0;k<MAX_R;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\tSystem.out.println(\"####################\");\n\t\t}\n\t\tfor(int j=0;j<MAX_F;j++){\n\t\t\tfor(int k=0;k<MAX_R;k++){\n\t\t\t\tSystem.out.print(\" \"+room[3][j][k]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { private static final int MAX_B=4; private static final int MAX_F=3; private static final int MAX_R=10; private static Scanner sc=new Scanner(System.in); private static int n=sc.nextInt(); private static int[][][] room=new int[MAX_B][MAX_F][MAX_R]; public static void main(String[] args){ for(int i=0;i<MAX_B;i++){ for(int j=0;j<MAX_F;j++){ for(int k=0;k<MAX_R;k++){ room[i][j][k]=0; } } } int b,f,r,v; 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<MAX_B-1;i++){ for(int j=0;j<MAX_F;j++){ for(int k=0;k<MAX_R;k++){ System.out.print(" "+room[i][j][k]); } System.out.println(""); } System.out.println("####################"); } for(int j=0;j<MAX_F;j++){ for(int k=0;k<MAX_R;k++){ System.out.print(" "+room[3][j][k]); } 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, 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, 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, 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, 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 ], [ 245, 5 ], [ 245, 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 ], [ 38, 39 ], [ 38, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 46, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 63, 77 ], [ 77, 78 ], [ 78, 79 ], [ 63, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 82, 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 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 103, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 103, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 103, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 132, 133 ], [ 132, 134 ], [ 125, 135 ], [ 135, 136 ], [ 135, 137 ], [ 124, 138 ], [ 8, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 139, 149 ], [ 149, 150 ], [ 150, 151 ], [ 139, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 154, 166 ], [ 166, 167 ], [ 167, 168 ], [ 154, 169 ], [ 170, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 178, 184 ], [ 171, 185 ], [ 185, 186 ], [ 186, 187 ], [ 171, 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 ], [ 170, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 153, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 209, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 218, 223 ], [ 223, 224 ], [ 223, 225 ], [ 218, 226 ], [ 226, 227 ], [ 227, 228 ], [ 218, 229 ], [ 230, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 217, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 6, 242 ], [ 242, 243 ], [ 0, 244 ], [ 244, 245 ], [ 244, 246 ] ]
[ "import java.util.Scanner;\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[][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }\n\n for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\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[][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }\n\n for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\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[][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }\n\n for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int[][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }\n\n for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\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[][][] room = new int[4][3][10];", "room", "new int[4][3][10]", "4", "3", "10", "int b", "b", "f", "f", "r", "r", "v;", "v", "for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < room.length", "i", "room.length", "room", "room.length", "i++", "i++", "i", "{\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }", "{\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }", "for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < room[0].length", "j", "room[0].length", "room[0]", "room", "0", "room[0].length", "j++", "j++", "j", "{\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }", "{\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }", "for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }", "int k = 0;", "int k = 0;", "k", "0", "k < room[0][0].length", "k", "room[0][0].length", "room[0][0]", "room[0]", "room", "0", "0", "room[0][0].length", "k++", "k++", "k", "{\n room[i][j][k] = 0;\n }", "{\n room[i][j][k] = 0;\n }", "room[i][j][k] = 0", "room[i][j][k]", "room[i][j]", "room[i]", "room", "i", "j", "k", "0", "for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }", "{\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }", "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", "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 for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < room.length", "i", "room.length", "room", "room.length", "i++", "i++", "i", "{\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }", "{\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }", "for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < room[0].length", "j", "room[0].length", "room[0]", "room", "0", "room[0].length", "j++", "j++", "j", "{\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }", "{\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }", "for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < room[0][0].length", "k", "room[0][0].length", "room[0][0]", "room[0]", "room", "0", "0", "room[0][0].length", "k++", "k++", "k", "{\n System.out.print(\" \" + room[i][j][k]);\n }", "{\n System.out.print(\" \" + room[i][j][k]);\n }", "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 < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }", "i < room.length -1", "i", "room.length -1", "room.length", "room", "room.length", "1", "{\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }", "for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }", "int a = 0;", "int a = 0;", "a", "0", "a < 20", "a", "20", "a ++", "a ++", "a", "{\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[][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }\n\n for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\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[][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n room[i][j][k] = 0;\n }\n }\n }\n\n for (int i = 0; i < n; i++) {\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n\n room[b -1][f -1][r -1] += v;\n }\n\n for (int i = 0; i < room.length; i++) {\n for (int j = 0; j < room[0].length; j++) {\n for (int k = 0; k < room[0][0].length; k++) {\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if (i < room.length -1) {\n for (int a = 0; a < 20; a ++) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\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[][][] room = new int[4][3][10]; int b,f,r,v; for (int i = 0; i < room.length; i++) { for (int j = 0; j < room[0].length; j++) { for (int k = 0; k < room[0][0].length; k++) { room[i][j][k] = 0; } } } for (int i = 0; i < n; i++) { b = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); v = scan.nextInt(); room[b -1][f -1][r -1] += v; } for (int i = 0; i < room.length; i++) { for (int j = 0; j < room[0].length; j++) { for (int k = 0; k < room[0][0].length; k++) { System.out.print(" " + room[i][j][k]); } System.out.println(); } if (i < room.length -1) { for (int a = 0; a < 20; a ++) { System.out.print("#"); } System.out.println(); } } } }
[ 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, 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, 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, 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, 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 ], [ 211, 5 ], [ 211, 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 ], [ 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 ], [ 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 ], [ 83, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 120, 128 ], [ 119, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 130, 138 ], [ 8, 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 ], [ 165, 173 ], [ 173, 174 ], [ 174, 175 ], [ 165, 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 ], [ 164, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 151, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 197, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 6, 208 ], [ 208, 209 ], [ 0, 210 ], [ 210, 211 ], [ 210, 212 ] ]
[ "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[][][] BigHouse=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\tBigHouse[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint order=sc.nextInt();\n\t\tfor(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}\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(\" \"+BigHouse[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\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[][][] BigHouse=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\tBigHouse[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint order=sc.nextInt();\n\t\tfor(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}\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(\" \"+BigHouse[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\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint[][][] BigHouse=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\tBigHouse[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint order=sc.nextInt();\n\t\tfor(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}\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(\" \"+BigHouse[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[][][] BigHouse=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\tBigHouse[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint order=sc.nextInt();\n\t\tfor(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}\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(\" \"+BigHouse[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[][][] BigHouse=new int[4][3][10];", "BigHouse", "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\tBigHouse[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\tBigHouse[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\tBigHouse[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\tBigHouse[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\tBigHouse[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\tBigHouse[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\tBigHouse[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\tBigHouse[i][j][k]=0;\n\t\t\t\t}", "{\n\t\t\t\t\tBigHouse[i][j][k]=0;\n\t\t\t\t}", "BigHouse[i][j][k]=0", "BigHouse[i][j][k]", "BigHouse[i][j]", "BigHouse[i]", "BigHouse", "i", "j", "k", "0", "int order=sc.nextInt();", "order", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<order", "i", "order", "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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\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", "int v=sc.nextInt();", "v", "sc.nextInt()", "sc.nextInt", "sc", "BigHouse[b][f][r]+=v", "BigHouse[b][f][r]", "BigHouse[b][f]", "BigHouse[b]", "BigHouse", "b", "f", "r", "v", "if(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}", "BigHouse[b][f][r]<0", "BigHouse[b][f][r]", "BigHouse[b][f]", "BigHouse[b]", "BigHouse", "b", "f", "r", "0", "{\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}", "BigHouse[b][f][r]=0", "BigHouse[b][f][r]", "BigHouse[b][f]", "BigHouse[b]", "BigHouse", "b", "f", "r", "0", "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(\" \"+BigHouse[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(\" \"+BigHouse[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(\" \"+BigHouse[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(\" \"+BigHouse[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(\" \"+BigHouse[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(\" \"+BigHouse[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(\" \"+BigHouse[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(\" \"+BigHouse[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \"+BigHouse[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \"+BigHouse[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \"+BigHouse[i][j][k]", "\" \"", "BigHouse[i][j][k]", "BigHouse[i][j]", "BigHouse[i]", "BigHouse", "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[][][] BigHouse=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\tBigHouse[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint order=sc.nextInt();\n\t\tfor(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}\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(\" \"+BigHouse[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\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint[][][] BigHouse=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\tBigHouse[i][j][k]=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint order=sc.nextInt();\n\t\tfor(int i=0;i<order;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\tint v=sc.nextInt();\n\t\t\tBigHouse[b][f][r]+=v;\n\t\t\tif(BigHouse[b][f][r]<0){\n\t\t\t\tBigHouse[b][f][r]=0;\n\t\t\t}\n\t\t}\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(\" \"+BigHouse[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\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int[][][] BigHouse=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++){ BigHouse[i][j][k]=0; } } } int order=sc.nextInt(); for(int i=0;i<order;i++){ int b=sc.nextInt()-1; int f=sc.nextInt()-1; int r=sc.nextInt()-1; int v=sc.nextInt(); BigHouse[b][f][r]+=v; if(BigHouse[b][f][r]<0){ BigHouse[b][f][r]=0; } } //出力 for(int i=0;i<4;i++){ for(int j=0;j<3;j++){ for(int k=0;k<10;k++){ System.out.print(" "+BigHouse[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, 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\tpublic static void main(String[] args){\n\t\tScanner S = new Scanner(System.in);\n\t\t\n\t\tint N = S.nextInt();\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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}\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner S = new Scanner(System.in);\n\t\t\n\t\tint N = S.nextInt();\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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}\t\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner S = new Scanner(System.in);\n\t\t\n\t\tint N = S.nextInt();\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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}\t\n\t}", "main", "{\n\t\tScanner S = new Scanner(System.in);\n\t\t\n\t\tint N = S.nextInt();\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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}\t\n\t}", "Scanner S = new Scanner(System.in);", "S", "new Scanner(System.in)", "int N = S.nextInt();", "N", "S.nextInt()", "S.nextInt", "S", "int[][][] room = new int[4][3][10];", "room", "new int[4][3][10]", "4", "3", "10", "for(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[b - 1][f - 1][r - 1] += v;\n\t\t}", "{\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[b - 1][f - 1][r - 1] += v;\n\t\t}", "int b = S.nextInt();", "b", "S.nextInt()", "S.nextInt", "S", "int f = S.nextInt();", "f", "S.nextInt()", "S.nextInt", "S", "int r = S.nextInt();", "r", "S.nextInt()", "S.nextInt", "S", "int v = S.nextInt();", "v", "S.nextInt()", "S.nextInt", "S", "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 < 4;i++){\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\tfor(int s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\n\t\t\t\t}", "int s = 0;", "int s = 0;", "s", "0", "s < 10", "s", "10", "s++", "s++", "s", "{\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\n\t\t\t\t}", "System.out.print(\" \"+room[i][j][s])", "System.out.print", "System.out", "System", "System.out", "\" \"+room[i][j][s]", "\" \"", "room[i][j][s]", "room[i][j]", "room[i]", "room", "i", "j", "s", "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\tpublic static void main(String[] args){\n\t\tScanner S = new Scanner(System.in);\n\t\t\n\t\tint N = S.nextInt();\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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}\t\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner S = new Scanner(System.in);\n\t\t\n\t\tint N = S.nextInt();\n\t\tint[][][] room = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0;i< N;i++){\n\t\t\tint b = S.nextInt();\n\t\t\tint f = S.nextInt();\n\t\t\tint r = S.nextInt();\n\t\t\tint v = S.nextInt();\n\t\t\t\n\t\t\troom[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 s = 0;s < 10;s++){\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][s]);\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}\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner S = new Scanner(System.in); int N = S.nextInt(); int[][][] room = new int[4][3][10]; for(int i = 0;i< N;i++){ int b = S.nextInt(); int f = S.nextInt(); int r = S.nextInt(); int v = S.nextInt(); room[b - 1][f - 1][r - 1] += v; } for(int i = 0;i < 4;i++){ for(int j = 0;j < 3;j++){ for(int s = 0;s < 10;s++){ System.out.print(" "+room[i][j][s]); } 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, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 13, 13, 4, 13, 13, 4, 13, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 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, 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, 4, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 23, 13, 12, 13, 30, 4, 18, 13, 2, 2, 2, 2, 13, 17, 17, 13, 17, 2, 4, 18, 13, 2, 2, 2, 2, 13, 17, 17, 13, 17, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 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 ], [ 358, 11 ], [ 358, 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 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 14, 43 ], [ 43, 44 ], [ 43, 45 ], [ 14, 46 ], [ 46, 47 ], [ 46, 48 ], [ 14, 49 ], [ 49, 50 ], [ 49, 51 ], [ 14, 52 ], [ 52, 53 ], [ 52, 54 ], [ 14, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 69, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 69, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 95, 98 ], [ 95, 99 ], [ 95, 100 ], [ 94, 101 ], [ 90, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 105, 108 ], [ 105, 109 ], [ 105, 110 ], [ 104, 111 ], [ 90, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 115, 118 ], [ 115, 119 ], [ 115, 120 ], [ 114, 121 ], [ 90, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 125, 128 ], [ 125, 129 ], [ 125, 130 ], [ 124, 131 ], [ 14, 132 ], [ 132, 133 ], [ 132, 134 ], [ 14, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 14, 141 ], [ 141, 142 ], [ 141, 143 ], [ 14, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 14, 150 ], [ 150, 151 ], [ 150, 152 ], [ 14, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 14, 159 ], [ 159, 160 ], [ 159, 161 ], [ 12, 162 ], [ 162, 163 ], [ 358, 164 ], [ 164, 165 ], [ 164, 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 ], [ 180, 183 ], [ 164, 184 ], [ 184, 185 ], [ 358, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 193, 199 ], [ 192, 200 ], [ 189, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 202, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 206, 212 ], [ 205, 213 ], [ 201, 214 ], [ 186, 215 ], [ 215, 216 ], [ 186, 217 ], [ 217, 218 ], [ 186, 219 ], [ 219, 220 ], [ 186, 221 ], [ 221, 222 ], [ 358, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 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 ], [ 243, 245 ], [ 242, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 252, 253 ], [ 251, 254 ], [ 242, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 259, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 268, 273 ], [ 259, 274 ], [ 274, 275 ], [ 274, 276 ], [ 255, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 278, 282 ], [ 282, 283 ], [ 282, 284 ], [ 277, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 291, 292 ], [ 290, 293 ], [ 277, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 301, 303 ], [ 303, 304 ], [ 304, 305 ], [ 303, 306 ], [ 298, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 307, 312 ], [ 298, 313 ], [ 313, 314 ], [ 313, 315 ], [ 294, 316 ], [ 316, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 317, 321 ], [ 321, 322 ], [ 321, 323 ], [ 316, 324 ], [ 324, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 330, 331 ], [ 329, 332 ], [ 316, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 343, 344 ], [ 342, 345 ], [ 337, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 346, 351 ], [ 337, 352 ], [ 352, 353 ], [ 352, 354 ], [ 223, 355 ], [ 355, 356 ], [ 0, 357 ], [ 357, 358 ], [ 357, 359 ] ]
[ "import java.io.*;\nimport java.util.Scanner;\nimport java.util.ArrayList;\n\n\npublic class Main {\n public static void main(String[] args)throws Exception{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int b;\n int f;\n int r;\n int v;\n ArrayList<Integer> building1 = new ArrayList<Integer>();\n ArrayList<Integer> building2 = new ArrayList<Integer>();\n ArrayList<Integer> building3 = new ArrayList<Integer>();\n ArrayList<Integer> building4 = new ArrayList<Integer>();\n clear(building1);\n clear(building2);\n clear(building3);\n clear(building4);\n for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }\n //出力\n dp(building1);\n System.out.println(\"####################\");\n dp(building2);\n System.out.println(\"####################\");\n dp(building3);\n System.out.println(\"####################\");\n dp(building4);\n }\n\n public static void clear(ArrayList<Integer> building){\n for(int i = 0;i <= 29;i++){\n building.add(0);\n } \n }\n \n //部屋の人数の処理\n public static void vary(ArrayList<Integer> building,int floor,int room,int number){\n building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number);\n }\n \n //出力\n public static void dp(ArrayList<Integer> building){\n String st = \"\";\n for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n public static void main(String[] args)throws Exception{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int b;\n int f;\n int r;\n int v;\n ArrayList<Integer> building1 = new ArrayList<Integer>();\n ArrayList<Integer> building2 = new ArrayList<Integer>();\n ArrayList<Integer> building3 = new ArrayList<Integer>();\n ArrayList<Integer> building4 = new ArrayList<Integer>();\n clear(building1);\n clear(building2);\n clear(building3);\n clear(building4);\n for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }\n //出力\n dp(building1);\n System.out.println(\"####################\");\n dp(building2);\n System.out.println(\"####################\");\n dp(building3);\n System.out.println(\"####################\");\n dp(building4);\n }\n\n public static void clear(ArrayList<Integer> building){\n for(int i = 0;i <= 29;i++){\n building.add(0);\n } \n }\n \n //部屋の人数の処理\n public static void vary(ArrayList<Integer> building,int floor,int room,int number){\n building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number);\n }\n \n //出力\n public static void dp(ArrayList<Integer> building){\n String st = \"\";\n for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }\n }\n}", "Main", "public static void main(String[] args)throws Exception{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int b;\n int f;\n int r;\n int v;\n ArrayList<Integer> building1 = new ArrayList<Integer>();\n ArrayList<Integer> building2 = new ArrayList<Integer>();\n ArrayList<Integer> building3 = new ArrayList<Integer>();\n ArrayList<Integer> building4 = new ArrayList<Integer>();\n clear(building1);\n clear(building2);\n clear(building3);\n clear(building4);\n for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }\n //出力\n dp(building1);\n System.out.println(\"####################\");\n dp(building2);\n System.out.println(\"####################\");\n dp(building3);\n System.out.println(\"####################\");\n dp(building4);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int b;\n int f;\n int r;\n int v;\n ArrayList<Integer> building1 = new ArrayList<Integer>();\n ArrayList<Integer> building2 = new ArrayList<Integer>();\n ArrayList<Integer> building3 = new ArrayList<Integer>();\n ArrayList<Integer> building4 = new ArrayList<Integer>();\n clear(building1);\n clear(building2);\n clear(building3);\n clear(building4);\n for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }\n //出力\n dp(building1);\n System.out.println(\"####################\");\n dp(building2);\n System.out.println(\"####################\");\n dp(building3);\n System.out.println(\"####################\");\n dp(building4);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int b;", "b", "int f;", "f", "int r;", "r", "int v;", "v", "ArrayList<Integer> building1 = new ArrayList<Integer>();", "building1", "new ArrayList<Integer>()", "ArrayList<Integer> building2 = new ArrayList<Integer>();", "building2", "new ArrayList<Integer>()", "ArrayList<Integer> building3 = new ArrayList<Integer>();", "building3", "new ArrayList<Integer>()", "ArrayList<Integer> building4 = new ArrayList<Integer>();", "building4", "new ArrayList<Integer>()", "clear(building1)", "clear", "building1", "clear(building2)", "clear", "building2", "clear(building3)", "clear", "building3", "clear(building4)", "clear", "building4", "for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }", "{\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }", "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", "switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }", "b", "case 1:", "1", "case 1:", "vary(building1,f,r,v)", "vary", "building1", "f", "r", "v", "break;", "case 2:", "2", "case 2:", "vary(building2,f,r,v)", "vary", "building2", "f", "r", "v", "break;", "case 3:", "3", "case 3:", "vary(building3,f,r,v)", "vary", "building3", "f", "r", "v", "break;", "case 4:", "4", "case 4:", "vary(building4,f,r,v)", "vary", "building4", "f", "r", "v", "break;", "dp(building1)", "dp", "building1", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "dp(building2)", "dp", "building2", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "dp(building3)", "dp", "building3", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "dp(building4)", "dp", "building4", "String[] args", "args", "public static void clear(ArrayList<Integer> building){\n for(int i = 0;i <= 29;i++){\n building.add(0);\n } \n }", "clear", "{\n for(int i = 0;i <= 29;i++){\n building.add(0);\n } \n }", "for(int i = 0;i <= 29;i++){\n building.add(0);\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= 29", "i", "29", "i++", "i++", "i", "{\n building.add(0);\n }", "{\n building.add(0);\n }", "building.add(0)", "building.add", "building", "0", "ArrayList<Integer> building", "building", "//部屋の人数の処理\n public static void vary(ArrayList<Integer> building,int floor,int room,int number){\n building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number);\n }", "vary", "{\n building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number);\n }", "building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number)", "building.set", "building", "(floor - 1) * 10 + room - 1", "(floor - 1) * 10 + room", "(floor - 1) * 10", "(floor - 1)", "floor", "1", "10", "room", "1", "building.get((floor - 1) * 10 + room - 1) + number", "building.get((floor - 1) * 10 + room - 1)", "building.get", "building", "(floor - 1) * 10 + room - 1", "(floor - 1) * 10 + room", "(floor - 1) * 10", "(floor - 1)", "floor", "1", "10", "room", "1", "number", "ArrayList<Integer> building", "building", "int floor", "floor", "int room", "room", "int number", "number", "//出力\n public static void dp(ArrayList<Integer> building){\n String st = \"\";\n for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }\n }", "dp", "{\n String st = \"\";\n for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }\n }", "String st = \"\";", "st", "\"\"", "for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= 29", "i", "29", "i++", "i++", "i", "{\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }", "{\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }", "if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "i <= 8", "i", "8", "{\n st += \" \" + building.get(i);\n }", "st += \" \" + building.get(i)", "st", "\" \" + building.get(i)", "\" \"", "building.get(i)", "building.get", "building", "i", "if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "i == 9", "i", "9", "{\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "st += \" \" + building.get(i)", "st", "\" \" + building.get(i)", "\" \"", "building.get(i)", "building.get", "building", "i", "System.out.println(st)", "System.out.println", "System.out", "System", "System.out", "st", "st = \"\"", "st", "\"\"", "if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "i >= 10 && i <= 18", "i >= 10", "i", "10", "i <= 18", "i", "18", "{\n st += \" \" + building.get(i);\n }", "st += \" \" + building.get(i)", "st", "\" \" + building.get(i)", "\" \"", "building.get(i)", "building.get", "building", "i", "if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "i == 19", "i", "19", "{\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "st += \" \" + building.get(i)", "st", "\" \" + building.get(i)", "\" \"", "building.get(i)", "building.get", "building", "i", "System.out.println(st)", "System.out.println", "System.out", "System", "System.out", "st", "st = \"\"", "st", "\"\"", "if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "i >= 20 && i <= 28", "i >= 20", "i", "20", "i <= 28", "i", "28", "{\n st += \" \" + building.get(i);\n }", "st += \" \" + building.get(i)", "st", "\" \" + building.get(i)", "\" \"", "building.get(i)", "building.get", "building", "i", "if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "i == 29", "i", "29", "{\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }", "st += \" \" + building.get(i)", "st", "\" \" + building.get(i)", "\" \"", "building.get(i)", "building.get", "building", "i", "System.out.println(st)", "System.out.println", "System.out", "System", "System.out", "st", "st = \"\"", "st", "\"\"", "ArrayList<Integer> building", "building", "public class Main {\n public static void main(String[] args)throws Exception{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int b;\n int f;\n int r;\n int v;\n ArrayList<Integer> building1 = new ArrayList<Integer>();\n ArrayList<Integer> building2 = new ArrayList<Integer>();\n ArrayList<Integer> building3 = new ArrayList<Integer>();\n ArrayList<Integer> building4 = new ArrayList<Integer>();\n clear(building1);\n clear(building2);\n clear(building3);\n clear(building4);\n for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }\n //出力\n dp(building1);\n System.out.println(\"####################\");\n dp(building2);\n System.out.println(\"####################\");\n dp(building3);\n System.out.println(\"####################\");\n dp(building4);\n }\n\n public static void clear(ArrayList<Integer> building){\n for(int i = 0;i <= 29;i++){\n building.add(0);\n } \n }\n \n //部屋の人数の処理\n public static void vary(ArrayList<Integer> building,int floor,int room,int number){\n building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number);\n }\n \n //出力\n public static void dp(ArrayList<Integer> building){\n String st = \"\";\n for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args)throws Exception{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int b;\n int f;\n int r;\n int v;\n ArrayList<Integer> building1 = new ArrayList<Integer>();\n ArrayList<Integer> building2 = new ArrayList<Integer>();\n ArrayList<Integer> building3 = new ArrayList<Integer>();\n ArrayList<Integer> building4 = new ArrayList<Integer>();\n clear(building1);\n clear(building2);\n clear(building3);\n clear(building4);\n for(int i = 0;i <= n - 1;i++){\n b = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n v = scan.nextInt();\n switch(b){\n case 1:\n vary(building1,f,r,v);\n break;\n case 2:\n vary(building2,f,r,v);\n break;\n case 3:\n vary(building3,f,r,v);\n break;\n case 4:\n vary(building4,f,r,v);\n break;\n }\n }\n //出力\n dp(building1);\n System.out.println(\"####################\");\n dp(building2);\n System.out.println(\"####################\");\n dp(building3);\n System.out.println(\"####################\");\n dp(building4);\n }\n\n public static void clear(ArrayList<Integer> building){\n for(int i = 0;i <= 29;i++){\n building.add(0);\n } \n }\n \n //部屋の人数の処理\n public static void vary(ArrayList<Integer> building,int floor,int room,int number){\n building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number);\n }\n \n //出力\n public static void dp(ArrayList<Integer> building){\n String st = \"\";\n for(int i = 0;i <= 29;i++){\n if(i <= 8){\n st += \" \" + building.get(i);\n }else if(i == 9){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 10 && i <= 18){\n st += \" \" + building.get(i);\n }else if(i == 19){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }else if(i >= 20 && i <= 28){\n st += \" \" + building.get(i);\n }else if(i == 29){\n st += \" \" + building.get(i);\n System.out.println(st);\n st = \"\";\n }\n }\n }\n}", "Main" ]
import java.io.*; import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args)throws Exception{ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int b; int f; int r; int v; ArrayList<Integer> building1 = new ArrayList<Integer>(); ArrayList<Integer> building2 = new ArrayList<Integer>(); ArrayList<Integer> building3 = new ArrayList<Integer>(); ArrayList<Integer> building4 = new ArrayList<Integer>(); clear(building1); clear(building2); clear(building3); clear(building4); for(int i = 0;i <= n - 1;i++){ b = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); v = scan.nextInt(); switch(b){ case 1: vary(building1,f,r,v); break; case 2: vary(building2,f,r,v); break; case 3: vary(building3,f,r,v); break; case 4: vary(building4,f,r,v); break; } } //出力 dp(building1); System.out.println("####################"); dp(building2); System.out.println("####################"); dp(building3); System.out.println("####################"); dp(building4); } public static void clear(ArrayList<Integer> building){ for(int i = 0;i <= 29;i++){ building.add(0); } } //部屋の人数の処理 public static void vary(ArrayList<Integer> building,int floor,int room,int number){ building.set((floor - 1) * 10 + room - 1,building.get((floor - 1) * 10 + room - 1) + number); } //出力 public static void dp(ArrayList<Integer> building){ String st = ""; for(int i = 0;i <= 29;i++){ if(i <= 8){ st += " " + building.get(i); }else if(i == 9){ st += " " + building.get(i); System.out.println(st); st = ""; }else if(i >= 10 && i <= 18){ st += " " + building.get(i); }else if(i == 19){ st += " " + building.get(i); System.out.println(st); st = ""; }else if(i >= 20 && i <= 28){ st += " " + building.get(i); }else if(i == 29){ st += " " + building.get(i); System.out.println(st); st = ""; } } } }
[ 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, 14, 2, 18, 18, 13, 13, 13, 17, 30, 0, 18, 18, 13, 13, 13, 17, 14, 2, 18, 18, 13, 13, 13, 17, 30, 0, 18, 18, 13, 13, 13, 17, 14, 2, 18, 18, 13, 13, 13, 17, 30, 0, 18, 18, 13, 13, 13, 17, 14, 2, 18, 18, 13, 13, 13, 17, 30, 0, 18, 18, 13, 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, 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 ], [ 474, 5 ], [ 474, 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 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 198, 204 ], [ 197, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 206, 212 ], [ 196, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 214, 220 ], [ 213, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 223, 227 ], [ 222, 228 ], [ 196, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 230, 236 ], [ 229, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 238, 244 ], [ 196, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 247, 251 ], [ 246, 252 ], [ 245, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 254, 260 ], [ 196, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 261, 266 ], [ 266, 267 ], [ 266, 268 ], [ 261, 269 ], [ 269, 270 ], [ 270, 271 ], [ 261, 272 ], [ 273, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 276, 277 ], [ 276, 278 ], [ 274, 279 ], [ 279, 280 ], [ 279, 281 ], [ 274, 282 ], [ 282, 283 ], [ 283, 284 ], [ 274, 285 ], [ 286, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 287, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 286, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 299, 303 ], [ 303, 304 ], [ 304, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 196, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 309, 314 ], [ 196, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 315, 320 ], [ 320, 321 ], [ 320, 322 ], [ 315, 323 ], [ 323, 324 ], [ 324, 325 ], [ 315, 326 ], [ 327, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 328, 333 ], [ 333, 334 ], [ 333, 335 ], [ 328, 336 ], [ 336, 337 ], [ 337, 338 ], [ 328, 339 ], [ 340, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 341, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 348, 352 ], [ 340, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 196, 363 ], [ 363, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 363, 368 ], [ 196, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 369, 374 ], [ 374, 375 ], [ 374, 376 ], [ 369, 377 ], [ 377, 378 ], [ 378, 379 ], [ 369, 380 ], [ 381, 381 ], [ 381, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 382, 387 ], [ 387, 388 ], [ 387, 389 ], [ 382, 390 ], [ 390, 391 ], [ 391, 392 ], [ 382, 393 ], [ 394, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 397, 398 ], [ 397, 399 ], [ 395, 400 ], [ 400, 401 ], [ 400, 402 ], [ 402, 403 ], [ 403, 404 ], [ 403, 405 ], [ 402, 406 ], [ 394, 407 ], [ 407, 408 ], [ 408, 409 ], [ 408, 410 ], [ 407, 411 ], [ 411, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 414, 416 ], [ 196, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 419, 421 ], [ 417, 422 ], [ 196, 423 ], [ 423, 424 ], [ 424, 425 ], [ 425, 426 ], [ 425, 427 ], [ 423, 428 ], [ 428, 429 ], [ 428, 430 ], [ 423, 431 ], [ 431, 432 ], [ 432, 433 ], [ 423, 434 ], [ 435, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 438, 439 ], [ 438, 440 ], [ 436, 441 ], [ 441, 442 ], [ 441, 443 ], [ 436, 444 ], [ 444, 445 ], [ 445, 446 ], [ 436, 447 ], [ 448, 448 ], [ 448, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 449, 454 ], [ 454, 455 ], [ 454, 456 ], [ 456, 457 ], [ 457, 458 ], [ 457, 459 ], [ 456, 460 ], [ 448, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 461, 465 ], [ 465, 466 ], [ 466, 467 ], [ 467, 468 ], [ 468, 469 ], [ 468, 470 ], [ 6, 471 ], [ 471, 472 ], [ 0, 473 ], [ 473, 474 ], [ 473, 475 ] ]
[ "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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}\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 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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}\t\n\t}\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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}\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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}\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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}", "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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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\t\t\tfor (i = 0; i < 10; i++) {\n\t\t\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}", "for (i = 0; i < 10; i++) {\n\t\t\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}", "i = 0;", "i = 0", "i", "0", "i < 10", "i", "10", "i++", "i++", "i", "{\n\t\t\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}", "if(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}", "floor1[j][i] < 0", "floor1[j][i]", "floor1[j]", "floor1", "j", "i", "0", "{\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}", "floor1[j][i] = 0", "floor1[j][i]", "floor1[j]", "floor1", "j", "i", "0", "if(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}", "floor2[j][i] < 0", "floor2[j][i]", "floor2[j]", "floor2", "j", "i", "0", "{\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}", "floor2[j][i] = 0", "floor2[j][i]", "floor2[j]", "floor2", "j", "i", "0", "if(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}", "floor3[j][i] < 0", "floor3[j][i]", "floor3[j]", "floor3", "j", "i", "0", "{\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}", "floor3[j][i] = 0", "floor3[j][i]", "floor3[j]", "floor3", "j", "i", "0", "if(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\n\t\t\t}", "floor4[j][i] < 0", "floor4[j][i]", "floor4[j]", "floor4", "j", "i", "0", "{\n\t\t\t\tfloor4[j][i] = 0;\n\t\t\t}", "floor4[j][i] = 0", "floor4[j][i]", "floor4[j]", "floor4", "j", "i", "0", "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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}\t\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 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\tif(floor1[j][i] < 0){\n\t\t\t\tfloor1[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor2[j][i] < 0){\n\t\t\t\tfloor2[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor3[j][i] < 0){\n\t\t\t\tfloor3[j][i] = 0;\n\t\t\t}\n\t\t\tif(floor4[j][i] < 0){\n\t\t\t\tfloor4[j][i] = 0;\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}\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 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++) { if(floor1[j][i] < 0){ floor1[j][i] = 0; } if(floor2[j][i] < 0){ floor2[j][i] = 0; } if(floor3[j][i] < 0){ floor3[j][i] = 0; } if(floor4[j][i] < 0){ floor4[j][i] = 0; } 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, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 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, 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, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 271, 20 ], [ 271, 21 ], [ 21, 22 ], [ 271, 23 ], [ 23, 24 ], [ 271, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 27, 34 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 41, 42 ], [ 25, 43 ], [ 43, 44 ], [ 271, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 49, 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 ], [ 73, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 73, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 73, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 95, 101 ], [ 94, 102 ], [ 49, 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 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 147, 153 ], [ 128, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 115, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 271, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 167, 171 ], [ 171, 172 ], [ 167, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 173, 179 ], [ 179, 180 ], [ 167, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 184, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 183, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 198, 201 ], [ 201, 202 ], [ 202, 203 ], [ 167, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 207, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 206, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 221, 224 ], [ 224, 225 ], [ 225, 226 ], [ 167, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 230, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 229, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 167, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 255, 256 ], [ 256, 257 ], [ 257, 258 ], [ 250, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 249, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 267, 268 ], [ 268, 269 ], [ 0, 270 ], [ 270, 271 ], [ 270, 272 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "main", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "Solution solver = new Solution();", "solver", "new Solution()", "solver.solve()", "solver.solve", "solver", "out.close()", "out.close", "out", "String[] args", "args", "static class Solution {\n void solve() throws IOException {\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }\n// End Solution\n}", "Solution", "void solve() throws IOException {\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }", "solve", "{\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int[][][] residents = new int[5][4][11];", "residents", "new int[5][4][11]", "5", "4", "11", "for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "{\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }", "{\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "int f = in.nextInt();", "f", "in.nextInt()", "in.nextInt", "in", "int r = in.nextInt();", "r", "in.nextInt()", "in.nextInt", "in", "int v = in.nextInt();", "v", "in.nextInt()", "in.nextInt", "in", "residents[b][f][r] += v", "residents[b][f][r]", "residents[b][f]", "residents[b]", "residents", "b", "f", "r", "v", "for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= 4", "i", "4", "i++", "i++", "i", "{\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }", "{\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }", "for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }", "int j = 1;", "int j = 1;", "j", "1", "j <= 3", "j", "3", "j++", "j++", "j", "{\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }", "{\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }", "for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }", "int k = 1;", "int k = 1;", "k", "1", "k <= 10", "k", "10", "k++", "k++", "k", "{\n out.print(\" \" + residents[i][j][k]);\n }", "{\n out.print(\" \" + residents[i][j][k]);\n }", "out.print(\" \" + residents[i][j][k])", "out.print", "out", "\" \" + residents[i][j][k]", "\" \"", "residents[i][j][k]", "residents[i][j]", "residents[i]", "residents", "i", "j", "k", "out.print(\"\\n\")", "out.print", "out", "\"\\n\"", "if (i != 4) {\n out.println(\"####################\");\n }", "i != 4", "i", "4", "{\n out.println(\"####################\");\n }", "out.println(\"####################\")", "out.println", "out", "\"####################\"", "static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }", "InputReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }", "InputReader", "{\n br = new BufferedReader(new InputStreamReader(stream));\n }", "br = new BufferedReader(new InputStreamReader(stream))", "br", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "nextInt", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "nextLong", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "nextDouble", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt(); \n int[][][] residents = new int[5][4][11];\n \n for (int i = 1; i <= n; i++) {\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n \n residents[b][f][r] += v;\n }\n \n for (int i = 1; i <= 4; i++) {\n for (int j = 1; j <= 3; j++) {\n for (int k = 1; k <= 10; k++) {\n out.print(\" \" + residents[i][j][k]);\n }\n out.print(\"\\n\");\n }\n \n if (i != 4) {\n out.println(\"####################\");\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { static InputReader in; static PrintWriter out; static class Solution { void solve() throws IOException { int n = in.nextInt(); int[][][] residents = new int[5][4][11]; for (int i = 1; i <= n; i++) { int b = in.nextInt(); int f = in.nextInt(); int r = in.nextInt(); int v = in.nextInt(); residents[b][f][r] += v; } for (int i = 1; i <= 4; i++) { for (int j = 1; j <= 3; j++) { for (int k = 1; k <= 10; k++) { out.print(" " + residents[i][j][k]); } out.print("\n"); } if (i != 4) { out.println("####################"); } } // End solve() } // End Solution } public static void main(String[] args) throws IOException { in = new InputReader(System.in); out = new PrintWriter(System.out); Solution solver = new Solution(); solver.solve(); out.close(); } static class InputReader { public BufferedReader br; public StringTokenizer st; public InputReader(InputStream stream) { br = new BufferedReader(new InputStreamReader(stream)); } public int nextInt() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Integer.parseInt(st.nextToken()); } public long nextLong() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Long.parseLong(st.nextToken()); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public double nextDouble() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Double.parseDouble(st.nextToken()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 17, 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, 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 ], [ 150, 5 ], [ 150, 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 ], [ 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 ], [ 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 ], [ 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 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 104, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 91, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 6, 147 ], [ 147, 148 ], [ 0, 149 ], [ 149, 150 ], [ 149, 151 ] ]
[ "import java.util.Scanner;\npublic class Main\n{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[][][] bd = new int[4][3][10];\n\t\tint n = input.nextInt();\n\t\tint a, b, c, d;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\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(\" \" + bd[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\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[][][] bd = new int[4][3][10];\n\t\tint n = input.nextInt();\n\t\tint a, b, c, d;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\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(\" \" + bd[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{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[][][] bd = new int[4][3][10];\n\t\tint n = input.nextInt();\n\t\tint a, b, c, d;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\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(\" \" + bd[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 input = new Scanner(System.in);\n\t\tint[][][] bd = new int[4][3][10];\n\t\tint n = input.nextInt();\n\t\tint a, b, c, d;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\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(\" \" + bd[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 input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int[][][] bd = new int[4][3][10];", "bd", "new int[4][3][10]", "4", "3", "10", "int n = input.nextInt();", "n", "input.nextInt()", "input.nextInt", "input", "int a", "a", "b", "b", "c", "c", "d;", "d", "for(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\n\t\t}", "{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\n\t\t}", "a = input.nextInt()", "a", "input.nextInt()", "input.nextInt", "input", "b = input.nextInt()", "b", "input.nextInt()", "input.nextInt", "input", "c = input.nextInt()", "c", "input.nextInt()", "input.nextInt", "input", "d = input.nextInt()", "d", "input.nextInt()", "input.nextInt", "input", "bd[a-1][b-1][c-1] += d", "bd[a-1][b-1][c-1]", "bd[a-1][b-1]", "bd[a-1]", "bd", "a-1", "a", "1", "b-1", "b", "1", "c-1", "c", "1", "d", "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(\" \" + bd[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{\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + bd[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{\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + bd[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{\n\t\t\t\tfor(int k = 0; k < 10; k++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \" + bd[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(\" \" + bd[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(\" \" + bd[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(\" \" + bd[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(\" \" + bd[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + bd[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \" + bd[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + bd[i][j][k]", "\" \"", "bd[i][j][k]", "bd[i][j]", "bd[i]", "bd", "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\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[][][] bd = new int[4][3][10];\n\t\tint n = input.nextInt();\n\t\tint a, b, c, d;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\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(\" \" + bd[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\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[][][] bd = new int[4][3][10];\n\t\tint n = input.nextInt();\n\t\tint a, b, c, d;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\ta = input.nextInt();\n\t\t\tb = input.nextInt();\n\t\t\tc = input.nextInt();\n\t\t\td = input.nextInt();\n\t\t\tbd[a-1][b-1][c-1] += d;\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(\" \" + bd[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 { public static void main( String args[] ) { Scanner input = new Scanner(System.in); int[][][] bd = new int[4][3][10]; int n = input.nextInt(); int a, b, c, d; for(int i = 0; i < n; i++) { a = input.nextInt(); b = input.nextInt(); c = input.nextInt(); d = input.nextInt(); bd[a-1][b-1][c-1] += d; } for(int i = 0; i < 4; i++) { for(int j = 0; j < 3; j++) { for(int k = 0; k < 10; k++) { System.out.print(" " + bd[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, 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, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 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 ], [ 151, 5 ], [ 151, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 21 ], [ 21, 22 ], [ 21, 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 ], [ 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 ], [ 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 ], [ 100, 103 ], [ 99, 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 ], [ 117, 120 ], [ 116, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 124, 130 ], [ 99, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 86, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 6, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\tScanner in = new Scanner(System.in);\n\tStringBuilder sb = new StringBuilder();\n\tint[][][] inf = new int[4][3][10];\n\tint n = in.nextInt();\n\tfor (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}\n\tfor (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n\tScanner in = new Scanner(System.in);\n\tStringBuilder sb = new StringBuilder();\n\tint[][][] inf = new int[4][3][10];\n\tint n = in.nextInt();\n\tfor (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}\n\tfor (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}\n }\n}", "Main", "public static void main(String[] args) {\n\tScanner in = new Scanner(System.in);\n\tStringBuilder sb = new StringBuilder();\n\tint[][][] inf = new int[4][3][10];\n\tint n = in.nextInt();\n\tfor (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}\n\tfor (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}\n }", "main", "{\n\tScanner in = new Scanner(System.in);\n\tStringBuilder sb = new StringBuilder();\n\tint[][][] inf = new int[4][3][10];\n\tint n = in.nextInt();\n\tfor (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}\n\tfor (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int[][][] inf = new int[4][3][10];", "inf", "new int[4][3][10]", "4", "3", "10", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "for (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}", "{\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "int f = in.nextInt();", "f", "in.nextInt()", "in.nextInt", "in", "int r = in.nextInt();", "r", "in.nextInt()", "in.nextInt", "in", "int v = in.nextInt();", "v", "in.nextInt()", "in.nextInt", "in", "inf[b - 1][f - 1][r - 1] += v", "inf[b - 1][f - 1][r - 1]", "inf[b - 1][f - 1]", "inf[b - 1]", "inf", "b - 1", "b", "1", "f - 1", "f", "1", "r - 1", "r", "1", "v", "for (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}", "int build = 0;", "int build = 0;", "build", "0", "build < 4", "build", "4", "build++", "build++", "build", "{\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}", "{\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}", "for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }", "int floor = 0;", "int floor = 0;", "floor", "0", "floor < 3", "floor", "3", "floor++", "floor++", "floor", "{\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }", "{\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }", "sb.setLength(0)", "sb.setLength", "sb", "0", "for (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}", "int room = 0;", "int room = 0;", "room", "0", "room < 10", "room", "10", "room++", "room++", "room", "{\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}", "{\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(inf[build][floor][room])", "sb.append", "sb", "inf[build][floor][room]", "inf[build][floor]", "inf[build]", "inf", "build", "floor", "room", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }", "build != 3", "build", "3", "{\n\t\tSystem.out.println(\"####################\");\n\t }", "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\tScanner in = new Scanner(System.in);\n\tStringBuilder sb = new StringBuilder();\n\tint[][][] inf = new int[4][3][10];\n\tint n = in.nextInt();\n\tfor (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}\n\tfor (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}\n }\n}", "public class Main {\n public static void main(String[] args) {\n\tScanner in = new Scanner(System.in);\n\tStringBuilder sb = new StringBuilder();\n\tint[][][] inf = new int[4][3][10];\n\tint n = in.nextInt();\n\tfor (int i = 0; i < n; i++) {\n\t int b = in.nextInt();\n\t int f = in.nextInt();\n\t int r = in.nextInt();\n\t int v = in.nextInt();\n\t inf[b - 1][f - 1][r - 1] += v;\n\t}\n\tfor (int build = 0; build < 4; build++) {\n\t for (int floor = 0; floor < 3; floor++) {\n\t\tsb.setLength(0);\n\t\tfor (int room = 0; room < 10; room++) {\n\t\t sb.append(\" \");\n\t\t sb.append(inf[build][floor][room]);\n\t\t}\n\t\tSystem.out.println(sb);\n\t }\n\t if (build != 3) {\n\t\tSystem.out.println(\"####################\");\n\t }\n\t}\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int[][][] inf = new int[4][3][10]; int n = in.nextInt(); for (int i = 0; i < n; i++) { int b = in.nextInt(); int f = in.nextInt(); int r = in.nextInt(); int v = in.nextInt(); inf[b - 1][f - 1][r - 1] += v; } for (int build = 0; build < 4; build++) { for (int floor = 0; floor < 3; floor++) { sb.setLength(0); for (int room = 0; room < 10; room++) { sb.append(" "); sb.append(inf[build][floor][room]); } System.out.println(sb); } if (build != 3) { System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 17, 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, 18, 13, 13, 1, 40, 13, 30, 30, 14, 40, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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, 14, 2, 13, 2, 18, 18, 18, 13, 13, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 196, 8 ], [ 196, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 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 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 52, 59 ], [ 41, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 62, 69 ], [ 41, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 72, 79 ], [ 41, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 41, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 89, 95 ], [ 88, 96 ], [ 11, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 97, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 111, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 124, 136 ], [ 136, 137 ], [ 137, 138 ], [ 124, 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 ], [ 141, 155 ], [ 155, 156 ], [ 156, 157 ], [ 141, 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 ], [ 159, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 178, 184 ], [ 177, 185 ], [ 174, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 9, 193 ], [ 193, 194 ], [ 0, 195 ], [ 195, 196 ], [ 195, 197 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int x = Integer.parseInt(br.readLine());\n int[][][] array = new int [4][3][10];\n for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }\n for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int x = Integer.parseInt(br.readLine());\n int[][][] array = new int [4][3][10];\n for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }\n for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int x = Integer.parseInt(br.readLine());\n int[][][] array = new int [4][3][10];\n for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }\n for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int x = Integer.parseInt(br.readLine());\n int[][][] array = new int [4][3][10];\n for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }\n for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int x = Integer.parseInt(br.readLine());", "x", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[][][] array = new int [4][3][10];", "array", "new int [4][3][10]", "4", "3", "10", "for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < x", "i", "x", "i++", "i++", "i", "{\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }", "{\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int house = Integer.parseInt(str[0])-1;", "house", "Integer.parseInt(str[0])-1", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "1", "int floor = Integer.parseInt(str[1])-1;", "floor", "Integer.parseInt(str[1])-1", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "1", "int room = Integer.parseInt(str[2])-1;", "room", "Integer.parseInt(str[2])-1", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "1", "int person = Integer.parseInt(str[3]);", "person", "Integer.parseInt(str[3])", "Integer.parseInt", "Integer", "str[3]", "str", "3", "array[house][floor][room] += person", "array[house][floor][room]", "array[house][floor]", "array[house]", "array", "house", "floor", "room", "person", "for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }", "{\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }", "if(!(i ==0)){\n System.out.println(\"####################\");\n }", "!(i ==0)", "(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 < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < array[i].length", "j", "array[i].length", "array[i]", "array", "i", "array[i].length", "j++", "j++", "j", "{\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }", "{\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }", "for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }", "int k = 0;", "int k = 0;", "k", "0", "k < array[i][j].length", "k", "array[i][j].length", "array[i][j]", "array[i]", "array", "i", "j", "array[i][j].length", "k++", "k++", "k", "{\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }", "{\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }", "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", "if(k == array[i][j].length-1){\n System.out.println(\"\");\n }", "k == array[i][j].length-1", "k", "array[i][j].length-1", "array[i][j].length", "array[i][j]", "array[i]", "array", "i", "j", "array[i][j].length", "1", "{\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) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int x = Integer.parseInt(br.readLine());\n int[][][] array = new int [4][3][10];\n for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }\n for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int x = Integer.parseInt(br.readLine());\n int[][][] array = new int [4][3][10];\n for(int i = 0; i < x; i++){\n String[] str = br.readLine().split(\" \");\n int house = Integer.parseInt(str[0])-1;\n int floor = Integer.parseInt(str[1])-1;\n int room = Integer.parseInt(str[2])-1;\n int person = Integer.parseInt(str[3]);\n array[house][floor][room] += person;\n }\n for(int i = 0; i < array.length; i++){\n if(!(i ==0)){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < array[i].length; j++){\n \n for(int k = 0; k < array[i][j].length; k++){\n System.out.print(\" \"+array[i][j][k]);\n if(k == array[i][j].length-1){\n System.out.println(\"\");\n }\n }\n }\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int x = Integer.parseInt(br.readLine()); int[][][] array = new int [4][3][10]; for(int i = 0; i < x; i++){ String[] str = br.readLine().split(" "); int house = Integer.parseInt(str[0])-1; int floor = Integer.parseInt(str[1])-1; int room = Integer.parseInt(str[2])-1; int person = Integer.parseInt(str[3]); array[house][floor][room] += person; } for(int i = 0; i < array.length; i++){ if(!(i ==0)){ System.out.println("####################"); } for(int j = 0; j < array[i].length; j++){ for(int k = 0; k < array[i][j].length; k++){ System.out.print(" "+array[i][j][k]); if(k == array[i][j].length-1){ System.out.println(""); } } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 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, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 13, 13, 14, 2, 2, 13, 17, 40, 2, 13, 17, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 40, 2, 13, 17, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 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 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 8, 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 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 69, 85 ], [ 85, 86 ], [ 85, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 69, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 8, 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 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 117, 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 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 143, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 161, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 171, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 155, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 197, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 204, 206 ], [ 193, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 207, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 214, 216 ], [ 135, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 222, 224 ], [ 217, 225 ], [ 225, 226 ], [ 8, 227 ], [ 227, 228 ], [ 228, 229 ], [ 6, 230 ], [ 230, 231 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint room[] = new int[450]; // 配列確保(大きめに)\n int n = scanner.nextInt(); // データ数\n int p1 = 0,p2 = 0,p3 = 0;\n int a,b,c,x = 0;\n \n //データ初期化\n for (int i = 0; i < 450; i++) {\n room[i] = 0;\n }\n \n // データ入力\n for (int i = 0; i < n; i++) {\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }\n\t \t//出力\n for (int i = 1; i <= 4; i++) {\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }\n scanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint room[] = new int[450]; // 配列確保(大きめに)\n int n = scanner.nextInt(); // データ数\n int p1 = 0,p2 = 0,p3 = 0;\n int a,b,c,x = 0;\n \n //データ初期化\n for (int i = 0; i < 450; i++) {\n room[i] = 0;\n }\n \n // データ入力\n for (int i = 0; i < n; i++) {\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }\n\t \t//出力\n for (int i = 1; i <= 4; i++) {\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }\n scanner.close();\n }\n}", "Main", "public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint room[] = new int[450]; // 配列確保(大きめに)\n int n = scanner.nextInt(); // データ数\n int p1 = 0,p2 = 0,p3 = 0;\n int a,b,c,x = 0;\n \n //データ初期化\n for (int i = 0; i < 450; i++) {\n room[i] = 0;\n }\n \n // データ入力\n for (int i = 0; i < n; i++) {\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }\n\t \t//出力\n for (int i = 1; i <= 4; i++) {\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }\n scanner.close();\n }", "main", "{\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint room[] = new int[450]; // 配列確保(大きめに)\n int n = scanner.nextInt(); // データ数\n int p1 = 0,p2 = 0,p3 = 0;\n int a,b,c,x = 0;\n \n //データ初期化\n for (int i = 0; i < 450; i++) {\n room[i] = 0;\n }\n \n // データ入力\n for (int i = 0; i < n; i++) {\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }\n\t \t//出力\n for (int i = 1; i <= 4; i++) {\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int room[] = new int[450];", "room", "new int[450]", "450", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int p1 = 0", "p1", "0", "p2 = 0", "p2", "0", "p3 = 0;", "p3", "0", "int a", "a", "b", "b", "c", "c", "x = 0;", "x", "0", "for (int i = 0; i < 450; i++) {\n room[i] = 0;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 450", "i", "450", "i++", "i++", "i", "{\n room[i] = 0;\n }", "{\n room[i] = 0;\n }", "room[i] = 0", "room[i]", "room", "i", "0", "for (int i = 0; i < n; i++) {\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }", "{\n a = scanner.nextInt();\n b = scanner.nextInt();\n c = scanner.nextInt();\n x = a *100 + b * 10 + (c - 1);\n room[x] += scanner.nextInt();\n }", "a = scanner.nextInt()", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "b = scanner.nextInt()", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "c = scanner.nextInt()", "c", "scanner.nextInt()", "scanner.nextInt", "scanner", "x = a *100 + b * 10 + (c - 1)", "x", "a *100 + b * 10 + (c - 1)", "a *100 + b * 10 + (c - 1)", "a *100", "a", "100", "b * 10", "b", "10", "(c - 1)", "c", "1", "room[x] += scanner.nextInt()", "room[x]", "room", "x", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 1; i <= 4; i++) {\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= 4", "i", "4", "i++", "i++", "i", "{\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }", "{\n \tp1 = i * 100; \n \tfor(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}\n }", "p1 = i * 100", "p1", "i * 100", "i", "100", "for(int j = 1; j <= 4; j ++){\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}", "int j = 1;", "int j = 1;", "j", "1", "j <= 4", "j", "4", "j ++", "j ++", "j", "{\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}", "{\n \t\tp2 = j * 10 + p1;\n \t\tfor(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}\n \t\tif(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}\n\t\t\t\t//System.out.println(\"\");\n \t}", "p2 = j * 10 + p1", "p2", "j * 10 + p1", "j * 10", "j", "10", "p1", "for(int k = 0; k < 10 ; k ++ ){\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k ++", "k ++", "k", "{\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}", "{\n \t\t\tp3 = p2 + k;\n\t\t \tif(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}\n\t\t \tif(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}\n\t\t \t\n\t\t\t\t}", "p3 = p2 + k", "p3", "p2 + k", "p2", "k", "if(j == 4 && !(i == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}", "j == 4 && !(i == 4)", "j == 4", "j", "4", "!(i == 4)", "(i == 4)", "i", "4", "{\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");\n\t\t \t}", "if(k == 9)\n\t\t \t\t\tSystem.out.println(\"##\");\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\"##\");", "k == 9", "k", "9", "System.out.println(\"##\")", "System.out.println", "System.out", "System", "System.out", "\"##\"", "System.out.print(\"##\")", "System.out.print", "System.out", "System", "System.out", "\"##\"", "if(!(j == 4)) {\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}", "!(j == 4)", "(j == 4)", "j", "4", "{\n\t\t \t\tif(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);\n\t\t \t}", "if(k == 9)\n\t\t \t\t\tSystem.out.println(\" \"+ room[p3]);\n\t\t \t\telse\n\t\t \t\t\tSystem.out.print(\" \"+ room[p3]);", "k == 9", "k", "9", "System.out.println(\" \"+ room[p3])", "System.out.println", "System.out", "System", "System.out", "\" \"+ room[p3]", "\" \"", "room[p3]", "room", "p3", "System.out.print(\" \"+ room[p3])", "System.out.print", "System.out", "System", "System.out", "\" \"+ room[p3]", "\" \"", "room[p3]", "room", "p3", "if(i == 4 && j == 3) {\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}", "i == 4 && j == 3", "i == 4", "i", "4", "j == 3", "j", "3", "{\n \t\t\t\t//System.out.print(\"\\n\");\n \t\t\tbreak;\n \t\t}", "break;", "scanner.close()", "scanner.close", "scanner", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int room[] = new int[450]; // 配列確保(大きめに) int n = scanner.nextInt(); // データ数 int p1 = 0,p2 = 0,p3 = 0; int a,b,c,x = 0; //データ初期化 for (int i = 0; i < 450; i++) { room[i] = 0; } // データ入力 for (int i = 0; i < n; i++) { a = scanner.nextInt(); b = scanner.nextInt(); c = scanner.nextInt(); x = a *100 + b * 10 + (c - 1); room[x] += scanner.nextInt(); } //出力 for (int i = 1; i <= 4; i++) { p1 = i * 100; for(int j = 1; j <= 4; j ++){ p2 = j * 10 + p1; for(int k = 0; k < 10 ; k ++ ){ p3 = p2 + k; if(j == 4 && !(i == 4)) { if(k == 9) System.out.println("##"); else System.out.print("##"); } if(!(j == 4)) { if(k == 9) System.out.println(" "+ room[p3]); else System.out.print(" "+ room[p3]); } } if(i == 4 && j == 3) { //System.out.print("\n"); break; } //System.out.println(""); } } scanner.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, 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, 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, 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 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 38, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 92 ], [ 85, 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 ], [ 147, 152 ], [ 106, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 6, 163 ], [ 163, 164 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tint A[][][] = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n for(int i=0;i<N;i++){\n String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tif(i<3) System.out.println(\"####################\");\n }\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tint A[][][] = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n for(int i=0;i<N;i++){\n String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tif(i<3) System.out.println(\"####################\");\n }\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tint A[][][] = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n for(int i=0;i<N;i++){\n String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tif(i<3) System.out.println(\"####################\");\n }\n\t}", "main", "{\n\t\tint A[][][] = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n for(int i=0;i<N;i++){\n String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tif(i<3) System.out.println(\"####################\");\n }\n\t}", "int A[][][] = new int[4][3][10];", "A", "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 String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\n }", "{\n String[] array = br.readLine().split(\" \");\n int b = Integer.parseInt(array[0])-1;\n int f = Integer.parseInt(array[1])-1;\n int r = Integer.parseInt(array[2])-1;\n int v = Integer.parseInt(array[3]);\n A[b][f][r]+=v;\n }", "String[] array = br.readLine().split(\" \");", "array", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "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", "A[b][f][r]+=v", "A[b][f][r]", "A[b][f]", "A[b]", "A", "b", "f", "r", "v", "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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\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(\" \"+A[i][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\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(\" \"+A[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(\" \"+A[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(\" \"+A[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(\" \"+A[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(\" \"+A[i][j][k]);\n \t\t}", "{\n \t\t\tSystem.out.print(\" \"+A[i][j][k]);\n \t\t}", "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.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" ]
import java.io.*; class Main { public static void main(String[] args) throws Exception { int A[][][] = 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[] array = br.readLine().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]); A[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(" "+A[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, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 17, 1, 40, 13, 30, 30, 14, 2, 13, 13, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 18, 18, 18, 13, 13, 13, 13, 0, 18, 18, 18, 13, 13, 13, 13, 2, 13, 13, 11, 1, 41, 13, 17, 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, 3, 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, 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 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 33, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 33, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 33, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 33, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 33, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 33, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 33, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 83, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 94, 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 ], [ 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 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 138, 144 ], [ 117, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 104, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 104, 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\t// TODO ?????????????????????????????????????????????\n\n\t\tint kosha[][][] = new int[4][3][10];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\t// ??\\???????????????????´?\n\t\tfor(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}\n\t\t\n\t\t//?????????\n\t\tfor (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tint kosha[][][] = new int[4][3][10];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\t// ??\\???????????????????´?\n\t\tfor(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}\n\t\t\n\t\t//?????????\n\t\tfor (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tint kosha[][][] = new int[4][3][10];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\t// ??\\???????????????????´?\n\t\tfor(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}\n\t\t\n\t\t//?????????\n\t\tfor (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\t\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tint kosha[][][] = new int[4][3][10];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\t// ??\\???????????????????´?\n\t\tfor(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}\n\t\t\n\t\t//?????????\n\t\tfor (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\t\n\t}", "int kosha[][][] = new int[4][3][10];", "kosha", "new int[4][3][10]", "4", "3", "10", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}", "int i=1;", "int i=1;", "i", "1", "true", "i++", "i++", "i", "{\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}", "{\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}", "if (i > n) break;", "i > n", "i", "n", "break;", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int c = scan.nextInt();", "c", "scan.nextInt()", "scan.nextInt", "scan", "int d = scan.nextInt();", "d", "scan.nextInt()", "scan.nextInt", "scan", "int A = a-1;", "A", "a-1", "a", "1", "int B = b-1;", "B", "b-1", "b", "1", "int C = c-1;", "C", "c-1", "c", "1", "int D = kosha[A][B][C];", "D", "kosha[A][B][C]", "kosha[A][B]", "kosha[A]", "kosha", "A", "B", "C", "kosha[A][B][C] = D + d", "kosha[A][B][C]", "kosha[A][B]", "kosha[A]", "kosha", "A", "B", "C", "D + d", "D", "d", "for (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}", "int A=0;", "int A=0;", "A", "0", "true", "A++", "A++", "A", "{\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}", "{\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}", "for(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "int B=0;", "int B=0;", "B", "0", "B<=2", "B", "2", "B++", "B++", "B", "{\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}", "int C=0;", "int C=0;", "C", "0", "C<=9", "C", "9", "C++", "C++", "C", "{\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}", "System.out.print(\" \" + (kosha[A][B][C]))", "System.out.print", "System.out", "System", "System.out", "\" \" + (kosha[A][B][C])", "\" \"", "(kosha[A][B][C])", "kosha[A][B]", "kosha[A]", "kosha", "A", "B", "C", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if (A==3) break;", "A==3", "A", "3", "break;", "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// TODO ?????????????????????????????????????????????\n\n\t\tint kosha[][][] = new int[4][3][10];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\t// ??\\???????????????????´?\n\t\tfor(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}\n\t\t\n\t\t//?????????\n\t\tfor (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tint kosha[][][] = new int[4][3][10];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\t// ??\\???????????????????´?\n\t\tfor(int i=1; true; i++){\n\t\t\t//??¶??°????¶???????????????????\n\t\t\tif (i > n) break;\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tint d = scan.nextInt();\n\t\t\tint A = a-1;\n\t\t\tint B = b-1;\n\t\t\tint C = c-1;\n\t\t\tint D = kosha[A][B][C];\n\t\t\tkosha[A][B][C] = D + d;\n\t\t}\n\t\t\n\t\t//?????????\n\t\tfor (int A=0; true; A++){\n\t\t\tfor(int B=0; B<=2; B++){\n\t\t\t\tfor(int C=0; C<=9; C++){\n\t\t\t\t\tSystem.out.print(\" \" + (kosha[A][B][C]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif (A==3) break;\n\t\t\tSystem.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? int kosha[][][] = new int[4][3][10]; Scanner scan = new Scanner(System.in); int n = scan.nextInt(); // ??\???????????????????´? for(int i=1; true; i++){ //??¶??°????¶??????????????????? if (i > n) break; int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int d = scan.nextInt(); int A = a-1; int B = b-1; int C = c-1; int D = kosha[A][B][C]; kosha[A][B][C] = D + d; } //????????? for (int A=0; true; A++){ for(int B=0; B<=2; B++){ for(int C=0; C<=9; C++){ System.out.print(" " + (kosha[A][B][C])); } System.out.println(""); } if (A==3) break; System.out.println("####################"); } } }
[ 7, 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, 4, 18, 13, 17, 41, 13, 4, 13, 13, 0, 18, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 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, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13 ]
[ [ 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, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 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 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 41, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 56, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 55, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 76, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 75, 95 ], [ 95, 96 ], [ 95, 97 ], [ 11, 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 ], [ 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 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 144, 150 ], [ 123, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 110, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 9, 166 ], [ 166, 167 ], [ 7, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 174, 175 ], [ 174, 176 ], [ 170, 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 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 197, 198 ], [ 196, 199 ], [ 199, 200 ], [ 199, 201 ], [ 170, 202 ], [ 202, 203 ], [ 168, 204 ], [ 204, 205 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tint[][][] dis = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor(int i=0; i<cnt; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\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(\" \" + dis[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)System.out.println(\"####################\");\n\t\t}\n\t}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tint[][][] dis = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor(int i=0; i<cnt; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\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(\" \" + dis[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)System.out.println(\"####################\");\n\t\t}\n\t}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\tint[][][] dis = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor(int i=0; i<cnt; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\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(\" \" + dis[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)System.out.println(\"####################\");\n\t\t}\n\t}", "main", "{\n\t\tint[][][] dis = new int[4][3][10];\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor(int i=0; i<cnt; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\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(\" \" + dis[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)System.out.println(\"####################\");\n\t\t}\n\t}", "int[][][] dis = new int[4][3][10];", "dis", "new int[4][3][10]", "4", "3", "10", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int cnt = Integer.parseInt(br.readLine());", "cnt", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i=0; i<cnt; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<cnt", "i", "cnt", "i++", "i++", "i", "{\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\n\t\t}", "{\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tint in[] = parseInts(str);\n\t\t\tdis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3];\n\t\t}", "String str[] = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int in[] = parseInts(str);", "in", "parseInts(str)", "parseInts", "str", "dis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3]", "dis[in[0]-1][in[1]-1][in[2]-1]", "dis[in[0]-1][in[1]-1]", "dis[in[0]-1]", "dis", "in[0]-1", "in[0]", "in", "0", "1", "in[1]-1", "in[1]", "in", "1", "1", "in[2]-1", "in[2]", "in", "2", "1", "dis[in[0]-1][in[1]-1][in[2]-1] + in[3]", "dis[in[0]-1][in[1]-1][in[2]-1]", "dis[in[0]-1][in[1]-1]", "dis[in[0]-1]", "dis", "in[0]-1", "in[0]", "in", "0", "1", "in[1]-1", "in[1]", "in", "1", "1", "in[2]-1", "in[2]", "in", "2", "1", "in[3]", "in", "3", "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(\" \" + dis[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)System.out.println(\"####################\");\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(\" \" + dis[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)System.out.println(\"####################\");\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(\" \" + dis[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)System.out.println(\"####################\");\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(\" \" + dis[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(\" \" + dis[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(\" \" + dis[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(\" \" + dis[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(\" \" + dis[b][f][r]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + dis[b][f][r]);\n\t\t\t\t}", "System.out.print(\" \" + dis[b][f][r])", "System.out.print", "System.out", "System", "System.out", "\" \" + dis[b][f][r]", "\" \"", "dis[b][f][r]", "dis[b][f]", "dis[b]", "dis", "b", "f", "r", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(b!=3)System.out.println(\"####################\");", "b!=3", "b", "3", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "String[] args", "args", "static int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}", "parseInts", "{\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}", "int[] x = new int[s.length];", "x", "new int[s.length]", "s.length", "s", "s.length", "for(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "x[i] = Integer.parseInt(s[i])", "x[i]", "x", "i", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "return x;", "x", "String[] s", "s" ]
import java.io.*; import java.util.Arrays; class Main{ public static void main(String[] args)throws IOException{ int[][][] dis = new int[4][3][10]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int cnt = Integer.parseInt(br.readLine()); for(int i=0; i<cnt; i++){ String str[] = br.readLine().split(" "); int in[] = parseInts(str); dis[in[0]-1][in[1]-1][in[2]-1] = dis[in[0]-1][in[1]-1][in[2]-1] + in[3]; } for(int b=0; b<4; b++){ for(int f=0; f<3; f++){ for(int r=0; r<10; r++){ System.out.print(" " + dis[b][f][r]); } System.out.println(); } if(b!=3)System.out.println("####################"); } } static int[] parseInts(String[] s){ int[] x = new int[s.length]; for(int i=0; i<s.length; i++){ x[i] = Integer.parseInt(s[i]); } return x; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 17, 17, 17, 38, 5, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 18, 13, 17, 30, 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, 14, 2, 40, 13, 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, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 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 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 29, 36 ], [ 36, 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 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 52, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 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 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 109, 111 ], [ 98, 112 ], [ 65, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 113, 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 ], [ 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 ], [ 118, 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\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\tbyte[][][] buildings = new byte[4][3][10];\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\tbyte[][][] buildings = new byte[4][3][10];\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\tbyte[][][] buildings = new byte[4][3][10];\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\tbyte[][][] buildings = new byte[4][3][10];\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String buffer;", "buffer", "int amount = 0;", "amount", "0", "int count = 0;", "count", "0", "byte[][][] buildings = new byte[4][3][10];", "buildings", "new byte[4][3][10]", "4", "3", "10", "try {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}", "catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}", "Exception ex", "{\n\t\t\tex.printStackTrace();\n\t\t}", "ex.printStackTrace()", "ex.printStackTrace", "ex", "{\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "while ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "(buffer = reader.readLine()) != null", "(buffer = reader.readLine())", "buffer", "reader.readLine()", "reader.readLine", "reader", "null", "{\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "String[] strings = buffer.split(\" \");", "strings", "buffer.split(\" \")", "buffer.split", "buffer", "\" \"", "if (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}", "amount == 0", "amount", "0", "{\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}", "amount = Integer.valueOf(strings[0])", "amount", "Integer.valueOf(strings[0])", "Integer.valueOf", "Integer", "strings[0]", "strings", "0", "{\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}", "int b = Integer.valueOf(strings[0]);", "b", "Integer.valueOf(strings[0])", "Integer.valueOf", "Integer", "strings[0]", "strings", "0", "int f = Integer.valueOf(strings[1]);", "f", "Integer.valueOf(strings[1])", "Integer.valueOf", "Integer", "strings[1]", "strings", "1", "int r = Integer.valueOf(strings[2]);", "r", "Integer.valueOf(strings[2])", "Integer.valueOf", "Integer", "strings[2]", "strings", "2", "int v = Integer.valueOf(strings[3]);", "v", "Integer.valueOf(strings[3])", "Integer.valueOf", "Integer", "strings[3]", "strings", "3", "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", "if (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}", "++count >= amount", "++count", "count", "amount", "{\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}", "for (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "byte building = 0;", "byte building = 0;", "building", "0", "building < 4", "building", "4", "building++", "building++", "building", "{\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "for (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}", "byte floor = 0;", "byte floor = 0;", "floor", "0", "floor < 3", "floor", "3", "floor++", "floor++", "floor", "{\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}", "for (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}", "byte room = 0;", "byte room = 0;", "room", "0", "room < 10", "room", "10", "room++", "room++", "room", "{\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}", "System.out.print(\" \" + buildings[building][floor][room])", "System.out.print", "System.out", "System", "System.out", "\" \" + buildings[building][floor][room]", "\" \"", "buildings[building][floor][room]", "buildings[building][floor]", "buildings[building]", "buildings", "building", "floor", "room", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}", "building < 3", "building", "3", "{\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "return;", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\tbyte[][][] buildings = new byte[4][3][10];\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\tbyte[][][] buildings = new byte[4][3][10];\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\tif (amount == 0) {\n\t\t\t\t\tamount = Integer.valueOf(strings[0]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint b = Integer.valueOf(strings[0]);\n\t\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\t\tint r = Integer.valueOf(strings[2]);\n\t\t\t\t\tint v = Integer.valueOf(strings[3]);\n\t\t\t\t\tbuildings[b - 1][f - 1][r - 1] += v;\n\t\t\t\t\tif (++count >= amount) {\n\t\t\t\t\t\tfor (byte building = 0; building < 4; building++) {\n\t\t\t\t\t\t\tfor (byte floor = 0; floor < 3; floor++) {\n\t\t\t\t\t\t\t\tfor (byte room = 0; room < 10; room++) {\n\t\t\t\t\t\t\t\t\tSystem.out.print(\" \" + buildings[building][floor][room]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (building < 3) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.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) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String buffer; int amount = 0; int count = 0; byte[][][] buildings = new byte[4][3][10]; try { while ((buffer = reader.readLine()) != null) { String[] strings = buffer.split(" "); if (amount == 0) { amount = Integer.valueOf(strings[0]); } else { int b = Integer.valueOf(strings[0]); int f = Integer.valueOf(strings[1]); int r = Integer.valueOf(strings[2]); int v = Integer.valueOf(strings[3]); buildings[b - 1][f - 1][r - 1] += v; if (++count >= amount) { for (byte building = 0; building < 4; building++) { for (byte floor = 0; floor < 3; floor++) { for (byte room = 0; room < 10; room++) { System.out.print(" " + buildings[building][floor][room]); } System.out.println(); } if (building < 3) { System.out.println("####################"); } } return; } } } } catch (Exception ex) { ex.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 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, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 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, 41, 13, 4, 18, 13, 18, 13, 17, 28, 13, 18, 13, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 30, 9, 30, 0, 18, 13, 13, 13, 41, 13, 17, 11, 1, 41, 13, 4, 18, 18, 13, 13, 4, 18, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 14, 40, 4, 18, 13, 30, 3, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 29, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 314, 20 ], [ 314, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 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 ], [ 65, 67 ], [ 63, 68 ], [ 23, 69 ], [ 69, 70 ], [ 69, 71 ], [ 23, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 23, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 23, 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 ], [ 104, 105 ], [ 105, 106 ], [ 102, 107 ], [ 99, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 113, 115 ], [ 99, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 121, 123 ], [ 99, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 129, 131 ], [ 99, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 137, 139 ], [ 99, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 149, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 149, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 149, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 147, 165 ], [ 165, 166 ], [ 147, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 23, 173 ], [ 173, 174 ], [ 173, 175 ], [ 23, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 176, 185 ], [ 185, 186 ], [ 186, 187 ], [ 176, 188 ], [ 189, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 189, 195 ], [ 195, 196 ], [ 195, 197 ], [ 189, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 198, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 205, 207 ], [ 189, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 208, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 189, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 220, 225 ], [ 225, 226 ], [ 189, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 228, 232 ], [ 227, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 234, 239 ], [ 21, 240 ], [ 240, 241 ], [ 314, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 244, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 248, 253 ], [ 253, 254 ], [ 253, 255 ], [ 248, 256 ], [ 256, 257 ], [ 257, 258 ], [ 248, 259 ], [ 260, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 244, 265 ], [ 265, 266 ], [ 242, 267 ], [ 267, 268 ], [ 0, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 269, 273 ], [ 273, 274 ], [ 269, 275 ], [ 275, 276 ], [ 269, 277 ], [ 277, 278 ], [ 269, 279 ], [ 279, 280 ], [ 279, 281 ], [ 269, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 285, 289 ], [ 284, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 290, 294 ], [ 284, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 295, 299 ], [ 284, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 300, 304 ], [ 282, 305 ], [ 305, 306 ], [ 282, 307 ], [ 307, 308 ], [ 282, 309 ], [ 309, 310 ], [ 282, 311 ], [ 311, 312 ], [ 0, 313 ], [ 313, 314 ], [ 313, 315 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Iterator;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int n = Integer.parseInt(br.readLine());\n String hashs = HashMarks(20).toString();\n for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }\n int cnt = 0;\n for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }\n }\n private static StringBuilder HashMarks(int n){\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<n; i++){\n sb.append(\"#\");\n }\n return sb;\n }\n}\nclass Dom {\n final int b; //?£?\n final int f; //???\n final int r; //??????\n int v; //???\n static List<Dom> allRes = new ArrayList<Dom>();\n \n Dom (int b, int f, int r, int v){\n this.b = b;\n this.f = f;\n this.r = r;\n this.v = v;\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.List;", "List", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Iterator;", "Iterator", "java.util", "public class Main {\n public static void main(String[] args) throws IOException {\n for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int n = Integer.parseInt(br.readLine());\n String hashs = HashMarks(20).toString();\n for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }\n int cnt = 0;\n for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }\n }\n private static StringBuilder HashMarks(int n){\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<n; i++){\n sb.append(\"#\");\n }\n return sb;\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int n = Integer.parseInt(br.readLine());\n String hashs = HashMarks(20).toString();\n for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }\n int cnt = 0;\n for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }\n }", "main", "{\n for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int n = Integer.parseInt(br.readLine());\n String hashs = HashMarks(20).toString();\n for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }\n int cnt = 0;\n for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }\n }", "for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }", "int b=1;", "int b=1;", "b", "1", "b<=4", "b", "4", "b++", "b++", "b", "{\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }", "{\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }", "for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }", "int f=1;", "int f=1;", "f", "1", "f<=3", "f", "3", "f++", "f++", "f", "{\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }", "{\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }", "for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }", "int r=1;", "int r=1;", "r", "1", "r<=10", "r", "10", "r++", "r++", "r", "{\n Dom.allRes.add(new Dom(b, f, r, 0));\n }", "{\n Dom.allRes.add(new Dom(b, f, r, 0));\n }", "Dom.allRes.add(new Dom(b, f, r, 0))", "Dom.allRes.add", "Dom.allRes", "Dom", "Dom.allRes", "new Dom(b, f, r, 0)", "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", "String hashs = HashMarks(20).toString();", "hashs", "HashMarks(20).toString()", "HashMarks(20).toString", "HashMarks(20)", "HashMarks", "20", "for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }", "{\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int bb = Integer.parseInt(line[0]);", "bb", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int ff = Integer.parseInt(line[1]);", "ff", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "int rr = Integer.parseInt(line[2]);", "rr", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "int vv = Integer.parseInt(line[3]);", "vv", "Integer.parseInt(line[3])", "Integer.parseInt", "Integer", "line[3]", "line", "3", "for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }", "Dom dom", "Dom.allRes", "Dom", "Dom.allRes", "{\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }", "{\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }", "if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }", "dom.b != bb || dom.f != ff || dom.r != rr", "dom.b != bb || dom.f != ff || dom.r != rr", "dom.b != bb", "dom.b", "dom", "dom.b", "bb", "dom.f != ff", "dom.f", "dom", "dom.f", "ff", "dom.r != rr", "dom.r", "dom", "dom.r", "rr", "{\n continue;\n }", "continue;", "{\n dom.v += vv;\n }", "dom.v += vv", "dom.v", "dom", "dom.v", "vv", "int cnt = 0;", "cnt", "0", "for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }", "Iterator<Dom> d = Dom.allRes.iterator();", "Iterator<Dom> d = Dom.allRes.iterator();", "d", "Dom.allRes.iterator()", "Dom.allRes.iterator", "Dom.allRes", "Dom", "Dom.allRes", "d.hasNext()", "d.hasNext", "d", "{\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }", "{\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }", "Dom dom = d.next();", "dom", "d.next()", "d.next", "d", "cnt += 1", "cnt", "1", "System.out.print(\" \" + dom.v)", "System.out.print", "System.out", "System", "System.out", "\" \" + dom.v", "\" \"", "dom.v", "dom", "dom.v", "if (cnt%10==0){\n System.out.println();\n }", "cnt%10==0", "cnt%10", "cnt", "10", "0", "{\n System.out.println();\n }", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (!d.hasNext()){\n break;\n }", "!d.hasNext()", "d.hasNext()", "d.hasNext", "d", "{\n break;\n }", "break;", "if (cnt%30==0){\n System.out.println(hashs);\n }", "cnt%30==0", "cnt%30", "cnt", "30", "0", "{\n System.out.println(hashs);\n }", "System.out.println(hashs)", "System.out.println", "System.out", "System", "System.out", "hashs", "String[] args", "args", "private static StringBuilder HashMarks(int n){\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<n; i++){\n sb.append(\"#\");\n }\n return sb;\n }", "HashMarks", "{\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<n; i++){\n sb.append(\"#\");\n }\n return sb;\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int i=0; i<n; i++){\n sb.append(\"#\");\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sb.append(\"#\");\n }", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "return sb;", "sb", "int n", "n", "class Dom {\n final int b; //?£?\n final int f; //???\n final int r; //??????\n int v; //???\n static List<Dom> allRes = new ArrayList<Dom>();\n \n Dom (int b, int f, int r, int v){\n this.b = b;\n this.f = f;\n this.r = r;\n this.v = v;\n }\n}", "Dom", "final int b; //?£?", "b", "final int f; //???", "f", "final int r; //??????", "r", "int v; //???", "v", "static List<Dom> allRes = new ArrayList<Dom>();", "allRes", "new ArrayList<Dom>()", "Dom (int b, int f, int r, int v){\n this.b = b;\n this.f = f;\n this.r = r;\n this.v = v;\n }", "Dom", "{\n this.b = b;\n this.f = f;\n this.r = r;\n this.v = v;\n }", "this.b = b", "this.b", "this", "this.b", "b", "this.f = f", "this.f", "this", "this.f", "f", "this.r = r", "this.r", "this", "this.r", "r", "this.v = v", "this.v", "this", "this.v", "v", "int b", "b", "int f", "f", "int r", "r", "int v", "v", "public class Main {\n public static void main(String[] args) throws IOException {\n for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int n = Integer.parseInt(br.readLine());\n String hashs = HashMarks(20).toString();\n for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }\n int cnt = 0;\n for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }\n }\n private static StringBuilder HashMarks(int n){\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<n; i++){\n sb.append(\"#\");\n }\n return sb;\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n for (int b=1; b<=4; b++){\n for (int f=1; f<=3; f++){\n for (int r=1; r<=10; r++){\n Dom.allRes.add(new Dom(b, f, r, 0));\n }\n }\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int n = Integer.parseInt(br.readLine());\n String hashs = HashMarks(20).toString();\n for (int i=0; i<n; i++){\n String[] line = br.readLine().split(\" \");\n int bb = Integer.parseInt(line[0]);\n int ff = Integer.parseInt(line[1]);\n int rr = Integer.parseInt(line[2]);\n int vv = Integer.parseInt(line[3]);\n \n for (Dom dom: Dom.allRes){\n if (dom.b != bb || dom.f != ff || dom.r != rr){\n continue;\n }else{\n dom.v += vv;\n }\n }\n }\n int cnt = 0;\n for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){\n Dom dom = d.next();\n cnt += 1;\n System.out.print(\" \" + dom.v);\n if (cnt%10==0){\n System.out.println();\n }\n if (!d.hasNext()){\n break;\n }\n if (cnt%30==0){\n System.out.println(hashs);\n }\n }\n }\n private static StringBuilder HashMarks(int n){\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<n; i++){\n sb.append(\"#\");\n }\n return sb;\n }\n}", "Main" ]
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.List; import java.util.ArrayList; import java.util.Iterator; public class Main { public static void main(String[] args) throws IOException { for (int b=1; b<=4; b++){ for (int f=1; f<=3; f++){ for (int r=1; r<=10; r++){ Dom.allRes.add(new Dom(b, f, r, 0)); } } } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String hashs = HashMarks(20).toString(); for (int i=0; i<n; i++){ String[] line = br.readLine().split(" "); int bb = Integer.parseInt(line[0]); int ff = Integer.parseInt(line[1]); int rr = Integer.parseInt(line[2]); int vv = Integer.parseInt(line[3]); for (Dom dom: Dom.allRes){ if (dom.b != bb || dom.f != ff || dom.r != rr){ continue; }else{ dom.v += vv; } } } int cnt = 0; for (Iterator<Dom> d = Dom.allRes.iterator(); d.hasNext();){ Dom dom = d.next(); cnt += 1; System.out.print(" " + dom.v); if (cnt%10==0){ System.out.println(); } if (!d.hasNext()){ break; } if (cnt%30==0){ System.out.println(hashs); } } } private static StringBuilder HashMarks(int n){ StringBuilder sb = new StringBuilder(); for (int i=0; i<n; i++){ sb.append("#"); } return sb; } } class Dom { final int b; //?£? final int f; //??? final int r; //?????? int v; //??? static List<Dom> allRes = new ArrayList<Dom>(); Dom (int b, int f, int r, int v){ this.b = b; this.f = f; this.r = r; this.v = v; } }
[ 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, 2, 4, 18, 13, 17, 41, 13, 2, 4, 18, 13, 17, 41, 13, 2, 4, 18, 13, 17, 41, 13, 4, 18, 13, 14, 2, 2, 18, 18, 18, 13, 13, 13, 13, 13, 17, 30, 0, 18, 18, 18, 13, 13, 13, 13, 17, 14, 2, 18, 18, 18, 13, 13, 13, 13, 17, 30, 0, 18, 18, 18, 13, 13, 13, 13, 17, 30, 0, 18, 18, 18, 13, 13, 13, 13, 13, 4, 18, 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, 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 ], [ 205, 5 ], [ 205, 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 ], [ 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 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 65, 71 ], [ 64, 72 ], [ 63, 73 ], [ 62, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 75, 83 ], [ 62, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 92 ], [ 85, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 95, 103 ], [ 84, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 105, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 117, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 132, 144 ], [ 144, 145 ], [ 145, 146 ], [ 132, 147 ], [ 148, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 156, 162 ], [ 149, 163 ], [ 163, 164 ], [ 164, 165 ], [ 149, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 175, 181 ], [ 148, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 131, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 187, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 6, 202 ], [ 202, 203 ], [ 0, 204 ], [ 204, 205 ], [ 204, 206 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args)throws Exception {\n\n /*\n * A大学は1フロア10部屋、\n * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n * \n * n件の情報が与えられます。各情報では、4つの整数b, f, r,\n * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n * \n * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。\n * \n * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。\n */\n int[][][] array_House = new int[4][3][10];\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }\n sc.close();\n\n for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args)throws Exception {\n\n /*\n * A大学は1フロア10部屋、\n * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n * \n * n件の情報が与えられます。各情報では、4つの整数b, f, r,\n * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n * \n * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。\n * \n * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。\n */\n int[][][] array_House = new int[4][3][10];\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }\n sc.close();\n\n for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }\n\n }\n}", "Main", "public static void main(String[] args)throws Exception {\n\n /*\n * A大学は1フロア10部屋、\n * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n * \n * n件の情報が与えられます。各情報では、4つの整数b, f, r,\n * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n * \n * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。\n * \n * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。\n */\n int[][][] array_House = new int[4][3][10];\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }\n sc.close();\n\n for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }\n\n }", "main", "{\n\n /*\n * A大学は1フロア10部屋、\n * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n * \n * n件の情報が与えられます。各情報では、4つの整数b, f, r,\n * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n * \n * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。\n * \n * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。\n */\n int[][][] array_House = new int[4][3][10];\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }\n sc.close();\n\n for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }\n\n }", "int[][][] array_House = new int[4][3][10];", "array_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 x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }", "int x = 0;", "int x = 0;", "x", "0", "x < n", "x", "n", "x++", "x++", "x", "{\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\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 if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\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", "if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }", "array_House[b][f][r] + v > 9", "array_House[b][f][r] + v", "array_House[b][f][r]", "array_House[b][f]", "array_House[b]", "array_House", "b", "f", "r", "v", "9", "{\n array_House[b][f][r] = 9;\n }", "array_House[b][f][r] = 9", "array_House[b][f][r]", "array_House[b][f]", "array_House[b]", "array_House", "b", "f", "r", "9", "if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }", "array_House[b][f][r] < 0", "array_House[b][f][r]", "array_House[b][f]", "array_House[b]", "array_House", "b", "f", "r", "0", "{\n array_House[b][f][r] = 0;\n }", "array_House[b][f][r] = 0", "array_House[b][f][r]", "array_House[b][f]", "array_House[b]", "array_House", "b", "f", "r", "0", "{\n array_House[b][f][r] += v;\n }", "array_House[b][f][r] += v", "array_House[b][f][r]", "array_House[b][f]", "array_House[b]", "array_House", "b", "f", "r", "v", "sc.close()", "sc.close", "sc", "for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < array_House.length", "i", "array_House.length", "array_House", "array_House.length", "i++", "i++", "i", "{\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }", "{\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }", "for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < array_House[i].length", "j", "array_House[i].length", "array_House[i]", "array_House", "i", "array_House[i].length", "j++", "j++", "j", "{\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }", "{\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }", "for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }", "int j2 = 0;", "int j2 = 0;", "j2", "0", "j2 < array_House[i][j].length", "j2", "array_House[i][j].length", "array_House[i][j]", "array_House[i]", "array_House", "i", "j", "array_House[i][j].length", "j2++", "j2++", "j2", "{\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }", "{\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }", "System.out.print(\" \" + array_House[i][j][j2])", "System.out.print", "System.out", "System", "System.out", "\" \" + array_House[i][j][j2]", "\" \"", "array_House[i][j][j2]", "array_House[i][j]", "array_House[i]", "array_House", "i", "j", "j2", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }", "i < array_House.length - 1", "i", "array_House.length - 1", "array_House.length", "array_House", "array_House.length", "1", "{\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)throws Exception {\n\n /*\n * A大学は1フロア10部屋、\n * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n * \n * n件の情報が与えられます。各情報では、4つの整数b, f, r,\n * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n * \n * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。\n * \n * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。\n */\n int[][][] array_House = new int[4][3][10];\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }\n sc.close();\n\n for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }\n\n }\n}", "public class Main {\n\n public static void main(String[] args)throws Exception {\n\n /*\n * A大学は1フロア10部屋、\n * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n * \n * n件の情報が与えられます。各情報では、4つの整数b, f, r,\n * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n * \n * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。\n * \n * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。\n */\n int[][][] array_House = new int[4][3][10];\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int x = 0; x < n; x++) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n if(array_House[b][f][r] + v > 9){\n array_House[b][f][r] = 9;\n }else if(array_House[b][f][r] < 0){\n array_House[b][f][r] = 0;\n }else{\n array_House[b][f][r] += v;\n }\n }\n sc.close();\n\n for (int i = 0; i < array_House.length; i++) {\n for (int j = 0; j < array_House[i].length; j++) {\n for (int j2 = 0; j2 < array_House[i][j].length; j2++) {\n\n System.out.print(\" \" + array_House[i][j][j2]);\n\n }\n System.out.println();\n }\n if (i < array_House.length - 1) {\n System.out.println(\"####################\");\n }\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args)throws Exception { /* * A大学は1フロア10部屋、 * 3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。 * * n件の情報が与えられます。各情報では、4つの整数b, f, r, * vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。 * * 最初、全ての部屋には誰も入居していないものとします。 最初の行に情報の数 n が与えられます。 * * 続いて n 件の情報が与えられます。各情報には4つの整数 b, f, r, v が空白区切りで1行に与えられます。 */ int[][][] array_House = new int[4][3][10]; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int x = 0; x < n; x++) { int b = sc.nextInt() - 1; int f = sc.nextInt() - 1; int r = sc.nextInt() - 1; int v = sc.nextInt(); if(array_House[b][f][r] + v > 9){ array_House[b][f][r] = 9; }else if(array_House[b][f][r] < 0){ array_House[b][f][r] = 0; }else{ array_House[b][f][r] += v; } } sc.close(); for (int i = 0; i < array_House.length; i++) { for (int j = 0; j < array_House[i].length; j++) { for (int j2 = 0; j2 < array_House[i][j].length; j2++) { System.out.print(" " + array_House[i][j][j2]); } System.out.println(); } if (i < array_House.length - 1) { System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 0, 13, 20, 17, 17, 0, 13, 20, 17, 17, 17, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 13, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 40, 13, 0, 13, 17, 42, 2, 13, 17, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 18, 13, 13, 17, 17, 13, 30, 0, 18, 18, 18, 13, 13, 2, 18, 18, 13, 13, 17, 17, 2, 18, 18, 13, 13, 17, 17, 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, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 211, 5 ], [ 211, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 53, 85 ], [ 85, 86 ], [ 8, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 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 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 109, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 120, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 132, 138 ], [ 119, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 94, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 149, 151 ], [ 144, 152 ], [ 152, 153 ], [ 153, 154 ], [ 144, 155 ], [ 156, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 157, 165 ], [ 165, 166 ], [ 166, 167 ], [ 157, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 177, 183 ], [ 156, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 94, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 190, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 200, 205 ], [ 94, 206 ], [ 206, 207 ], [ 6, 208 ], [ 208, 209 ], [ 0, 210 ], [ 210, 211 ], [ 210, 212 ] ]
[ "import java.util.Scanner;\n\npublic class Main{ \n public static void main(String[] args){\n int i=0,j,k,l,m,o=0,p=0;\n int a[][];\n int q[][][];\n a = new int[1000][1000];\n q = new int[1000][10][10];\n Scanner n = new Scanner(System.in);\n int c = n.nextInt();\n while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }\n i=0;\n while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }\n }\n }", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{ \n public static void main(String[] args){\n int i=0,j,k,l,m,o=0,p=0;\n int a[][];\n int q[][][];\n a = new int[1000][1000];\n q = new int[1000][10][10];\n Scanner n = new Scanner(System.in);\n int c = n.nextInt();\n while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }\n i=0;\n while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }\n }\n }", "Main", "public static void main(String[] args){\n int i=0,j,k,l,m,o=0,p=0;\n int a[][];\n int q[][][];\n a = new int[1000][1000];\n q = new int[1000][10][10];\n Scanner n = new Scanner(System.in);\n int c = n.nextInt();\n while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }\n i=0;\n while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }\n }", "main", "{\n int i=0,j,k,l,m,o=0,p=0;\n int a[][];\n int q[][][];\n a = new int[1000][1000];\n q = new int[1000][10][10];\n Scanner n = new Scanner(System.in);\n int c = n.nextInt();\n while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }\n i=0;\n while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }\n }", "int i=0", "i", "0", "j", "j", "k", "k", "l", "l", "m", "m", "o=0", "o", "0", "p=0;", "p", "0", "int a[][];", "a", "int q[][][];", "q", "a = new int[1000][1000]", "a", "new int[1000][1000]", "1000", "1000", "q = new int[1000][10][10]", "q", "new int[1000][10][10]", "1000", "10", "10", "Scanner n = new Scanner(System.in);", "n", "new Scanner(System.in)", "int c = n.nextInt();", "c", "n.nextInt()", "n.nextInt", "n", "while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }", "i<c", "i", "c", "{\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }", "a[i][0] = n.nextInt()", "a[i][0]", "a[i]", "a", "i", "0", "n.nextInt()", "n.nextInt", "n", "for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }", "j=1;", "j=1", "j", "1", "j<4", "j", "4", "j++", "j++", "j", "{\n a[i][j]=n.nextInt();\n }", "{\n a[i][j]=n.nextInt();\n }", "a[i][j]=n.nextInt()", "a[i][j]", "a[i]", "a", "i", "j", "n.nextInt()", "n.nextInt", "n", "i++", "i", "i=0", "i", "0", "while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }", "i<4", "i", "4", "{\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }", "for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }", "m=0;", "m=0", "m", "0", "m<c", "m", "c", "m++", "m++", "m", "{\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }", "{\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }", "if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }", "((a[m][0])-1)==i", "((a[m][0])-1)", "(a[m][0])", "a[m]", "a", "m", "0", "1", "i", "{\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }", "q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3]", "q[i][(a[m][1]-1)][(a[m][2]-1)]", "q[i][(a[m][1]-1)]", "q[i]", "q", "i", "(a[m][1]-1)", "a[m][1]", "a[m]", "a", "m", "1", "1", "(a[m][2]-1)", "a[m][2]", "a[m]", "a", "m", "2", "1", "a[m][3]", "a[m]", "a", "m", "3", "for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }", "k=0;", "k=0", "k", "0", "k<3", "k", "3", "k++", "k++", "k", "{\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }", "{\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }", "for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }", "l=0;", "l=0", "l", "0", "l<10", "l", "10", "l++", "l++", "l", "{\n System.out.print(\" \" + q[i][k][l]);\n }", "{\n System.out.print(\" \" + q[i][k][l]);\n }", "System.out.print(\" \" + q[i][k][l])", "System.out.print", "System.out", "System", "System.out", "\" \" + q[i][k][l]", "\" \"", "q[i][k][l]", "q[i][k]", "q[i]", "q", "i", "k", "l", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }", "i==3", "i", "3", "{\n System.exit(0);\n }", "System.exit(0)", "System.exit", "System", "0", "{\n System.out.println(\"####################\");\n }", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "i++", "i", "String[] args", "args", "public class Main{ \n public static void main(String[] args){\n int i=0,j,k,l,m,o=0,p=0;\n int a[][];\n int q[][][];\n a = new int[1000][1000];\n q = new int[1000][10][10];\n Scanner n = new Scanner(System.in);\n int c = n.nextInt();\n while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }\n i=0;\n while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }\n }\n }", "public class Main{ \n public static void main(String[] args){\n int i=0,j,k,l,m,o=0,p=0;\n int a[][];\n int q[][][];\n a = new int[1000][1000];\n q = new int[1000][10][10];\n Scanner n = new Scanner(System.in);\n int c = n.nextInt();\n while(i<c){\n a[i][0] = n.nextInt();\n for(j=1;j<4;j++){\n a[i][j]=n.nextInt();\n }\n i++;\n }\n i=0;\n while(i<4){\n for(m=0;m<c;m++){\n if(((a[m][0])-1)==i){\n q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3];\n }\n }\n for(k=0;k<3;k++){\n for(l=0;l<10;l++){\n System.out.print(\" \" + q[i][k][l]);\n }\n System.out.printf(\"\\n\");\n }\n if(i==3){\n System.exit(0);\n }else{\n System.out.println(\"####################\");\n }\n i++;\n }\n }\n }", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int i=0,j,k,l,m,o=0,p=0; int a[][]; int q[][][]; a = new int[1000][1000]; q = new int[1000][10][10]; Scanner n = new Scanner(System.in); int c = n.nextInt(); while(i<c){ a[i][0] = n.nextInt(); for(j=1;j<4;j++){ a[i][j]=n.nextInt(); } i++; } i=0; while(i<4){ for(m=0;m<c;m++){ if(((a[m][0])-1)==i){ q[i][(a[m][1]-1)][(a[m][2]-1)]+=a[m][3]; } } for(k=0;k<3;k++){ for(l=0;l<10;l++){ System.out.print(" " + q[i][k][l]); } System.out.printf("\n"); } if(i==3){ System.exit(0); }else{ System.out.println("####################"); } i++; } } }
[ 7, 15, 13, 17, 6, 13, 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, 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, 13, 13, 13, 13, 3, 34, 17, 1, 0, 18, 18, 13, 13, 13, 13, 3, 34, 17, 1, 0, 18, 18, 13, 13, 13, 13, 3, 34, 17, 1, 0, 18, 18, 13, 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, 35, 13, 34, 17, 1, 4, 18, 18, 13, 13, 17, 18, 18, 13, 13, 13, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 18, 18, 13, 13, 13, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 18, 18, 13, 13, 13, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 18, 18, 13, 13, 13, 3, 34, 1, 3, 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, 11 ], [ 11, 12 ], [ 11, 13 ], [ 4, 16 ], [ 16, 17 ], [ 16, 18 ], [ 4, 21 ], [ 21, 22 ], [ 21, 23 ], [ 4, 26 ], [ 26, 27 ], [ 26, 28 ], [ 4, 29 ], [ 29, 30 ], [ 29, 31 ], [ 4, 32 ], [ 32, 33 ], [ 32, 34 ], [ 4, 35 ], [ 35, 36 ], [ 35, 37 ], [ 4, 38 ], [ 38, 39 ], [ 38, 40 ], [ 4, 41 ], [ 41, 42 ], [ 41, 43 ], [ 4, 44 ], [ 44, 45 ], [ 44, 46 ], [ 4, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 49, 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 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 70, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 70, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 95, 103 ], [ 91, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 107, 113 ], [ 106, 114 ], [ 91, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 118, 124 ], [ 117, 125 ], [ 91, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 129, 135 ], [ 128, 136 ], [ 91, 137 ], [ 137, 138 ], [ 138, 139 ], [ 49, 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 ], [ 166, 174 ], [ 174, 175 ], [ 175, 176 ], [ 166, 177 ], [ 178, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 184, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 183, 195 ], [ 179, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 199, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 205, 209 ], [ 198, 210 ], [ 179, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 214, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 213, 225 ], [ 179, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 229, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 235, 239 ], [ 228, 240 ], [ 179, 241 ], [ 241, 242 ], [ 242, 243 ], [ 165, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 152, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 249, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 254, 259 ], [ 4, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 260, 266 ], [ 266, 267 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tint[][] s = new int [5][11];\n\tint[][] t = new int [5][11];\n\tint[][] c = new int [5][11];\n\tint[][] d = new int [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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\n\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[][] s = new int [5][11];\n\tint[][] t = new int [5][11];\n\tint[][] c = new int [5][11];\n\tint[][] d = new int [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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\n\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[][] s = new int [5][11];", "s", "new int [5][11]", "5", "11", "int[][] t = new int [5][11];", "t", "new int [5][11]", "5", "11", "int[][] c = new int [5][11];", "c", "new int [5][11]", "5", "11", "int[][] d = new int [5][11];", "d", "new int [5][11]", "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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\n\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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\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)", "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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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\ts[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tt[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tc[f][r] += v;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\td[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:", "s[f][r] += v", "s[f][r]", "s[f]", "s", "f", "r", "v", "break;", "case 2:", "2", "case 2:", "t[f][r] += v", "t[f][r]", "t[f]", "t", "f", "r", "v", "break;", "case 3:", "3", "case 3:", "c[f][r] += v", "c[f][r]", "c[f]", "c", "f", "r", "v", "break;", "case 4:", "4", "case 4:", "d[f][r] += v", "d[f][r]", "d[f]", "d", "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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\n\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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\n\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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\tif(n < 4) {\n\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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\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\t\tfor(k = 1; k < 11; k++) {\n\t\t\t\t\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "k = 1;", "k = 1", "k", "1", "k < 11", "k", "11", "k++", "k++", "k", "{\n\t\t\t\t\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tswitch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "switch(n) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",s[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",t[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",c[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.printf(\" %d\",d[i][k]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "n", "case 1:", "1", "case 1:", "System.out.printf(\" %d\",s[i][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "s[i][k]", "s[i]", "s", "i", "k", "break;", "case 2:", "2", "case 2:", "System.out.printf(\" %d\",t[i][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "t[i][k]", "t[i]", "t", "i", "k", "break;", "case 3:", "3", "case 3:", "System.out.printf(\" %d\",c[i][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "c[i][k]", "c[i]", "c", "i", "k", "break;", "case 4:", "4", "case 4:", "System.out.printf(\" %d\",d[i][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "d[i][k]", "d[i]", "d", "i", "k", "break;", "default:", "default:", "break;", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(n < 4) {\n\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "n < 4", "n", "4", "{\n\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[][] s = new int [5][11]; int[][] t = new int [5][11]; int[][] c = new int [5][11]; int[][] d = new int [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: s[f][r] += v; break; case 2: t[f][r] += v; break; case 3: c[f][r] += v; break; case 4: d[f][r] += v; break; default: break; } } for(n = 1; n <= 4; n++) { for(i = 1; i < 4; i++) { for(k = 1; k < 11; k++) { switch(n) { case 1: System.out.printf(" %d",s[i][k]); break; case 2: System.out.printf(" %d",t[i][k]); break; case 3: System.out.printf(" %d",c[i][k]); break; case 4: System.out.printf(" %d",d[i][k]); break; default: break; } } System.out.println(); } if(n < 4) { System.out.println("####################"); } } } public static void main(String[] args) { new Main().of(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 17, 41, 13, 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, 14, 2, 18, 18, 13, 2, 2, 2, 13, 17, 17, 2, 13, 17, 2, 13, 17, 17, 30, 0, 18, 18, 13, 2, 2, 2, 13, 17, 17, 2, 13, 17, 2, 13, 17, 13, 30, 0, 18, 18, 13, 2, 2, 2, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 13, 13, 13, 14, 2, 2, 2, 13, 17, 17, 2, 2, 2, 13, 17, 17, 17, 30, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 214, 5 ], [ 214, 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 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 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 ], [ 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 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 90, 102 ], [ 102, 103 ], [ 102, 104 ], [ 89, 105 ], [ 88, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 111, 117 ], [ 117, 118 ], [ 117, 119 ], [ 108, 120 ], [ 120, 121 ], [ 120, 122 ], [ 107, 123 ], [ 88, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 129, 135 ], [ 135, 136 ], [ 135, 137 ], [ 126, 138 ], [ 138, 139 ], [ 138, 140 ], [ 125, 141 ], [ 8, 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 ], [ 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 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 154, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 181, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 187, 193 ], [ 180, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 194, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 200, 205 ], [ 154, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 6, 211 ], [ 211, 212 ], [ 0, 213 ], [ 213, 214 ], [ 213, 215 ] ]
[ "import java.io.*;\npublic class Main\n{\n\tpublic static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = \n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint b,f,r,v;\n\t\tint[][] base = new int[12][10];\n\t\tString[] lines;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main\n{\n\tpublic static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = \n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint b,f,r,v;\n\t\tint[][] base = new int[12][10];\n\t\tString[] lines;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = \n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint b,f,r,v;\n\t\tint[][] base = new int[12][10];\n\t\tString[] lines;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = \n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint b,f,r,v;\n\t\tint[][] base = new int[12][10];\n\t\tString[] lines;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "BufferedReader br = \n\t\tnew 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 b", "b", "f", "f", "r", "r", "v;", "v", "int[][] base = new int[12][10];", "base", "new int[12][10]", "12", "10", "String[] lines;", "lines", "for(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(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\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}", "{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}", "lines = br.readLine().split(\" \")", "lines", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "b = Integer.parseInt(lines[0])", "b", "Integer.parseInt(lines[0])", "Integer.parseInt", "Integer", "lines[0]", "lines", "0", "f = Integer.parseInt(lines[1])", "f", "Integer.parseInt(lines[1])", "Integer.parseInt", "Integer", "lines[1]", "lines", "1", "r = Integer.parseInt(lines[2])", "r", "Integer.parseInt(lines[2])", "Integer.parseInt", "Integer", "lines[2]", "lines", "2", "v = Integer.parseInt(lines[3])", "v", "Integer.parseInt(lines[3])", "Integer.parseInt", "Integer", "lines[3]", "lines", "3", "if(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}", "base[((b-1)*3)+(f-1)][r-1]>=0", "base[((b-1)*3)+(f-1)][r-1]", "base[((b-1)*3)+(f-1)]", "base", "((b-1)*3)+(f-1)", "((b-1)*3)", "(b-1)", "b", "1", "3", "(f-1)", "f", "1", "r-1", "r", "1", "0", "{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}", "base[((b-1)*3)+(f-1)][r-1] += v", "base[((b-1)*3)+(f-1)][r-1]", "base[((b-1)*3)+(f-1)]", "base", "((b-1)*3)+(f-1)", "((b-1)*3)", "(b-1)", "b", "1", "3", "(f-1)", "f", "1", "r-1", "r", "1", "v", "{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}", "base[((b-1)*3)+(f-1)][r-1] = v", "base[((b-1)*3)+(f-1)][r-1]", "base[((b-1)*3)+(f-1)]", "base", "((b-1)*3)+(f-1)", "((b-1)*3)", "(b-1)", "b", "1", "3", "(f-1)", "f", "1", "r-1", "r", "1", "v", "for(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<12", "i", "12", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\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{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[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(\" \"+base[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}", "System.out.print(\" \"+base[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+base[i][j]", "\" \"", "base[i][j]", "base[i]", "base", "i", "j", "if((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}", "(i+1)!=12&&(i+1)%3==0", "(i+1)!=12", "(i+1)", "i", "1", "12", "(i+1)%3==0", "(i+1)%3", "(i+1)", "i", "1", "3", "0", "{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.print(\"####################\")", "System.out.print", "System.out", "System", "System.out", "\"####################\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] arg", "arg", "public class Main\n{\n\tpublic static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = \n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint b,f,r,v;\n\t\tint[][] base = new int[12][10];\n\t\tString[] lines;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = \n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint b,f,r,v;\n\t\tint[][] base = new int[12][10];\n\t\tString[] lines;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tlines = br.readLine().split(\" \");\n\t\t\tb = Integer.parseInt(lines[0]);\n\t\t\tf = Integer.parseInt(lines[1]);\n\t\t\tr = Integer.parseInt(lines[2]);\n\t\t\tv = Integer.parseInt(lines[3]);\n\t\t\tif(base[((b-1)*3)+(f-1)][r-1]>=0)\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] += v;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbase[((b-1)*3)+(f-1)][r-1] = v;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<12;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+base[i][j]);\n\t\t\t}\n\n\t\t\tif((i+1)!=12&&(i+1)%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"####################\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\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 N = Integer.parseInt(br.readLine()); int b,f,r,v; int[][] base = new int[12][10]; String[] lines; for(int i=0;i<N;i++) { lines = br.readLine().split(" "); b = Integer.parseInt(lines[0]); f = Integer.parseInt(lines[1]); r = Integer.parseInt(lines[2]); v = Integer.parseInt(lines[3]); if(base[((b-1)*3)+(f-1)][r-1]>=0) { base[((b-1)*3)+(f-1)][r-1] += v; } else { base[((b-1)*3)+(f-1)][r-1] = v; } } for(int i=0;i<12;i++) { for(int j=0;j<10;j++) { System.out.print(" "+base[i][j]); } if((i+1)!=12&&(i+1)%3==0) { System.out.println(); System.out.print("####################"); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 17, 17, 17, 12, 13, 30, 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, 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, 4, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 23, 13, 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, 9 ], [ 9, 10 ], [ 9, 11 ], [ 4, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 17, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 17, 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 ], [ 17, 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 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 4, 105 ], [ 105, 106 ], [ 105, 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 ], [ 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 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 141, 147 ], [ 120, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 105, 153 ], [ 153, 154 ], [ 4, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 155, 161 ], [ 161, 162 ] ]
[ "import java.util.*;\nclass Main{\n\tScanner sc=new Scanner(System.in);\n\tint[][][] gundam=new int[4][3][10];\n\tvoid Main(){\n\t\tint N=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tfor(int i=0;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\tgundam[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\toutput(i);\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}\n\tvoid output(int b){\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(\" \"+gundam[b][i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\tpublic static void main(String[]args){\n\t\t\tnew Main().Main();\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tScanner sc=new Scanner(System.in);\n\tint[][][] gundam=new int[4][3][10];\n\tvoid Main(){\n\t\tint N=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tfor(int i=0;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\tgundam[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\toutput(i);\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}\n\tvoid output(int b){\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(\" \"+gundam[b][i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\tpublic static void main(String[]args){\n\t\t\tnew Main().Main();\n\t}\n}", "Main", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[][][] gundam=new int[4][3][10];", "gundam", "new int[4][3][10]", "4", "3", "10", "void Main(){\n\t\tint N=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tfor(int i=0;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\tgundam[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\toutput(i);\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}", "Main", "{\n\t\tint N=sc.nextInt();\n\t\tint b,f,r,v;\n\t\tfor(int i=0;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\tgundam[b-1][f-1][r-1]+=v;\n\t\t}\n\t\tfor(int i=0;i<4;i++){\n\t\t\toutput(i);\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}\n\t}", "int N=sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int b", "b", "f", "f", "r", "r", "v;", "v", "for(int i=0;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\tgundam[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=sc.nextInt();\n\t\t\tf=sc.nextInt();\n\t\t\tr=sc.nextInt();\n\t\t\tv=sc.nextInt();\n\t\t\tgundam[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\tgundam[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", "gundam[b-1][f-1][r-1]+=v", "gundam[b-1][f-1][r-1]", "gundam[b-1][f-1]", "gundam[b-1]", "gundam", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for(int i=0;i<4;i++){\n\t\t\toutput(i);\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\toutput(i);\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}", "{\n\t\t\toutput(i);\n\t\t\tif(i!=3)System.out.println(\"####################\");\n\t\t}", "output(i)", "output", "i", "if(i!=3)System.out.println(\"####################\");", "i!=3", "i", "3", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "void output(int b){\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(\" \"+gundam[b][i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "output", "{\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(\" \"+gundam[b][i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "for(int i=0;i<3;i++){\n\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\tSystem.out.print(\" \"+gundam[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(\" \"+gundam[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(\" \"+gundam[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(\" \"+gundam[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(\" \"+gundam[b][i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+gundam[b][i][j]);\n\t\t\t}", "System.out.print(\" \"+gundam[b][i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+gundam[b][i][j]", "\" \"", "gundam[b][i][j]", "gundam[b][i]", "gundam[b]", "gundam", "b", "i", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int b", "b", "public static void main(String[]args){\n\t\t\tnew Main().Main();\n\t}", "main", "{\n\t\t\tnew Main().Main();\n\t}", "new Main().Main()", "new Main().Main", "new Main()", "String[]args", "args" ]
import java.util.*; class Main{ Scanner sc=new Scanner(System.in); int[][][] gundam=new int[4][3][10]; void Main(){ int N=sc.nextInt(); int b,f,r,v; for(int i=0;i<N;i++){ b=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); v=sc.nextInt(); gundam[b-1][f-1][r-1]+=v; } for(int i=0;i<4;i++){ output(i); if(i!=3)System.out.println("####################"); } } void output(int b){ for(int i=0;i<3;i++){ for(int j=0;j<10;j++){ System.out.print(" "+gundam[b][i][j]); } System.out.println(); } } public static void main(String[]args){ new Main().Main(); } }
[ 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, 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, 0, 13, 4, 18, 13, 11, 1, 0, 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, 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, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 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 ], [ 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 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 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 ], [ 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 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 73, 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 ], [ 104, 105 ], [ 102, 106 ], [ 99, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 109, 113 ], [ 99, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 116, 120 ], [ 99, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 99, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 127, 133 ], [ 126, 134 ], [ 8, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 135, 146 ], [ 147, 147 ], [ 147, 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 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 186, 192 ], [ 174, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 194, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 201, 207 ], [ 147, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 213, 218 ], [ 6, 219 ], [ 219, 220 ], [ 0, 221 ], [ 221, 222 ], [ 221, 223 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,j,k,n,b,f,r,v;\n int build[][][]=new int[4][3][10];\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }\n n=scan.nextInt();\n for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\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 int i,j,k,n,b,f,r,v;\n int build[][][]=new int[4][3][10];\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }\n n=scan.nextInt();\n for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,j,k,n,b,f,r,v;\n int build[][][]=new int[4][3][10];\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }\n n=scan.nextInt();\n for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int i,j,k,n,b,f,r,v;\n int build[][][]=new int[4][3][10];\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }\n n=scan.nextInt();\n for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int i", "i", "j", "j", "k", "k", "n", "n", "b", "b", "f", "f", "r", "r", "v;", "v", "int build[][][]=new int[4][3][10];", "build", "new int[4][3][10]", "4", "3", "10", "for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }", "i=0;", "i=0", "i", "0", "i<4", "i", "4", "i++", "i++", "i", "{\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }", "{\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }", "for(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}", "j=0;", "j=0", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}", "{\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}", "for(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}", "k=0;", "k=0", "k", "0", "k<10", "k", "10", "k++", "k++", "k", "{\n \t\t\tbuild[i][j][k]=0;\n \t\t}", "{\n \t\t\tbuild[i][j][k]=0;\n \t\t}", "build[i][j][k]=0", "build[i][j][k]", "build[i][j]", "build[i]", "build", "i", "j", "k", "0", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }", "{\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }", "b=scan.nextInt()-1", "b", "scan.nextInt()-1", "scan.nextInt()", "scan.nextInt", "scan", "1", "f=scan.nextInt()-1", "f", "scan.nextInt()-1", "scan.nextInt()", "scan.nextInt", "scan", "1", "r=scan.nextInt()-1", "r", "scan.nextInt()-1", "scan.nextInt()", "scan.nextInt", "scan", "1", "v=scan.nextInt()", "v", "scan.nextInt()", "scan.nextInt", "scan", "build[b][f][r]+=v", "build[b][f][r]", "build[b][f]", "build[b]", "build", "b", "f", "r", "v", "for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }", "i=0;", "i=0", "i", "0", "i<4", "i", "4", "i++", "i++", "i", "{\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }", "{\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }", "for(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}", "j=0;", "j=0", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}", "{\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}", "for(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}", "k=0;", "k=0", "k", "0", "k<10", "k", "10", "k++", "k++", "k", "{\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}", "{\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}", "if(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}", "k==9", "k", "9", "{\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}", "System.out.println(\" \"+ build[i][j][k])", "System.out.println", "System.out", "System", "System.out", "\" \"+ build[i][j][k]", "\" \"", "build[i][j][k]", "build[i][j]", "build[i]", "build", "i", "j", "k", "{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}", "System.out.print(\" \" + build[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + build[i][j][k]", "\" \"", "build[i][j][k]", "build[i][j]", "build[i]", "build", "i", "j", "k", "if(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}", "i!=3", "i", "3", "{\n \t\tSystem.out.println(\"####################\");\n \t}", "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 scan=new Scanner(System.in);\n int i,j,k,n,b,f,r,v;\n int build[][][]=new int[4][3][10];\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }\n n=scan.nextInt();\n for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,j,k,n,b,f,r,v;\n int build[][][]=new int[4][3][10];\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tbuild[i][j][k]=0;\n \t\t}\n \t}\n }\n n=scan.nextInt();\n for(i=0;i<n;i++){\n \tb=scan.nextInt()-1;\n \tf=scan.nextInt()-1;\n \tr=scan.nextInt()-1;\n \tv=scan.nextInt();\n \tbuild[b][f][r]+=v;\n }\n for(i=0;i<4;i++){\n \tfor(j=0;j<3;j++){\n \t\tfor(k=0;k<10;k++){\n \t\t\tif(k==9){\n \t\t\t\tSystem.out.println(\" \"+ build[i][j][k]);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n \t\t\t}\n \t\t}\n \t}\n \tif(i!=3){\n \t\tSystem.out.println(\"####################\");\n \t}\n }\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,n,b,f,r,v; int build[][][]=new int[4][3][10]; for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ build[i][j][k]=0; } } } n=scan.nextInt(); for(i=0;i<n;i++){ b=scan.nextInt()-1; f=scan.nextInt()-1; r=scan.nextInt()-1; v=scan.nextInt(); build[b][f][r]+=v; } for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ if(k==9){ System.out.println(" "+ build[i][j][k]); } else{ System.out.print(" " + build[i][j][k]); } } } 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, 0, 18, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 18, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 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 ], [ 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 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 62, 64 ], [ 51, 65 ], [ 65, 66 ], [ 66, 67 ], [ 8, 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 ], [ 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 ], [ 96, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 6, 144 ], [ 144, 145 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint OffHouse[][][] = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\n\t\t}\n\t\tscan.close();\n\t\tfor(int i=0; i<4; i++){ //棟\n\t\t\tfor(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint OffHouse[][][] = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\n\t\t}\n\t\tscan.close();\n\t\tfor(int i=0; i<4; i++){ //棟\n\t\t\tfor(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint OffHouse[][][] = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\n\t\t}\n\t\tscan.close();\n\t\tfor(int i=0; i<4; i++){ //棟\n\t\t\tfor(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint OffHouse[][][] = new int[4][3][10];\n\t\tfor(int i=0; i<n; i++){\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\n\t\t}\n\t\tscan.close();\n\t\tfor(int i=0; i<4; i++){ //棟\n\t\t\tfor(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int OffHouse[][][] = new int[4][3][10];", "OffHouse", "new int[4][3][10]", "4", "3", "10", "for(int i=0; i<n; i++){\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\n\t\t}", "{\n\n\t\t\tint b = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tOffHouse[b-1][f-1][r-1] += scan.nextInt();\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", "OffHouse[b-1][f-1][r-1] += scan.nextInt()", "OffHouse[b-1][f-1][r-1]", "OffHouse[b-1][f-1]", "OffHouse[b-1]", "OffHouse", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "scan.nextInt()", "scan.nextInt", "scan", "scan.close()", "scan.close", "scan", "for(int i=0; i<4; i++){ //棟\n\t\t\tfor(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\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 s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{ //棟\n\t\t\tfor(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for(int s=0; s<3; s++){ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "int s=0;", "int s=0;", "s", "0", "s<3", "s", "3", "s++", "s++", "s", "{ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "{ //階\n\t\t\t\tfor(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tif(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "for(int t=0; t<10; t++){ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}", "int t=0;", "int t=0;", "t", "0", "t<10", "t", "10", "t++", "t++", "t", "{ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}", "{ //部屋\n\t\t\t\t\t\tSystem.out.print(\" \" + OffHouse[i][s][t]);\n\t\t\t\t\t}", "System.out.print(\" \" + OffHouse[i][s][t])", "System.out.print", "System.out", "System", "System.out", "\" \" + OffHouse[i][s][t]", "\" \"", "OffHouse[i][s][t]", "OffHouse[i][s]", "OffHouse[i]", "OffHouse", "i", "s", "t", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "if(i != 3 && s == 2)\n\t\t\t\t\tSystem.out.println(\"####################\");", "i != 3 && s == 2", "i != 3", "i", "3", "s == 2", "s", "2", "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 n = scan.nextInt(); int OffHouse[][][] = new int[4][3][10]; for(int i=0; i<n; i++){ int b = scan.nextInt(); int f = scan.nextInt(); int r = scan.nextInt(); OffHouse[b-1][f-1][r-1] += scan.nextInt(); } scan.close(); for(int i=0; i<4; i++){ //棟 for(int s=0; s<3; s++){ //階 for(int t=0; t<10; t++){ //部屋 System.out.print(" " + OffHouse[i][s][t]); } System.out.print("\n"); if(i != 3 && s == 2) System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 0, 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, 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, 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, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 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 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 65, 71 ], [ 64, 72 ], [ 8, 73 ], [ 73, 74 ], [ 8, 75 ], [ 75, 76 ], [ 8, 77 ], [ 77, 78 ], [ 8, 79 ], [ 79, 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 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 93, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 93, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 93, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 114, 122 ], [ 8, 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 ], [ 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 ], [ 149, 157 ], [ 157, 158 ], [ 158, 159 ], [ 149, 160 ], [ 161, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 162, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 168, 174 ], [ 148, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 135, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 135, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 8, 192 ], [ 192, 193 ], [ 193, 194 ], [ 6, 195 ], [ 195, 196 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) \t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint data = sc.nextInt();\n\t\tint apart[][][];\n\t\tapart = new int[5][4][11];\n\t\tfor(int i = 0 ; i < 5 ; i++) {\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint b,f,r,v;\n\t\tfor(int i = 0 ; i < data ; 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\tapart[b][f][r] += v;\n\t\t}\n\t\tfor(int i = 1 ; i <= 4 ; i++) {\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) \t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint data = sc.nextInt();\n\t\tint apart[][][];\n\t\tapart = new int[5][4][11];\n\t\tfor(int i = 0 ; i < 5 ; i++) {\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint b,f,r,v;\n\t\tfor(int i = 0 ; i < data ; 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\tapart[b][f][r] += v;\n\t\t}\n\t\tfor(int i = 1 ; i <= 4 ; i++) {\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) \t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint data = sc.nextInt();\n\t\tint apart[][][];\n\t\tapart = new int[5][4][11];\n\t\tfor(int i = 0 ; i < 5 ; i++) {\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint b,f,r,v;\n\t\tfor(int i = 0 ; i < data ; 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\tapart[b][f][r] += v;\n\t\t}\n\t\tfor(int i = 1 ; i <= 4 ; i++) {\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint data = sc.nextInt();\n\t\tint apart[][][];\n\t\tapart = new int[5][4][11];\n\t\tfor(int i = 0 ; i < 5 ; i++) {\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint b,f,r,v;\n\t\tfor(int i = 0 ; i < data ; 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\tapart[b][f][r] += v;\n\t\t}\n\t\tfor(int i = 1 ; i <= 4 ; i++) {\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int data = sc.nextInt();", "data", "sc.nextInt()", "sc.nextInt", "sc", "int apart[][][];", "apart", "apart = new int[5][4][11]", "apart", "new int[5][4][11]", "5", "4", "11", "for(int i = 0 ; i < 5 ; i++) {\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[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 < 5", "i", "5", "i++", "i++", "i", "{\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for(int j = 0 ; j < 4 ; j++) {\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}", "for(int k = 0 ; k < 11 ; k++) {\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}", "int k = 0 ;", "int k = 0 ;", "k", "0", "k < 11", "k", "11", "k++", "k++", "k", "{\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}", "{\n\t\t\t\t\tapart[i][j][k] = 0;\n\t\t\t\t}", "apart[i][j][k] = 0", "apart[i][j][k]", "apart[i][j]", "apart[i]", "apart", "i", "j", "k", "0", "int b", "b", "f", "f", "r", "r", "v;", "v", "for(int i = 0 ; i < data ; 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\tapart[b][f][r] += v;\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < data", "i", "data", "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\tapart[b][f][r] += 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\tapart[b][f][r] += 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", "apart[b][f][r] += v", "apart[b][f][r]", "apart[b][f]", "apart[b]", "apart", "b", "f", "r", "v", "for(int i = 1 ; i <= 4 ; i++) {\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}", "int i = 1 ;", "int i = 1 ;", "i", "1", "i <= 4", "i", "4", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}", "{\n\t\t\tfor(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tif(i == 4) break;\n\t\t\tSystem.out.printf(\"####################\\n\");\n\t\t}", "for(int j = 1 ; j <= 3; j++) {\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "int j = 1 ;", "int j = 1 ;", "j", "1", "j <= 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "for(int k = 1; k <= 10 ; k++) {\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}", "int k = 1;", "int k = 1;", "k", "1", "k <= 10", "k", "10", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.printf(\" %d\",apart[i][j][k]);\n\t\t\t\t}", "System.out.printf(\" %d\",apart[i][j][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "apart[i][j][k]", "apart[i][j]", "apart[i]", "apart", "i", "j", "k", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "if(i == 4) break;", "i == 4", "i", "4", "break;", "System.out.printf(\"####################\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"####################\\n\"", "sc.close()", "sc.close", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int data = sc.nextInt(); int apart[][][]; apart = new int[5][4][11]; for(int i = 0 ; i < 5 ; i++) { for(int j = 0 ; j < 4 ; j++) { for(int k = 0 ; k < 11 ; k++) { apart[i][j][k] = 0; } } } int b,f,r,v; for(int i = 0 ; i < data ; i++) { b = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); v = sc.nextInt(); apart[b][f][r] += v; } for(int i = 1 ; i <= 4 ; i++) { for(int j = 1 ; j <= 3; j++) { for(int k = 1; k <= 10 ; k++) { System.out.printf(" %d",apart[i][j][k]); } System.out.printf("\n"); } if(i == 4) break; System.out.printf("####################\n"); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 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, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 161, 5 ], [ 161, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 52, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 52, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 84, 86 ], [ 73, 87 ], [ 8, 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 ], [ 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 ], [ 100, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 6, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint bmax = 4; int fmax = 3; int rmax = 10;\n\t\tint n = scan.nextInt();\n\t\tint b; int f; int r; int v;\n\t\tint[][][] build = new int[4][3][10]; // build[b][f][r]\n\n\t\tfor (int i = 0; i < n; 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\tbuild[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) 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\tScanner scan = new Scanner(System.in);\n\t\tint bmax = 4; int fmax = 3; int rmax = 10;\n\t\tint n = scan.nextInt();\n\t\tint b; int f; int r; int v;\n\t\tint[][][] build = new int[4][3][10]; // build[b][f][r]\n\n\t\tfor (int i = 0; i < n; 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\tbuild[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\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 bmax = 4; int fmax = 3; int rmax = 10;\n\t\tint n = scan.nextInt();\n\t\tint b; int f; int r; int v;\n\t\tint[][][] build = new int[4][3][10]; // build[b][f][r]\n\n\t\tfor (int i = 0; i < n; 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\tbuild[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint bmax = 4; int fmax = 3; int rmax = 10;\n\t\tint n = scan.nextInt();\n\t\tint b; int f; int r; int v;\n\t\tint[][][] build = new int[4][3][10]; // build[b][f][r]\n\n\t\tfor (int i = 0; i < n; 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\tbuild[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int bmax = 4;", "bmax", "4", "int fmax = 3;", "fmax", "3", "int rmax = 10;", "rmax", "10", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int b;", "b", "int f;", "f", "int r;", "r", "int v;", "v", "int[][][] build = new int[4][3][10];", "build", "new int[4][3][10]", "4", "3", "10", "for (int i = 0; i < n; 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\tbuild[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 = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\tv = scan.nextInt();\n\t\t\tbuild[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\tbuild[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", "build[b-1][f-1][r-1] += v", "build[b-1][f-1][r-1]", "build[b-1][f-1]", "build[b-1]", "build", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < bmax", "i", "bmax", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\n\t\t}", "{\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\n\t\t}", "for (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[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 < fmax", "j", "fmax", "j++", "j++", "j", "{\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[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 < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < rmax", "k", "rmax", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \" + build[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + build[i][j][k]", "\" \"", "build[i][j][k]", "build[i][j]", "build[i]", "build", "i", "j", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (i != bmax - 1) System.out.println(\"####################\");", "i != bmax - 1", "i", "bmax - 1", "bmax", "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) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint bmax = 4; int fmax = 3; int rmax = 10;\n\t\tint n = scan.nextInt();\n\t\tint b; int f; int r; int v;\n\t\tint[][][] build = new int[4][3][10]; // build[b][f][r]\n\n\t\tfor (int i = 0; i < n; 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\tbuild[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\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 bmax = 4; int fmax = 3; int rmax = 10;\n\t\tint n = scan.nextInt();\n\t\tint b; int f; int r; int v;\n\t\tint[][][] build = new int[4][3][10]; // build[b][f][r]\n\n\t\tfor (int i = 0; i < n; 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\tbuild[b-1][f-1][r-1] += v;\n\t\t}\n\t\tfor (int i = 0; i < bmax; i++) {\n\t\t\tfor (int j = 0; j < fmax; j++) {\n\t\t\t\tfor (int k = 0; k < rmax; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + build[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i != bmax - 1) System.out.println(\"####################\");\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 bmax = 4; int fmax = 3; int rmax = 10; int n = scan.nextInt(); int b; int f; int r; int v; int[][][] build = new int[4][3][10]; // build[b][f][r] for (int i = 0; i < n; i++) { b = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); v = scan.nextInt(); build[b-1][f-1][r-1] += v; } for (int i = 0; i < bmax; i++) { for (int j = 0; j < fmax; j++) { for (int k = 0; k < rmax; k++) { System.out.print(" " + build[i][j][k]); } System.out.println(); } if (i != bmax - 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, 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, 4, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 23, 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 ], [ 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 ], [ 84, 86 ], [ 84, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 8, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 6, 101 ], [ 101, 102 ], [ 157, 103 ], [ 103, 104 ], [ 103, 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 ], [ 146, 151 ], [ 103, 152 ], [ 152, 153 ], [ 103, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "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[][][] dorm = 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 dorm[b-1][f-1][r-1] += v;\n }\n for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }\n print_dorm(dorm, 3);\n sc.close();\n }\n\n private static void print_dorm(int[][][] dorm, int wing) {\n for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\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 n = sc.nextInt();\n int[][][] dorm = 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 dorm[b-1][f-1][r-1] += v;\n }\n for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }\n print_dorm(dorm, 3);\n sc.close();\n }\n\n private static void print_dorm(int[][][] dorm, int wing) {\n for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] dorm = 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 dorm[b-1][f-1][r-1] += v;\n }\n for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }\n print_dorm(dorm, 3);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] dorm = 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 dorm[b-1][f-1][r-1] += v;\n }\n for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }\n print_dorm(dorm, 3);\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[][][] dorm = new int[4][3][10];", "dorm", "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 dorm[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 dorm[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 dorm[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", "dorm[b-1][f-1][r-1] += v", "dorm[b-1][f-1][r-1]", "dorm[b-1][f-1]", "dorm[b-1]", "dorm", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "++i", "++i", "i", "{\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }", "{\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }", "print_dorm(dorm, i)", "print_dorm", "dorm", "i", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "print_dorm(dorm, 3)", "print_dorm", "dorm", "3", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static void print_dorm(int[][][] dorm, int wing) {\n for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\n }\n }", "print_dorm", "{\n for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\n }\n }", "for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\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(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\n }", "{\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\n }", "for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }", "int j=0;", "int j=0;", "j", "0", "j<10", "j", "10", "++j", "++j", "j", "{\n System.out.print(\" \" + dorm[wing][i][j]);\n }", "{\n System.out.print(\" \" + dorm[wing][i][j]);\n }", "System.out.print(\" \" + dorm[wing][i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + dorm[wing][i][j]", "\" \"", "dorm[wing][i][j]", "dorm[wing][i]", "dorm[wing]", "dorm", "wing", "i", "j", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int[][][] dorm", "dorm", "int wing", "wing", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] dorm = 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 dorm[b-1][f-1][r-1] += v;\n }\n for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }\n print_dorm(dorm, 3);\n sc.close();\n }\n\n private static void print_dorm(int[][][] dorm, int wing) {\n for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\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 int n = sc.nextInt();\n int[][][] dorm = 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 dorm[b-1][f-1][r-1] += v;\n }\n for (int i=0; i<3; ++i) {\n print_dorm(dorm, i);\n System.out.println(\"####################\");\n }\n print_dorm(dorm, 3);\n sc.close();\n }\n\n private static void print_dorm(int[][][] dorm, int wing) {\n for (int i=0; i<3; ++i) {\n for (int j=0; j<10; ++j) {\n System.out.print(\" \" + dorm[wing][i][j]);\n }\n System.out.println(\"\");\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[][][] dorm = 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(); dorm[b-1][f-1][r-1] += v; } for (int i=0; i<3; ++i) { print_dorm(dorm, i); System.out.println("####################"); } print_dorm(dorm, 3); sc.close(); } private static void print_dorm(int[][][] dorm, int wing) { for (int i=0; i<3; ++i) { for (int j=0; j<10; ++j) { System.out.print(" " + dorm[wing][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, 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, 41, 13, 18, 13, 13, 28, 13, 13, 30, 30, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 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 ]
[ [ 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 ], [ 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 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 89, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 93, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 83, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 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 ], [ 116, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 6, 141 ], [ 141, 142 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][][] houseInfo = new int[4][3][10];\t// ?£?/????????¢/??¨?±? number\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\n\t\t\thouseInfo[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int b = 0; b < 4; b++) {\n\t\t\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][][] houseInfo = new int[4][3][10];\t// ?£?/????????¢/??¨?±? number\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\n\t\t\thouseInfo[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int b = 0; b < 4; b++) {\n\t\t\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][][] houseInfo = new int[4][3][10];\t// ?£?/????????¢/??¨?±? number\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\n\t\t\thouseInfo[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int b = 0; b < 4; b++) {\n\t\t\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][][] houseInfo = new int[4][3][10];\t// ?£?/????????¢/??¨?±? number\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\n\t\t\thouseInfo[b-1][f-1][r-1] += v;\n\t\t}\n\n\t\tfor(int b = 0; b < 4; b++) {\n\t\t\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][][] houseInfo = new int[4][3][10];", "houseInfo", "new int[4][3][10]", "4", "3", "10", "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\n\t\t\thouseInfo[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\n\t\t\thouseInfo[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\n\t\t\thouseInfo[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", "houseInfo[b-1][f-1][r-1] += v", "houseInfo[b-1][f-1][r-1]", "houseInfo[b-1][f-1]", "houseInfo[b-1]", "houseInfo", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for(int b = 0; b < 4; b++) {\n\t\t\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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 b = 0;", "int b = 0;", "b", "0", "b < 4", "b", "4", "b++", "b++", "b", "{\n\t\t\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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\tint[][] bInfo = houseInfo[b];\n\t\t\t\n\t\t\tfor(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tif(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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[][] bInfo = houseInfo[b];", "bInfo", "houseInfo[b]", "houseInfo", "b", "for(int[] fInfo : bInfo) {\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int[] fInfo", "bInfo", "{\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int h : fInfo) {\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}", "int h", "fInfo", "{\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + h);\n\t\t\t\t}", "System.out.print(\" \" + h)", "System.out.print", "System.out", "System", "System.out", "\" \" + h", "\" \"", "h", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(b != 3) {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "b != 3", "b", "3", "{\n\t\t\t\tfor (int i = 0; i < 20; i++) {\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 i = 0; i < 20; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 20", "i", "20", "i++", "i++", "i", "{\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" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][][] houseInfo = new int[4][3][10]; // ?£?/????????¢/??¨?±? number for (int i = 0; i < n; i++) { int b = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); int v = sc.nextInt(); houseInfo[b-1][f-1][r-1] += v; } for(int b = 0; b < 4; b++) { int[][] bInfo = houseInfo[b]; for(int[] fInfo : bInfo) { for(int h : fInfo) { System.out.print(" " + h); } System.out.println(); } if(b != 3) { for (int i = 0; i < 20; i++) { System.out.print("#"); } System.out.println(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 17, 17, 41, 13, 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, 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, 4, 13, 17, 13, 4, 13, 17, 13, 4, 13, 17, 13, 4, 13, 17, 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, 14, 2, 18, 18, 18, 13, 13, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 17, 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, 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 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 11, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 11, 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 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 85, 87 ], [ 74, 88 ], [ 11, 89 ], [ 89, 90 ], [ 89, 91 ], [ 89, 92 ], [ 11, 93 ], [ 93, 94 ], [ 93, 95 ], [ 93, 96 ], [ 11, 97 ], [ 97, 98 ], [ 97, 99 ], [ 97, 100 ], [ 11, 101 ], [ 101, 102 ], [ 101, 103 ], [ 101, 104 ], [ 9, 105 ], [ 105, 106 ], [ 192, 107 ], [ 107, 108 ], [ 107, 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 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 138, 144 ], [ 137, 145 ], [ 136, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 136, 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 ], [ 122, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 109, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 107, 187 ], [ 187, 188 ], [ 107, 189 ], [ 189, 190 ], [ 0, 191 ], [ 191, 192 ], [ 191, 193 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n int [][][] office = new int[4][3][10];\n int b=0,f=0,r=0,v=0,count=0;\n \n \n int n=scn.nextInt();\n for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }\n \n build(0,office);\n build(1,office);\n build(2,office);\n build(3,office);\n \n }\n\n\n private static void build(int count_b, int [][][] office_b) {\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }\n if(count_b!=3){\n System.out.println(\"####################\");\n }\n }\n \n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n int [][][] office = new int[4][3][10];\n int b=0,f=0,r=0,v=0,count=0;\n \n \n int n=scn.nextInt();\n for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }\n \n build(0,office);\n build(1,office);\n build(2,office);\n build(3,office);\n \n }\n\n\n private static void build(int count_b, int [][][] office_b) {\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }\n if(count_b!=3){\n System.out.println(\"####################\");\n }\n }\n \n}", "Main", "public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n int [][][] office = new int[4][3][10];\n int b=0,f=0,r=0,v=0,count=0;\n \n \n int n=scn.nextInt();\n for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }\n \n build(0,office);\n build(1,office);\n build(2,office);\n build(3,office);\n \n }", "main", "{\n Scanner scn = new Scanner(System.in);\n int [][][] office = new int[4][3][10];\n int b=0,f=0,r=0,v=0,count=0;\n \n \n int n=scn.nextInt();\n for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }\n \n build(0,office);\n build(1,office);\n build(2,office);\n build(3,office);\n \n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "int [][][] office = new int[4][3][10];", "office", "new int[4][3][10]", "4", "3", "10", "int b=0", "b", "0", "f=0", "f", "0", "r=0", "r", "0", "v=0", "v", "0", "count=0;", "count", "0", "int n=scn.nextInt();", "n", "scn.nextInt()", "scn.nextInt", "scn", "for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }", "{\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }", "b=scn.nextInt()", "b", "scn.nextInt()", "scn.nextInt", "scn", "f=scn.nextInt()", "f", "scn.nextInt()", "scn.nextInt", "scn", "r=scn.nextInt()", "r", "scn.nextInt()", "scn.nextInt", "scn", "v=scn.nextInt()", "v", "scn.nextInt()", "scn.nextInt", "scn", "office[b-1][f-1][r-1]+=v", "office[b-1][f-1][r-1]", "office[b-1][f-1]", "office[b-1]", "office", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "build(0,office)", "build", "0", "office", "build(1,office)", "build", "1", "office", "build(2,office)", "build", "2", "office", "build(3,office)", "build", "3", "office", "String[]args", "args", "private static void build(int count_b, int [][][] office_b) {\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }\n if(count_b!=3){\n System.out.println(\"####################\");\n }\n }", "build", "{\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }\n if(count_b!=3){\n System.out.println(\"####################\");\n }\n }", "for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \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 if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }", "{\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }", "for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }", "int j=0;", "int j=0;", "j", "0", "j<10", "j", "10", "j++", "j++", "j", "{\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }", "{\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }", "if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }", "office_b[count_b][i][j]==0", "office_b[count_b][i][j]", "office_b[count_b][i]", "office_b[count_b]", "office_b", "count_b", "i", "j", "0", "{\n System.out.print(\" \"+0);\n }", "System.out.print(\" \"+0)", "System.out.print", "System.out", "System", "System.out", "\" \"+0", "\" \"", "0", "{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }", "System.out.print(\" \"+office_b[count_b][i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+office_b[count_b][i][j]", "\" \"", "office_b[count_b][i][j]", "office_b[count_b][i]", "office_b[count_b]", "office_b", "count_b", "i", "j", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if(count_b!=3){\n System.out.println(\"####################\");\n }", "count_b!=3", "count_b", "3", "{\n System.out.println(\"####################\");\n }", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "int count_b", "count_b", "int [][][] office_b", "office_b", "public class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n int [][][] office = new int[4][3][10];\n int b=0,f=0,r=0,v=0,count=0;\n \n \n int n=scn.nextInt();\n for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }\n \n build(0,office);\n build(1,office);\n build(2,office);\n build(3,office);\n \n }\n\n\n private static void build(int count_b, int [][][] office_b) {\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }\n if(count_b!=3){\n System.out.println(\"####################\");\n }\n }\n \n}", "public class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n int [][][] office = new int[4][3][10];\n int b=0,f=0,r=0,v=0,count=0;\n \n \n int n=scn.nextInt();\n for(int i=0;i<n;i++){\n b=scn.nextInt();\n f=scn.nextInt();\n r=scn.nextInt();\n v=scn.nextInt();\n office[b-1][f-1][r-1]+=v;\n \n }\n \n build(0,office);\n build(1,office);\n build(2,office);\n build(3,office);\n \n }\n\n\n private static void build(int count_b, int [][][] office_b) {\n for(int i=0;i<3;i++){\n for(int j=0;j<10;j++){\n if(office_b[count_b][i][j]==0){\n System.out.print(\" \"+0);\n }else{\n System.out.print(\" \"+office_b[count_b][i][j]);\n }\n \n }\n \n System.out.println(\"\");\n \n }\n if(count_b!=3){\n System.out.println(\"####################\");\n }\n }\n \n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scn = new Scanner(System.in); int [][][] office = new int[4][3][10]; int b=0,f=0,r=0,v=0,count=0; int n=scn.nextInt(); for(int i=0;i<n;i++){ b=scn.nextInt(); f=scn.nextInt(); r=scn.nextInt(); v=scn.nextInt(); office[b-1][f-1][r-1]+=v; } build(0,office); build(1,office); build(2,office); build(3,office); } private static void build(int count_b, int [][][] office_b) { for(int i=0;i<3;i++){ for(int j=0;j<10;j++){ if(office_b[count_b][i][j]==0){ System.out.print(" "+0); }else{ System.out.print(" "+office_b[count_b][i][j]); } } System.out.println(""); } if(count_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, 20, 13, 13, 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, 18, 18, 18, 13, 13, 13, 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, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 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 ], [ 169, 5 ], [ 169, 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, 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 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 60, 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 ], [ 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 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 112, 119 ], [ 119, 120 ], [ 119, 121 ], [ 110, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 130, 136 ], [ 96, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 142, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 83, 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 ], [ 160, 165 ], [ 6, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "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 b = 5;\n\t\tint f = 4;\n\t\tint r = 11;\n\t\tint count[][][] = new int[b][f][r];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint b = 5;\n\t\tint f = 4;\n\t\tint r = 11;\n\t\tint count[][][] = new int[b][f][r];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\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 = 5;\n\t\tint f = 4;\n\t\tint r = 11;\n\t\tint count[][][] = new int[b][f][r];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\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 = 5;\n\t\tint f = 4;\n\t\tint r = 11;\n\t\tint count[][][] = new int[b][f][r];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\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 = 5;", "b", "5", "int f = 4;", "f", "4", "int r = 11;", "r", "11", "int count[][][] = new int[b][f][r];", "count", "new int[b][f][r]", "b", "f", "r", "for (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "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\tcount[b][f][r] += sc.nextInt();\n\t\t}", "{\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\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", "count[b][f][r] += sc.nextInt()", "count[b][f][r]", "count[b][f]", "count[b]", "count", "b", "f", "r", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 5", "i", "5", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "for (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < 11", "k", "11", "k++", "k++", "k", "{\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}", "if (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}", "i != 0 && j != 0 && k != 0", "i != 0 && j != 0 && k != 0", "i != 0", "i", "0", "j != 0", "j", "0", "k != 0", "k", "0", "{\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}", "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", "if (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "i != 0 && j != 0", "i != 0", "i", "0", "j != 0", "j", "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", "if (i < 4 && i != 0) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "i < 4 && i != 0", "i < 4", "i", "4", "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", "\"####################\"", "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 b = 5;\n\t\tint f = 4;\n\t\tint r = 11;\n\t\tint count[][][] = new int[b][f][r];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint b = 5;\n\t\tint f = 4;\n\t\tint r = 11;\n\t\tint count[][][] = new int[b][f][r];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tb = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tcount[b][f][r] += sc.nextInt();\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tfor (int k = 0; k < 11; k++) {\n\t\t\t\t\tif (i != 0 && j != 0 && k != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i != 0 && j != 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i < 4 && i != 0) {\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 = 5; int f = 4; int r = 11; int count[][][] = new int[b][f][r]; for (int i = 0; i < n; i++) { b = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); count[b][f][r] += sc.nextInt(); } for (int i = 0; i < 5; i++) { for (int j = 0; j < 4; j++) { for (int k = 0; k < 11; k++) { if (i != 0 && j != 0 && k != 0) { System.out.print(" " + count[i][j][k]); } } if (i != 0 && j != 0) { System.out.println(); } } if (i < 4 && i != 0) { 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, 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, 13, 2, 2, 2, 2, 13, 17, 17, 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, 14, 2, 2, 2, 2, 13, 17, 17, 17, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 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, 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 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 34, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 34, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 60, 66 ], [ 59, 67 ], [ 56, 68 ], [ 68, 69 ], [ 68, 70 ], [ 55, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 72, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 87, 99 ], [ 99, 100 ], [ 100, 101 ], [ 87, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 86, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 86, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 121, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 6, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "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[][] array=new int[12][10];\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}\n\t\tfor(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\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[][] array=new int[12][10];\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}\n\t\tfor(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\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[][] array=new int[12][10];\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}\n\t\tfor(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\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 n=sc.nextInt();\n\t\tint[][] array=new int[12][10];\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}\n\t\tfor(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\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 n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] array=new int[12][10];", "array", "new int[12][10]", "12", "10", "for(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}", "{\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}", "int bui=sc.nextInt();", "bui", "sc.nextInt()", "sc.nextInt", "sc", "int fl=sc.nextInt();", "fl", "sc.nextInt()", "sc.nextInt", "sc", "int ro=sc.nextInt();", "ro", "sc.nextInt()", "sc.nextInt", "sc", "int ppl=sc.nextInt();", "ppl", "sc.nextInt()", "sc.nextInt", "sc", "array[(bui-1)*3+fl-1][ro-1]+=ppl", "array[(bui-1)*3+fl-1][ro-1]", "array[(bui-1)*3+fl-1]", "array", "(bui-1)*3+fl-1", "(bui-1)*3+fl", "(bui-1)*3", "(bui-1)", "bui", "1", "3", "fl", "1", "ro-1", "ro", "1", "ppl", "for(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<array[0].length", "j", "array[0].length", "array[0]", "array", "0", "array[0].length", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}", "System.out.print(\" \"+array[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \"+array[i][j]", "\" \"", "array[i][j]", "array[i]", "array", "i", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "(i+1)%3==0 && (i+1)!=12", "(i+1)%3==0", "(i+1)%3", "(i+1)", "i", "1", "3", "0", "(i+1)!=12", "(i+1)", "i", "1", "12", "{\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\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[][] array=new int[12][10];\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}\n\t\tfor(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\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[][] array=new int[12][10];\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint bui=sc.nextInt();\n\t\t\tint fl=sc.nextInt();\n\t\t\tint ro=sc.nextInt();\n\t\t\tint ppl=sc.nextInt();\n\t\t\tarray[(bui-1)*3+fl-1][ro-1]+=ppl;\n\t\t}\n\t\tfor(int i=0; i<array.length; i++){\n\t\t\tfor(int j=0; j<array[0].length; j++){\n\t\t\t\tSystem.out.print(\" \"+array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif((i+1)%3==0 && (i+1)!=12){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\n\n\t}\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 n=sc.nextInt(); int[][] array=new int[12][10]; for(int i=1; i<=n; i++){ int bui=sc.nextInt(); int fl=sc.nextInt(); int ro=sc.nextInt(); int ppl=sc.nextInt(); array[(bui-1)*3+fl-1][ro-1]+=ppl; } for(int i=0; i<array.length; i++){ for(int j=0; j<array[0].length; j++){ System.out.print(" "+array[i][j]); } System.out.println(); if((i+1)%3==0 && (i+1)!=12){ 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, 20, 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, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 14, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 13, 0, 13, 20, 4, 18, 13, 13, 0, 13, 20, 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, 4, 18, 4, 18, 4, 18, 4, 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, 2, 4, 18, 4, 18, 4, 18, 4, 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, 17, 4, 18, 13, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 4, 18, 4, 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, 17, 30, 4, 18, 4, 18, 4, 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, 2, 17, 4, 18, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 4, 18, 4, 18, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 4, 18, 4, 18, 4, 18, 13, 13, 13, 13, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 4, 18, 4, 18, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 4, 18, 4, 18, 4, 18, 13, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 52, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 63, 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 ], [ 103, 106 ], [ 52, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 52, 111 ], [ 111, 112 ], [ 111, 113 ], [ 39, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 39, 118 ], [ 118, 119 ], [ 118, 120 ], [ 17, 121 ], [ 121, 122 ], [ 121, 123 ], [ 17, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 17, 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 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 147, 152 ], [ 144, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 172, 173 ], [ 172, 174 ], [ 168, 175 ], [ 163, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 180, 182 ], [ 176, 183 ], [ 161, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 188, 189 ], [ 188, 190 ], [ 184, 191 ], [ 159, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 206, 208 ], [ 202, 209 ], [ 197, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 211, 214 ], [ 214, 215 ], [ 214, 216 ], [ 210, 217 ], [ 195, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 219, 222 ], [ 222, 223 ], [ 222, 224 ], [ 218, 225 ], [ 192, 226 ], [ 155, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 230, 231 ], [ 230, 232 ], [ 144, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 242, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 246, 249 ], [ 249, 250 ], [ 249, 251 ], [ 245, 252 ], [ 240, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 254, 257 ], [ 257, 258 ], [ 257, 259 ], [ 253, 260 ], [ 238, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 262, 265 ], [ 265, 266 ], [ 265, 267 ], [ 261, 268 ], [ 238, 269 ], [ 233, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 276, 277 ], [ 275, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 279, 282 ], [ 282, 283 ], [ 282, 284 ], [ 278, 285 ], [ 273, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 287, 290 ], [ 290, 291 ], [ 290, 292 ], [ 286, 293 ], [ 271, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 295, 298 ], [ 298, 299 ], [ 298, 300 ], [ 294, 301 ], [ 271, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 305, 306 ], [ 304, 307 ], [ 144, 308 ], [ 308, 309 ], [ 308, 310 ], [ 17, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 311, 316 ], [ 316, 317 ], [ 316, 318 ], [ 311, 319 ], [ 319, 320 ], [ 320, 321 ], [ 311, 322 ], [ 323, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 324, 329 ], [ 329, 330 ], [ 329, 331 ], [ 324, 332 ], [ 332, 333 ], [ 333, 334 ], [ 324, 335 ], [ 336, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 338, 342 ], [ 342, 343 ], [ 342, 344 ], [ 337, 345 ], [ 345, 346 ], [ 336, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 347, 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 ], [ 366, 368 ], [ 365, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 372, 374 ], [ 370, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 378, 379 ], [ 379, 380 ], [ 380, 381 ], [ 379, 382 ], [ 377, 383 ], [ 375, 384 ], [ 365, 385 ], [ 385, 386 ], [ 386, 387 ], [ 387, 388 ], [ 388, 389 ], [ 388, 390 ], [ 386, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 395, 398 ], [ 393, 399 ], [ 391, 400 ], [ 347, 401 ], [ 401, 402 ], [ 402, 403 ], [ 403, 404 ], [ 404, 405 ], [ 404, 406 ], [ 402, 407 ], [ 407, 408 ], [ 407, 409 ], [ 402, 410 ], [ 410, 411 ], [ 411, 412 ], [ 402, 413 ], [ 414, 414 ], [ 414, 415 ], [ 415, 416 ], [ 416, 417 ], [ 416, 418 ], [ 415, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 422, 423 ], [ 422, 424 ], [ 420, 425 ], [ 425, 426 ], [ 426, 427 ], [ 427, 428 ], [ 428, 429 ], [ 429, 430 ], [ 430, 431 ], [ 429, 432 ], [ 427, 433 ], [ 425, 434 ], [ 415, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 438, 439 ], [ 438, 440 ], [ 436, 441 ], [ 441, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 445, 446 ], [ 446, 447 ], [ 445, 448 ], [ 443, 449 ], [ 441, 450 ], [ 15, 451 ], [ 451, 452 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tArrayList<ArrayList<ArrayList<String>>> itiKaiso = new ArrayList<ArrayList<ArrayList<String>>>();\n\t\tArrayList<ArrayList<String>> niKaiso = new ArrayList<ArrayList<String>>();\n\t\tArrayList<String> sanKaiso = new ArrayList<String>();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger infoCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < infoCount; i++) {\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\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", "import java.util.ArrayList;", "ArrayList", "java.util", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tArrayList<ArrayList<ArrayList<String>>> itiKaiso = new ArrayList<ArrayList<ArrayList<String>>>();\n\t\tArrayList<ArrayList<String>> niKaiso = new ArrayList<ArrayList<String>>();\n\t\tArrayList<String> sanKaiso = new ArrayList<String>();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger infoCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < infoCount; i++) {\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tArrayList<ArrayList<ArrayList<String>>> itiKaiso = new ArrayList<ArrayList<ArrayList<String>>>();\n\t\tArrayList<ArrayList<String>> niKaiso = new ArrayList<ArrayList<String>>();\n\t\tArrayList<String> sanKaiso = new ArrayList<String>();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger infoCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < infoCount; i++) {\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tArrayList<ArrayList<ArrayList<String>>> itiKaiso = new ArrayList<ArrayList<ArrayList<String>>>();\n\t\tArrayList<ArrayList<String>> niKaiso = new ArrayList<ArrayList<String>>();\n\t\tArrayList<String> sanKaiso = new ArrayList<String>();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger infoCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < infoCount; i++) {\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "ArrayList<ArrayList<ArrayList<String>>> itiKaiso = new ArrayList<ArrayList<ArrayList<String>>>();", "itiKaiso", "new ArrayList<ArrayList<ArrayList<String>>>()", "ArrayList<ArrayList<String>> niKaiso = new ArrayList<ArrayList<String>>();", "niKaiso", "new ArrayList<ArrayList<String>>()", "ArrayList<String> sanKaiso = new ArrayList<String>();", "sanKaiso", "new ArrayList<String>()", "for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\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 < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<ArrayList<String>>();\n\t\t}", "for (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}", "{\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tniKaiso.add(sanKaiso);\n\t\t\t\tsanKaiso = new ArrayList<String>();\n\t\t\t}", "if (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "j == 3 && i == 3", "j == 3", "j", "3", "i == 3", "i", "3", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "if (j == 3 && i < 3) {\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}", "j == 3 && i < 3", "j == 3", "j", "3", "i < 3", "i", "3", "{\n\t\t\t\t\tfor (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int l = 0; l < 20; l++) {\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l < 20", "l", "20", "l++", "l++", "l", "{\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tsanKaiso.add(\"#\");\n\t\t\t\t\t}", "sanKaiso.add(\"#\")", "sanKaiso.add", "sanKaiso", "\"#\"", "{\n\t\t\t\t\tfor (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int l = 0; l < 10; l++) {\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l < 10", "l", "10", "l++", "l++", "l", "{\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tsanKaiso.add(\" 0\");\n\t\t\t\t\t}", "sanKaiso.add(\" 0\")", "sanKaiso.add", "sanKaiso", "\" 0\"", "niKaiso.add(sanKaiso)", "niKaiso.add", "niKaiso", "sanKaiso", "sanKaiso = new ArrayList<String>()", "sanKaiso", "new ArrayList<String>()", "itiKaiso.add(niKaiso)", "itiKaiso.add", "itiKaiso", "niKaiso", "niKaiso = new ArrayList<ArrayList<String>>()", "niKaiso", "new ArrayList<ArrayList<String>>()", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "Integer infoCount = Integer.parseInt(br.readLine());", "infoCount", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < infoCount; i++) {\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < infoCount", "i", "infoCount", "i++", "i++", "i", "{\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}", "{\n\t\t\tString[] strIndexs = br.readLine().split(\" \");\n\t\t\tInteger addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);\n\t\t\tif (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}\n\t\t\taddNum = 0;\n\t\t}", "String[] strIndexs = br.readLine().split(\" \");", "strIndexs", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "Integer addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3]);", "addNum", "Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)) + Integer.parseInt(strIndexs[3])", "Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1))", "Integer.parseInt", "Integer", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring(\n\t\t\t\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t.substring", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t.get", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)", "itiKaiso.get", "itiKaiso", "Integer.parseInt(strIndexs[0]) - 1", "Integer.parseInt(strIndexs[0])", "Integer.parseInt", "Integer", "strIndexs[0]", "strIndexs", "0", "1", "Integer.parseInt(strIndexs[1]) - 1", "Integer.parseInt(strIndexs[1])", "Integer.parseInt", "Integer", "strIndexs[1]", "strIndexs", "1", "1", "Integer.parseInt(strIndexs[2]) - 1", "Integer.parseInt(strIndexs[2])", "Integer.parseInt", "Integer", "strIndexs[2]", "strIndexs", "2", "1", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length() - 1", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length()", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)\n\t\t\t\t\t\t\t.length", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1).get", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get(Integer.parseInt(strIndexs[1]) - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)\n\t\t\t\t\t\t\t.get", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)", "itiKaiso.get", "itiKaiso", "Integer.parseInt(strIndexs[0]) - 1", "Integer.parseInt(strIndexs[0])", "Integer.parseInt", "Integer", "strIndexs[0]", "strIndexs", "0", "1", "Integer.parseInt(strIndexs[1]) - 1", "Integer.parseInt(strIndexs[1])", "Integer.parseInt", "Integer", "strIndexs[1]", "strIndexs", "1", "1", "Integer.parseInt(strIndexs[2]) - 1", "Integer.parseInt(strIndexs[2])", "Integer.parseInt", "Integer", "strIndexs[2]", "strIndexs", "2", "1", "1", "Integer.parseInt(strIndexs[3])", "Integer.parseInt", "Integer", "strIndexs[3]", "strIndexs", "3", "if (addNum < 0) {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t} else {\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}", "addNum < 0", "addNum", "0", "{\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\");\n\t\t\t}", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" 0\")", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)", "itiKaiso.get", "itiKaiso", "Integer.parseInt(strIndexs[0]) - 1", "Integer.parseInt(strIndexs[0])", "Integer.parseInt", "Integer", "strIndexs[0]", "strIndexs", "0", "1", "Integer.parseInt(strIndexs[1]) - 1", "Integer.parseInt(strIndexs[1])", "Integer.parseInt", "Integer", "strIndexs[1]", "strIndexs", "1", "1", "Integer.parseInt(strIndexs[2]) - 1", "Integer.parseInt(strIndexs[2])", "Integer.parseInt", "Integer", "strIndexs[2]", "strIndexs", "2", "1", "\" 0\"", "{\n\t\t\t\titiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum));\n\t\t\t}", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set(Integer.parseInt(strIndexs[2]) - 1, \" \" + String.valueOf(addNum))", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)\n\t\t\t\t.set", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1)", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get", "itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1)", "itiKaiso.get", "itiKaiso", "Integer.parseInt(strIndexs[0]) - 1", "Integer.parseInt(strIndexs[0])", "Integer.parseInt", "Integer", "strIndexs[0]", "strIndexs", "0", "1", "Integer.parseInt(strIndexs[1]) - 1", "Integer.parseInt(strIndexs[1])", "Integer.parseInt", "Integer", "strIndexs[1]", "strIndexs", "1", "1", "Integer.parseInt(strIndexs[2]) - 1", "Integer.parseInt(strIndexs[2])", "Integer.parseInt", "Integer", "strIndexs[2]", "strIndexs", "2", "1", "\" \" + String.valueOf(addNum)", "\" \"", "String.valueOf(addNum)", "String.valueOf", "String", "addNum", "addNum = 0", "addNum", "0", "for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\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 < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if (j == 3 && i == 3) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "j == 3 && i == 3", "j == 3", "j", "3", "i == 3", "i", "3", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "if (j == 3) {\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "j == 3", "j", "3", "{\n\t\t\t\t\tfor (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "for (int k = 0; k < 20; k++) {\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < 20", "k", "20", "k++", "k++", "k", "{\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (k == 19) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}", "k == 19", "k", "19", "{\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}", "System.out.println(itiKaiso.get(i).get(j).get(k))", "System.out.println", "System.out", "System", "System.out", "itiKaiso.get(i).get(j).get(k)", "itiKaiso.get(i).get(j).get", "itiKaiso.get(i).get(j)", "itiKaiso.get(i).get", "itiKaiso.get(i)", "itiKaiso.get", "itiKaiso", "i", "j", "k", "{\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}", "System.out.print(itiKaiso.get(i).get(j).get(k))", "System.out.print", "System.out", "System", "System.out", "itiKaiso.get(i).get(j).get(k)", "itiKaiso.get(i).get(j).get", "itiKaiso.get(i).get(j)", "itiKaiso.get(i).get", "itiKaiso.get(i)", "itiKaiso.get", "itiKaiso", "i", "j", "k", "{\n\t\t\t\t\tfor (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "for (int k = 0; k < 10; k++) {\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\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\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (k == 9) {\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}", "k == 9", "k", "9", "{\n\t\t\t\t\t\t\tSystem.out.println(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}", "System.out.println(itiKaiso.get(i).get(j).get(k))", "System.out.println", "System.out", "System", "System.out", "itiKaiso.get(i).get(j).get(k)", "itiKaiso.get(i).get(j).get", "itiKaiso.get(i).get(j)", "itiKaiso.get(i).get", "itiKaiso.get(i)", "itiKaiso.get", "itiKaiso", "i", "j", "k", "{\n\t\t\t\t\t\t\tSystem.out.print(itiKaiso.get(i).get(j).get(k));\n\t\t\t\t\t\t}", "System.out.print(itiKaiso.get(i).get(j).get(k))", "System.out.print", "System.out", "System", "System.out", "itiKaiso.get(i).get(j).get(k)", "itiKaiso.get(i).get(j).get", "itiKaiso.get(i).get(j)", "itiKaiso.get(i).get", "itiKaiso.get(i)", "itiKaiso.get", "itiKaiso", "i", "j", "k", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; class Main { public static void main(String[] args) throws IOException { ArrayList<ArrayList<ArrayList<String>>> itiKaiso = new ArrayList<ArrayList<ArrayList<String>>>(); ArrayList<ArrayList<String>> niKaiso = new ArrayList<ArrayList<String>>(); ArrayList<String> sanKaiso = new ArrayList<String>(); for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { if (j == 3 && i == 3) { break; } if (j == 3 && i < 3) { for (int l = 0; l < 20; l++) { sanKaiso.add("#"); } } else { for (int l = 0; l < 10; l++) { sanKaiso.add(" 0"); } } niKaiso.add(sanKaiso); sanKaiso = new ArrayList<String>(); } itiKaiso.add(niKaiso); niKaiso = new ArrayList<ArrayList<String>>(); } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Integer infoCount = Integer.parseInt(br.readLine()); for (int i = 0; i < infoCount; i++) { String[] strIndexs = br.readLine().split(" "); Integer addNum = Integer.parseInt(itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1) .get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1) .substring( itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1) .get(Integer.parseInt(strIndexs[1]) - 1).get(Integer.parseInt(strIndexs[2]) - 1) .length() - 1)) + Integer.parseInt(strIndexs[3]); if (addNum < 0) { itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1) .set(Integer.parseInt(strIndexs[2]) - 1, " 0"); } else { itiKaiso.get(Integer.parseInt(strIndexs[0]) - 1).get(Integer.parseInt(strIndexs[1]) - 1) .set(Integer.parseInt(strIndexs[2]) - 1, " " + String.valueOf(addNum)); } addNum = 0; } for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { if (j == 3 && i == 3) { break; } if (j == 3) { for (int k = 0; k < 20; k++) { if (k == 19) { System.out.println(itiKaiso.get(i).get(j).get(k)); } else { System.out.print(itiKaiso.get(i).get(j).get(k)); } } } else { for (int k = 0; k < 10; k++) { if (k == 9) { System.out.println(itiKaiso.get(i).get(j).get(k)); } else { System.out.print(itiKaiso.get(i).get(j).get(k)); } } } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 18, 13, 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, 41, 13, 18, 18, 13, 13, 17, 41, 13, 18, 18, 13, 13, 17, 14, 2, 18, 18, 13, 13, 17, 17, 30, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 18, 18, 13, 13, 17, 14, 2, 18, 18, 13, 13, 17, 17, 30, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 18, 18, 13, 13, 17, 14, 2, 18, 18, 13, 13, 17, 17, 30, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 18, 18, 13, 13, 17, 14, 2, 18, 18, 13, 13, 17, 17, 30, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 2, 18, 18, 13, 2, 13, 17, 2, 13, 17, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 480, 11 ], [ 480, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 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 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 65, 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 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 14, 104 ], [ 104, 105 ], [ 104, 106 ], [ 14, 109 ], [ 109, 110 ], [ 109, 111 ], [ 14, 114 ], [ 114, 115 ], [ 114, 116 ], [ 14, 119 ], [ 119, 120 ], [ 119, 121 ], [ 14, 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 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 136, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 136, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 152, 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 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 171, 177 ], [ 177, 178 ], [ 177, 179 ], [ 170, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 136, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 186, 192 ], [ 185, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 195, 201 ], [ 201, 202 ], [ 201, 203 ], [ 194, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 208, 210 ], [ 205, 211 ], [ 211, 212 ], [ 211, 213 ], [ 204, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 214, 218 ], [ 136, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 221, 225 ], [ 220, 226 ], [ 219, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 232, 234 ], [ 229, 235 ], [ 235, 236 ], [ 235, 237 ], [ 228, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 242, 243 ], [ 242, 244 ], [ 239, 245 ], [ 245, 246 ], [ 245, 247 ], [ 238, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 136, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 254, 260 ], [ 253, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 266, 268 ], [ 263, 269 ], [ 269, 270 ], [ 269, 271 ], [ 262, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 276, 278 ], [ 273, 279 ], [ 279, 280 ], [ 279, 281 ], [ 272, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 14, 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 ], [ 315, 317 ], [ 313, 318 ], [ 318, 319 ], [ 318, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 320, 324 ], [ 299, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 14, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 330, 335 ], [ 14, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 336, 341 ], [ 341, 342 ], [ 341, 343 ], [ 336, 344 ], [ 344, 345 ], [ 345, 346 ], [ 336, 347 ], [ 348, 348 ], [ 348, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 349, 354 ], [ 354, 355 ], [ 354, 356 ], [ 349, 357 ], [ 357, 358 ], [ 358, 359 ], [ 349, 360 ], [ 361, 361 ], [ 361, 362 ], [ 362, 363 ], [ 363, 364 ], [ 364, 365 ], [ 364, 366 ], [ 362, 367 ], [ 367, 368 ], [ 367, 369 ], [ 369, 370 ], [ 370, 371 ], [ 370, 372 ], [ 369, 373 ], [ 348, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 376, 378 ], [ 14, 379 ], [ 379, 380 ], [ 380, 381 ], [ 381, 382 ], [ 381, 383 ], [ 379, 384 ], [ 14, 385 ], [ 385, 386 ], [ 386, 387 ], [ 387, 388 ], [ 387, 389 ], [ 385, 390 ], [ 390, 391 ], [ 390, 392 ], [ 385, 393 ], [ 393, 394 ], [ 394, 395 ], [ 385, 396 ], [ 397, 397 ], [ 397, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 398, 403 ], [ 403, 404 ], [ 403, 405 ], [ 398, 406 ], [ 406, 407 ], [ 407, 408 ], [ 398, 409 ], [ 410, 410 ], [ 410, 411 ], [ 411, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 411, 416 ], [ 416, 417 ], [ 416, 418 ], [ 418, 419 ], [ 419, 420 ], [ 419, 421 ], [ 418, 422 ], [ 397, 423 ], [ 423, 424 ], [ 424, 425 ], [ 425, 426 ], [ 425, 427 ], [ 14, 428 ], [ 428, 429 ], [ 429, 430 ], [ 430, 431 ], [ 430, 432 ], [ 428, 433 ], [ 14, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 436, 438 ], [ 434, 439 ], [ 439, 440 ], [ 439, 441 ], [ 434, 442 ], [ 442, 443 ], [ 443, 444 ], [ 434, 445 ], [ 446, 446 ], [ 446, 447 ], [ 447, 448 ], [ 448, 449 ], [ 449, 450 ], [ 449, 451 ], [ 447, 452 ], [ 452, 453 ], [ 452, 454 ], [ 447, 455 ], [ 455, 456 ], [ 456, 457 ], [ 447, 458 ], [ 459, 459 ], [ 459, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 460, 465 ], [ 465, 466 ], [ 465, 467 ], [ 467, 468 ], [ 468, 469 ], [ 468, 470 ], [ 467, 471 ], [ 446, 472 ], [ 472, 473 ], [ 473, 474 ], [ 474, 475 ], [ 474, 476 ], [ 12, 477 ], [ 477, 478 ], [ 0, 479 ], [ 479, 480 ], [ 479, 481 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t//?????±?????°n????¨??????????\n\t\tint n = (Integer.parseInt(br.readLine()));\n\t\t\n\t\t//n??¶????????±????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}\n\n\t\t\n\t\t//?????????????????±???int??????????????????2?¬?????????????????´???????\n\t\tint[][] data = new int[n][4];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±????????¨?????¨?±??????±????¨??????????\n\t\tint[][] building1 = new int[3][10];\n\t\tint[][] building2 = new int[3][10];\n\t\tint[][] building3 = new int[3][10];\n\t\tint[][] building4 = new int[3][10];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\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\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t//?????±?????°n????¨??????????\n\t\tint n = (Integer.parseInt(br.readLine()));\n\t\t\n\t\t//n??¶????????±????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}\n\n\t\t\n\t\t//?????????????????±???int??????????????????2?¬?????????????????´???????\n\t\tint[][] data = new int[n][4];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±????????¨?????¨?±??????±????¨??????????\n\t\tint[][] building1 = new int[3][10];\n\t\tint[][] building2 = new int[3][10];\n\t\tint[][] building3 = new int[3][10];\n\t\tint[][] building4 = new int[3][10];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t//?????±?????°n????¨??????????\n\t\tint n = (Integer.parseInt(br.readLine()));\n\t\t\n\t\t//n??¶????????±????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}\n\n\t\t\n\t\t//?????????????????±???int??????????????????2?¬?????????????????´???????\n\t\tint[][] data = new int[n][4];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±????????¨?????¨?±??????±????¨??????????\n\t\tint[][] building1 = new int[3][10];\n\t\tint[][] building2 = new int[3][10];\n\t\tint[][] building3 = new int[3][10];\n\t\tint[][] building4 = new int[3][10];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building4[i][j]);\n\t\t\t}\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\n\t\t//?????±?????°n????¨??????????\n\t\tint n = (Integer.parseInt(br.readLine()));\n\t\t\n\t\t//n??¶????????±????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}\n\n\t\t\n\t\t//?????????????????±???int??????????????????2?¬?????????????????´???????\n\t\tint[][] data = new int[n][4];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±????????¨?????¨?±??????±????¨??????????\n\t\tint[][] building1 = new int[3][10];\n\t\tint[][] building2 = new int[3][10];\n\t\tint[][] building3 = new int[3][10];\n\t\tint[][] building4 = new int[3][10];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building4[i][j]);\n\t\t\t}\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 n = (Integer.parseInt(br.readLine()));", "n", "(Integer.parseInt(br.readLine()))", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "for (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tlist.add(br.readLine());\n\t\t}", "{\n\t\t\tlist.add(br.readLine());\n\t\t}", "list.add(br.readLine())", "list.add", "list", "br.readLine()", "br.readLine", "br", "int[][] data = new int[n][4];", "data", "new int[n][4]", "n", "4", "for(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[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\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}", "String s = list.get(i);", "s", "list.get(i)", "list.get", "list", "i", "String [] ary = s.split(\" \", 0);", "ary", "s.split(\" \", 0)", "s.split", "s", "\" \"", "0", "for(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}", "{\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}", "data[i][j] = Integer.parseInt(ary[j])", "data[i][j]", "data[i]", "data", "i", "j", "Integer.parseInt(ary[j])", "Integer.parseInt", "Integer", "ary[j]", "ary", "j", "int[][] building1 = new int[3][10];", "building1", "new int[3][10]", "3", "10", "int[][] building2 = new int[3][10];", "building2", "new int[3][10]", "3", "10", "int[][] building3 = new int[3][10];", "building3", "new int[3][10]", "3", "10", "int[][] building4 = new int[3][10];", "building4", "new int[3][10]", "3", "10", "for(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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 floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t}", "{\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t}", "int floor = data[i][1];", "floor", "data[i][1]", "data[i]", "data", "i", "1", "int number = data[i][2];", "number", "data[i][2]", "data[i]", "data", "i", "2", "if(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}", "data[i][0] == 1", "data[i][0]", "data[i]", "data", "i", "0", "1", "{\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}", "building1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3]", "building1[floor - 1][number -1]", "building1[floor - 1]", "building1", "floor - 1", "floor", "1", "number -1", "number", "1", "building1[floor - 1][number -1] + data[i][3]", "building1[floor - 1][number -1]", "building1[floor - 1]", "building1", "floor - 1", "floor", "1", "number -1", "number", "1", "data[i][3]", "data[i]", "data", "i", "3", "if(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}", "data[i][0] == 2", "data[i][0]", "data[i]", "data", "i", "0", "2", "{\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}", "building2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3]", "building2[floor - 1][number -1]", "building2[floor - 1]", "building2", "floor - 1", "floor", "1", "number -1", "number", "1", "building2[floor - 1][number -1] + data[i][3]", "building2[floor - 1][number -1]", "building2[floor - 1]", "building2", "floor - 1", "floor", "1", "number -1", "number", "1", "data[i][3]", "data[i]", "data", "i", "3", "if(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}", "data[i][0] == 3", "data[i][0]", "data[i]", "data", "i", "0", "3", "{\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}", "building3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3]", "building3[floor - 1][number -1]", "building3[floor - 1]", "building3", "floor - 1", "floor", "1", "number -1", "number", "1", "building3[floor - 1][number -1] + data[i][3]", "building3[floor - 1][number -1]", "building3[floor - 1]", "building3", "floor - 1", "floor", "1", "number -1", "number", "1", "data[i][3]", "data[i]", "data", "i", "3", "if(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\n\t\t\t}", "data[i][0] == 4", "data[i][0]", "data[i]", "data", "i", "0", "4", "{\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\n\t\t\t}", "building4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3]", "building4[floor - 1][number -1]", "building4[floor - 1]", "building4", "floor - 1", "floor", "1", "number -1", "number", "1", "building4[floor - 1][number -1] + data[i][3]", "building4[floor - 1][number -1]", "building4[floor - 1]", "building4", "floor - 1", "floor", "1", "number -1", "number", "1", "data[i][3]", "data[i]", "data", "i", "3", "for(int i = 0; i < 3; i++) {\n\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\tSystem.out.print(\" \" + building1[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(\" \" + building1[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(\" \" + building1[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(\" \" + building1[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(\" \" + building1[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}", "System.out.print(\" \" + building1[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + building1[i][j]", "\" \"", "building1[i][j]", "building1[i]", "building1", "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(\" \" + building2[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(\" \" + building2[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(\" \" + building2[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(\" \" + building2[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(\" \" + building2[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + building2[i][j]);\n\t\t\t}", "System.out.print(\" \" + building2[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + building2[i][j]", "\" \"", "building2[i][j]", "building2[i]", "building2", "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(\" \" + building3[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(\" \" + building3[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(\" \" + building3[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(\" \" + building3[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(\" \" + building3[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + building3[i][j]);\n\t\t\t}", "System.out.print(\" \" + building3[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + building3[i][j]", "\" \"", "building3[i][j]", "building3[i]", "building3", "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(\" \" + building4[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(\" \" + building4[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(\" \" + building4[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(\" \" + building4[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(\" \" + building4[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + building4[i][j]);\n\t\t\t}", "System.out.print(\" \" + building4[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + building4[i][j]", "\" \"", "building4[i][j]", "building4[i]", "building4", "i", "j", "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 java.lang.Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t//?????±?????°n????¨??????????\n\t\tint n = (Integer.parseInt(br.readLine()));\n\t\t\n\t\t//n??¶????????±????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}\n\n\t\t\n\t\t//?????????????????±???int??????????????????2?¬?????????????????´???????\n\t\tint[][] data = new int[n][4];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±????????¨?????¨?±??????±????¨??????????\n\t\tint[][] building1 = new int[3][10];\n\t\tint[][] building2 = new int[3][10];\n\t\tint[][] building3 = new int[3][10];\n\t\tint[][] building4 = new int[3][10];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t//?????±?????°n????¨??????????\n\t\tint n = (Integer.parseInt(br.readLine()));\n\t\t\n\t\t//n??¶????????±????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.add(br.readLine());\n\t\t}\n\n\t\t\n\t\t//?????????????????±???int??????????????????2?¬?????????????????´???????\n\t\tint[][] data = new int[n][4];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \", 0);\n\t\t\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\t\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±????????¨?????¨?±??????±????¨??????????\n\t\tint[][] building1 = new int[3][10];\n\t\tint[][] building2 = new int[3][10];\n\t\tint[][] building3 = new int[3][10];\n\t\tint[][] building4 = new int[3][10];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint floor = data[i][1];\n\t\t\tint number = data[i][2];\n\t\t\tif(data[i][0] == 1) {\n\t\t\t\tbuilding1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 2) {\n\t\t\t\tbuilding2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 3) {\n\t\t\t\tbuilding3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3];\n\t\t\t}\n\t\t\tif(data[i][0] == 4) {\n\t\t\t\tbuilding4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3];\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\tSystem.out.print(\" \" + building1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"####################\");\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(\" \" + building4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\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 java.lang.Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //?????±?????°n????¨?????????? int n = (Integer.parseInt(br.readLine())); //n??¶????????±???????????? ArrayList<String> list = new ArrayList<String>(); for (int i = 0; i < n; i++) { list.add(br.readLine()); } //?????????????????±???int??????????????????2?¬?????????????????´??????? int[][] data = new int[n][4]; for(int i = 0; i < n; i++) { String s = list.get(i); String [] ary = s.split(" ", 0); for(int j = 0; j < 4; j++) { data[i][j] = Integer.parseInt(ary[j]); } } //?????±????????¨?????¨?±??????±????¨?????????? int[][] building1 = new int[3][10]; int[][] building2 = new int[3][10]; int[][] building3 = new int[3][10]; int[][] building4 = new int[3][10]; for(int i = 0; i < n; i++) { int floor = data[i][1]; int number = data[i][2]; if(data[i][0] == 1) { building1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3]; } if(data[i][0] == 2) { building2[floor - 1][number -1] = building2[floor - 1][number -1] + data[i][3]; } if(data[i][0] == 3) { building3[floor - 1][number -1] = building3[floor - 1][number -1] + data[i][3]; } if(data[i][0] == 4) { building4[floor - 1][number -1] = building4[floor - 1][number -1] + data[i][3]; } } //????????????????????? for(int i = 0; i < 3; i++) { for(int j = 0; j < 10; j++) { System.out.print(" " + building1[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(" " + building2[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(" " + building3[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(" " + building4[i][j]); } 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, 41, 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, 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, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 162, 5 ], [ 162, 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 ], [ 68, 72 ], [ 67, 73 ], [ 66, 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 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 136, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 108, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 6, 159 ], [ 159, 160 ], [ 0, 161 ], [ 161, 162 ], [ 161, 163 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\tint [][][]kanri =new int[5][4][11];\n\tint tou,kai,heya,nin,x;\n\tScanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tfor(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}\n\tfor(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\tint [][][]kanri =new int[5][4][11];\n\tint tou,kai,heya,nin,x;\n\tScanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tfor(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}\n\tfor(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\tint [][][]kanri =new int[5][4][11];\n\tint tou,kai,heya,nin,x;\n\tScanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tfor(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}\n\tfor(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n\t}", "main", "{\n\tint [][][]kanri =new int[5][4][11];\n\tint tou,kai,heya,nin,x;\n\tScanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tfor(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}\n\tfor(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n\t}", "int [][][]kanri =new int[5][4][11];", "kanri", "new int[5][4][11]", "5", "4", "11", "int tou", "tou", "kai", "kai", "heya", "heya", "nin", "nin", "x;", "x", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}", "x=1;", "x=1", "x", "1", "x<=n", "x", "n", "x++", "x++", "x", "{\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}", "{\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}", "tou=sc.nextInt()", "tou", "sc.nextInt()", "sc.nextInt", "sc", "kai=sc.nextInt()", "kai", "sc.nextInt()", "sc.nextInt", "sc", "heya=sc.nextInt()", "heya", "sc.nextInt()", "sc.nextInt", "sc", "nin=sc.nextInt()", "nin", "sc.nextInt()", "sc.nextInt", "sc", "kanri[tou][kai][heya]=kanri[tou][kai][heya]+nin", "kanri[tou][kai][heya]", "kanri[tou][kai]", "kanri[tou]", "kanri", "tou", "kai", "heya", "kanri[tou][kai][heya]+nin", "kanri[tou][kai][heya]", "kanri[tou][kai]", "kanri[tou]", "kanri", "tou", "kai", "heya", "nin", "for(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "tou=1;", "tou=1", "tou", "1", "tou<=4", "tou", "4", "tou++", "tou++", "tou", "{\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "{\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "for(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "kai=1;", "kai=1", "kai", "1", "kai<=3", "kai", "3", "kai++", "kai++", "kai", "{\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "{\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "for(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}", "heya=1;", "heya=1", "heya", "1", "heya<=10", "heya", "10", "heya++", "heya++", "heya", "{System.out.print(\" \"+kanri[tou][kai][heya]);}", "{System.out.print(\" \"+kanri[tou][kai][heya]);}", "System.out.print(\" \"+kanri[tou][kai][heya])", "System.out.print", "System.out", "System", "System.out", "\" \"+kanri[tou][kai][heya]", "\" \"", "kanri[tou][kai][heya]", "kanri[tou][kai]", "kanri[tou]", "kanri", "tou", "kai", "heya", "if(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}", "tou!=4&&kai==3", "tou!=4", "tou", "4", "kai==3", "kai", "3", "{System.out.print(\"\\n\"+\"####################\");}", "System.out.print(\"\\n\"+\"####################\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"+\"####################\"", "\"\\n\"", "\"####################\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\tint [][][]kanri =new int[5][4][11];\n\tint tou,kai,heya,nin,x;\n\tScanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tfor(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}\n\tfor(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\tint [][][]kanri =new int[5][4][11];\n\tint tou,kai,heya,nin,x;\n\tScanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tfor(x=1;x<=n;x++){\n\t\ttou=sc.nextInt();kai=sc.nextInt();\n\t\theya=sc.nextInt();nin=sc.nextInt();\n\t\tkanri[tou][kai][heya]=kanri[tou][kai][heya]+nin;\n\t}\n\tfor(tou=1;tou<=4;tou++){\n\t\tfor(kai=1;kai<=3;kai++){\n\t\t\tfor(heya=1;heya<=10;heya++){System.out.print(\" \"+kanri[tou][kai][heya]);}\n\t\t\tif(tou!=4&&kai==3){System.out.print(\"\\n\"+\"####################\");}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int [][][]kanri =new int[5][4][11]; int tou,kai,heya,nin,x; Scanner sc = new Scanner(System.in); int n=sc.nextInt(); for(x=1;x<=n;x++){ tou=sc.nextInt();kai=sc.nextInt(); heya=sc.nextInt();nin=sc.nextInt(); kanri[tou][kai][heya]=kanri[tou][kai][heya]+nin; } for(tou=1;tou<=4;tou++){ for(kai=1;kai<=3;kai++){ for(heya=1;heya<=10;heya++){System.out.print(" "+kanri[tou][kai][heya]);} if(tou!=4&&kai==3){System.out.print("\n"+"####################");} System.out.print("\n"); } } } }
[ 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;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tint[][][] array = new int [4][3][10];\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\n\t\tfor(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}\n\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 sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\n\t\tfor(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}\n\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 sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\n\t\tfor(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}\n\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 sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\n\t\tfor(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}\n\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 sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}", "{\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\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_num = sc.nextInt();", "room_num", "sc.nextInt()", "sc.nextInt", "sc", "int change = sc.nextInt();", "change", "sc.nextInt()", "sc.nextInt", "sc", "array[building-1][floor-1][room_num-1] += change", "array[building-1][floor-1][room_num-1]", "array[building-1][floor-1]", "array[building-1]", "array", "building-1", "building", "1", "floor-1", "floor", "1", "room_num-1", "room_num", "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 sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\n\t\tfor(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}\n\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 sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\n\t\tfor(int i = 0; i<num; i++){\n\t\t\tint building = sc.nextInt();\n\t\t\tint floor = sc.nextInt();\n\t\t\tint room_num = sc.nextInt();\n\t\t\tint change = sc.nextInt();\n\t\t\tarray[building-1][floor-1][room_num-1] += change;\n\t\t}\n\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 sc = new Scanner(System.in); int num = sc.nextInt(); for(int i = 0; i<num; i++){ int building = sc.nextInt(); int floor = sc.nextInt(); int room_num = sc.nextInt(); int change = sc.nextInt(); array[building-1][floor-1][room_num-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, 41, 13, 20, 17, 17, 17, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 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, 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, 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 ], [ 183, 5 ], [ 183, 6 ], [ 6, 7 ], [ 6, 8 ], [ 183, 12 ], [ 12, 13 ], [ 183, 14 ], [ 14, 15 ], [ 183, 16 ], [ 16, 17 ], [ 183, 18 ], [ 18, 19 ], [ 183, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 33, 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 ], [ 62, 63 ], [ 63, 64 ], [ 60, 65 ], [ 57, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 68, 75 ], [ 57, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 57, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 88, 95 ], [ 57, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 57, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 105, 111 ], [ 104, 112 ], [ 33, 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 ], [ 152, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 158, 164 ], [ 138, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 125, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 20, 180 ], [ 180, 181 ], [ 0, 182 ], [ 182, 183 ], [ 182, 184 ] ]
[ "// ITP1_6_C OfficialHouse\nimport java.io.*;\n\npublic class Main {\n static int[][][] count = new int[4][3][10];\n static int b,f,r,v;\n\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n static int[][][] count = new int[4][3][10];\n static int b,f,r,v;\n\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }\n }\n}", "Main", "static int[][][] count = new int[4][3][10];", "count", "new int[4][3][10]", "4", "3", "10", "static int b", "b", "f", "f", "r", "r", "v;", "v", "public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }\n }", "main", "{\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }\n }", "try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }", "catch (Exception e) {\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }", "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 String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\n }", "{\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\n }", "String[] array = (br.readLine()).split(\" \");", "array", "(br.readLine()).split(\" \")", "(br.readLine()).split", "(br.readLine())", "br.readLine", "br", "\" \"", "b = Integer.parseInt(array[0]) - 1", "b", "Integer.parseInt(array[0]) - 1", "Integer.parseInt(array[0])", "Integer.parseInt", "Integer", "array[0]", "array", "0", "1", "f = Integer.parseInt(array[1]) - 1", "f", "Integer.parseInt(array[1]) - 1", "Integer.parseInt(array[1])", "Integer.parseInt", "Integer", "array[1]", "array", "1", "1", "r = Integer.parseInt(array[2]) - 1", "r", "Integer.parseInt(array[2]) - 1", "Integer.parseInt(array[2])", "Integer.parseInt", "Integer", "array[2]", "array", "2", "1", "v = Integer.parseInt(array[3])", "v", "Integer.parseInt(array[3])", "Integer.parseInt", "Integer", "array[3]", "array", "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 for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\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.printf(\" %d\", count[i][j][k]);\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 k = 0; k < 10; k++) {\n System.out.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }", "for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", count[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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }", "{\n for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }", "for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", count[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n System.out.printf(\" %d\", count[i][j][k]);\n }", "{\n System.out.printf(\" %d\", count[i][j][k]);\n }", "System.out.printf(\" %d\", count[i][j][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "count[i][j][k]", "count[i][j]", "count[i]", "count", "i", "j", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (i < 3)\n System.out.printf(\"####################\\n\");", "i < 3", "i", "3", "System.out.printf(\"####################\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"####################\\n\"", "String[] args", "args", "public class Main {\n static int[][][] count = new int[4][3][10];\n static int b,f,r,v;\n\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }\n }\n}", "public class Main {\n static int[][][] count = new int[4][3][10];\n static int b,f,r,v;\n\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] array = (br.readLine()).split(\" \");\n b = Integer.parseInt(array[0]) - 1;\n f = Integer.parseInt(array[1]) - 1;\n r = Integer.parseInt(array[2]) - 1;\n v = Integer.parseInt(array[3]);\n\n count[b][f][r] += v;\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.printf(\" %d\", count[i][j][k]);\n }\n System.out.println();\n }\n if (i < 3)\n System.out.printf(\"####################\\n\");\n }\n }\n\n catch (Exception e) {\n System.out.println(e);\n }\n }\n}", "Main" ]
// ITP1_6_C OfficialHouse import java.io.*; public class Main { static int[][][] count = new int[4][3][10]; static int b,f,r,v; public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); for (int i = 0; i < n; i++) { String[] array = (br.readLine()).split(" "); b = Integer.parseInt(array[0]) - 1; f = Integer.parseInt(array[1]) - 1; r = Integer.parseInt(array[2]) - 1; v = Integer.parseInt(array[3]); 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++) { System.out.printf(" %d", count[i][j][k]); } System.out.println(); } if (i < 3) System.out.printf("####################\n"); } } catch (Exception e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 40, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 29, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 17, 17, 17, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 13, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 4, 18, 13, 17, 0, 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, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 19, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 18, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 18, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 36, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 36, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 54, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 54, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 79, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 72, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 14, 91 ], [ 91, 92 ], [ 12, 93 ], [ 93, 94 ], [ 0, 95 ], [ 296, 96 ], [ 296, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 99, 105 ], [ 105, 106 ], [ 99, 107 ], [ 107, 108 ], [ 99, 109 ], [ 109, 110 ], [ 99, 111 ], [ 111, 112 ], [ 99, 113 ], [ 113, 114 ], [ 99, 115 ], [ 115, 116 ], [ 115, 117 ], [ 99, 118 ], [ 118, 119 ], [ 99, 120 ], [ 120, 121 ], [ 120, 122 ], [ 99, 123 ], [ 123, 124 ], [ 123, 125 ], [ 99, 126 ], [ 126, 127 ], [ 126, 128 ], [ 99, 132 ], [ 132, 133 ], [ 132, 134 ], [ 99, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 99, 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 ], [ 166, 169 ], [ 169, 170 ], [ 170, 171 ], [ 152, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 172, 182 ], [ 182, 183 ], [ 183, 184 ], [ 172, 185 ], [ 186, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 186, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 186, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 152, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 204, 209 ], [ 203, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 211, 214 ], [ 152, 215 ], [ 215, 216 ], [ 215, 217 ], [ 99, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 218, 223 ], [ 223, 224 ], [ 223, 225 ], [ 218, 226 ], [ 226, 227 ], [ 227, 228 ], [ 218, 229 ], [ 230, 230 ], [ 230, 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 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 268, 270 ], [ 265, 271 ], [ 271, 272 ], [ 271, 273 ], [ 264, 274 ], [ 274, 275 ], [ 274, 276 ], [ 243, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 277, 282 ], [ 230, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 283, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 287, 292 ], [ 97, 293 ], [ 293, 294 ], [ 0, 295 ], [ 295, 296 ], [ 295, 297 ] ]
[ "import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n/**\n * ??¶?´??????¶???????????????\n * @author B7078\n *\n */\nclass Exception{\n\tpublic static int ex(ArrayList<Integer> parse){\n\t\tint result = 1;\n\t\tif(parse.get(0)<1 || parse.get(0) > 4){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(1)<1 || parse.get(1) > 3){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}\n}\n/**\n * ???????????????\n * @author B7078\n *\n */\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tException ex1 = new Exception();\n\t\tint b, f, r, v; // b?£?,f???,r???????????¨?±?,v?????????\n\t\tint temp;\n\t\tint n;\n\t\tint count = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\tint house[][][] = new int[4][3][10];\n\t\t/**\n\t\t * ???????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // ?????±??¶??°n?????\\???\n\n\t\tfor (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}\n\t\tfor(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}\n\t\t}\n\t\t}", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Exception{\n\tpublic static int ex(ArrayList<Integer> parse){\n\t\tint result = 1;\n\t\tif(parse.get(0)<1 || parse.get(0) > 4){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(1)<1 || parse.get(1) > 3){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}\n}", "Exception", "public static int ex(ArrayList<Integer> parse){\n\t\tint result = 1;\n\t\tif(parse.get(0)<1 || parse.get(0) > 4){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(1)<1 || parse.get(1) > 3){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}", "ex", "{\n\t\tint result = 1;\n\t\tif(parse.get(0)<1 || parse.get(0) > 4){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(1)<1 || parse.get(1) > 3){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}", "int result = 1;", "result", "1", "if(parse.get(0)<1 || parse.get(0) > 4){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(1)<1 || parse.get(1) > 3){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}", "parse.get(0)<1 || parse.get(0) > 4", "parse.get(0)<1", "parse.get(0)", "parse.get", "parse", "0", "1", "parse.get(0) > 4", "parse.get(0)", "parse.get", "parse", "0", "4", "{\n\t\t\tresult = 0;\n\t\t}", "result = 0", "result", "0", "if(parse.get(1)<1 || parse.get(1) > 3){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}", "parse.get(1)<1 || parse.get(1) > 3", "parse.get(1)<1", "parse.get(1)", "parse.get", "parse", "1", "1", "parse.get(1) > 3", "parse.get(1)", "parse.get", "parse", "1", "3", "{\n\t\t\tresult = 0;\n\t\t}", "result = 0", "result", "0", "if(parse.get(2)<1 || parse.get(2) > 10){\n\t\t\tresult = 0;\n\t\t}\n\t\telse if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}", "parse.get(2)<1 || parse.get(2) > 10", "parse.get(2)<1", "parse.get(2)", "parse.get", "parse", "2", "1", "parse.get(2) > 10", "parse.get(2)", "parse.get", "parse", "2", "10", "{\n\t\t\tresult = 0;\n\t\t}", "result = 0", "result", "0", "if(parse.get(3)<-9 || parse.get(3) > 9){\n\t\t\tresult = 0;\n\t\t}", "parse.get(3)<-9 || parse.get(3) > 9", "parse.get(3)<-9", "parse.get(3)", "parse.get", "parse", "3", "-9", "9", "parse.get(3) > 9", "parse.get(3)", "parse.get", "parse", "3", "9", "{\n\t\t\tresult = 0;\n\t\t}", "result = 0", "result", "0", "return result;", "result", "ArrayList<Integer> parse", "parse", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tException ex1 = new Exception();\n\t\tint b, f, r, v; // b?£?,f???,r???????????¨?±?,v?????????\n\t\tint temp;\n\t\tint n;\n\t\tint count = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\tint house[][][] = new int[4][3][10];\n\t\t/**\n\t\t * ???????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // ?????±??¶??°n?????\\???\n\n\t\tfor (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}\n\t\tfor(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}\n\t\t}\n\t\t}", "Main", "public static void main(String[] args) throws IOException{\n\t\tException ex1 = new Exception();\n\t\tint b, f, r, v; // b?£?,f???,r???????????¨?±?,v?????????\n\t\tint temp;\n\t\tint n;\n\t\tint count = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\tint house[][][] = new int[4][3][10];\n\t\t/**\n\t\t * ???????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // ?????±??¶??°n?????\\???\n\n\t\tfor (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}\n\t\tfor(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}\n\t\t}", "main", "{\n\t\tException ex1 = new Exception();\n\t\tint b, f, r, v; // b?£?,f???,r???????????¨?±?,v?????????\n\t\tint temp;\n\t\tint n;\n\t\tint count = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\tint house[][][] = new int[4][3][10];\n\t\t/**\n\t\t * ???????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // ?????±??¶??°n?????\\???\n\n\t\tfor (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}\n\t\tfor(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}\n\t\t}", "Exception ex1 = new Exception();", "ex1", "new Exception()", "int b", "b", "f", "f", "r", "r", "v;", "v", "int temp;", "temp", "int n;", "n", "int count = 0;", "count", "0", "String str;", "str", "ArrayList<String> st = new ArrayList<String>();", "st", "new ArrayList<String>()", "ArrayList<Integer> parse = new ArrayList<Integer>();", "parse", "new ArrayList<Integer>()", "int house[][][] = new int[4][3][10];", "house", "new int[4][3][10]", "4", "3", "10", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "for (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}", "int a = 0;", "int a = 0;", "a", "0", "a < n", "a", "n", "++a", "++a", "a", "{ //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}", "{ //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}", "for (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}", "int t = 0;", "int t = 0;", "t", "0", "t < 4", "t", "4", "t++", "t++", "t", "{ // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}", "{ // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}", "st.add(scan.next())", "st.add", "st", "scan.next()", "scan.next", "scan", "for (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}", "int p = count;", "int p = count;", "p", "count", "p < st.size()", "p", "st.size()", "st.size", "st", "++p", "++p", "p", "{\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}", "{\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}", "str = st.get(p)", "str", "st.get(p)", "st.get", "st", "p", "temp = Integer.parseInt(str)", "temp", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "parse.add(temp)", "parse.add", "parse", "temp", "if(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "ex1.ex(parse) == 0", "ex1.ex(parse)", "ex1.ex", "ex1", "parse", "0", "{\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "count += 4", "count", "4", "for(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}", "b = 1;", "b = 1", "b", "1", "b<5", "b", "5", "++b", "++b", "b", "{\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}", "{\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}", "for(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "f = 1;", "f = 1", "f", "1", "f<4", "f", "4", "++f", "++f", "f", "{\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}", "r = 1;", "r = 1", "r", "1", "r<11", "r", "11", "++r", "++r", "r", "{\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}", "System.out.print(\" \"+house[b-1][f-1][r-1])", "System.out.print", "System.out", "System", "System.out", "\" \"+house[b-1][f-1][r-1]", "\" \"", "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", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if(b<4)System.out.println(\"####################\");", "b<4", "b", "4", "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\tException ex1 = new Exception();\n\t\tint b, f, r, v; // b?£?,f???,r???????????¨?±?,v?????????\n\t\tint temp;\n\t\tint n;\n\t\tint count = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\tint house[][][] = new int[4][3][10];\n\t\t/**\n\t\t * ???????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // ?????±??¶??°n?????\\???\n\n\t\tfor (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}\n\t\tfor(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}\n\t\t}\n\t\t}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tException ex1 = new Exception();\n\t\tint b, f, r, v; // b?£?,f???,r???????????¨?±?,v?????????\n\t\tint temp;\n\t\tint n;\n\t\tint count = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\tint house[][][] = new int[4][3][10];\n\t\t/**\n\t\t * ???????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // ?????±??¶??°n?????\\???\n\n\t\tfor (int a = 0; a < n; ++a) { //??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < 4; t++) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\n\t\t\tfor (int p = count; p < st.size(); ++p) {\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp = Integer.parseInt(str);\n\t\t\t\tparse.add(temp);\n\t\t\t\t//System.out.println(\"parse[\"+p+\"] = \"+parse.get(p));\n\t\t\t}\n\t\t\tif(ex1.ex(parse) == 0){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tend:\n\t\t\tfor (b = 1; b < 5; ++b) { // 4?£?\n\t\t\t\t\tfor (f = 1; f < 4; ++f) { // 3????±?\n\t\t\t\t\t\t\tfor (r = 1; r < 11; ++r) { // 1~10???????????¨?±?\n\t\t\t\t\t\t\t\tif(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){\n\t\t\t\t\t\t\t\thouse[b-1][f-1][r-1] += parse.get(count+3);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶???\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" \"+b+\"?£?\"+f+\"???\"+r+\"???????????¨?±?????????°????????£??§??????????????????.\");\n\t\t\t\t\t\t\t\t\tbreak end;\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t//System.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t//if(b<4)System.out.println(\"####################\");\n\t\t\t}\n\t\t\tcount += 4;\n\t\t\t}\n\t\tfor(b = 1;b<5;++b){\n\t\t\tfor(f = 1;f<4;++f){\n\t\t\t\tfor(r = 1;r<11;++r){\n\t\t\t\t\tSystem.out.print(\" \"+house[b-1][f-1][r-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(b<4)System.out.println(\"####################\");\n\t\t}\n\t\t}\n\t\t}", "Main" ]
import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; /** * ??¶?´??????¶??????????????? * @author B7078 * */ class Exception{ public static int ex(ArrayList<Integer> parse){ int result = 1; if(parse.get(0)<1 || parse.get(0) > 4){ result = 0; } else if(parse.get(1)<1 || parse.get(1) > 3){ result = 0; } else if(parse.get(2)<1 || parse.get(2) > 10){ result = 0; } else if(parse.get(3)<-9 || parse.get(3) > 9){ result = 0; } return result; } } /** * ??????????????? * @author B7078 * */ public class Main { public static void main(String[] args) throws IOException{ Exception ex1 = new Exception(); int b, f, r, v; // b?£?,f???,r???????????¨?±?,v????????? int temp; int n; int count = 0; String str; ArrayList<String> st = new ArrayList<String>(); // ??\?????????????????????b,f,r,v ArrayList<Integer> parse = new ArrayList<Integer>(); // int?????? int house[][][] = new int[4][3][10]; /** * ???????????\??? */ Scanner scan = new Scanner(System.in); n = scan.nextInt(); // ?????±??¶??°n?????\??? for (int a = 0; a < n; ++a) { //??\?????¶??°???????????? for (int t = 0; t < 4; t++) { // ??\??????????????????????????????????????????????´? st.add(scan.next()); } for (int p = count; p < st.size(); ++p) { str = st.get(p); temp = Integer.parseInt(str); parse.add(temp); //System.out.println("parse["+p+"] = "+parse.get(p)); } if(ex1.ex(parse) == 0){ System.exit(0); } end: for (b = 1; b < 5; ++b) { // 4?£? for (f = 1; f < 4; ++f) { // 3????±? for (r = 1; r < 11; ++r) { // 1~10???????????¨?±? if(parse.get(count).equals(b) && parse.get(count+1).equals(f) && parse.get(count+2).equals(r)){ house[b-1][f-1][r-1] += parse.get(count+3); } /*if(house[b-1][f-1][r-1] < 0 || house[b-1][f-1][r-1] > 9){ //?????¨?±?????????°??¶??? System.out.println(" "+b+"?£?"+f+"???"+r+"???????????¨?±?????????°????????£??§??????????????????."); break end; }*/ //System.out.print(" "+house[b-1][f-1][r-1]); } //System.out.println(""); } //if(b<4)System.out.println("####################"); } count += 4; } for(b = 1;b<5;++b){ for(f = 1;f<4;++f){ for(r = 1;r<11;++r){ System.out.print(" "+house[b-1][f-1][r-1]); } System.out.println(""); } if(b<4)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, 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, 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 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 77, 85 ], [ 35, 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 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 111, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 98, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 4, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 154, 160 ], [ 160, 161 ] ]
[ "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\t\t\tt[b][f][r] += v;\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\t\t\tt[b][f][r] += v;\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\t\t\tt[b][f][r] += v;\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\t\t\tt[b][f][r] += v;\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\t\t\tt[b][f][r] += v;\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\t\t\tt[b][f][r] += 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\t\t\tt[b][f][r] += 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", "t[b][f][r] += v", "t[b][f][r]", "t[b][f]", "t[b]", "t", "b", "f", "r", "v", "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(); t[b][f][r] += v; } 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, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 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, 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, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 4, 18, 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, 4, 18, 13, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 206, 14 ], [ 206, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 206, 21 ], [ 21, 22 ], [ 21, 23 ], [ 206, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 28, 43 ], [ 43, 44 ], [ 43, 45 ], [ 28, 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 ], [ 28, 117 ], [ 117, 118 ], [ 117, 119 ], [ 28, 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 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 138, 144 ], [ 132, 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 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 158, 169 ], [ 170, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 171, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 177, 183 ], [ 157, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 28, 188 ], [ 188, 189 ], [ 189, 190 ], [ 188, 191 ], [ 191, 192 ], [ 192, 193 ], [ 28, 194 ], [ 194, 195 ], [ 195, 196 ], [ 206, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 197, 203 ], [ 203, 204 ], [ 0, 205 ], [ 205, 206 ], [ 205, 207 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\npublic class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n\tpublic static final String BUILD_SEPARATOR = \"####################\";\n public void exec() throws IOException {\n \ttry(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n\tpublic static final String BUILD_SEPARATOR = \"####################\";\n public void exec() throws IOException {\n \ttry(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main", "public static final String EOL = System.getProperty(\"line.separator\");", "EOL", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "public static final String BUILD_SEPARATOR = \"####################\";", "BUILD_SEPARATOR", "\"####################\"", "public void exec() throws IOException {\n \ttry(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}\n }", "exec", "{\n \ttry(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}\n }", "try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}", "{\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter out = new PrintWriter(System.out)", "PrintWriter out = new PrintWriter(System.out)", "new PrintWriter(System.out)", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[][][] bfr = new int[4][3][10];", "bfr", "new int[4][3][10]", "4", "3", "10", "for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }", "{\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }", "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", "bfr[b-1][f-1][r-1] += v", "bfr[b-1][f-1][r-1]", "bfr[b-1][f-1]", "bfr[b-1]", "bfr", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }", "int b=0;", "int b=0;", "b", "0", "b<4", "b", "4", "b++", "b++", "b", "{\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }", "{\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }", "if(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}", "b>0", "b", "0", "{\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}", "sb.append(BUILD_SEPARATOR).append(EOL)", "sb.append(BUILD_SEPARATOR).append", "sb.append(BUILD_SEPARATOR)", "sb.append", "sb", "BUILD_SEPARATOR", "EOL", "for(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}", "int f=0;", "int f=0;", "f", "0", "f<3", "f", "3", "f++", "f++", "f", "{\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}", "{\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}", "for(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}", "int r=0;", "int r=0;", "r", "0", "r<10", "r", "10", "r++", "r++", "r", "{\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}", "{\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}", "sb.append(' ').append(bfr[b][f][r])", "sb.append(' ').append", "sb.append(' ')", "sb.append", "sb", "' '", "bfr[b][f][r]", "bfr[b][f]", "bfr[b]", "bfr", "b", "f", "r", "sb.append(EOL)", "sb.append", "sb", "EOL", "out.print(sb.toString())", "out.print", "out", "sb.toString()", "sb.toString", "sb", "out.flush()", "out.flush", "out", "public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }", "main", "{\n \tnew Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n\tpublic static final String BUILD_SEPARATOR = \"####################\";\n public void exec() throws IOException {\n \ttry(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n\tpublic static final String BUILD_SEPARATOR = \"####################\";\n public void exec() throws IOException {\n \ttry(BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);){\n int n = Integer.parseInt(br.readLine());\n int[][][] bfr = new int[4][3][10];\n for(int i=0; i<n; i++) {\n \tString[] str = br.readLine().split(\" \");\n \tint b = Integer.parseInt(str[0]);\n \tint f = Integer.parseInt(str[1]);\n \tint r = Integer.parseInt(str[2]);\n \tint v = Integer.parseInt(str[3]);\n \tbfr[b-1][f-1][r-1] += v;\n }\n \n StringBuilder sb = new StringBuilder();\n for(int b=0; b<4; b++) {\n \tif(b>0) {\n \tsb.append(BUILD_SEPARATOR).append(EOL);\n \t}\n \tfor(int f=0; f<3; f++) {\n \tfor(int r=0; r<10; r++) {\n \t\tsb.append(' ').append(bfr[b][f][r]);\n \t}\n \tsb.append(EOL);\n \t}\n }\n out.print(sb.toString());\n out.flush();\n \t}\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { public static final String EOL = System.getProperty("line.separator"); public static final String BUILD_SEPARATOR = "####################"; public void exec() throws IOException { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out);){ int n = Integer.parseInt(br.readLine()); int[][][] bfr = new int[4][3][10]; 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]); bfr[b-1][f-1][r-1] += v; } StringBuilder sb = new StringBuilder(); for(int b=0; b<4; b++) { if(b>0) { sb.append(BUILD_SEPARATOR).append(EOL); } for(int f=0; f<3; f++) { for(int r=0; r<10; r++) { sb.append(' ').append(bfr[b][f][r]); } sb.append(EOL); } } out.print(sb.toString()); out.flush(); } } public static void main(String[] args) throws IOException { new Main().exec(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 39, 13, 13, 13, 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, 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, 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, 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 ], [ 206, 11 ], [ 206, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 14, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 48, 52 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 68, 73 ], [ 65, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 76, 83 ], [ 65, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 86, 93 ], [ 65, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 96, 103 ], [ 65, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 65, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 112, 120 ], [ 14, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 121, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 136, 148 ], [ 148, 149 ], [ 149, 150 ], [ 136, 151 ], [ 152, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 153, 167 ], [ 167, 168 ], [ 168, 169 ], [ 153, 170 ], [ 171, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 179, 185 ], [ 152, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 135, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 197, 202 ], [ 12, 203 ], [ 203, 204 ], [ 0, 205 ], [ 205, 206 ], [ 205, 207 ] ]
[ "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 N = Integer.parseInt(br.readLine());\n\n\t\tint[][] ground = new int[3][10];\n\t\tint[][] second = new int[3][10];\n\t\tint[][] third = new int[3][10];\n\t\tint[][] forth = new int[3][10];\n\n\t\tint[][][] all = {ground,second,third,forth};\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}\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", "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 N = Integer.parseInt(br.readLine());\n\n\t\tint[][] ground = new int[3][10];\n\t\tint[][] second = new int[3][10];\n\t\tint[][] third = new int[3][10];\n\t\tint[][] forth = new int[3][10];\n\n\t\tint[][][] all = {ground,second,third,forth};\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}\n\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 N = Integer.parseInt(br.readLine());\n\n\t\tint[][] ground = new int[3][10];\n\t\tint[][] second = new int[3][10];\n\t\tint[][] third = new int[3][10];\n\t\tint[][] forth = new int[3][10];\n\n\t\tint[][][] all = {ground,second,third,forth};\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[][] ground = new int[3][10];\n\t\tint[][] second = new int[3][10];\n\t\tint[][] third = new int[3][10];\n\t\tint[][] forth = new int[3][10];\n\n\t\tint[][][] all = {ground,second,third,forth};\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}\n\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[][] ground = new int[3][10];", "ground", "new int[3][10]", "3", "10", "int[][] second = new int[3][10];", "second", "new int[3][10]", "3", "10", "int[][] third = new int[3][10];", "third", "new int[3][10]", "3", "10", "int[][] forth = new int[3][10];", "forth", "new int[3][10]", "3", "10", "int[][][] all = {ground,second,third,forth};", "all", "{ground,second,third,forth}", "ground", "second", "third", "forth", "for(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l<N", "l", "N", "l++", "l++", "l", "{\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}", "{\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}", "String[] set = br.readLine().split(\" \");", "set", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int b = Integer.parseInt(set[0])-1;", "b", "Integer.parseInt(set[0])-1", "Integer.parseInt(set[0])", "Integer.parseInt", "Integer", "set[0]", "set", "0", "1", "int f = Integer.parseInt(set[1])-1;", "f", "Integer.parseInt(set[1])-1", "Integer.parseInt(set[1])", "Integer.parseInt", "Integer", "set[1]", "set", "1", "1", "int r = Integer.parseInt(set[2])-1;", "r", "Integer.parseInt(set[2])-1", "Integer.parseInt(set[2])", "Integer.parseInt", "Integer", "set[2]", "set", "2", "1", "int v = Integer.parseInt(set[3]);", "v", "Integer.parseInt(set[3])", "Integer.parseInt", "Integer", "set[3]", "set", "3", "all[b][f][r] += v", "all[b][f][r]", "all[b][f]", "all[b]", "all", "b", "f", "r", "v", "for(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < all.length", "i", "all.length", "all", "all.length", "i++", "i++", "i", "{\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}", "for(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\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 < all[i].length", "j", "all[i].length", "all[i]", "all", "i", "all[i].length", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\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 < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "for(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < all[i][j].length", "k", "all[i][j].length", "all[i][j]", "all[i]", "all", "i", "j", "all[i][j].length", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \" + all[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + all[i][j][k]", "\" \"", "all[i][j][k]", "all[i][j]", "all[i]", "all", "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.print(\"####################\\n\");\n\t\t\t}", "i != 3", "i", "3", "{\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}", "System.out.print(\"####################\\n\")", "System.out.print", "System.out", "System", "System.out", "\"####################\\n\"", "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 N = Integer.parseInt(br.readLine());\n\n\t\tint[][] ground = new int[3][10];\n\t\tint[][] second = new int[3][10];\n\t\tint[][] third = new int[3][10];\n\t\tint[][] forth = new int[3][10];\n\n\t\tint[][][] all = {ground,second,third,forth};\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}\n\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 N = Integer.parseInt(br.readLine());\n\n\t\tint[][] ground = new int[3][10];\n\t\tint[][] second = new int[3][10];\n\t\tint[][] third = new int[3][10];\n\t\tint[][] forth = new int[3][10];\n\n\t\tint[][][] all = {ground,second,third,forth};\n\n\t\tfor(int l = 0; l<N; l++){\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint b = Integer.parseInt(set[0])-1;\n\t\t\tint f = Integer.parseInt(set[1])-1;\n\t\t\tint r = Integer.parseInt(set[2])-1;\n\t\t\tint v = Integer.parseInt(set[3]);\n\n\t\t\tall[b][f][r] += v;\n\t\t}\n\n\t\tfor(int i = 0; i < all.length; i++){\n\t\t\tfor(int j = 0; j < all[i].length; j++) {\n\t\t\t\tfor(int k = 0; k < all[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + all[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tif (i != 3) {\n\t\t\t\tSystem.out.print(\"####################\\n\");\n\t\t\t}\n\t\t}\n\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 N = Integer.parseInt(br.readLine()); int[][] ground = new int[3][10]; int[][] second = new int[3][10]; int[][] third = new int[3][10]; int[][] forth = new int[3][10]; int[][][] all = {ground,second,third,forth}; for(int l = 0; l<N; l++){ String[] set = br.readLine().split(" "); int b = Integer.parseInt(set[0])-1; int f = Integer.parseInt(set[1])-1; int r = Integer.parseInt(set[2])-1; int v = Integer.parseInt(set[3]); all[b][f][r] += v; } for(int i = 0; i < all.length; i++){ for(int j = 0; j < all[i].length; j++) { for(int k = 0; k < all[i][j].length; k++) { System.out.print(" " + all[i][j][k]); } System.out.print("\n"); } if (i != 3) { System.out.print("####################\n"); } } } }
[ 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, 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, 41, 13, 20, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 2, 2, 13, 17, 13, 17, 2, 18, 13, 2, 2, 2, 13, 17, 13, 17, 18, 13, 13, 40, 13, 0, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 2, 2, 2, 13, 17, 13, 17, 4, 18, 18, 13, 13, 17, 40, 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 ], [ 260, 5 ], [ 260, 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 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 45, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 45, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 78 ], [ 78, 79 ], [ 78, 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 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 120, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 135, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 133, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 155, 161 ], [ 152, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 165, 171 ], [ 162, 172 ], [ 172, 173 ], [ 172, 174 ], [ 119, 175 ], [ 175, 176 ], [ 93, 177 ], [ 177, 178 ], [ 177, 179 ], [ 8, 180 ], [ 180, 181 ], [ 180, 182 ], [ 8, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 188, 189 ], [ 188, 190 ], [ 183, 191 ], [ 191, 192 ], [ 192, 193 ], [ 183, 194 ], [ 195, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 201, 202 ], [ 201, 203 ], [ 196, 204 ], [ 204, 205 ], [ 205, 206 ], [ 196, 207 ], [ 208, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 209, 214 ], [ 214, 215 ], [ 214, 216 ], [ 209, 217 ], [ 217, 218 ], [ 218, 219 ], [ 209, 220 ], [ 221, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 222, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 231, 237 ], [ 208, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 238, 243 ], [ 208, 244 ], [ 244, 245 ], [ 195, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 246, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 251, 256 ], [ 6, 257 ], [ 257, 258 ], [ 0, 259 ], [ 259, 260 ], [ 259, 261 ] ]
[ "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 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\t\tfor(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}\n\t\tint V[] = new int[120];\n\t\tint ka = 0;\n\t\tfor(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}\n\t\tint kb =0;\n\t\tfor(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\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\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\t\tfor(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}\n\t\tint V[] = new int[120];\n\t\tint ka = 0;\n\t\tfor(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}\n\t\tint kb =0;\n\t\tfor(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\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 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\t\tfor(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}\n\t\tint V[] = new int[120];\n\t\tint ka = 0;\n\t\tfor(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}\n\t\tint kb =0;\n\t\tfor(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\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\t\tfor(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}\n\t\tint V[] = new int[120];\n\t\tint ka = 0;\n\t\tfor(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}\n\t\tint kb =0;\n\t\tfor(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\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", "for(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}", "int a = 0;", "int a = 0;", "a", "0", "a<n", "a", "n", "a++", "a++", "a", "{\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}", "{\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}", "b[a] = scan.nextInt()", "b[a]", "b", "a", "scan.nextInt()", "scan.nextInt", "scan", "f[a] = scan.nextInt()", "f[a]", "f", "a", "scan.nextInt()", "scan.nextInt", "scan", "r[a] = scan.nextInt()", "r[a]", "r", "a", "scan.nextInt()", "scan.nextInt", "scan", "v[a] = scan.nextInt()", "v[a]", "v", "a", "scan.nextInt()", "scan.nextInt", "scan", "int V[] = new int[120];", "V", "new int[120]", "120", "int ka = 0;", "ka", "0", "for(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}", "int g = 0;", "int g = 0;", "g", "0", "g<n", "g", "n", "g++", "g++", "g", "{\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}", "{\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}", "for(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}", "int h = 1;", "int h = 1;", "h", "1", "h<=4", "h", "4", "h++", "h++", "h", "{\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}", "for(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<=3", "i", "3", "i++", "i++", "i", "{\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}", "{\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}", "for(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j<=10", "j", "10", "j++", "j++", "j", "{\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}", "b[g] == h && f[g] == i && r[g] == j", "b[g] == h && f[g] == i && r[g] == j", "b[g] == h", "b[g]", "b", "g", "h", "f[g] == i", "f[g]", "f", "g", "i", "r[g] == j", "r[g]", "r", "g", "j", "{\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}", "V[ka*10+j-1] = V[ka*10+j-1] + v[g]", "V[ka*10+j-1]", "V", "ka*10+j-1", "ka*10+j", "ka*10", "ka", "10", "j", "1", "V[ka*10+j-1] + v[g]", "V[ka*10+j-1]", "V", "ka*10+j-1", "ka*10+j", "ka*10", "ka", "10", "j", "1", "v[g]", "v", "g", "ka++", "ka", "ka = 0", "ka", "0", "int kb =0;", "kb", "0", "for(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int e =1;", "int e =1;", "e", "1", "e<=4", "e", "4", "e++", "e++", "e", "{\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}", "int c =1;", "int c =1;", "c", "1", "c<=3", "c", "3", "c++", "c++", "c", "{\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}", "{\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}", "for(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}", "int d = 1;", "int d = 1;", "d", "1", "d<=10", "d", "10", "d++", "d++", "d", "{\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}", "System.out.print(\" \"+V[kb*10+d-1])", "System.out.print", "System.out", "System", "System.out", "\" \"+V[kb*10+d-1]", "\" \"", "V[kb*10+d-1]", "V", "kb*10+d-1", "kb*10+d", "kb*10", "kb", "10", "d", "1", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "kb++", "kb", "if(e != 4){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "e != 4", "e", "4", "{\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\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\t\tfor(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}\n\t\tint V[] = new int[120];\n\t\tint ka = 0;\n\t\tfor(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}\n\t\tint kb =0;\n\t\tfor(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\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\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\t\tfor(int a = 0;a<n;a++){\n\t\t\tb[a] = scan.nextInt();\n\t\t\tf[a] = scan.nextInt();\n\t\t\tr[a] = scan.nextInt();\n\t\t\tv[a] = scan.nextInt();\n\t\t}\n\t\tint V[] = new int[120];\n\t\tint ka = 0;\n\t\tfor(int g = 0;g<n;g++){\n\t\t\tfor(int h = 1;h<=4;h++){\n\t\t\t\tfor(int i = 1;i<=3;i++){\n\t\t\t\t\tfor(int j = 1;j<=10;j++){\n\t\t\t\t\t\tif(b[g] == h && f[g] == i && r[g] == j){\n\t\t\t\t\t\t\tV[ka*10+j-1] = V[ka*10+j-1] + v[g];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tka++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tka = 0;\n\t\t}\n\t\tint kb =0;\n\t\tfor(int e =1;e<=4;e++){\n\t\t\tfor(int c =1;c<=3;c++){\n\t\t\t\tfor(int d = 1;d<=10;d++){\n\t\t\t\t\tSystem.out.print(\" \"+V[kb*10+d-1]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tkb++;\n\t\t\t}\n\t\t\tif(e != 4){\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 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]; for(int a = 0;a<n;a++){ b[a] = scan.nextInt(); f[a] = scan.nextInt(); r[a] = scan.nextInt(); v[a] = scan.nextInt(); } int V[] = new int[120]; int ka = 0; for(int g = 0;g<n;g++){ for(int h = 1;h<=4;h++){ for(int i = 1;i<=3;i++){ for(int j = 1;j<=10;j++){ if(b[g] == h && f[g] == i && r[g] == j){ V[ka*10+j-1] = V[ka*10+j-1] + v[g]; } } ka++; } } ka = 0; } int kb =0; for(int e =1;e<=4;e++){ for(int c =1;c<=3;c++){ for(int d = 1;d<=10;d++){ System.out.print(" "+V[kb*10+d-1]); } System.out.println(""); kb++; } if(e != 4){ System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 4, 18, 18, 13, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 0, 18, 18, 18, 36, 13, 13, 13, 17, 12, 13, 30, 0, 18, 18, 18, 36, 13, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 18, 18, 18, 36, 13, 13, 13, 4, 18, 18, 13, 13, 17, 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, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 18, 19 ], [ 18, 20 ], [ 13, 21 ], [ 21, 22 ], [ 22, 23 ], [ 13, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 48, 52 ], [ 44, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 53, 57 ], [ 44, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 58, 62 ], [ 44, 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 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 104, 106 ], [ 96, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 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 ], [ 134, 136 ], [ 127, 137 ], [ 137, 138 ], [ 138, 139 ], [ 127, 140 ], [ 141, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 143, 149 ], [ 142, 150 ], [ 96, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 155, 161 ], [ 154, 162 ], [ 151, 163 ], [ 163, 164 ], [ 151, 165 ], [ 165, 166 ], [ 151, 167 ], [ 167, 168 ], [ 96, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 179, 181 ], [ 172, 182 ], [ 182, 183 ], [ 183, 184 ], [ 172, 185 ], [ 186, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 194, 196 ], [ 187, 197 ], [ 197, 198 ], [ 198, 199 ], [ 187, 200 ], [ 201, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 202, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 208, 214 ], [ 186, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 215, 220 ], [ 0, 221 ], [ 221, 222 ], [ 221, 223 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Building B[]=new Building[4];\n for(int i=0;i<4;i++)B[i]=new Building();\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }\n for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }\n }\n}\n\nclass Building{\n// private int residents[][];\n private int floor=3;\n private int room=10;\n private int residents[][]=new int[floor][room];\n void Buidling(){\n// this.residents=new int[this.floor][this.room];\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }\n }\n public void updateResidents(int f,int r,int v){\n this.residents[f][r]+=v;\n }\n public void output(){\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Building B[]=new Building[4];\n for(int i=0;i<4;i++)B[i]=new Building();\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }\n for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Building B[]=new Building[4];\n for(int i=0;i<4;i++)B[i]=new Building();\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }\n for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }\n }", "main", "{\n Building B[]=new Building[4];\n for(int i=0;i<4;i++)B[i]=new Building();\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }\n for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }\n }", "Building B[]=new Building[4];", "B", "new Building[4]", "4", "for(int i=0;i<4;i++)B[i]=new Building();", "int i=0;", "int i=0;", "i", "0", "i<4", "i", "4", "i++", "i++", "i", "B[i]=new Building();", "B[i]=new Building()", "B[i]", "B", "i", "new Building()", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }", "n-->0", "n--", "n", "0", "{\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }", "B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt())", "B[sc.nextInt()-1].updateResidents", "B[sc.nextInt()-1]", "B", "sc.nextInt()-1", "sc.nextInt()", "sc.nextInt", "sc", "1", "sc.nextInt()-1", "sc.nextInt()", "sc.nextInt", "sc", "1", "sc.nextInt()-1", "sc.nextInt()", "sc.nextInt", "sc", "1", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }", "int i=0;", "int i=0;", "i", "0", "i<4", "i", "4", "i++", "i++", "i", "{\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }", "{\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }", "if(i!=0)System.out.println(\"####################\");", "i!=0", "i", "0", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "B[i].output()", "B[i].output", "B[i]", "B", "i", "String[] args", "args", "class Building{\n// private int residents[][];\n private int floor=3;\n private int room=10;\n private int residents[][]=new int[floor][room];\n void Buidling(){\n// this.residents=new int[this.floor][this.room];\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }\n }\n public void updateResidents(int f,int r,int v){\n this.residents[f][r]+=v;\n }\n public void output(){\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }\n}", "Building", "// private int residents[][];\n private int floor=3;", "floor", "3", "private int room=10;", "room", "10", "private int residents[][]=new int[floor][room];", "residents", "new int[floor][room]", "floor", "room", "void Buidling(){\n// this.residents=new int[this.floor][this.room];\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }\n }", "Buidling", "{\n// this.residents=new int[this.floor][this.room];\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }\n }", "for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<this.floor", "i", "this.floor", "this", "this.floor", "i++", "i++", "i", "{\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }", "{\n for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }\n }", "for(int j=0;j<this.room;j++){\n this.residents[i][j]=0;\n }", "int j=0;", "int j=0;", "j", "0", "j<this.room", "j", "this.room", "this", "this.room", "j++", "j++", "j", "{\n this.residents[i][j]=0;\n }", "{\n this.residents[i][j]=0;\n }", "this.residents[i][j]=0", "this.residents[i][j]", "this.residents[i]", "this.residents", "this", "this.residents", "i", "j", "0", "public void updateResidents(int f,int r,int v){\n this.residents[f][r]+=v;\n }", "updateResidents", "{\n this.residents[f][r]+=v;\n }", "this.residents[f][r]+=v", "this.residents[f][r]", "this.residents[f]", "this.residents", "this", "this.residents", "f", "r", "v", "int f", "f", "int r", "r", "int v", "v", "public void output(){\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }", "output", "{\n for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }", "for(int i=0;i<this.floor;i++){\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }", "int i=0;", "int i=0;", "i", "0", "i<this.floor", "i", "this.floor", "this", "this.floor", "i++", "i++", "i", "{\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }", "{\n for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }\n System.out.printf(\"\\n\");\n }", "for(int j=0;j<this.room;j++){\n System.out.printf(\" %d\",this.residents[i][j]);\n }", "int j=0;", "int j=0;", "j", "0", "j<this.room", "j", "this.room", "this", "this.room", "j++", "j++", "j", "{\n System.out.printf(\" %d\",this.residents[i][j]);\n }", "{\n System.out.printf(\" %d\",this.residents[i][j]);\n }", "System.out.printf(\" %d\",this.residents[i][j])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "this.residents[i][j]", "this.residents[i]", "this.residents", "this", "this.residents", "i", "j", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "public class Main {\n public static void main(String[] args) throws Exception {\n Building B[]=new Building[4];\n for(int i=0;i<4;i++)B[i]=new Building();\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }\n for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Building B[]=new Building[4];\n for(int i=0;i<4;i++)B[i]=new Building();\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n while(n-->0){\n B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt());\n }\n for(int i=0;i<4;i++){\n if(i!=0)System.out.println(\"####################\");\n B[i].output();\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Building B[]=new Building[4]; for(int i=0;i<4;i++)B[i]=new Building(); Scanner sc=new Scanner(System.in); int n=sc.nextInt(); while(n-->0){ B[sc.nextInt()-1].updateResidents(sc.nextInt()-1,sc.nextInt()-1,sc.nextInt()); } for(int i=0;i<4;i++){ if(i!=0)System.out.println("####################"); B[i].output(); } } } class Building{ // private int residents[][]; private int floor=3; private int room=10; private int residents[][]=new int[floor][room]; void Buidling(){ // this.residents=new int[this.floor][this.room]; for(int i=0;i<this.floor;i++){ for(int j=0;j<this.room;j++){ this.residents[i][j]=0; } } } public void updateResidents(int f,int r,int v){ this.residents[f][r]+=v; } public void output(){ for(int i=0;i<this.floor;i++){ for(int j=0;j<this.room;j++){ System.out.printf(" %d",this.residents[i][j]); } System.out.printf("\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, 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, 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 ], [ 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 ], [ 6, 188 ], [ 188, 189 ] ]
[ "import java.util.Scanner; \nclass Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int count[][][] = new int[4][3][10];\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }\n for(int i =1; i <= n; i++){\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }\n} ", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int count[][][] = new int[4][3][10];\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }\n for(int i =1; i <= n; i++){\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\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){\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int count[][][] = new int[4][3][10];\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }\n for(int i =1; i <= n; i++){\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int count[][][] = new int[4][3][10];\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }\n for(int i =1; i <= n; i++){\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }\n for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int count[][][] = new int[4][3][10];", "count", "new int[4][3][10]", "4", "3", "10", "for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= 3", "i", "3", "i++", "i++", "i", "{\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }", "{\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }\n }", "for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j <= 2", "j", "2", "j++", "j++", "j", "{\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }", "{\n for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }\n }", "for(int e = 0; e <= 9; e++){\n count[i][j][e] = 0;\n }", "int e = 0;", "int e = 0;", "e", "0", "e <= 9", "e", "9", "e++", "e++", "e", "{\n count[i][j][e] = 0;\n }", "{\n count[i][j][e] = 0;\n }", "count[i][j][e] = 0", "count[i][j][e]", "count[i][j]", "count[i]", "count", "i", "j", "e", "0", "for(int i =1; i <= n; i++){\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }", "int i =1;", "int i =1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "{\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }", "{\n int b = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int v = in.nextInt();\n count[b-1][f-1][r-1] += v;\n }", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "int f = in.nextInt();", "f", "in.nextInt()", "in.nextInt", "in", "int r = in.nextInt();", "r", "in.nextInt()", "in.nextInt", "in", "int v = in.nextInt();", "v", "in.nextInt()", "in.nextInt", "in", "count[b-1][f-1][r-1] += v", "count[b-1][f-1][r-1]", "count[b-1][f-1]", "count[b-1]", "count", "b-1", "b", "1", "f-1", "f", "1", "r-1", "r", "1", "v", "for(int i = 0; i <= 3; i++){\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\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 <= 3", "i", "3", "i++", "i++", "i", "{\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }", "{\n for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }\n if(i != 3){\n System.out.println(\"####################\");\n }\n }", "for(int j = 0; j <= 2; j++){\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }", "int j = 0;", "int j = 0;", "j", "0", "j <= 2", "j", "2", "j++", "j++", "j", "{\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }", "{\n for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }\n System.out.println();\n }", "for(int e = 0; e <= 9; e++){\n System.out.print(\" \" + count[i][j][e]);\n }", "int e = 0;", "int e = 0;", "e", "0", "e <= 9", "e", "9", "e++", "e++", "e", "{\n System.out.print(\" \" + count[i][j][e]);\n }", "{\n System.out.print(\" \" + count[i][j][e]);\n }", "System.out.print(\" \" + count[i][j][e])", "System.out.print", "System.out", "System", "System.out", "\" \" + count[i][j][e]", "\" \"", "count[i][j][e]", "count[i][j]", "count[i]", "count", "i", "j", "e", "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" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); int count[][][] = new int[4][3][10]; for(int i = 0; i <= 3; i++){ for(int j = 0; j <= 2; j++){ for(int e = 0; e <= 9; e++){ count[i][j][e] = 0; } } } for(int i =1; i <= n; i++){ int b = in.nextInt(); int f = in.nextInt(); int r = in.nextInt(); int v = in.nextInt(); count[b-1][f-1][r-1] += v; } for(int i = 0; i <= 3; i++){ for(int j = 0; j <= 2; j++){ for(int e = 0; e <= 9; e++){ System.out.print(" " + count[i][j][e]); } System.out.println(); } if(i != 3){ System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 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, 41, 13, 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, 41, 13, 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, 41, 13, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 4, 18, 4, 18, 13, 17, 35, 18, 13, 17, 34, 17, 1, 0, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 18, 13, 17, 3, 34, 17, 1, 0, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 18, 13, 17, 3, 34, 17, 1, 0, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 18, 13, 17, 3, 34, 17, 1, 0, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 18, 13, 17, 3, 4, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 28, 13, 13, 30, 30, 28, 13, 13, 30, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 18, 13, 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, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 384, 8 ], [ 384, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 26, 29 ], [ 26, 30 ], [ 26, 31 ], [ 26, 32 ], [ 26, 33 ], [ 26, 34 ], [ 26, 35 ], [ 26, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 37, 41 ], [ 37, 42 ], [ 37, 43 ], [ 37, 44 ], [ 37, 45 ], [ 37, 46 ], [ 37, 47 ], [ 25, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 48, 52 ], [ 48, 53 ], [ 48, 54 ], [ 48, 55 ], [ 48, 56 ], [ 48, 57 ], [ 48, 58 ], [ 11, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 62, 66 ], [ 62, 67 ], [ 62, 68 ], [ 62, 69 ], [ 62, 70 ], [ 62, 71 ], [ 62, 72 ], [ 61, 73 ], [ 73, 74 ], [ 73, 75 ], [ 73, 76 ], [ 73, 77 ], [ 73, 78 ], [ 73, 79 ], [ 73, 80 ], [ 73, 81 ], [ 73, 82 ], [ 73, 83 ], [ 61, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 87 ], [ 84, 88 ], [ 84, 89 ], [ 84, 90 ], [ 84, 91 ], [ 84, 92 ], [ 84, 93 ], [ 84, 94 ], [ 11, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 98, 101 ], [ 98, 102 ], [ 98, 103 ], [ 98, 104 ], [ 98, 105 ], [ 98, 106 ], [ 98, 107 ], [ 98, 108 ], [ 97, 109 ], [ 109, 110 ], [ 109, 111 ], [ 109, 112 ], [ 109, 113 ], [ 109, 114 ], [ 109, 115 ], [ 109, 116 ], [ 109, 117 ], [ 109, 118 ], [ 109, 119 ], [ 97, 120 ], [ 120, 121 ], [ 120, 122 ], [ 120, 123 ], [ 120, 124 ], [ 120, 125 ], [ 120, 126 ], [ 120, 127 ], [ 120, 128 ], [ 120, 129 ], [ 120, 130 ], [ 11, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 134, 137 ], [ 134, 138 ], [ 134, 139 ], [ 134, 140 ], [ 134, 141 ], [ 134, 142 ], [ 134, 143 ], [ 134, 144 ], [ 133, 145 ], [ 145, 146 ], [ 145, 147 ], [ 145, 148 ], [ 145, 149 ], [ 145, 150 ], [ 145, 151 ], [ 145, 152 ], [ 145, 153 ], [ 145, 154 ], [ 145, 155 ], [ 133, 156 ], [ 156, 157 ], [ 156, 158 ], [ 156, 159 ], [ 156, 160 ], [ 156, 161 ], [ 156, 162 ], [ 156, 163 ], [ 156, 164 ], [ 156, 165 ], [ 156, 166 ], [ 11, 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 ], [ 180, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 184, 189 ], [ 179, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 198, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 197, 211 ], [ 211, 212 ], [ 211, 213 ], [ 196, 214 ], [ 190, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 222, 226 ], [ 219, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 218, 232 ], [ 232, 233 ], [ 232, 234 ], [ 217, 235 ], [ 190, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 240, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 239, 253 ], [ 253, 254 ], [ 253, 255 ], [ 238, 256 ], [ 190, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 264, 268 ], [ 261, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 269, 273 ], [ 260, 274 ], [ 274, 275 ], [ 274, 276 ], [ 259, 277 ], [ 11, 278 ], [ 278, 279 ], [ 278, 280 ], [ 11, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 281, 286 ], [ 11, 287 ], [ 287, 288 ], [ 287, 289 ], [ 11, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 290, 295 ], [ 11, 296 ], [ 296, 297 ], [ 296, 298 ], [ 11, 299 ], [ 299, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 299, 304 ], [ 11, 305 ], [ 305, 306 ], [ 305, 307 ], [ 9, 308 ], [ 308, 309 ], [ 384, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 316, 318 ], [ 316, 319 ], [ 320, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 321, 324 ], [ 325, 325 ], [ 325, 326 ], [ 326, 327 ], [ 325, 328 ], [ 328, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 328, 333 ], [ 333, 334 ], [ 333, 335 ], [ 320, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 336, 341 ], [ 310, 342 ], [ 342, 343 ], [ 384, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 349, 351 ], [ 346, 352 ], [ 352, 353 ], [ 352, 354 ], [ 346, 356 ], [ 356, 357 ], [ 357, 358 ], [ 358, 359 ], [ 358, 360 ], [ 356, 361 ], [ 361, 362 ], [ 361, 363 ], [ 356, 364 ], [ 364, 365 ], [ 365, 366 ], [ 356, 367 ], [ 368, 368 ], [ 368, 369 ], [ 369, 370 ], [ 370, 371 ], [ 370, 372 ], [ 369, 373 ], [ 373, 374 ], [ 374, 375 ], [ 373, 376 ], [ 376, 377 ], [ 376, 378 ], [ 346, 379 ], [ 379, 380 ], [ 344, 381 ], [ 381, 382 ], [ 0, 383 ], [ 383, 384 ], [ 383, 385 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\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[][] tower1 = {{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\tint[][] tower2 = {{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\tint[][] tower3 = {{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\tint[][] tower4 = {{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\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprint(tower1);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower2);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower3);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower4);\n\t}\n\n\tprivate static void print(int[][] two_array) {\n\t\tint cnt = 0;\n\t\tfor (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\tprivate static int[] convertInt(String[] strArray) {\n\t\tint len = strArray.length;\n\t\tint[] intArray = new int[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "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[][] tower1 = {{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\tint[][] tower2 = {{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\tint[][] tower3 = {{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\tint[][] tower4 = {{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\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprint(tower1);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower2);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower3);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower4);\n\t}\n\n\tprivate static void print(int[][] two_array) {\n\t\tint cnt = 0;\n\t\tfor (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\tprivate static int[] convertInt(String[] strArray) {\n\t\tint len = strArray.length;\n\t\tint[] intArray = new int[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\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[][] tower1 = {{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\tint[][] tower2 = {{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\tint[][] tower3 = {{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\tint[][] tower4 = {{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\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprint(tower1);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower2);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower3);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower4);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[][] tower1 = {{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\tint[][] tower2 = {{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\tint[][] tower3 = {{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\tint[][] tower4 = {{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\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprint(tower1);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower2);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower3);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower4);\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[][] tower1 = {{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}};", "tower1", "{{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", "int[][] tower2 = {{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}};", "tower2", "{{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", "int[][] tower3 = {{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}};", "tower3", "{{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", "int[][] tower4 = {{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}};", "tower4", "{{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", "for (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\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[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int[] line = convertInt(br.readLine().split(\" \"));", "line", "convertInt(br.readLine().split(\" \"))", "convertInt", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "switch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}", "line[0]", "line", "0", "case 1:", "1", "case 1:", "tower1[line[1] - 1][line[2] - 1] += line[3]", "tower1[line[1] - 1][line[2] - 1]", "tower1[line[1] - 1]", "tower1", "line[1] - 1", "line[1]", "line", "1", "1", "line[2] - 1", "line[2]", "line", "2", "1", "line[3]", "line", "3", "break;", "case 2:", "2", "case 2:", "tower2[line[1] - 1][line[2] - 1] += line[3]", "tower2[line[1] - 1][line[2] - 1]", "tower2[line[1] - 1]", "tower2", "line[1] - 1", "line[1]", "line", "1", "1", "line[2] - 1", "line[2]", "line", "2", "1", "line[3]", "line", "3", "break;", "case 3:", "3", "case 3:", "tower3[line[1] - 1][line[2] - 1] += line[3]", "tower3[line[1] - 1][line[2] - 1]", "tower3[line[1] - 1]", "tower3", "line[1] - 1", "line[1]", "line", "1", "1", "line[2] - 1", "line[2]", "line", "2", "1", "line[3]", "line", "3", "break;", "case 4:", "4", "case 4:", "tower4[line[1] - 1][line[2] - 1] += line[3]", "tower4[line[1] - 1][line[2] - 1]", "tower4[line[1] - 1]", "tower4", "line[1] - 1", "line[1]", "line", "1", "1", "line[2] - 1", "line[2]", "line", "2", "1", "line[3]", "line", "3", "break;", "print(tower1)", "print", "tower1", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "print(tower2)", "print", "tower2", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "print(tower3)", "print", "tower3", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "print(tower4)", "print", "tower4", "String[] args", "args", "private static void print(int[][] two_array) {\n\t\tint cnt = 0;\n\t\tfor (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "print", "{\n\t\tint cnt = 0;\n\t\tfor (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "int cnt = 0;", "cnt", "0", "for (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int[] array", "two_array", "{\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "for (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}", "int i", "array", "{\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}", "{\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}", "cnt++", "cnt", "System.out.print(\" \" + i)", "System.out.print", "System.out", "System", "System.out", "\" \" + i", "\" \"", "i", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int[][] two_array", "two_array", "private static int[] convertInt(String[] strArray) {\n\t\tint len = strArray.length;\n\t\tint[] intArray = new int[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}", "convertInt", "{\n\t\tint len = strArray.length;\n\t\tint[] intArray = new int[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}", "int len = strArray.length;", "len", "strArray.length", "strArray", "strArray.length", "int[] intArray = new int[len];", "intArray", "new int[len]", "len", "for (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < len", "i", "len", "i++", "i++", "i", "{\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "{\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "intArray[i] = Integer.parseInt(strArray[i])", "intArray[i]", "intArray", "i", "Integer.parseInt(strArray[i])", "Integer.parseInt", "Integer", "strArray[i]", "strArray", "i", "return intArray;", "intArray", "String[] strArray", "strArray", "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[][] tower1 = {{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\tint[][] tower2 = {{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\tint[][] tower3 = {{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\tint[][] tower4 = {{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\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprint(tower1);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower2);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower3);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower4);\n\t}\n\n\tprivate static void print(int[][] two_array) {\n\t\tint cnt = 0;\n\t\tfor (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\tprivate static int[] convertInt(String[] strArray) {\n\t\tint len = strArray.length;\n\t\tint[] intArray = new int[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\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[][] tower1 = {{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\tint[][] tower2 = {{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\tint[][] tower3 = {{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\tint[][] tower4 = {{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\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(br.readLine().split(\" \"));\n\t\t\tswitch (line[0]) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttower1[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttower2[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttower3[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttower4[line[1] - 1][line[2] - 1] += line[3];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprint(tower1);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower2);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower3);\n\t\tSystem.out.println(\"####################\");\n\t\tprint(tower4);\n\t}\n\n\tprivate static void print(int[][] two_array) {\n\t\tint cnt = 0;\n\t\tfor (int[] array : two_array) {\n\t\t\tfor (int i : array) {\n\t\t\t\tcnt++;\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\tprivate static int[] convertInt(String[] strArray) {\n\t\tint len = strArray.length;\n\t\tint[] intArray = new int[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; 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[][] tower1 = {{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}}; int[][] tower2 = {{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}}; int[][] tower3 = {{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}}; int[][] tower4 = {{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}}; for (int i = 0; i < n; i++) { int[] line = convertInt(br.readLine().split(" ")); switch (line[0]) { case 1: tower1[line[1] - 1][line[2] - 1] += line[3]; break; case 2: tower2[line[1] - 1][line[2] - 1] += line[3]; break; case 3: tower3[line[1] - 1][line[2] - 1] += line[3]; break; case 4: tower4[line[1] - 1][line[2] - 1] += line[3]; break; } } print(tower1); System.out.println("####################"); print(tower2); System.out.println("####################"); print(tower3); System.out.println("####################"); print(tower4); } private static void print(int[][] two_array) { int cnt = 0; for (int[] array : two_array) { for (int i : array) { cnt++; System.out.print(" " + i); } System.out.println(""); } } private static int[] convertInt(String[] strArray) { int len = strArray.length; int[] intArray = new int[len]; for (int i = 0; i < len; i++) { intArray[i] = Integer.parseInt(strArray[i]); } return intArray; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 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, 13, 2, 17, 18, 18, 13, 13, 13, 4, 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, 13, 2, 17, 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 ], [ 219, 8 ], [ 219, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 219, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 40, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 28, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 28, 61 ], [ 61, 62 ], [ 28, 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 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 78, 83 ], [ 75, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 91, 98 ], [ 90, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 88, 106 ], [ 85, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 111, 113 ], [ 107, 114 ], [ 84, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 28, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 121, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 136, 148 ], [ 148, 149 ], [ 149, 150 ], [ 136, 151 ], [ 152, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 153, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 135, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 135, 181 ], [ 181, 182 ], [ 183, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 183, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 194, 200 ], [ 181, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 204, 205 ], [ 204, 206 ], [ 28, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 207, 212 ], [ 28, 213 ], [ 213, 214 ], [ 214, 215 ], [ 15, 216 ], [ 216, 217 ], [ 0, 218 ], [ 218, 219 ], [ 218, 220 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tprivate static final String BR = System.getProperty(\"line.separator\");\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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\tprivate static final String BR = System.getProperty(\"line.separator\");\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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", "private static final String BR = System.getProperty(\"line.separator\");", "BR", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\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\tsb.append(\" \" + 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\tsb.append(\" \" + 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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}", "if (j != 0 || j != house[i].length - 1)\n\t\t\t\t\t\tsb.append(\" \" + 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", "sb.append(\" \" + house[i][j])", "sb.append", "sb", "\" \" + house[i][j]", "\" \"", "house[i][j]", "house[i]", "house", "i", "j", "sb.append(BR)", "sb.append", "sb", "BR", "if (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);", "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", "sb.append(\"####################\" + BR)", "sb.append", "sb", "\"####################\" + BR", "\"####################\"", "BR", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "br.close()", "br.close", "br", "String[] args", "args", "public class Main {\n\tprivate static final String BR = System.getProperty(\"line.separator\");\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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\tprivate static final String BR = System.getProperty(\"line.separator\");\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\t\t\tStringBuilder sb = new StringBuilder();\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\tsb.append(\" \" + house[i][j]);\n\t\t\t\t}\n\t\t\t\tsb.append(BR);\n\t\t\t\tif (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0)\n\t\t\t\t\tsb.append(\"####################\" + BR);\n\t\t\t}\n\t\t\tSystem.out.print(sb);\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 { private static final String BR = System.getProperty("line.separator"); public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); StringBuilder sb = new StringBuilder(); 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) sb.append(" " + house[i][j]); } sb.append(BR); if (i != 0 && i != house.length - 1 && (i + 1) % 3 == 0) sb.append("####################" + BR); } System.out.print(sb); br.close(); } catch (Exception e) { System.err.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 41, 13, 4, 18, 13, 0, 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, 4, 13, 13, 13, 13, 13, 4, 13, 23, 13, 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, 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, 4, 18, 13, 17, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 0, 13, 20, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 175, 5 ], [ 175, 6 ], [ 6, 7 ], [ 6, 8 ], [ 175, 9 ], [ 9, 10 ], [ 175, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 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 ], [ 58, 60 ], [ 58, 61 ], [ 58, 62 ], [ 58, 63 ], [ 13, 64 ], [ 64, 65 ], [ 11, 66 ], [ 66, 67 ], [ 175, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 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 ], [ 68, 86 ], [ 86, 87 ], [ 68, 88 ], [ 88, 89 ], [ 68, 90 ], [ 90, 91 ], [ 68, 92 ], [ 92, 93 ], [ 175, 94 ], [ 94, 95 ], [ 94, 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 ], [ 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 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 158, 159 ], [ 125, 160 ], [ 160, 161 ], [ 160, 162 ], [ 112, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 112, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.util.*;\n\npublic class Main {\n private static Scanner sc = new Scanner(System.in);\n private static int[][][] ary;\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n ary = 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 calc(b, f, r, v);\n }\n disp();\n }\n \n private static void calc(int b, int f, int r, int v) {\n ary[b-1][f-1][r-1] += v;\n }\n \n private static void disp() {\n StringBuilder sb = new StringBuilder();\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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n private static Scanner sc = new Scanner(System.in);\n private static int[][][] ary;\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n ary = 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 calc(b, f, r, v);\n }\n disp();\n }\n \n private static void calc(int b, int f, int r, int v) {\n ary[b-1][f-1][r-1] += v;\n }\n \n private static void disp() {\n StringBuilder sb = new StringBuilder();\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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }\n }\n}", "Main", "private static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "private static int[][][] ary;", "ary", "public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n ary = 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 calc(b, f, r, v);\n }\n disp();\n }", "main", "{\n int n = sc.nextInt();\n ary = 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 calc(b, f, r, v);\n }\n disp();\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "ary = new int[4][3][10]", "ary", "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 calc(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();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n calc(b, f, r, v);\n }", "{\n int b = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int v = sc.nextInt();\n calc(b, f, r, 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", "calc(b, f, r, v)", "calc", "b", "f", "r", "v", "disp()", "disp", "String[] args", "args", "private static void calc(int b, int f, int r, int v) {\n ary[b-1][f-1][r-1] += v;\n }", "calc", "{\n ary[b-1][f-1][r-1] += v;\n }", "ary[b-1][f-1][r-1] += v", "ary[b-1][f-1][r-1]", "ary[b-1][f-1]", "ary[b-1]", "ary", "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", "private static void disp() {\n StringBuilder sb = new StringBuilder();\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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }\n }", "disp", "{\n StringBuilder sb = new StringBuilder();\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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n 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 for (int k = 0;k < 10;k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }", "{\n for (int j = 0;j < 3;j++) {\n for (int k = 0;k < 10;k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }", "for (int j = 0;j < 3;j++) {\n for (int k = 0;k < 10;k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\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 sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }", "{\n for (int k = 0;k < 10;k++) {\n sb.append(\" \").append(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }", "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", "sb = new StringBuilder()", "sb", "new StringBuilder()", "if (i == 3) break;", "i == 3", "i", "3", "break;", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "public class Main {\n private static Scanner sc = new Scanner(System.in);\n private static int[][][] ary;\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n ary = 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 calc(b, f, r, v);\n }\n disp();\n }\n \n private static void calc(int b, int f, int r, int v) {\n ary[b-1][f-1][r-1] += v;\n }\n \n private static void disp() {\n StringBuilder sb = new StringBuilder();\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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }\n }\n}", "public class Main {\n private static Scanner sc = new Scanner(System.in);\n private static int[][][] ary;\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n ary = 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 calc(b, f, r, v);\n }\n disp();\n }\n \n private static void calc(int b, int f, int r, int v) {\n ary[b-1][f-1][r-1] += v;\n }\n \n private static void disp() {\n StringBuilder sb = new StringBuilder();\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(ary[i][j][k]);\n }\n System.out.println(sb.toString());\n sb = new StringBuilder();\n }\n if (i == 3) break;\n System.out.println(\"####################\");\n }\n }\n}", "Main" ]
import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); private static int[][][] ary; public static void main(String[] args) throws Exception { int n = sc.nextInt(); ary = 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(); calc(b, f, r, v); } disp(); } private static void calc(int b, int f, int r, int v) { ary[b-1][f-1][r-1] += v; } private static void disp() { 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(" ").append(ary[i][j][k]); } System.out.println(sb.toString()); sb = new StringBuilder(); } if (i == 3) break; 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, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 154, 14 ], [ 154, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 17, 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 ], [ 17, 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 ], [ 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 ], [ 108, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 95, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 15, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint room[][][]=new int[4][3][10];\n\t\tint n=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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<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\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", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint room[][][]=new int[4][3][10];\n\t\tint n=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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<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\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) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint room[][][]=new int[4][3][10];\n\t\tint n=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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<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\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 stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint room[][][]=new int[4][3][10];\n\t\tint n=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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<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\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 stdIn=new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int room[][][]=new int[4][3][10];", "room", "new int[4][3][10]", "4", "3", "10", "int n=stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "for(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[b-1][f-1][r-1]+=v;\n\t\t}", "{\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[b-1][f-1][r-1]+=v;\n\t\t}", "int b=stdIn.nextInt();", "b", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int f=stdIn.nextInt();", "f", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int r=stdIn.nextInt();", "r", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int v=stdIn.nextInt();", "v", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "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<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\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(\" \"+room[i][j][k]);\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(\" \"+room[i][j][k]);\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(\" \"+room[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++)\n\t\t\t\t\tSystem.out.print(\" \"+room[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++)\n\t\t\t\t\tSystem.out.print(\" \"+room[i][j][k]);\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]);", "int k=0;", "int k=0;", "k", "0", "k<10", "k", "10", "k++", "k++", "k", "System.out.print(\" \"+room[i][j][k]);", "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(\"####################\");", "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) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint room[][][]=new int[4][3][10];\n\t\tint n=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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<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\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\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint room[][][]=new int[4][3][10];\n\t\tint n=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint b=stdIn.nextInt();\n\t\t\tint f=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint v=stdIn.nextInt();\n\t\t\troom[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<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\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.*; import java.io.*; import java.lang.*; import java.math.*; public class Main{ public static void main(String[] args) throws IOException{ Scanner stdIn=new Scanner(System.in); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int room[][][]=new int[4][3][10]; int n=stdIn.nextInt(); for(int i=0;i<n;i++){ int b=stdIn.nextInt(); int f=stdIn.nextInt(); int r=stdIn.nextInt(); int v=stdIn.nextInt(); room[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(" "+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, 41, 13, 20, 41, 13, 20, 41, 13, 20, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 42, 2, 40, 13, 17, 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, 13, 2, 2, 17, 2, 13, 17, 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, 13, 2, 17, 18, 18, 13, 13, 13, 4, 18, 13, 14, 2, 2, 2, 13, 17, 17, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 159, 17 ], [ 159, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 48, 53 ], [ 45, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 45, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 45, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 75, 77 ], [ 45, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 45, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 87, 97 ], [ 86, 98 ], [ 20, 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 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 111, 135 ], [ 135, 136 ], [ 136, 137 ], [ 111, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 139, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 20, 153 ], [ 153, 154 ], [ 154, 155 ], [ 18, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n int[][] floor = new int[13][11];\n int n = Integer.parseInt(br.readLine());\n while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }\n\n for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }\n\n bw.flush();\n }\n\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n int[][] floor = new int[13][11];\n int n = Integer.parseInt(br.readLine());\n while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }\n\n for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }\n\n bw.flush();\n }\n\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n int[][] floor = new int[13][11];\n int n = Integer.parseInt(br.readLine());\n while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }\n\n for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }\n\n bw.flush();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n int[][] floor = new int[13][11];\n int n = Integer.parseInt(br.readLine());\n while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }\n\n for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }\n\n bw.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "int[][] floor = new int[13][11];", "floor", "new int[13][11]", "13", "11", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }", "n-- > 0", "n--", "n", "0", "{\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }", "String[] st = br.readLine().split(\" \");", "st", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int block = Integer.parseInt(st[0]);", "block", "Integer.parseInt(st[0])", "Integer.parseInt", "Integer", "st[0]", "st", "0", "int y = Integer.parseInt(st[1]);", "y", "Integer.parseInt(st[1])", "Integer.parseInt", "Integer", "st[1]", "st", "1", "int x = Integer.parseInt(st[2]);", "x", "Integer.parseInt(st[2])", "Integer.parseInt", "Integer", "st[2]", "st", "2", "int value = Integer.parseInt(st[3]);", "value", "Integer.parseInt(st[3])", "Integer.parseInt", "Integer", "st[3]", "st", "3", "floor[(3 * (block - 1)) + y][x] += value", "floor[(3 * (block - 1)) + y][x]", "floor[(3 * (block - 1)) + y]", "floor", "(3 * (block - 1)) + y", "(3 * (block - 1))", "3", "(block - 1)", "block", "1", "y", "x", "value", "for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < 13", "i", "13", "i++", "i++", "i", "{\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }", "{\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }", "for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }", "int j = 1;", "int j = 1;", "j", "1", "j < 11", "j", "11", "j++", "j++", "j", "{\n bw.append(\" \" + floor[i][j]);\n }", "{\n bw.append(\" \" + floor[i][j]);\n }", "bw.append(\" \" + floor[i][j])", "bw.append", "bw", "\" \" + floor[i][j]", "\" \"", "floor[i][j]", "floor[i]", "floor", "i", "j", "bw.newLine()", "bw.newLine", "bw", "if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }", "i % 3 == 0 && i < 12", "i % 3 == 0", "i % 3", "i", "3", "0", "i < 12", "i", "12", "{\n bw.append(\"####################\\n\");\n }", "bw.append(\"####################\\n\")", "bw.append", "bw", "\"####################\\n\"", "bw.flush()", "bw.flush", "bw", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n int[][] floor = new int[13][11];\n int n = Integer.parseInt(br.readLine());\n while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }\n\n for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }\n\n bw.flush();\n }\n\n}", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n int[][] floor = new int[13][11];\n int n = Integer.parseInt(br.readLine());\n while (n-- > 0) {\n String[] st = br.readLine().split(\" \");\n int block = Integer.parseInt(st[0]);\n int y = Integer.parseInt(st[1]);\n int x = Integer.parseInt(st[2]);\n int value = Integer.parseInt(st[3]);\n floor[(3 * (block - 1)) + y][x] += value;\n }\n\n for (int i = 1; i < 13; i++) {\n for (int j = 1; j < 11; j++) {\n bw.append(\" \" + floor[i][j]);\n }\n bw.newLine();\n if (i % 3 == 0 && i < 12) {\n bw.append(\"####################\\n\");\n }\n }\n\n bw.flush();\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int[][] floor = new int[13][11]; int n = Integer.parseInt(br.readLine()); while (n-- > 0) { String[] st = br.readLine().split(" "); int block = Integer.parseInt(st[0]); int y = Integer.parseInt(st[1]); int x = Integer.parseInt(st[2]); int value = Integer.parseInt(st[3]); floor[(3 * (block - 1)) + y][x] += value; } for (int i = 1; i < 13; i++) { for (int j = 1; j < 11; j++) { bw.append(" " + floor[i][j]); } bw.newLine(); if (i % 3 == 0 && i < 12) { bw.append("####################\n"); } } bw.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 17, 17, 17, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 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, 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 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 45, 50 ], [ 42, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 42, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 42, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 42, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 42, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 94, 95 ], [ 94, 96 ], [ 83, 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 ], [ 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 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 144, 150 ], [ 123, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 110, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 6, 167 ], [ 167, 168 ] ]
[ "import java.io.*;\n\nclass Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n int[][][] room = new int[4][3][10];\n int n;\n String[] strArr;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\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(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if(i != 3)\n System.out.println(\"####################\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n int[][][] room = new int[4][3][10];\n int n;\n String[] strArr;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\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(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if(i != 3)\n System.out.println(\"####################\");\n }\n }\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n int[][][] room = new int[4][3][10];\n int n;\n String[] strArr;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\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(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if(i != 3)\n System.out.println(\"####################\");\n }\n }", "main", "{\n int[][][] room = new int[4][3][10];\n int n;\n String[] strArr;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\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(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if(i != 3)\n System.out.println(\"####################\");\n }\n }", "int[][][] room = new int[4][3][10];", "room", "new int[4][3][10]", "4", "3", "10", "int n;", "n", "String[] strArr;", "strArr", "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", "for(int i = 0; i < n; i++){\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\n }", "{\n strArr = br.readLine().split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n\n room[b-1][f-1][r-1] += v;\n }", "strArr = br.readLine().split(\" \")", "strArr", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int b = Integer.parseInt(strArr[0]);", "b", "Integer.parseInt(strArr[0])", "Integer.parseInt", "Integer", "strArr[0]", "strArr", "0", "int f = Integer.parseInt(strArr[1]);", "f", "Integer.parseInt(strArr[1])", "Integer.parseInt", "Integer", "strArr[1]", "strArr", "1", "int r = Integer.parseInt(strArr[2]);", "r", "Integer.parseInt(strArr[2])", "Integer.parseInt", "Integer", "strArr[2]", "strArr", "2", "int v = Integer.parseInt(strArr[3]);", "v", "Integer.parseInt(strArr[3])", "Integer.parseInt", "Integer", "strArr[3]", "strArr", "3", "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 < 4; i++){\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if(i != 3)\n 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 for(int k = 0; k < 10; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\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(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }\n if(i != 3)\n System.out.println(\"####################\");\n }", "for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n System.out.print(\" \" + room[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(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }", "{\n for(int k = 0; k < 10; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.print(\"\\n\");\n }", "for(int k = 0; k < 10; k++){\n System.out.print(\" \" + room[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n System.out.print(\" \" + room[i][j][k]);\n }", "{\n System.out.print(\" \" + room[i][j][k]);\n }", "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 != 3)\n 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 NumberFormatException, IOException { int[][][] room = new int[4][3][10]; int n; String[] strArr; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); for(int i = 0; i < n; i++){ strArr = br.readLine().split(" "); int b = Integer.parseInt(strArr[0]); int f = Integer.parseInt(strArr[1]); int r = Integer.parseInt(strArr[2]); int v = Integer.parseInt(strArr[3]); room[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(" " + room[i][j][k]); } System.out.print("\n"); } 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, 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, 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 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 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 ], [ 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 ] ]
[ "/**\nA大学は1フロア10部屋、3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。\n\nn件の情報が与えられます。各情報では、4つの整数b, f, r, vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。\n\n最初、全ての部屋には誰も入居していないものとします。\n */\n\n/*sucannerクラス使うためにインポート*/\nimport java.util.Scanner;\n\nclass Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 公舎4、階層3、フロア10の配列をつくる\n\t\t// 初期値0\n\t\tint[][][] Daigaku = new int[4][3][10];\n\t\t// 件数の値をうけとる\n\t\tint intKen = sc.nextInt();\n\t\t// 変数の宣言\n\t\tint intTou = 0;\n\t\tint intKai = 0;\n\t\tint intFuroa = 0;\n\t\tint intHito = 0;\n\n\t\t// 受け取った件数の数だけ4つの値を受け取る\n\t\tfor (int i = 0; i < intKen; i++) {\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\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(\" \" + Daigaku[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", "class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 公舎4、階層3、フロア10の配列をつくる\n\t\t// 初期値0\n\t\tint[][][] Daigaku = new int[4][3][10];\n\t\t// 件数の値をうけとる\n\t\tint intKen = sc.nextInt();\n\t\t// 変数の宣言\n\t\tint intTou = 0;\n\t\tint intKai = 0;\n\t\tint intFuroa = 0;\n\t\tint intHito = 0;\n\n\t\t// 受け取った件数の数だけ4つの値を受け取る\n\t\tfor (int i = 0; i < intKen; i++) {\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\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(\" \" + Daigaku[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", "// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 公舎4、階層3、フロア10の配列をつくる\n\t\t// 初期値0\n\t\tint[][][] Daigaku = new int[4][3][10];\n\t\t// 件数の値をうけとる\n\t\tint intKen = sc.nextInt();\n\t\t// 変数の宣言\n\t\tint intTou = 0;\n\t\tint intKai = 0;\n\t\tint intFuroa = 0;\n\t\tint intHito = 0;\n\n\t\t// 受け取った件数の数だけ4つの値を受け取る\n\t\tfor (int i = 0; i < intKen; i++) {\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\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(\" \" + Daigaku[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\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 公舎4、階層3、フロア10の配列をつくる\n\t\t// 初期値0\n\t\tint[][][] Daigaku = new int[4][3][10];\n\t\t// 件数の値をうけとる\n\t\tint intKen = sc.nextInt();\n\t\t// 変数の宣言\n\t\tint intTou = 0;\n\t\tint intKai = 0;\n\t\tint intFuroa = 0;\n\t\tint intHito = 0;\n\n\t\t// 受け取った件数の数だけ4つの値を受け取る\n\t\tfor (int i = 0; i < intKen; i++) {\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\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(\" \" + Daigaku[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[][][] Daigaku = new int[4][3][10];", "Daigaku", "new int[4][3][10]", "4", "3", "10", "int intKen = sc.nextInt();", "intKen", "sc.nextInt()", "sc.nextInt", "sc", "int intTou = 0;", "intTou", "0", "int intKai = 0;", "intKai", "0", "int intFuroa = 0;", "intFuroa", "0", "int intHito = 0;", "intHito", "0", "for (int i = 0; i < intKen; i++) {\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intKen", "i", "intKen", "i++", "i++", "i", "{\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\n\t\t}", "{\n\t\t\tintTou = sc.nextInt();\n\t\t\tintKai = sc.nextInt();\n\t\t\tintFuroa = sc.nextInt();\n\t\t\tintHito = sc.nextInt();\n\t\t\t// 受け取った位置に人の数を足す\n\t\t\tDaigaku[intTou-1][intKai-1][intFuroa-1] += intHito;\n\t\t}", "intTou = sc.nextInt()", "intTou", "sc.nextInt()", "sc.nextInt", "sc", "intKai = sc.nextInt()", "intKai", "sc.nextInt()", "sc.nextInt", "sc", "intFuroa = sc.nextInt()", "intFuroa", "sc.nextInt()", "sc.nextInt", "sc", "intHito = sc.nextInt()", "intHito", "sc.nextInt()", "sc.nextInt", "sc", "Daigaku[intTou-1][intKai-1][intFuroa-1] += intHito", "Daigaku[intTou-1][intKai-1][intFuroa-1]", "Daigaku[intTou-1][intKai-1]", "Daigaku[intTou-1]", "Daigaku", "intTou-1", "intTou", "1", "intKai-1", "intKai", "1", "intFuroa-1", "intFuroa", "1", "intHito", "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(\" \" + Daigaku[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(\" \" + Daigaku[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(\" \" + Daigaku[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(\" \" + Daigaku[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(\" \" + Daigaku[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(\" \" + Daigaku[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(\" \" + Daigaku[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(\" \" + Daigaku[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + Daigaku[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \" + Daigaku[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + Daigaku[i][j][k]", "\" \"", "Daigaku[i][j][k]", "Daigaku[i][j]", "Daigaku[i]", "Daigaku", "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" ]
/** A大学は1フロア10部屋、3階建ての公舎4棟を管理しています。公舎の入居・退去の情報を読み込み、各部屋の入居者数を出力するプログラムを作成して下さい。 n件の情報が与えられます。各情報では、4つの整数b, f, r, vが与えられます。これは、b棟f階のr番目の部屋にv人が追加で入居したことを示します。vが負の値の場合、v人退去したことを示します。 最初、全ての部屋には誰も入居していないものとします。 */ /*sucannerクラス使うためにインポート*/ import java.util.Scanner; class Main { // プログラムのエントリポイント public static void main(String[] args) { // 入力ストリームの生成 Scanner sc = new Scanner(System.in); // 公舎4、階層3、フロア10の配列をつくる // 初期値0 int[][][] Daigaku = new int[4][3][10]; // 件数の値をうけとる int intKen = sc.nextInt(); // 変数の宣言 int intTou = 0; int intKai = 0; int intFuroa = 0; int intHito = 0; // 受け取った件数の数だけ4つの値を受け取る for (int i = 0; i < intKen; i++) { intTou = sc.nextInt(); intKai = sc.nextInt(); intFuroa = sc.nextInt(); intHito = sc.nextInt(); // 受け取った位置に人の数を足す Daigaku[intTou-1][intKai-1][intFuroa-1] += intHito; } for (int i = 0; i < 4 ; i++){ for(int j = 0; j < 3; j++){ for(int k = 0; k < 10; k++){ System.out.print(" " + Daigaku[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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 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, 41, 13, 2, 2, 2, 2, 13, 17, 17, 2, 2, 13, 17, 17, 13, 0, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 14, 2, 2, 2, 13, 17, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 51, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 51, 72 ], [ 72, 73 ], [ 72, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 75, 86 ], [ 51, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 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 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 112, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 112, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 138, 144 ], [ 144, 145 ], [ 144, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 6, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x[] = new int[120];\n\t\tfor(int i=0; i<120; i++){\n\t\t\tx[i]=0;\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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-1] + v;\n\t\t}\n\t\tfor(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\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// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x[] = new int[120];\n\t\tfor(int i=0; i<120; i++){\n\t\t\tx[i]=0;\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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-1] + v;\n\t\t}\n\t\tfor(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\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// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x[] = new int[120];\n\t\tfor(int i=0; i<120; i++){\n\t\t\tx[i]=0;\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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-1] + v;\n\t\t}\n\t\tfor(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x[] = new int[120];\n\t\tfor(int i=0; i<120; i++){\n\t\t\tx[i]=0;\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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-1] + v;\n\t\t}\n\t\tfor(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\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 x[] = new int[120];", "x", "new int[120]", "120", "for(int i=0; i<120; i++){\n\t\t\tx[i]=0;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<120", "i", "120", "i++", "i++", "i", "{\n\t\t\tx[i]=0;\n\t\t}", "{\n\t\t\tx[i]=0;\n\t\t}", "x[i]=0", "x[i]", "x", "i", "0", "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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-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", "int num=(b-1)*30+(f-1)*10+r;", "num", "(b-1)*30+(f-1)*10+r", "(b-1)*30+(f-1)*10+r", "(b-1)*30", "(b-1)", "b", "1", "30", "(f-1)*10", "(f-1)", "f", "1", "10", "r", "x[num-1]=x[num-1] + v", "x[num-1]", "x", "num-1", "num", "1", "x[num-1] + v", "x[num-1]", "x", "num-1", "num", "1", "v", "for(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<121", "i", "121", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "System.out.print(\" \" + x[i-1])", "System.out.print", "System.out", "System", "System.out", "\" \" + x[i-1]", "\" \"", "x[i-1]", "x", "i-1", "i", "1", "if(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}", "i%10==0", "i%10", "i", "10", "0", "{\n\t\t\t\tSystem.out.println();\n\t\t\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(i%30==0 && i!=120){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "i%30==0 && i!=120", "i%30==0", "i%30", "i", "30", "0", "i!=120", "i", "120", "{\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// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x[] = new int[120];\n\t\tfor(int i=0; i<120; i++){\n\t\t\tx[i]=0;\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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-1] + v;\n\t\t}\n\t\tfor(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\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// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x[] = new int[120];\n\t\tfor(int i=0; i<120; i++){\n\t\t\tx[i]=0;\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\tint num=(b-1)*30+(f-1)*10+r;\n\t\t\tx[num-1]=x[num-1] + v;\n\t\t}\n\t\tfor(int i=1; i<121; i++){\n\t\t\tSystem.out.print(\" \" + x[i-1]);\n\t\t\tif(i%10==0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif(i%30==0 && i!=120){\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) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x[] = new int[120]; for(int i=0; i<120; i++){ x[i]=0; } for(int i=0; i<n; i++){ int b = sc.nextInt(); //?£? int f = sc.nextInt(); //??? int r = sc.nextInt(); //?????? int v = sc.nextInt(); //?????° int num=(b-1)*30+(f-1)*10+r; x[num-1]=x[num-1] + v; } for(int i=1; i<121; i++){ System.out.print(" " + x[i-1]); if(i%10==0){ System.out.println(); } if(i%30==0 && i!=120){ System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 13, 13, 12, 13, 30, 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, 4, 13, 13, 13, 13, 13, 4, 13, 23, 13, 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, 13, 1, 40, 13, 30, 30, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 175, 5 ], [ 175, 6 ], [ 6, 7 ], [ 6, 8 ], [ 175, 9 ], [ 9, 10 ], [ 9, 11 ], [ 175, 12 ], [ 12, 13 ], [ 12, 14 ], [ 175, 15 ], [ 15, 16 ], [ 15, 17 ], [ 175, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 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 ], [ 65, 67 ], [ 65, 68 ], [ 65, 69 ], [ 65, 70 ], [ 23, 71 ], [ 71, 72 ], [ 21, 73 ], [ 73, 74 ], [ 175, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 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 ], [ 75, 93 ], [ 93, 94 ], [ 75, 95 ], [ 95, 96 ], [ 75, 97 ], [ 97, 98 ], [ 75, 99 ], [ 99, 100 ], [ 175, 101 ], [ 101, 102 ], [ 101, 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 ], [ 130, 132 ], [ 129, 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 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 150, 156 ], [ 129, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 116, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tfinal static int \tBUILDINGS = 4, // 棟数\n\t\t\t\t\t\tFLOORS = 3, // 階数\n\t\t\t\t\t\tROOMS = 10; // 部屋数\n\n\tstatic int[][][] house = new int[BUILDINGS][FLOORS][ROOMS]; // 入居者を記録する\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力件数の入力\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}\n\n\t\t//表示\n\t\tprint();\n\t}\n\n\t// 入居者の変更\n\tstatic void ChangeTenants(int b, int f, int r, int v) {\n\t\t// 入力データを記録用配列に合わせ、入居者を加算\n\t\thouse[b - 1][f - 1][r - 1] += v;\n\t}\n\n\t// 表示処理\n\tstatic void print() {\n\t\t\n\t\tfor (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tfinal static int \tBUILDINGS = 4, // 棟数\n\t\t\t\t\t\tFLOORS = 3, // 階数\n\t\t\t\t\t\tROOMS = 10; // 部屋数\n\n\tstatic int[][][] house = new int[BUILDINGS][FLOORS][ROOMS]; // 入居者を記録する\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力件数の入力\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}\n\n\t\t//表示\n\t\tprint();\n\t}\n\n\t// 入居者の変更\n\tstatic void ChangeTenants(int b, int f, int r, int v) {\n\t\t// 入力データを記録用配列に合わせ、入居者を加算\n\t\thouse[b - 1][f - 1][r - 1] += v;\n\t}\n\n\t// 表示処理\n\tstatic void print() {\n\t\t\n\t\tfor (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "final static int \tBUILDINGS = 4", "BUILDINGS", "4", "FLOORS = 3", "FLOORS", "3", "ROOMS = 10; // 部屋数", "ROOMS", "10", "static int[][][] house = new int[BUILDINGS][FLOORS][ROOMS]; // 入居者を記録する", "house", "new int[BUILDINGS][FLOORS][ROOMS]", "BUILDINGS", "FLOORS", "ROOMS", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力件数の入力\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}\n\n\t\t//表示\n\t\tprint();\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力件数の入力\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}\n\n\t\t//表示\n\t\tprint();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}", "{\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, 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", "ChangeTenants(b, f, r, v)", "ChangeTenants", "b", "f", "r", "v", "print()", "print", "String[] args", "args", "// 入居者の変更\n\tstatic void ChangeTenants(int b, int f, int r, int v) {\n\t\t// 入力データを記録用配列に合わせ、入居者を加算\n\t\thouse[b - 1][f - 1][r - 1] += v;\n\t}", "ChangeTenants", "{\n\t\t// 入力データを記録用配列に合わせ、入居者を加算\n\t\thouse[b - 1][f - 1][r - 1] += v;\n\t}", "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", "int b", "b", "int f", "f", "int r", "r", "int v", "v", "// 表示処理\n\tstatic void print() {\n\t\t\n\t\tfor (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "print", "{\n\t\t\n\t\tfor (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "for (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int b = 0;", "int b = 0;", "b", "0", "b < BUILDINGS", "b", "BUILDINGS", "b++", "b++", "b", "{\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}", "int f = 0;", "int f = 0;", "f", "0", "f < FLOORS", "f", "FLOORS", "f++", "f++", "f", "{\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}", "{\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}", "String output = \"\";", "output", "\"\"", "for (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}", "int r = 0;", "int r = 0;", "r", "0", "r < ROOMS", "r", "ROOMS", "r++", "r++", "r", "{\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}", "{\n\n\t\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", "if (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "b < 3", "b", "3", "{\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "public class Main {\n\n\tfinal static int \tBUILDINGS = 4, // 棟数\n\t\t\t\t\t\tFLOORS = 3, // 階数\n\t\t\t\t\t\tROOMS = 10; // 部屋数\n\n\tstatic int[][][] house = new int[BUILDINGS][FLOORS][ROOMS]; // 入居者を記録する\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力件数の入力\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}\n\n\t\t//表示\n\t\tprint();\n\t}\n\n\t// 入居者の変更\n\tstatic void ChangeTenants(int b, int f, int r, int v) {\n\t\t// 入力データを記録用配列に合わせ、入居者を加算\n\t\thouse[b - 1][f - 1][r - 1] += v;\n\t}\n\n\t// 表示処理\n\tstatic void print() {\n\t\t\n\t\tfor (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tfinal static int \tBUILDINGS = 4, // 棟数\n\t\t\t\t\t\tFLOORS = 3, // 階数\n\t\t\t\t\t\tROOMS = 10; // 部屋数\n\n\tstatic int[][][] house = new int[BUILDINGS][FLOORS][ROOMS]; // 入居者を記録する\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力件数の入力\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\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\t//入居者を変更\n\t\t\tChangeTenants(b, f, r, v);\n\t\t}\n\n\t\t//表示\n\t\tprint();\n\t}\n\n\t// 入居者の変更\n\tstatic void ChangeTenants(int b, int f, int r, int v) {\n\t\t// 入力データを記録用配列に合わせ、入居者を加算\n\t\thouse[b - 1][f - 1][r - 1] += v;\n\t}\n\n\t// 表示処理\n\tstatic void print() {\n\t\t\n\t\tfor (int b = 0; b < BUILDINGS; b++) {\n\n\t\t\tfor (int f = 0; f < FLOORS; f++) {\n\n\t\t\t\tString output = \"\";\n\t\t\t\tfor (int r = 0; r < ROOMS; r++) {\n\n\t\t\t\t\t// 数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t// 出力\n\t\t\t\tSystem.out.println(output);\n\n\t\t\t}\n\t\t\t// 棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif (b < 3) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { final static int BUILDINGS = 4, // 棟数 FLOORS = 3, // 階数 ROOMS = 10; // 部屋数 static int[][][] house = new int[BUILDINGS][FLOORS][ROOMS]; // 入居者を記録する public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); // 入力件数の入力 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()); //入居者を変更 ChangeTenants(b, f, r, v); } //表示 print(); } // 入居者の変更 static void ChangeTenants(int b, int f, int r, int v) { // 入力データを記録用配列に合わせ、入居者を加算 house[b - 1][f - 1][r - 1] += v; } // 表示処理 static void print() { for (int b = 0; b < BUILDINGS; b++) { for (int f = 0; f < FLOORS; f++) { String output = ""; for (int r = 0; r < ROOMS; r++) { // 数字の前にスペースを入れる output += " " + house[b][f][r]; } // 出力 System.out.println(output); } // 棟が変わる場合#を20個入れる(最後の行には入れないように) if (b < 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, 17, 17, 17, 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, 4, 18, 13, 41, 13, 41, 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, 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, 20, 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, 13, 17, 4, 18, 13, 4, 18, 13, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 238, 11 ], [ 238, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 24, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 45, 54 ], [ 54, 55 ], [ 45, 56 ], [ 56, 57 ], [ 45, 58 ], [ 58, 59 ], [ 45, 60 ], [ 60, 61 ], [ 45, 62 ], [ 62, 63 ], [ 45, 64 ], [ 64, 65 ], [ 45, 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 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 78, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 78, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 102, 109 ], [ 78, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 116, 118 ], [ 112, 119 ], [ 78, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 78, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 129, 135 ], [ 128, 136 ], [ 45, 137 ], [ 137, 138 ], [ 137, 139 ], [ 45, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 140, 150 ], [ 150, 151 ], [ 151, 152 ], [ 140, 153 ], [ 154, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 155, 167 ], [ 167, 168 ], [ 168, 169 ], [ 155, 170 ], [ 171, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 179, 185 ], [ 172, 186 ], [ 186, 187 ], [ 187, 188 ], [ 172, 189 ], [ 190, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 191, 194 ], [ 190, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 198, 199 ], [ 199, 200 ], [ 198, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 201, 207 ], [ 171, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 208, 213 ], [ 213, 214 ], [ 214, 215 ], [ 171, 216 ], [ 216, 217 ], [ 217, 218 ], [ 216, 219 ], [ 154, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 223, 227 ], [ 220, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 12, 235 ], [ 235, 236 ], [ 0, 237 ], [ 237, 238 ], [ 237, 239 ] ]
[ "\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\t// ??\\?±???¶???\n\t\tint[][][] tenantInfo = new int[4][3][10];\n\n\t\ttry {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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\t// ??\\?±???¶???\n\t\tint[][][] tenantInfo = new int[4][3][10];\n\n\t\ttry {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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\t// ??\\?±???¶???\n\t\tint[][][] tenantInfo = new int[4][3][10];\n\n\t\ttry {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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\t// ??\\?±???¶???\n\t\tint[][][] tenantInfo = new int[4][3][10];\n\n\t\ttry {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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))", "int[][][] tenantInfo = new int[4][3][10];", "tenantInfo", "new int[4][3][10]", "4", "3", "10", "try {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String str;", "str", "String[] strArr;", "strArr", "int b", "b", "f", "f", "r", "r", "v;", "v", "for(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}", "{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "strArr = str.split(\" \")", "strArr", "str.split(\" \")", "str.split", "str", "\" \"", "b = Integer.parseInt(strArr[0])-1", "b", "Integer.parseInt(strArr[0])-1", "Integer.parseInt(strArr[0])", "Integer.parseInt", "Integer", "strArr[0]", "strArr", "0", "1", "f = Integer.parseInt(strArr[1])-1", "f", "Integer.parseInt(strArr[1])-1", "Integer.parseInt(strArr[1])", "Integer.parseInt", "Integer", "strArr[1]", "strArr", "1", "1", "r = Integer.parseInt(strArr[2])-1", "r", "Integer.parseInt(strArr[2])-1", "Integer.parseInt(strArr[2])", "Integer.parseInt", "Integer", "strArr[2]", "strArr", "2", "1", "v = Integer.parseInt(strArr[3])", "v", "Integer.parseInt(strArr[3])", "Integer.parseInt", "Integer", "strArr[3]", "strArr", "3", "tenantInfo[b][f][r]+=v", "tenantInfo[b][f][r]", "tenantInfo[b][f]", "tenantInfo[b]", "tenantInfo", "b", "f", "r", "v", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "for(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<tenantInfo.length", "i", "tenantInfo.length", "tenantInfo", "tenantInfo.length", "i++", "i++", "i", "{\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}", "{\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}", "for(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j<tenantInfo[i].length", "j", "tenantInfo[i].length", "tenantInfo[i]", "tenantInfo", "i", "tenantInfo[i].length", "j++", "j++", "j", "{\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}", "{\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}", "for(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k<tenantInfo[i][j].length", "k", "tenantInfo[i][j].length", "tenantInfo[i][j]", "tenantInfo[i]", "tenantInfo", "i", "j", "tenantInfo[i][j].length", "k++", "k++", "k", "{\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}", "{\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}", "output.append(\" \")", "output.append", "output", "\" \"", "output.append(String.valueOf((tenantInfo[i][j][k])))", "output.append", "output", "String.valueOf((tenantInfo[i][j][k]))", "String.valueOf", "String", "(tenantInfo[i][j][k])", "tenantInfo[i][j]", "tenantInfo[i]", "tenantInfo", "i", "j", "k", "System.out.println(output.toString())", "System.out.println", "System.out", "System", "System.out", "output.toString()", "output.toString", "output", "output.setLength(0)", "output.setLength", "output", "0", "if(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}", "i!=(tenantInfo.length-1)", "i", "(tenantInfo.length-1)", "tenantInfo.length", "tenantInfo", "tenantInfo.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", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??\\?±???¶???\n\t\tint[][][] tenantInfo = new int[4][3][10];\n\n\t\ttry {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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\t// ??\\?±???¶???\n\t\tint[][][] tenantInfo = new int[4][3][10];\n\n\t\ttry {\n\t\t\t// ??\\?????¶??°?????\\???\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\t// ??\\???????????\\???\n\t\t\tString str;\n\t\t\tString[] strArr;\n\t\t\tint b,f,r,v;\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tb = Integer.parseInt(strArr[0])-1;\n\t\t\t\tf = Integer.parseInt(strArr[1])-1;\n\t\t\t\tr = Integer.parseInt(strArr[2])-1;\n\t\t\t\tv = Integer.parseInt(strArr[3]);\n\n\t\t\t\t// ??\\?±??????°????¨????\n\t\t\t\ttenantInfo[b][f][r]+=v;\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\tfor(int i = 0; i<tenantInfo.length; i++){\n\n\t\t\t\tfor(int j = 0; j<tenantInfo[i].length; j++){\n\n\t\t\t\t\tfor(int k = 0; k<tenantInfo[i][j].length; k++){\n\t\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\toutput.append(String.valueOf((tenantInfo[i][j][k])));\n\t\t\t\t\t}\n\n\t\t\t\t\t// ???????±?????????????\n\t\t\t\t\tSystem.out.println(output.toString());\n\n\t\t\t\t\t// ?????????\n\t\t\t\t\toutput.setLength(0);\n\t\t\t\t}\n\t\t\t\t// ?£???????????????????\n\t\t\t\tif(i!=(tenantInfo.length-1)){\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\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)); // ??\?±???¶??? int[][][] tenantInfo = new int[4][3][10]; try { // ??\?????¶??°?????\??? int num = Integer.parseInt(br.readLine()); // ??\???????????\??? String str; String[] strArr; int b,f,r,v; for(int i=0;i<num;i++){ str = br.readLine(); strArr = str.split(" "); b = Integer.parseInt(strArr[0])-1; f = Integer.parseInt(strArr[1])-1; r = Integer.parseInt(strArr[2])-1; v = Integer.parseInt(strArr[3]); // ??\?±??????°????¨???? tenantInfo[b][f][r]+=v; } // ?????? StringBuilder output = new StringBuilder(); for(int i = 0; i<tenantInfo.length; i++){ for(int j = 0; j<tenantInfo[i].length; j++){ for(int k = 0; k<tenantInfo[i][j].length; k++){ output.append(" "); output.append(String.valueOf((tenantInfo[i][j][k]))); } // ???????±????????????? System.out.println(output.toString()); // ????????? output.setLength(0); } // ?£??????????????????? if(i!=(tenantInfo.length-1)){ System.out.println("####################"); } } } catch (IOException e) { e.printStackTrace(); }finally{ try{ if(br != null){ br.close(); } }catch(IOException ioe){ } } } }
[ 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, 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, 40, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 152, 5 ], [ 152, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 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 ], [ 8, 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 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 6, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint room[][][] = new int[4][3][10];\n\t\tint b, f, r, v = 0;\n\t\tfor (int i = 0; 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\n\t\t\troom[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(\" \" + 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\n\t\t}\n\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 room[][][] = new int[4][3][10];\n\t\tint b, f, r, v = 0;\n\t\tfor (int i = 0; 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\n\t\t\troom[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(\" \" + 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\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint room[][][] = new int[4][3][10];\n\t\tint b, f, r, v = 0;\n\t\tfor (int i = 0; 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\n\t\t\troom[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(\" \" + 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\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint room[][][] = new int[4][3][10];\n\t\tint b, f, r, v = 0;\n\t\tfor (int i = 0; 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\n\t\t\troom[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(\" \" + 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\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int room[][][] = new int[4][3][10];", "room", "new int[4][3][10]", "4", "3", "10", "int b", "b", "f", "f", "r", "r", "v = 0;", "v", "0", "for (int i = 0; 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\n\t\t\troom[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 = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tv = sc.nextInt();\n\n\t\t\troom[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\n\t\t\troom[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", "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 < 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\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\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\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(\"####################\");", "!(i == 3)", "(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 n = sc.nextInt();\n\t\tint room[][][] = new int[4][3][10];\n\t\tint b, f, r, v = 0;\n\t\tfor (int i = 0; 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\n\t\t\troom[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(\" \" + 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\n\t\t}\n\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 room[][][] = new int[4][3][10];\n\t\tint b, f, r, v = 0;\n\t\tfor (int i = 0; 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\n\t\t\troom[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(\" \" + 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\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int room[][][] = new int[4][3][10]; int b, f, r, v = 0; 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 < 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, 20, 17, 17, 17, 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, 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, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 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 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 76, 84 ], [ 8, 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 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 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 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 110, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 97, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 6, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬??????????\n\n\t\tint n = scan.nextInt(); //?????±?????°\n\t\tint b = 0; \t\t\t\t//?£??????°\n\t\tint f = 0;\t\t\t\t//?????°\n\t\tint r = 0; \t\t\t//??¨?±??????????\n\t\tint v = 0;\t\t\t\t//????????°\n\n\t\tfor(int i = 0; i < n; i++){ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬??????????\n\n\t\tint n = scan.nextInt(); //?????±?????°\n\t\tint b = 0; \t\t\t\t//?£??????°\n\t\tint f = 0;\t\t\t\t//?????°\n\t\tint r = 0; \t\t\t//??¨?±??????????\n\t\tint v = 0;\t\t\t\t//????????°\n\n\t\tfor(int i = 0; i < n; i++){ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬??????????\n\n\t\tint n = scan.nextInt(); //?????±?????°\n\t\tint b = 0; \t\t\t\t//?£??????°\n\t\tint f = 0;\t\t\t\t//?????°\n\t\tint r = 0; \t\t\t//??¨?±??????????\n\t\tint v = 0;\t\t\t\t//????????°\n\n\t\tfor(int i = 0; i < n; i++){ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬??????????\n\n\t\tint n = scan.nextInt(); //?????±?????°\n\t\tint b = 0; \t\t\t\t//?£??????°\n\t\tint f = 0;\t\t\t\t//?????°\n\t\tint r = 0; \t\t\t//??¨?±??????????\n\t\tint v = 0;\t\t\t\t//????????°\n\n\t\tfor(int i = 0; i < n; i++){ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int[][][] room = new int[5][4][11];", "room", "new int[5][4][11]", "5", "4", "11", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "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\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[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\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}", "{ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + 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", "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(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 4", "i", "4", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 = 1;", "int j = 1;", "j", "1", "j <= 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 = 1; k <= 10; k++){\n\t\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 = 1; k <= 10; k++){\n\t\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}", "int k = 1;", "int k = 1;", "k", "1", "k <= 10", "k", "10", "k++", "k++", "k", "{\n\t\t\t\t\t\tSystem.out.print(\" \" + room[i][j][k]);\n\t\t\t\t}", "{\n\t\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 != 4 ){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "i != 4", "i", "4", "{\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬??????????\n\n\t\tint n = scan.nextInt(); //?????±?????°\n\t\tint b = 0; \t\t\t\t//?£??????°\n\t\tint f = 0;\t\t\t\t//?????°\n\t\tint r = 0; \t\t\t//??¨?±??????????\n\t\tint v = 0;\t\t\t\t//????????°\n\n\t\tfor(int i = 0; i < n; i++){ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬??????????\n\n\t\tint n = scan.nextInt(); //?????±?????°\n\t\tint b = 0; \t\t\t\t//?£??????°\n\t\tint f = 0;\t\t\t\t//?????°\n\t\tint r = 0; \t\t\t//??¨?±??????????\n\t\tint v = 0;\t\t\t\t//????????°\n\n\t\tfor(int i = 0; i < n; i++){ //????¨?????????±?????\\???????????±????????°?????°?????????\n\t\t\t b = scan.nextInt();\n\t\t\t f = scan.nextInt();\n\t\t\t r = scan.nextInt();\n\t\t\t v = scan.nextInt();\n\n\t\t\troom[b][f][r] = room[b][f][r] + v;\n\t\t}\n\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\tfor(int j = 1; j <= 3; j++){\n\t\t\t\tfor(int k = 1; k <= 10; k++){\n\t\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 != 4 ){\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 scan = new Scanner(System.in); int[][][] room = new int[5][4][11]; //4?£????3??????10?????????????¬?????????? int n = scan.nextInt(); //?????±?????° int b = 0; //?£??????° int f = 0; //?????° int r = 0; //??¨?±?????????? int v = 0; //????????° for(int i = 0; i < n; i++){ //????¨?????????±?????\???????????±????????°?????°????????? b = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); v = scan.nextInt(); room[b][f][r] = room[b][f][r] + v; } for(int i = 1; i <= 4; i++){ for(int j = 1; j <= 3; j++){ for(int k = 1; k <= 10; k++){ System.out.print(" " + room[i][j][k]); } System.out.println(); } if(i != 4 ){ System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 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, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 17, 41, 13, 2, 4, 18, 13, 17, 41, 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, 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 ], [ 315, 5 ], [ 315, 6 ], [ 6, 7 ], [ 6, 8 ], [ 315, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 11, 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 57, 61 ], [ 49, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 64, 68 ], [ 49, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 49, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 74, 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 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 122, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 135, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 134, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 11, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 11, 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 ], [ 183, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 11, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 11, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 225 ], [ 225, 226 ], [ 225, 227 ], [ 220, 228 ], [ 228, 229 ], [ 229, 230 ], [ 220, 231 ], [ 232, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 233, 238 ], [ 238, 239 ], [ 238, 240 ], [ 233, 241 ], [ 241, 242 ], [ 242, 243 ], [ 233, 244 ], [ 245, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 246, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 253, 257 ], [ 232, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 11, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 263, 268 ], [ 11, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 269, 274 ], [ 274, 275 ], [ 274, 276 ], [ 269, 277 ], [ 277, 278 ], [ 278, 279 ], [ 269, 280 ], [ 281, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 282, 287 ], [ 287, 288 ], [ 287, 289 ], [ 282, 290 ], [ 290, 291 ], [ 291, 292 ], [ 282, 293 ], [ 294, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 295, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 281, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 9, 312 ], [ 312, 313 ], [ 0, 314 ], [ 314, 315 ], [ 314, 316 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.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\tfor (int i=0; i<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\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\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}", "import java.util.*;", "util.*", "java", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.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\tfor (int i=0; i<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\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\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", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\tint n = sc.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\tfor (int i=0; i<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\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\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\tint n = sc.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\tfor (int i=0; i<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\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\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}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "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<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\n\t\t}", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "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();", "d", "sc.nextInt()", "sc.nextInt", "sc", "if (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}", "a==1", "a", "1", "{A[b][c] += d;}", "A[b][c] += d", "A[b][c]", "A[b]", "A", "b", "c", "d", "if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}", "a==2", "a", "2", "{B[b][c] += d;}", "B[b][c] += d", "B[b][c]", "B[b]", "B", "b", "c", "d", "if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}", "a==3", "a", "3", "{C[b][c] += d;}", "C[b][c] += d", "C[b][c]", "C[b]", "C", "b", "c", "d", "if (a==4) {D[b][c] += d;}", "a==4", "a", "4", "{D[b][c] += d;}", "D[b][c] += d", "D[b][c]", "D[b]", "D", "b", "c", "d", "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[] args", "args", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.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\tfor (int i=0; i<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\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\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\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.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\tfor (int i=0; i<n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt() - 1;\n\t\t\tint c = sc.nextInt() - 1;\n\t\t\tint d = sc.nextInt();\n\t\t\tif (a==1) {A[b][c] += d;}\n\t\t\telse if (a==2) {B[b][c] += d;}\n\t\t\telse if (a==3) {C[b][c] += d;}\n\t\t\telse if (a==4) {D[b][c] += d;}\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\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" ]
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.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<n; i++) { int a = sc.nextInt(); int b = sc.nextInt() - 1; int c = sc.nextInt() - 1; int d = sc.nextInt(); if (a==1) {A[b][c] += d;} else if (a==2) {B[b][c] += d;} else if (a==3) {C[b][c] += d;} else if (a==4) {D[b][c] += d;} } 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, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 13, 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, 4, 18, 13, 18, 18, 13, 13, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 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, 41, 13, 4, 18, 13, 18, 13, 17, 0, 18, 18, 18, 13, 13, 13, 13, 13, 14, 2, 2, 18, 18, 18, 13, 13, 13, 13, 17, 2, 18, 18, 18, 13, 13, 13, 13, 17, 29, 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, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 12 ], [ 12, 13 ], [ 12, 14 ], [ 7, 15 ], [ 15, 16 ], [ 15, 17 ], [ 7, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 53, 61 ], [ 20, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 72, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 72, 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 ], [ 104, 105 ], [ 105, 106 ], [ 102, 107 ], [ 99, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 110, 117 ], [ 99, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 124, 126 ], [ 120, 127 ], [ 99, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 134, 136 ], [ 130, 137 ], [ 99, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 143, 145 ], [ 99, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 147, 153 ], [ 146, 154 ], [ 99, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 158, 164 ], [ 157, 165 ], [ 156, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 167, 173 ], [ 166, 174 ], [ 155, 175 ], [ 72, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 181, 182 ], [ 181, 183 ], [ 176, 184 ], [ 184, 185 ], [ 185, 186 ], [ 176, 187 ], [ 188, 188 ], [ 188, 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 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 207, 208 ], [ 207, 209 ], [ 202, 210 ], [ 210, 211 ], [ 211, 212 ], [ 202, 213 ], [ 214, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 221, 225 ], [ 220, 226 ], [ 201, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 188, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 236, 237 ], [ 235, 238 ], [ 72, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 239, 244 ], [ 18, 245 ], [ 245, 246 ] ]
[ "/* ITP1_6_C */\nimport java.io.*;\nimport java.util.Arrays;\n\nclass Main\n{\n static final int BUILDING = 4;\n static final int FLOOR = 3;\n static final int ROOM = 10;\n\n public static void main(String[] args)\n {\n int[][][] count = new int[BUILDING][FLOOR][ROOM];\n // initialization\n for(int i = 0; i < BUILDING; i++){\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n // process\n for(int i = 0; i < n; i++){\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }\n\n // output\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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }\n System.out.print(sb);\n\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main\n{\n static final int BUILDING = 4;\n static final int FLOOR = 3;\n static final int ROOM = 10;\n\n public static void main(String[] args)\n {\n int[][][] count = new int[BUILDING][FLOOR][ROOM];\n // initialization\n for(int i = 0; i < BUILDING; i++){\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n // process\n for(int i = 0; i < n; i++){\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }\n\n // output\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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }\n System.out.print(sb);\n\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "static final int BUILDING = 4;", "BUILDING", "4", "static final int FLOOR = 3;", "FLOOR", "3", "static final int ROOM = 10;", "ROOM", "10", "public static void main(String[] args)\n {\n int[][][] count = new int[BUILDING][FLOOR][ROOM];\n // initialization\n for(int i = 0; i < BUILDING; i++){\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n // process\n for(int i = 0; i < n; i++){\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }\n\n // output\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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }\n System.out.print(sb);\n\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n int[][][] count = new int[BUILDING][FLOOR][ROOM];\n // initialization\n for(int i = 0; i < BUILDING; i++){\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n // process\n for(int i = 0; i < n; i++){\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }\n\n // output\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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }\n System.out.print(sb);\n\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "int[][][] count = new int[BUILDING][FLOOR][ROOM];", "count", "new int[BUILDING][FLOOR][ROOM]", "BUILDING", "FLOOR", "ROOM", "for(int i = 0; i < BUILDING; i++){\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < BUILDING", "i", "BUILDING", "i++", "i++", "i", "{\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }", "{\n for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }\n }", "for(int j = 0; j < FLOOR; j++){\n Arrays.fill(count[i][j], 0);\n }", "int j = 0;", "int j = 0;", "j", "0", "j < FLOOR", "j", "FLOOR", "j++", "j++", "j", "{\n Arrays.fill(count[i][j], 0);\n }", "{\n Arrays.fill(count[i][j], 0);\n }", "Arrays.fill(count[i][j], 0)", "Arrays.fill", "Arrays", "count[i][j]", "count[i]", "count", "i", "j", "0", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n // process\n for(int i = 0; i < n; i++){\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }\n\n // output\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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }\n System.out.print(sb);\n\n\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n // process\n for(int i = 0; i < n; i++){\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }\n\n // output\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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }\n System.out.print(sb);\n\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "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 String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }", "{\n String[] info = br.readLine().split(\" \");\n int building = Integer.parseInt(info[0]) - 1;\n int floor = Integer.parseInt(info[1]) - 1;\n int room = Integer.parseInt(info[2]) - 1;\n int persons = Integer.parseInt(info[3]);\n\n count[building][floor][room] += persons;\n if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;\n }", "String[] info = br.readLine().split(\" \");", "info", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int building = Integer.parseInt(info[0]) - 1;", "building", "Integer.parseInt(info[0]) - 1", "Integer.parseInt(info[0])", "Integer.parseInt", "Integer", "info[0]", "info", "0", "1", "int floor = Integer.parseInt(info[1]) - 1;", "floor", "Integer.parseInt(info[1]) - 1", "Integer.parseInt(info[1])", "Integer.parseInt", "Integer", "info[1]", "info", "1", "1", "int room = Integer.parseInt(info[2]) - 1;", "room", "Integer.parseInt(info[2]) - 1", "Integer.parseInt(info[2])", "Integer.parseInt", "Integer", "info[2]", "info", "2", "1", "int persons = Integer.parseInt(info[3]);", "persons", "Integer.parseInt(info[3])", "Integer.parseInt", "Integer", "info[3]", "info", "3", "count[building][floor][room] += persons", "count[building][floor][room]", "count[building][floor]", "count[building]", "count", "building", "floor", "room", "persons", "if(count[building][floor][room] < 0 || count[building][floor][room] > 9)\n return;", "count[building][floor][room] < 0 || count[building][floor][room] > 9", "count[building][floor][room] < 0", "count[building][floor][room]", "count[building][floor]", "count[building]", "count", "building", "floor", "room", "0", "count[building][floor][room] > 9", "count[building][floor][room]", "count[building][floor]", "count[building]", "count", "building", "floor", "room", "9", "return;", "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(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\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 sb.append(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }", "{\n for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n sb.append(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i == 3);\n else\n sb.append(\"####################\\n\");\n }", "for(int j = 0; j < 3; j++){\n for(int k = 0; k < 10; k++){\n sb.append(\" \" + count[i][j][k]);\n }\n sb.append(\"\\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 sb.append(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }", "{\n for(int k = 0; k < 10; k++){\n sb.append(\" \" + count[i][j][k]);\n }\n sb.append(\"\\n\");\n }", "for(int k = 0; k < 10; k++){\n sb.append(\" \" + count[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n sb.append(\" \" + count[i][j][k]);\n }", "{\n sb.append(\" \" + count[i][j][k]);\n }", "sb.append(\" \" + count[i][j][k])", "sb.append", "sb", "\" \" + count[i][j][k]", "\" \"", "count[i][j][k]", "count[i][j]", "count[i]", "count", "i", "j", "k", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "if(i == 3);\n else\n sb.append(\"####################\\n\");", "i == 3", "i", "3", "sb.append(\"####################\\n\")", "sb.append", "sb", "\"####################\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
/* ITP1_6_C */ import java.io.*; import java.util.Arrays; class Main { static final int BUILDING = 4; static final int FLOOR = 3; static final int ROOM = 10; public static void main(String[] args) { int[][][] count = new int[BUILDING][FLOOR][ROOM]; // initialization for(int i = 0; i < BUILDING; i++){ for(int j = 0; j < FLOOR; j++){ Arrays.fill(count[i][j], 0); } } try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int n = Integer.parseInt(br.readLine()); // process for(int i = 0; i < n; i++){ String[] info = br.readLine().split(" "); int building = Integer.parseInt(info[0]) - 1; int floor = Integer.parseInt(info[1]) - 1; int room = Integer.parseInt(info[2]) - 1; int persons = Integer.parseInt(info[3]); count[building][floor][room] += persons; if(count[building][floor][room] < 0 || count[building][floor][room] > 9) return; } // output for(int i = 0; i < 4; i++){ for(int j = 0; j < 3; j++){ for(int k = 0; k < 10; k++){ sb.append(" " + count[i][j][k]); } sb.append("\n"); } if(i == 3); else sb.append("####################\n"); } System.out.print(sb); }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 2, 17, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 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, 41, 13, 4, 18, 13, 41, 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, 14, 2, 18, 18, 18, 13, 13, 13, 13, 17, 30, 0, 18, 18, 18, 13, 13, 13, 13, 13, 30, 0, 18, 18, 18, 13, 13, 13, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 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, 18, 13, 13, 17, 40, 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 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 18, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 30, 42 ], [ 42, 43 ], [ 42, 44 ], [ 30, 48 ], [ 48, 49 ], [ 48, 50 ], [ 30, 51 ], [ 51, 52 ], [ 51, 53 ], [ 30, 54 ], [ 54, 55 ], [ 54, 56 ], [ 30, 57 ], [ 57, 58 ], [ 57, 59 ], [ 30, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 72, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 72, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 72, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 72, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 107 ], [ 72, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 113, 115 ], [ 72, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 118, 124 ], [ 117, 125 ], [ 116, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 128, 134 ], [ 127, 135 ], [ 116, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 138, 144 ], [ 137, 145 ], [ 30, 146 ], [ 146, 147 ], [ 146, 148 ], [ 30, 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 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 175, 186 ], [ 187, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 195, 201 ], [ 174, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 161, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 213, 218 ], [ 212, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 219, 224 ], [ 161, 225 ], [ 225, 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\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }\n\n\n\n\t}//240 Array?????£?????????????????????????????????\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\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }\n\n\n\n\t}//240 Array?????£?????????????????????????????????\n\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }\n\n\n\n\t}//240 Array?????£?????????????????????????????????", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }\n\n\n\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }", "catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }", "IOException e", "{ System.out.println(\"Exception : \" + e);\n\t\t }", "System.out.println(\"Exception : \" + e)", "System.out.println", "System.out", "System", "System.out", "\"Exception : \" + e", "\"Exception : \"", "e", "{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }", "String az=input.readLine();", "az", "input.readLine()", "input.readLine", "input", "int a=Integer.parseInt(az);", "a", "Integer.parseInt(az)", "Integer.parseInt", "Integer", "az", "int Array[][][]=new int[5][4][11];", "Array", "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<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "{\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }", "{\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }", "String ab = input.readLine();", "ab", "input.readLine()", "input.readLine", "input", "String []strAry = ab.split(\" \");", "strAry", "ab.split(\" \")", "ab.split", "ab", "\" \"", "b=Integer.parseInt(strAry[0])", "b", "Integer.parseInt(strAry[0])", "Integer.parseInt", "Integer", "strAry[0]", "strAry", "0", "f=Integer.parseInt(strAry[1])", "f", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "r=Integer.parseInt(strAry[2])", "r", "Integer.parseInt(strAry[2])", "Integer.parseInt", "Integer", "strAry[2]", "strAry", "2", "v=Integer.parseInt(strAry[3])", "v", "Integer.parseInt(strAry[3])", "Integer.parseInt", "Integer", "strAry[3]", "strAry", "3", "if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }", "Array[b][f][r]>0", "Array[b][f][r]", "Array[b][f]", "Array[b]", "Array", "b", "f", "r", "0", "{\n\t \t Array[b][f][r]+=v;\n\t }", "Array[b][f][r]+=v", "Array[b][f][r]", "Array[b][f]", "Array[b]", "Array", "b", "f", "r", "v", "{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }", "Array[b][f][r]=v", "Array[b][f][r]", "Array[b][f]", "Array[b]", "Array", "b", "f", "r", "v", "int count=1;", "count", "1", "for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }", "int u=1;", "int u=1;", "u", "1", "u<5", "u", "5", "u++", "u++", "u", "{\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }", "{\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }", "for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }", "int o=1;", "int o=1;", "o", "1", "o<4", "o", "4", "o++", "o++", "o", "{\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }", "{\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }", "for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}", "int q=1;", "int q=1;", "q", "1", "q<11", "q", "11", "q++", "q++", "q", "{\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}", "{\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}", "System.out.print(\" \"+Array[u][o][q])", "System.out.print", "System.out", "System", "System.out", "\" \"+Array[u][o][q]", "\" \"", "Array[u][o][q]", "Array[u][o]", "Array[u]", "Array", "u", "o", "q", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }", "count<4", "count", "4", "{\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\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", "\"\"", "count++", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }\n\n\n\n\t}//240 Array?????£?????????????????????????????????\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try{\n \t //?????±?????\\???\n \t String az=input.readLine();\n \t int a=Integer.parseInt(az);\n //[0][0][0]0????????????????§??????????????????????\n\t int Array[][][]=new int[5][4][11];\n\t int b=0;\n\t int f=0;\n\t int r=0;\n\t int v=0;\n\t for(int i=0; i<a; i++){\n\t \t String ab = input.readLine();\n\t\t String []strAry = ab.split(\" \");\n\t //??´??°??\\???\n\t b=Integer.parseInt(strAry[0]);\n\t //????±???\\???\n\t f=Integer.parseInt(strAry[1]);\n\t //??¨?±??????\\???\n\t r=Integer.parseInt(strAry[2]);\n\t //?????°??\\???\n\t v=Integer.parseInt(strAry[3]);\n\t //Array???????????°????????????????¢????\n\t if(Array[b][f][r]>0){\n\t \t Array[b][f][r]+=v;\n\t }else{\n\t \t //??????Array???b??´f???r??¨?±??????\\?????????????????????????´?\n\t Array[b][f][r]=v;\n\t }\n\n\t }\n int count=1;\n\t for(int u=1; u<5; u++){\n\t \t for(int o=1; o<4; o++ ){\n\t \t\t for(int q=1; q<11; q++){\n\t \t\t\t //Array????????°????????\\??£?????????????????????????????????????´??????????????????¨??????????????\\??£?????????\n\t \t\t\t System.out.print(\" \"+Array[u][o][q]);\n\t \t\t\t}\n\t \t\t System.out.println(\"\");\n\t \t\t }\n\t \t if(count<4){\n System.out.print(\"####################\");\n\n\t \t\t System.out.println(\"\");\n\t \t }\n\t \t\t count++;\n\t \t }\n\n\n\n \t\t }catch(IOException e) { System.out.println(\"Exception : \" + e);\n\t\t }\n\n\n\n\t}//240 Array?????£?????????????????????????????????\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); try{ //?????±?????\??? String az=input.readLine(); int a=Integer.parseInt(az); //[0][0][0]0????????????????§?????????????????????? int Array[][][]=new int[5][4][11]; int b=0; int f=0; int r=0; int v=0; for(int i=0; i<a; i++){ String ab = input.readLine(); String []strAry = ab.split(" "); //??´??°??\??? b=Integer.parseInt(strAry[0]); //????±???\??? f=Integer.parseInt(strAry[1]); //??¨?±??????\??? r=Integer.parseInt(strAry[2]); //?????°??\??? v=Integer.parseInt(strAry[3]); //Array???????????°????????????????¢???? if(Array[b][f][r]>0){ Array[b][f][r]+=v; }else{ //??????Array???b??´f???r??¨?±??????\?????????????????????????´? Array[b][f][r]=v; } } int count=1; for(int u=1; u<5; u++){ for(int o=1; o<4; o++ ){ for(int q=1; q<11; q++){ //Array????????°????????\??£?????????????????????????????????????´??????????????????¨??????????????\??£????????? System.out.print(" "+Array[u][o][q]); } System.out.println(""); } if(count<4){ System.out.print("####################"); System.out.println(""); } count++; } }catch(IOException e) { System.out.println("Exception : " + e); } }//240 Array?????£????????????????????????????????? }
[ 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, 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, 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 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 6, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[][][] data = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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(\" \" + data[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\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[][][] data = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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(\" \" + data[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\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[][][] data = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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(\" \" + data[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\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[][][] data = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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(\" \" + data[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\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int[][][] data = new int[4][3][10];", "data", "new int[4][3][10]", "4", "3", "10", "for(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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 = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[b-1][f-1][r-1] += v;\n\t\t}", "{\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[b-1][f-1][r-1] += v;\n\t\t}", "int b = stdIn.nextInt();", "b", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int f = stdIn.nextInt();", "f", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int r = stdIn.nextInt();", "r", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int v = stdIn.nextInt();", "v", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "data[b-1][f-1][r-1] += v", "data[b-1][f-1][r-1]", "data[b-1][f-1]", "data[b-1]", "data", "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(\" \" + data[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\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(\" \" + data[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\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(\" \" + data[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\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(\" \" + data[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(\" \" + data[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(\" \" + data[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(\" \" + data[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(\" \" + data[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + data[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \" + data[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + data[i][j][k]", "\" \"", "data[i][j][k]", "data[i][j]", "data[i]", "data", "i", "j", "k", "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\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[][][] data = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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(\" \" + data[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\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[][][] data = new int[4][3][10];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tdata[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(\" \" + data[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\tSystem.out.println(\"####################\");\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 stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int[][][] data = new int[4][3][10]; for(int i = 0; i < n; i++) { int b = stdIn.nextInt(); int f = stdIn.nextInt(); int r = stdIn.nextInt(); int v = stdIn.nextInt(); data[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(" " + data[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, 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, 20, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 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, 41, 13, 4, 18, 13, 18, 13, 17, 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, 17, 4, 18, 18, 13, 13, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 14, 2, 13, 17, 30, 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 ], [ 253, 11 ], [ 253, 12 ], [ 12, 13 ], [ 12, 14 ], [ 253, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 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 ], [ 17, 72 ], [ 72, 73 ], [ 72, 74 ], [ 17, 75 ], [ 75, 76 ], [ 75, 77 ], [ 17, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 80, 85 ], [ 17, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 91, 93 ], [ 17, 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 ], [ 111, 112 ], [ 112, 113 ], [ 109, 114 ], [ 106, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 120, 122 ], [ 106, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 128, 129 ], [ 128, 130 ], [ 106, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 136, 138 ], [ 106, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 144, 145 ], [ 144, 146 ], [ 106, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 155 ], [ 155, 156 ], [ 155, 157 ], [ 148, 158 ], [ 158, 159 ], [ 158, 160 ], [ 147, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 166, 168 ], [ 163, 169 ], [ 169, 170 ], [ 169, 171 ], [ 162, 172 ], [ 172, 173 ], [ 172, 174 ], [ 161, 175 ], [ 17, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 181, 182 ], [ 181, 183 ], [ 176, 184 ], [ 184, 185 ], [ 185, 186 ], [ 176, 187 ], [ 188, 188 ], [ 188, 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 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 207, 208 ], [ 207, 209 ], [ 202, 210 ], [ 210, 211 ], [ 211, 212 ], [ 202, 213 ], [ 214, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 215, 220 ], [ 214, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 221, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 226, 232 ], [ 201, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 188, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 238, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 244, 249 ], [ 15, 250 ], [ 250, 251 ], [ 0, 252 ], [ 252, 253 ], [ 252, 254 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//???????????£?¨?\n\t\tint building [][][] = new int [4][3][10];\n\n\t\t//?????????????????????????????\\??????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}\n\n\t\t//1???????????\\????????¢\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n\n //v??????????????\\??????\n for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }\n\n\t\t//?????¢?????¨?????????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \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 void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//???????????£?¨?\n\t\tint building [][][] = new int [4][3][10];\n\n\t\t//?????????????????????????????\\??????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}\n\n\t\t//1???????????\\????????¢\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n\n //v??????????????\\??????\n for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }\n\n\t\t//?????¢?????¨?????????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}\n\t}\n}", "Main", "public void maain(){\n\n\t}", "maain", "{\n\n\t}", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//???????????£?¨?\n\t\tint building [][][] = new int [4][3][10];\n\n\t\t//?????????????????????????????\\??????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}\n\n\t\t//1???????????\\????????¢\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n\n //v??????????????\\??????\n for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }\n\n\t\t//?????¢?????¨?????????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//???????????£?¨?\n\t\tint building [][][] = new int [4][3][10];\n\n\t\t//?????????????????????????????\\??????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}\n\n\t\t//1???????????\\????????¢\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n\n //v??????????????\\??????\n for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }\n\n\t\t//?????¢?????¨?????????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}\n\t}", "int building [][][] = new int [4][3][10];", "building", "new int [4][3][10]", "4", "3", "10", "for(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}", "int b_building = 0;", "int b_building = 0;", "b_building", "0", "b_building < 4", "b_building", "4", "b_building++", "b_building++", "b_building", "{\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}", "{\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}", "for(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}", "int stairs = 0;", "int stairs = 0;", "stairs", "0", "stairs < 3", "stairs", "3", "stairs++", "stairs++", "stairs", "{\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}", "{\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}", "for(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < 10", "num", "10", "num++", "num++", "num", "{\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}", "{\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}", "building[b_building][stairs][num] = 0", "building[b_building][stairs][num]", "building[b_building][stairs]", "building[b_building]", "building", "b_building", "stairs", "num", "0", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int n = Integer.parseInt(input[0]);", "n", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }", "int set = 0;", "int set = 0;", "set", "0", "set < n", "set", "n", "set++", "set++", "set", "{\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }", "{\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }", "String[] input2 = br.readLine().split(\" \");", "input2", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int b = Integer.parseInt(input2[0]);", "b", "Integer.parseInt(input2[0])", "Integer.parseInt", "Integer", "input2[0]", "input2", "0", "int f = Integer.parseInt(input2[1]);", "f", "Integer.parseInt(input2[1])", "Integer.parseInt", "Integer", "input2[1]", "input2", "1", "int r = Integer.parseInt(input2[2]);", "r", "Integer.parseInt(input2[2])", "Integer.parseInt", "Integer", "input2[2]", "input2", "2", "int v = Integer.parseInt(input2[3]);", "v", "Integer.parseInt(input2[3])", "Integer.parseInt", "Integer", "input2[3]", "input2", "3", "building[b - 1][f - 1][r - 1] = 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", "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 b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}", "int b_building = 0;", "int b_building = 0;", "b_building", "0", "b_building < 4", "b_building", "4", "b_building++", "b_building++", "b_building", "{\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}", "{\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}", "for(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}", "int stairs = 0;", "int stairs = 0;", "stairs", "0", "stairs < 3", "stairs", "3", "stairs++", "stairs++", "stairs", "{\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}", "{\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}", "for(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < 10", "num", "10", "num++", "num++", "num", "{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}", "{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(building[b_building][stairs][num])", "System.out.print", "System.out", "System", "System.out", "building[b_building][stairs][num]", "building[b_building][stairs]", "building[b_building]", "building", "b_building", "stairs", "num", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}", "b_building == 3", "b_building", "3", "{\n \t\t}", "{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "String[] args", "args", "public class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//???????????£?¨?\n\t\tint building [][][] = new int [4][3][10];\n\n\t\t//?????????????????????????????\\??????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}\n\n\t\t//1???????????\\????????¢\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n\n //v??????????????\\??????\n for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }\n\n\t\t//?????¢?????¨?????????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}\n\t}\n}", "public class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t//???????????£?¨?\n\t\tint building [][][] = new int [4][3][10];\n\n\t\t//?????????????????????????????\\??????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tbuilding[b_building][stairs][num] = 0;\n \t\t\t}\n \t\t}\n \t}\n\n\t\t//1???????????\\????????¢\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n\n //v??????????????\\??????\n for(int set = 0;set < n; set++){\n \tString[] input2 = br.readLine().split(\" \");\n \t\tint b = Integer.parseInt(input2[0]);\n \t\tint f = Integer.parseInt(input2[1]);\n \t\tint r = Integer.parseInt(input2[2]);\n \t\tint v = Integer.parseInt(input2[3]);\n \t\tbuilding[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v;\n }\n\n\t\t//?????¢?????¨?????????\n \tfor(int b_building = 0; b_building < 4; b_building++){\n \t\tfor(int stairs = 0; stairs < 3; stairs++){\n \t\t\tfor(int num = 0; num < 10; num++){\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(building[b_building][stairs][num]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif(b_building == 3){\n \t\t}else{\n \t\t\tSystem.out.println(\"####################\");\n \t\t}\n \t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public void maain(){ } public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? //???????????£?¨? int building [][][] = new int [4][3][10]; //?????????????????????????????\?????? for(int b_building = 0; b_building < 4; b_building++){ for(int stairs = 0; stairs < 3; stairs++){ for(int num = 0; num < 10; num++){ building[b_building][stairs][num] = 0; } } } //1???????????\????????¢ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String[] input = br.readLine().split(" "); int n = Integer.parseInt(input[0]); //v??????????????\?????? for(int set = 0;set < n; set++){ String[] input2 = br.readLine().split(" "); int b = Integer.parseInt(input2[0]); int f = Integer.parseInt(input2[1]); int r = Integer.parseInt(input2[2]); int v = Integer.parseInt(input2[3]); building[b - 1][f - 1][r - 1] = building[b - 1][f - 1][r - 1] + v; } //?????¢?????¨????????? for(int b_building = 0; b_building < 4; b_building++){ for(int stairs = 0; stairs < 3; stairs++){ for(int num = 0; num < 10; num++){ System.out.print(" "); System.out.print(building[b_building][stairs][num]); } System.out.println(); } if(b_building == 3){ }else{ System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 17, 17, 17, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 18, 13, 17, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 18, 18, 13, 17, 17, 13, 1, 40, 13, 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, 4, 18, 13, 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, 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, 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 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 39, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 62, 68 ], [ 55, 69 ], [ 69, 70 ], [ 70, 71 ], [ 55, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 73, 81 ], [ 8, 82 ], [ 82, 83 ], [ 82, 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 ], [ 104, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 102, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 102, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 102, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 102, 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 ], [ 8, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 141, 151 ], [ 151, 152 ], [ 152, 153 ], [ 141, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 156, 168 ], [ 168, 169 ], [ 169, 170 ], [ 156, 171 ], [ 172, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 173, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 180, 186 ], [ 173, 187 ], [ 187, 188 ], [ 188, 189 ], [ 173, 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 ], [ 172, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 155, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 214, 218 ], [ 211, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 219, 224 ], [ 6, 225 ], [ 225, 226 ] ]
[ "import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n int n;\n int [][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for(int i=0; i<room.length; i++)\n for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=0; i<n; i++){\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }\n\n for(int i=0; i<room.length; i++){\n for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] arg){\n int n;\n int [][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for(int i=0; i<room.length; i++)\n for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=0; i<n; i++){\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }\n\n for(int i=0; i<room.length; i++){\n for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }\n }\n}", "Main", "public static void main(String[] arg){\n int n;\n int [][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for(int i=0; i<room.length; i++)\n for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=0; i<n; i++){\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }\n\n for(int i=0; i<room.length; i++){\n for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }\n }", "main", "{\n int n;\n int [][][] room = new int[4][3][10];\n int b,f,r,v;\n\n for(int i=0; i<room.length; i++)\n for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=0; i<n; i++){\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }\n\n for(int i=0; i<room.length; i++){\n for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }\n }", "int n;", "n", "int [][][] room = new int[4][3][10];", "room", "new int[4][3][10]", "4", "3", "10", "int b", "b", "f", "f", "r", "r", "v;", "v", "for(int i=0; i<room.length; i++)\n for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;", "int i=0;", "int i=0;", "i", "0", "i<room.length", "i", "room.length", "room", "room.length", "i++", "i++", "i", "for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;", "for(int j=0; j<room[0].length; j++)\n for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;", "int j=0;", "int j=0;", "j", "0", "j<room[0].length", "j", "room[0].length", "room[0]", "room", "0", "room[0].length", "j++", "j++", "j", "for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;", "for(int k=0; k<room[0][0].length; k++)\n room[i][j][k] = 0;", "int k=0;", "int k=0;", "k", "0", "k<room[0][0].length", "k", "room[0][0].length", "room[0][0]", "room[0]", "room", "0", "0", "room[0][0].length", "k++", "k++", "k", "room[i][j][k] = 0;", "room[i][j][k] = 0", "room[i][j][k]", "room[i][j]", "room[i]", "room", "i", "j", "k", "0", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "n = in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "for(int i=0; i<n; i++){\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }", "{\n in.nextLine();\n b = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n v = in.nextInt();\n\n room[b-1][f-1][r-1] += v;\n }", "in.nextLine()", "in.nextLine", "in", "b = in.nextInt()", "b", "in.nextInt()", "in.nextInt", "in", "f = in.nextInt()", "f", "in.nextInt()", "in.nextInt", "in", "r = in.nextInt()", "r", "in.nextInt()", "in.nextInt", "in", "v = in.nextInt()", "v", "in.nextInt()", "in.nextInt", "in", "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 for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }", "int i=0;", "int i=0;", "i", "0", "i<room.length", "i", "room.length", "room", "room.length", "i++", "i++", "i", "{\n for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }", "{\n for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }\n if(i <room.length-1)\n System.out.println(\"####################\");\n }", "for (int j=0; j<room[0].length; j++) {\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }", "int j=0;", "int j=0;", "j", "0", "j<room[0].length", "j", "room[0].length", "room[0]", "room", "0", "room[0].length", "j++", "j++", "j", "{\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }", "{\n for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }\n System.out.println();\n }", "for(int k=0; k<room[0][0].length; k++){\n System.out.print(\" \" + room[i][j][k]);\n }", "int k=0;", "int k=0;", "k", "0", "k<room[0][0].length", "k", "room[0][0].length", "room[0][0]", "room[0]", "room", "0", "0", "room[0][0].length", "k++", "k++", "k", "{\n System.out.print(\" \" + room[i][j][k]);\n }", "{\n System.out.print(\" \" + room[i][j][k]);\n }", "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 <room.length-1)\n System.out.println(\"####################\");", "i <room.length-1", "i", "room.length-1", "room.length", "room", "room.length", "1", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "String[] arg", "arg" ]
import java.util.Scanner; class Main{ public static void main(String[] arg){ int n; int [][][] room = new int[4][3][10]; int b,f,r,v; for(int i=0; i<room.length; i++) for(int j=0; j<room[0].length; j++) for(int k=0; k<room[0][0].length; k++) room[i][j][k] = 0; Scanner in = new Scanner(System.in); n = in.nextInt(); for(int i=0; i<n; i++){ in.nextLine(); b = in.nextInt(); f = in.nextInt(); r = in.nextInt(); v = in.nextInt(); room[b-1][f-1][r-1] += v; } for(int i=0; i<room.length; i++){ for (int j=0; j<room[0].length; j++) { for(int k=0; k<room[0][0].length; k++){ System.out.print(" " + room[i][j][k]); } System.out.println(); } if(i <room.length-1) System.out.println("####################"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 18, 13, 18, 13, 13, 17, 0, 18, 18, 18, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 2, 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, 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 ], [ 173, 11 ], [ 173, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 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 ], [ 44, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 44, 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 ], [ 93, 95 ], [ 82, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 14, 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 ], [ 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 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 147, 153 ], [ 126, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 113, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 12, 170 ], [ 170, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }", "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[][][] list = new int[4][3][10];", "list", "new int[4][3][10]", "4", "3", "10", "for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }", "{\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }", "String[] lines = br.readLine().split(\" \");", "lines", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] nList = new int[4];", "nList", "new int[4]", "4", "for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }", "{\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }", "nList[j] = Integer.parseInt(lines[j]) - 1", "nList[j]", "nList", "j", "Integer.parseInt(lines[j]) - 1", "Integer.parseInt(lines[j])", "Integer.parseInt", "Integer", "lines[j]", "lines", "j", "1", "list[nList[0]][nList[1]][nList[2]] += nList[3] + 1", "list[nList[0]][nList[1]][nList[2]]", "list[nList[0]][nList[1]]", "list[nList[0]]", "list", "nList[0]", "nList", "0", "nList[1]", "nList", "1", "nList[2]", "nList", "2", "nList[3] + 1", "nList[3]", "nList", "3", "1", "for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 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(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 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(\" \" + list[j][k][l]);\n }\n System.out.println();\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(\" \" + list[j][k][l]);\n }\n System.out.println();\n }", "{\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }", "for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }", "int l = 0;", "int l = 0;", "l", "0", "l < 10", "l", "10", "l++", "l++", "l", "{\n System.out.print(\" \" + list[j][k][l]);\n }", "{\n System.out.print(\" \" + list[j][k][l]);\n }", "System.out.print(\" \" + list[j][k][l])", "System.out.print", "System.out", "System", "System.out", "\" \" + list[j][k][l]", "\" \"", "list[j][k][l]", "list[j][k]", "list[j]", "list", "j", "k", "l", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (j != 3) {\n System.out.println(\"####################\");\n }", "j != 3", "j", "3", "{\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n System.out.print(\" \" + list[j][k][l]);\n }\n System.out.println();\n }\n if (j != 3) {\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)); int n = Integer.parseInt(br.readLine()); int[][][] list = new int[4][3][10]; for (int i = 0; i < n; i++) { String[] lines = br.readLine().split(" "); int[] nList = new int[4]; for (int j = 0; j < 4; j++) { nList[j] = Integer.parseInt(lines[j]) - 1; } list[nList[0]][nList[1]][nList[2]] += nList[3] + 1; } for (int j = 0; j < 4; j++) { for (int k = 0; k < 3; k++) { for (int l = 0; l < 10; l++) { System.out.print(" " + list[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, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 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, 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 ], [ 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 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 38, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 38, 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 ], [ 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 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 111, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 98, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] B = new int[4][3][10];\n\n int N = Integer.parseInt(sc.next());\n for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\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[][][] B = new int[4][3][10];\n\n int N = Integer.parseInt(sc.next());\n for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] B = new int[4][3][10];\n\n int N = Integer.parseInt(sc.next());\n for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int[][][] B = new int[4][3][10];\n\n int N = Integer.parseInt(sc.next());\n for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[][][] B = new int[4][3][10];", "B", "new int[4][3][10]", "4", "3", "10", "int N = Integer.parseInt(sc.next());", "N", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[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 = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\n }", "{\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\n }", "int b = Integer.parseInt(sc.next());", "b", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int f = Integer.parseInt(sc.next());", "f", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int r = Integer.parseInt(sc.next());", "r", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int v = Integer.parseInt(sc.next());", "v", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "B[b - 1][f - 1][r - 1] += v", "B[b - 1][f - 1][r - 1]", "B[b - 1][f - 1]", "B[b - 1]", "B", "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 k = 0; k < 10; k++) {\n System.out.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\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 for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\n }", "{\n for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\n }", "for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", B[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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }", "{\n for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }", "for (int k = 0; k < 10; k++) {\n System.out.printf(\" %d\", B[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n System.out.printf(\" %d\", B[i][j][k]);\n }", "{\n System.out.printf(\" %d\", B[i][j][k]);\n }", "System.out.printf(\" %d\", B[i][j][k])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "B[i][j][k]", "B[i][j]", "B[i]", "B", "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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[][][] B = new int[4][3][10];\n\n int N = Integer.parseInt(sc.next());\n for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) 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[][][] B = new int[4][3][10];\n\n int N = Integer.parseInt(sc.next());\n for (int i = 0; i < N; i++) {\n int b = Integer.parseInt(sc.next());\n int f = Integer.parseInt(sc.next());\n int r = Integer.parseInt(sc.next());\n int v = Integer.parseInt(sc.next());\n\n B[b - 1][f - 1][r - 1] += v;\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.printf(\" %d\", B[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3) System.out.println(\"####################\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[][][] B = new int[4][3][10]; int N = Integer.parseInt(sc.next()); for (int i = 0; i < N; i++) { int b = Integer.parseInt(sc.next()); int f = Integer.parseInt(sc.next()); int r = Integer.parseInt(sc.next()); int v = Integer.parseInt(sc.next()); B[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.printf(" %d", B[i][j][k]); } System.out.println(); } if (i != 3) 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, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 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 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 11, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 9, 171 ], [ 171, 172 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\n\nclass Main\n{\n public static void main (String[ ] args) throws Exception\n {\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] room = new int[4][3][10];\n \n int n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main\n{\n public static void main (String[ ] args) throws Exception\n {\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] room = new int[4][3][10];\n \n int n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main (String[ ] args) throws Exception\n {\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] room = new int[4][3][10];\n \n int n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\n\");\n }\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] room = new int[4][3][10];\n \n int n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\n\");\n }\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader (new InputStreamReader (System.in));", "br", "new BufferedReader (new InputStreamReader (System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int[][][] room = new int[4][3][10];", "room", "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 {\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }", "{\n String[] strArr = (br.readLine()).split(\" \");\n int b = Integer.parseInt(strArr[0]);\n int f = Integer.parseInt(strArr[1]);\n int r = Integer.parseInt(strArr[2]);\n int v = Integer.parseInt(strArr[3]);\n \n room[b-1][f-1][r-1] += v;\n }", "String[] strArr = (br.readLine()).split(\" \");", "strArr", "(br.readLine()).split(\" \")", "(br.readLine()).split", "(br.readLine())", "br.readLine", "br", "\" \"", "int b = Integer.parseInt(strArr[0]);", "b", "Integer.parseInt(strArr[0])", "Integer.parseInt", "Integer", "strArr[0]", "strArr", "0", "int f = Integer.parseInt(strArr[1]);", "f", "Integer.parseInt(strArr[1])", "Integer.parseInt", "Integer", "strArr[1]", "strArr", "1", "int r = Integer.parseInt(strArr[2]);", "r", "Integer.parseInt(strArr[2])", "Integer.parseInt", "Integer", "strArr[2]", "strArr", "2", "int v = Integer.parseInt(strArr[3]);", "v", "Integer.parseInt(strArr[3])", "Integer.parseInt", "Integer", "strArr[3]", "strArr", "3", "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 < 4; i++)\n {\n for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\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 {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\n\");\n }\n }", "{\n for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }\n if(i != 3)\n {\n sb.append(\"####################\\n\");\n }\n }", "for(int j = 0; j < 3; j++)\n {\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\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 {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }", "{\n for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }\n sb.append(\"\\n\");\n }", "for(int k = 0; k < 10; k++)\n {\n sb.append(\" \").append(room[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n sb.append(\" \").append(room[i][j][k]);\n }", "{\n sb.append(\" \").append(room[i][j][k]);\n }", "sb.append(\" \").append(room[i][j][k])", "sb.append(\" \").append", "sb.append(\" \")", "sb.append", "sb", "\" \"", "room[i][j][k]", "room[i][j]", "room[i]", "room", "i", "j", "k", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "if(i != 3)\n {\n sb.append(\"####################\\n\");\n }", "i != 3", "i", "3", "{\n sb.append(\"####################\\n\");\n }", "sb.append(\"####################\\n\")", "sb.append", "sb", "\"####################\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[ ] args", "args" ]
import java.io.*; import java.util.Arrays; class Main { public static void main (String[ ] args) throws Exception { BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); StringBuilder sb = new StringBuilder(); int[][][] room = new int[4][3][10]; int n = Integer.parseInt(br.readLine()); for(int i = 0; i < n; i++) { String[] strArr = (br.readLine()).split(" "); int b = Integer.parseInt(strArr[0]); int f = Integer.parseInt(strArr[1]); int r = Integer.parseInt(strArr[2]); int v = Integer.parseInt(strArr[3]); room[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++) { sb.append(" ").append(room[i][j][k]); } sb.append("\n"); } if(i != 3) { sb.append("####################\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 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, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 17, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 17, 0, 18, 13, 13, 17, 0, 18, 13, 13, 17, 0, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 0, 13, 2, 2, 4, 18, 13, 13, 17, 17, 14, 2, 4, 18, 13, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 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, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 14, 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 ], [ 74, 77 ], [ 53, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 53, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 53, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 14, 90 ], [ 90, 91 ], [ 90, 92 ], [ 14, 93 ], [ 93, 94 ], [ 93, 95 ], [ 14, 97 ], [ 97, 98 ], [ 97, 99 ], [ 14, 101 ], [ 101, 102 ], [ 101, 103 ], [ 14, 105 ], [ 105, 106 ], [ 105, 107 ], [ 14, 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 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 121, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 121, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 14, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 142, 152 ], [ 152, 153 ], [ 153, 154 ], [ 142, 155 ], [ 156, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 156, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 170, 173 ], [ 169, 174 ], [ 168, 175 ], [ 156, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 177, 182 ], [ 176, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 189, 190 ], [ 188, 191 ], [ 156, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 193, 198 ], [ 192, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 156, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 210, 213 ], [ 209, 214 ], [ 208, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 220, 221 ], [ 221, 222 ], [ 220, 223 ], [ 156, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 226, 229 ], [ 225, 230 ], [ 224, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 237, 238 ], [ 236, 239 ], [ 14, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 240, 245 ], [ 245, 246 ], [ 245, 247 ], [ 240, 248 ], [ 248, 249 ], [ 249, 250 ], [ 240, 251 ], [ 252, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 253, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 260, 262 ], [ 252, 263 ], [ 263, 264 ], [ 265, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 265, 269 ], [ 269, 270 ], [ 269, 271 ], [ 265, 272 ], [ 272, 273 ], [ 272, 274 ], [ 263, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 276, 281 ], [ 14, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 282, 287 ], [ 14, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 290, 292 ], [ 288, 293 ], [ 293, 294 ], [ 293, 295 ], [ 288, 296 ], [ 296, 297 ], [ 297, 298 ], [ 288, 299 ], [ 300, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 301, 306 ], [ 306, 307 ], [ 306, 308 ], [ 308, 309 ], [ 308, 310 ], [ 300, 311 ], [ 311, 312 ], [ 313, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 313, 317 ], [ 317, 318 ], [ 317, 319 ], [ 313, 320 ], [ 320, 321 ], [ 320, 322 ], [ 311, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 324, 329 ], [ 14, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 330, 335 ], [ 14, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 336, 341 ], [ 341, 342 ], [ 341, 343 ], [ 336, 344 ], [ 344, 345 ], [ 345, 346 ], [ 336, 347 ], [ 348, 348 ], [ 348, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 349, 354 ], [ 354, 355 ], [ 354, 356 ], [ 356, 357 ], [ 356, 358 ], [ 348, 359 ], [ 359, 360 ], [ 361, 361 ], [ 361, 362 ], [ 362, 363 ], [ 362, 364 ], [ 361, 365 ], [ 365, 366 ], [ 365, 367 ], [ 361, 368 ], [ 368, 369 ], [ 368, 370 ], [ 359, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 372, 377 ], [ 14, 378 ], [ 378, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 378, 383 ], [ 14, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 384, 389 ], [ 389, 390 ], [ 389, 391 ], [ 384, 392 ], [ 392, 393 ], [ 393, 394 ], [ 384, 395 ], [ 396, 396 ], [ 396, 397 ], [ 397, 398 ], [ 398, 399 ], [ 399, 400 ], [ 399, 401 ], [ 397, 402 ], [ 402, 403 ], [ 402, 404 ], [ 404, 405 ], [ 404, 406 ], [ 396, 407 ], [ 407, 408 ], [ 409, 409 ], [ 409, 410 ], [ 410, 411 ], [ 410, 412 ], [ 409, 413 ], [ 413, 414 ], [ 413, 415 ], [ 409, 416 ], [ 416, 417 ], [ 416, 418 ], [ 407, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 422, 423 ], [ 422, 424 ], [ 420, 425 ], [ 12, 426 ], [ 426, 427 ] ]
[ "import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}\n\t\tint heya = 0;\n\t\tint tou1 [] = new int [31];\n\t\tint tou2 [] = new int [31];\n\t\tint tou3 [] = new int [31];\n\t\tint tou4 [] = new int [31];\n\t\tfor(int i =0;i<31;i++){\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}\n\t\tfor(int i =0;i<lb.size();i++){\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}\n\t\tint heya = 0;\n\t\tint tou1 [] = new int [31];\n\t\tint tou2 [] = new int [31];\n\t\tint tou3 [] = new int [31];\n\t\tint tou4 [] = new int [31];\n\t\tfor(int i =0;i<31;i++){\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}\n\t\tfor(int i =0;i<lb.size();i++){\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws NumberFormatException, IOException{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}\n\t\tint heya = 0;\n\t\tint tou1 [] = new int [31];\n\t\tint tou2 [] = new int [31];\n\t\tint tou3 [] = new int [31];\n\t\tint tou4 [] = new int [31];\n\t\tfor(int i =0;i<31;i++){\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}\n\t\tfor(int i =0;i<lb.size();i++){\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}\n\t\tint heya = 0;\n\t\tint tou1 [] = new int [31];\n\t\tint tou2 [] = new int [31];\n\t\tint tou3 [] = new int [31];\n\t\tint tou4 [] = new int [31];\n\t\tfor(int i =0;i<31;i++){\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}\n\t\tfor(int i =0;i<lb.size();i++){\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"####################\");\n\t\tfor(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "ArrayList<String> suite = new ArrayList<String>();", "suite", "new ArrayList<String>()", "ArrayList<String> hikaku = new ArrayList<String>();", "hikaku", "new ArrayList<String>()", "ArrayList<Integer> lb = new ArrayList<Integer>();", "lb", "new ArrayList<Integer>()", "ArrayList<Integer> lf = new ArrayList<Integer>();", "lf", "new ArrayList<Integer>()", "ArrayList<Integer> lr = new ArrayList<Integer>();", "lr", "new ArrayList<Integer>()", "ArrayList<Integer> lv = new ArrayList<Integer>();", "lv", "new ArrayList<Integer>()", "int n =scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(int i=0;i<n;i++){\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}", "{\n\t\t\tint bb = scan.nextInt();\n\t\t\tint ff = scan.nextInt();\n\t\t\tint rr = scan.nextInt();\n\t\t\tint vv = scan.nextInt();\n\t\t\tlb.add(bb);\n\t\t\tlf.add(ff);\n\t\t\tlr.add(rr);\n\t\t\tlv.add(vv);\n\t\t}", "int bb = scan.nextInt();", "bb", "scan.nextInt()", "scan.nextInt", "scan", "int ff = scan.nextInt();", "ff", "scan.nextInt()", "scan.nextInt", "scan", "int rr = scan.nextInt();", "rr", "scan.nextInt()", "scan.nextInt", "scan", "int vv = scan.nextInt();", "vv", "scan.nextInt()", "scan.nextInt", "scan", "lb.add(bb)", "lb.add", "lb", "bb", "lf.add(ff)", "lf.add", "lf", "ff", "lr.add(rr)", "lr.add", "lr", "rr", "lv.add(vv)", "lv.add", "lv", "vv", "int heya = 0;", "heya", "0", "int tou1 [] = new int [31];", "tou1", "new int [31]", "31", "int tou2 [] = new int [31];", "tou2", "new int [31]", "31", "int tou3 [] = new int [31];", "tou3", "new int [31]", "31", "int tou4 [] = new int [31];", "tou4", "new int [31]", "31", "for(int i =0;i<31;i++){\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i<31", "i", "31", "i++", "i++", "i", "{\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}", "{\n\t\t\ttou1[i] = 0;\n\t\t\ttou2[i] = 0;\n\t\t\ttou3[i] = 0;\n\t\t\ttou4[i] = 0;\n\t\t}", "tou1[i] = 0", "tou1[i]", "tou1", "i", "0", "tou2[i] = 0", "tou2[i]", "tou2", "i", "0", "tou3[i] = 0", "tou3[i]", "tou3", "i", "0", "tou4[i] = 0", "tou4[i]", "tou4", "i", "0", "for(int i =0;i<lb.size();i++){\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i<lb.size()", "i", "lb.size()", "lb.size", "lb", "i++", "i++", "i", "{\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}", "{\n\t\t\t\theya = 0;\n\t\t\t\theya += lr.get(i);\n\t\t\t\theya += (lf.get(i) * 10 - 10);\n//\t\t\t\tSystem.out.println(heya);\n\t\t\t\tif(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}\n\t\t\t\tif(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}\n\t\t}", "heya = 0", "heya", "0", "heya += lr.get(i)", "heya", "lr.get(i)", "lr.get", "lr", "i", "heya += (lf.get(i) * 10 - 10)", "heya", "(lf.get(i) * 10 - 10)", "lf.get(i) * 10", "lf.get(i)", "lf.get", "lf", "i", "10", "10", "if(lb.get(i) == 1){\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}", "lb.get(i) == 1", "lb.get(i)", "lb.get", "lb", "i", "1", "{\n\t\t\t\t\ttou1[heya] += lv.get(i);\n\t\t\t\t}", "tou1[heya] += lv.get(i)", "tou1[heya]", "tou1", "heya", "lv.get(i)", "lv.get", "lv", "i", "if(lb.get(i) == 2){\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}", "lb.get(i) == 2", "lb.get(i)", "lb.get", "lb", "i", "2", "{\n\t\t\t\t\ttou2[heya] += lv.get(i);\n\t\t\t\t}", "tou2[heya] += lv.get(i)", "tou2[heya]", "tou2", "heya", "lv.get(i)", "lv.get", "lv", "i", "if(lb.get(i) == 3){\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}", "lb.get(i) == 3", "lb.get(i)", "lb.get", "lb", "i", "3", "{\n\t\t\t\t\ttou3[heya] += lv.get(i);\n\t\t\t\t}", "tou3[heya] += lv.get(i)", "tou3[heya]", "tou3", "heya", "lv.get(i)", "lv.get", "lv", "i", "if(lb.get(i) == 4){\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}", "lb.get(i) == 4", "lb.get(i)", "lb.get", "lb", "i", "4", "{\n\t\t\t\t\ttou4[heya] += lv.get(i);\n\t\t\t\t}", "tou4[heya] += lv.get(i)", "tou4[heya]", "tou4", "heya", "lv.get(i)", "lv.get", "lv", "i", "for(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<31", "i", "31", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(\" \"+tou1[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "System.out.print(\" \"+tou1[i])", "System.out.print", "System.out", "System", "System.out", "\" \"+tou1[i]", "\" \"", "tou1[i]", "tou1", "i", "if(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "i == 10 || i == 20 || i == 30", "i == 10 || i == 20 || i == 30", "i == 10", "i", "10", "i == 20", "i", "20", "i == 30", "i", "30", "{\n\t\t\t\tSystem.out.println(\"\");\n\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(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<31", "i", "31", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(\" \"+tou2[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "System.out.print(\" \"+tou2[i])", "System.out.print", "System.out", "System", "System.out", "\" \"+tou2[i]", "\" \"", "tou2[i]", "tou2", "i", "if(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "i == 10 || i == 20 || i == 30", "i == 10 || i == 20 || i == 30", "i == 10", "i", "10", "i == 20", "i", "20", "i == 30", "i", "30", "{\n\t\t\t\tSystem.out.println(\"\");\n\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(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<31", "i", "31", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(\" \"+tou3[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "System.out.print(\" \"+tou3[i])", "System.out.print", "System.out", "System", "System.out", "\" \"+tou3[i]", "\" \"", "tou3[i]", "tou3", "i", "if(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "i == 10 || i == 20 || i == 30", "i == 10 || i == 20 || i == 30", "i == 10", "i", "10", "i == 20", "i", "20", "i == 30", "i", "30", "{\n\t\t\t\tSystem.out.println(\"\");\n\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(int i = 1;i<31;i++){\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<31", "i", "31", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(\" \"+tou4[i]);\n\t\t\tif(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n//\t\t\telse{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n\t\t}", "System.out.print(\" \"+tou4[i])", "System.out.print", "System.out", "System", "System.out", "\" \"+tou4[i]", "\" \"", "tou4[i]", "tou4", "i", "if(i == 10 || i == 20 || i == 30){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "i == 10 || i == 20 || i == 30", "i == 10 || i == 20 || i == 30", "i == 10", "i", "10", "i == 20", "i", "20", "i == 30", "i", "30", "{\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.IOException; import java.util.ArrayList; import java.util.Scanner; class Main{ public static void main(String[] args)throws NumberFormatException, IOException{ Scanner scan = new Scanner(System.in); ArrayList<String> suite = new ArrayList<String>(); ArrayList<String> hikaku = new ArrayList<String>(); ArrayList<Integer> lb = new ArrayList<Integer>(); ArrayList<Integer> lf = new ArrayList<Integer>(); ArrayList<Integer> lr = new ArrayList<Integer>(); ArrayList<Integer> lv = new ArrayList<Integer>(); int n =scan.nextInt(); for(int i=0;i<n;i++){ int bb = scan.nextInt(); int ff = scan.nextInt(); int rr = scan.nextInt(); int vv = scan.nextInt(); lb.add(bb); lf.add(ff); lr.add(rr); lv.add(vv); } int heya = 0; int tou1 [] = new int [31]; int tou2 [] = new int [31]; int tou3 [] = new int [31]; int tou4 [] = new int [31]; for(int i =0;i<31;i++){ tou1[i] = 0; tou2[i] = 0; tou3[i] = 0; tou4[i] = 0; } for(int i =0;i<lb.size();i++){ heya = 0; heya += lr.get(i); heya += (lf.get(i) * 10 - 10); // System.out.println(heya); if(lb.get(i) == 1){ tou1[heya] += lv.get(i); } if(lb.get(i) == 2){ tou2[heya] += lv.get(i); } if(lb.get(i) == 3){ tou3[heya] += lv.get(i); } if(lb.get(i) == 4){ tou4[heya] += lv.get(i); } } for(int i = 1;i<31;i++){ System.out.print(" "+tou1[i]); if(i == 10 || i == 20 || i == 30){ System.out.println(""); } // else{ // System.out.print(" "); // } } System.out.println("####################"); for(int i = 1;i<31;i++){ System.out.print(" "+tou2[i]); if(i == 10 || i == 20 || i == 30){ System.out.println(""); } // else{ // System.out.print(" "); // } } System.out.println("####################"); for(int i = 1;i<31;i++){ System.out.print(" "+tou3[i]); if(i == 10 || i == 20 || i == 30){ System.out.println(""); } // else{ // System.out.print(" "); // } } System.out.println("####################"); for(int i = 1;i<31;i++){ System.out.print(" "+tou4[i]); if(i == 10 || i == 20 || i == 30){ System.out.println(""); } // else{ // System.out.print(" "); // } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 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, 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, 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, 17, 4, 18, 18, 13, 13, 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 ], [ 231, 8 ], [ 231, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 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 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 72, 78 ], [ 71, 79 ], [ 11, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 11, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 85, 96 ], [ 96, 97 ], [ 97, 98 ], [ 85, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 103, 108 ], [ 100, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 115, 117 ], [ 111, 118 ], [ 100, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 121, 128 ], [ 100, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 135, 137 ], [ 131, 138 ], [ 100, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 144, 145 ], [ 144, 146 ], [ 100, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 148, 154 ], [ 147, 155 ], [ 11, 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 ], [ 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 ], [ 194, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 206, 212 ], [ 181, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 168, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 222, 227 ], [ 9, 228 ], [ 228, 229 ], [ 0, 230 ], [ 230, 231 ], [ 230, 232 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n int b, f, r, v;\n \tint[][][] kousya = new int[4][3][10];\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}\n \tString kensu = br.readLine();\n \tfor (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}\n \t\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n int b, f, r, v;\n \tint[][][] kousya = new int[4][3][10];\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}\n \tString kensu = br.readLine();\n \tfor (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}\n \t\n\t}\n\n}", "Main", "public static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n int b, f, r, v;\n \tint[][][] kousya = new int[4][3][10];\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}\n \tString kensu = br.readLine();\n \tfor (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}\n \t\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n int b, f, r, v;\n \tint[][][] kousya = new int[4][3][10];\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}\n \tString kensu = br.readLine();\n \tfor (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}\n \t\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "int b", "b", "f", "f", "r", "r", "v;", "v", "int[][][] kousya = new int[4][3][10];", "kousya", "new int[4][3][10]", "4", "3", "10", "for (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < 4", "i", "4", "i++", "i++", "i", "{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}", "{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}", "for (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}", "{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}", "for (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}", "{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}", "kousya[i][j][k] = 0", "kousya[i][j][k]", "kousya[i][j]", "kousya[i]", "kousya", "i", "j", "k", "0", "String kensu = br.readLine();", "kensu", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < Integer.parseInt(kensu)", "i", "Integer.parseInt(kensu)", "Integer.parseInt", "Integer", "kensu", "i++", "i++", "i", "{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}", "{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}", "String[] nyukyo = br.readLine().split(\" \");", "nyukyo", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "b = Integer.parseInt(nyukyo[0]) - 1", "b", "Integer.parseInt(nyukyo[0]) - 1", "Integer.parseInt(nyukyo[0])", "Integer.parseInt", "Integer", "nyukyo[0]", "nyukyo", "0", "1", "f = Integer.parseInt(nyukyo[1]) - 1", "f", "Integer.parseInt(nyukyo[1]) - 1", "Integer.parseInt(nyukyo[1])", "Integer.parseInt", "Integer", "nyukyo[1]", "nyukyo", "1", "1", "r = Integer.parseInt(nyukyo[2]) - 1", "r", "Integer.parseInt(nyukyo[2]) - 1", "Integer.parseInt(nyukyo[2])", "Integer.parseInt", "Integer", "nyukyo[2]", "nyukyo", "2", "1", "v = Integer.parseInt(nyukyo[3])", "v", "Integer.parseInt(nyukyo[3])", "Integer.parseInt", "Integer", "nyukyo[3]", "nyukyo", "3", "kousya[b][f][r] += v", "kousya[b][f][r]", "kousya[b][f]", "kousya[b]", "kousya", "b", "f", "r", "v", "for (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < 4", "i", "4", "i++", "i++", "i", "{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}", "{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}", "for (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][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{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][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{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][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(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}", "{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(kousya[i][j][k])", "System.out.print", "System.out", "System", "System.out", "kousya[i][j][k]", "kousya[i][j]", "kousya[i]", "kousya", "i", "j", "k", "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\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n int b, f, r, v;\n \tint[][][] kousya = new int[4][3][10];\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}\n \tString kensu = br.readLine();\n \tfor (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}\n \t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n int b, f, r, v;\n \tint[][][] kousya = new int[4][3][10];\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tkousya[i][j][k] = 0;\n \t\t\t}\n \t\t}\n \t}\n \tString kensu = br.readLine();\n \tfor (int i = 0; i < Integer.parseInt(kensu); i++)\n \t{\n \tString[] nyukyo = br.readLine().split(\" \");\n \t\tb = Integer.parseInt(nyukyo[0]) - 1;\n \t\tf = Integer.parseInt(nyukyo[1]) - 1;\n \t\tr = Integer.parseInt(nyukyo[2]) - 1;\n \t\tv = Integer.parseInt(nyukyo[3]);\n \t\t\n \t\tkousya[b][f][r] += v;\n \t}\n \tfor (int i = 0; i < 4; i++)\n \t{\n \t\tfor (int j = 0; j < 3; j++)\n \t\t{\n \t\t\tfor (int k = 0; k < 10; k++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" \");\n \t\t\t\tSystem.out.print(kousya[i][j][k]);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tif (i != 3)\n \t\t\tSystem.out.println(\"####################\");\n \t}\n \t\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); int b, f, r, v; int[][][] kousya = 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++) { kousya[i][j][k] = 0; } } } String kensu = br.readLine(); for (int i = 0; i < Integer.parseInt(kensu); i++) { String[] nyukyo = br.readLine().split(" "); b = Integer.parseInt(nyukyo[0]) - 1; f = Integer.parseInt(nyukyo[1]) - 1; r = Integer.parseInt(nyukyo[2]) - 1; v = Integer.parseInt(nyukyo[3]); kousya[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(" "); System.out.print(kousya[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, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 17, 41, 13, 20, 0, 13, 4, 18, 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, 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, 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, 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, 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, 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, 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, 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, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 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 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 92 ], [ 78, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 78, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 100, 106 ], [ 8, 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 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 119, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 119, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 119, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 119, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 152, 153 ], [ 152, 154 ], [ 145, 155 ], [ 140, 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 ], [ 156, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 181, 183 ], [ 178, 184 ], [ 184, 185 ], [ 184, 186 ], [ 177, 187 ], [ 172, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 197, 199 ], [ 194, 200 ], [ 200, 201 ], [ 200, 202 ], [ 193, 203 ], [ 8, 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 ], [ 222, 223 ], [ 222, 224 ], [ 217, 225 ], [ 225, 226 ], [ 226, 227 ], [ 217, 228 ], [ 229, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 230, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 216, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 8, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 247, 252 ], [ 8, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 253, 258 ], [ 258, 259 ], [ 258, 260 ], [ 253, 261 ], [ 261, 262 ], [ 262, 263 ], [ 253, 264 ], [ 265, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 266, 271 ], [ 271, 272 ], [ 271, 273 ], [ 266, 274 ], [ 274, 275 ], [ 275, 276 ], [ 266, 277 ], [ 278, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 279, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 286, 290 ], [ 265, 291 ], [ 291, 292 ], [ 292, 293 ], [ 293, 294 ], [ 293, 295 ], [ 8, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 296, 301 ], [ 8, 302 ], [ 302, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 302, 307 ], [ 307, 308 ], [ 307, 309 ], [ 302, 310 ], [ 310, 311 ], [ 311, 312 ], [ 302, 313 ], [ 314, 314 ], [ 314, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 315, 320 ], [ 320, 321 ], [ 320, 322 ], [ 315, 323 ], [ 323, 324 ], [ 324, 325 ], [ 315, 326 ], [ 327, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 328, 333 ], [ 333, 334 ], [ 333, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 335, 339 ], [ 314, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 8, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 345, 350 ], [ 8, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 353, 355 ], [ 351, 356 ], [ 356, 357 ], [ 356, 358 ], [ 351, 359 ], [ 359, 360 ], [ 360, 361 ], [ 351, 362 ], [ 363, 363 ], [ 363, 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 ], [ 382, 383 ], [ 382, 384 ], [ 384, 385 ], [ 385, 386 ], [ 385, 387 ], [ 384, 388 ], [ 363, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 6, 394 ], [ 394, 395 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n int i,j,k,n,b,f,r,v;\n int [][] one = new int[3][10];\n int [][] two = new int[3][10];\n int [][] three = new int[3][10];\n int [][] four = new int[3][10];\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }\n }\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }\n\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n int i,j,k,n,b,f,r,v;\n int [][] one = new int[3][10];\n int [][] two = new int[3][10];\n int [][] three = new int[3][10];\n int [][] four = new int[3][10];\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }\n }\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }\n\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String args[]){\n int i,j,k,n,b,f,r,v;\n int [][] one = new int[3][10];\n int [][] two = new int[3][10];\n int [][] three = new int[3][10];\n int [][] four = new int[3][10];\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }\n }\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }\n\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }\n }", "main", "{\n int i,j,k,n,b,f,r,v;\n int [][] one = new int[3][10];\n int [][] two = new int[3][10];\n int [][] three = new int[3][10];\n int [][] four = new int[3][10];\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }\n for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }\n }\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }\n\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }\n System.out.println(\"####################\");\n\n for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }\n }", "int i", "i", "j", "j", "k", "k", "n", "n", "b", "b", "f", "f", "r", "r", "v;", "v", "int [][] one = new int[3][10];", "one", "new int[3][10]", "3", "10", "int [][] two = new int[3][10];", "two", "new int[3][10]", "3", "10", "int [][] three = new int[3][10];", "three", "new int[3][10]", "3", "10", "int [][] four = new int[3][10];", "four", "new int[3][10]", "3", "10", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }", "i = 0;", "i = 0", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }", "{\n for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }\n }", "for(j = 0;j < 10;j++){\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }", "j = 0;", "j = 0", "j", "0", "j < 10", "j", "10", "j++", "j++", "j", "{\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }", "{\n one[i][j] = 0;\n two[i][j] = 0;\n three[i][j] = 0;\n four[i][j] = 0;\n }", "one[i][j] = 0", "one[i][j]", "one[i]", "one", "i", "j", "0", "two[i][j] = 0", "two[i][j]", "two[i]", "two", "i", "j", "0", "three[i][j] = 0", "three[i][j]", "three[i]", "three", "i", "j", "0", "four[i][j] = 0", "four[i][j]", "four[i]", "four", "i", "j", "0", "for(i = 0;i < n;i++){\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }\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 if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }\n }", "{\n b = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n v = sc.nextInt();\n if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\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", "if(b == 1){\n one[f - 1][r - 1] += v;\n }\n else if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }", "b == 1", "b", "1", "{\n one[f - 1][r - 1] += v;\n }", "one[f - 1][r - 1] += v", "one[f - 1][r - 1]", "one[f - 1]", "one", "f - 1", "f", "1", "r - 1", "r", "1", "v", "if(b == 2){\n two[f - 1][r - 1] += v;\n }\n else if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }", "b == 2", "b", "2", "{\n two[f - 1][r - 1] += v;\n }", "two[f - 1][r - 1] += v", "two[f - 1][r - 1]", "two[f - 1]", "two", "f - 1", "f", "1", "r - 1", "r", "1", "v", "if(b == 3){\n three[f - 1][r - 1] += v;\n }\n else if(b == 4){\n four[f - 1][r - 1] += v;\n }", "b == 3", "b", "3", "{\n three[f - 1][r - 1] += v;\n }", "three[f - 1][r - 1] += v", "three[f - 1][r - 1]", "three[f - 1]", "three", "f - 1", "f", "1", "r - 1", "r", "1", "v", "if(b == 4){\n four[f - 1][r - 1] += v;\n }", "b == 4", "b", "4", "{\n four[f - 1][r - 1] += v;\n }", "four[f - 1][r - 1] += v", "four[f - 1][r - 1]", "four[f - 1]", "four", "f - 1", "f", "1", "r - 1", "r", "1", "v", "for(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }", "i = 0;", "i = 0", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }", "{\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }\n System.out.println();\n }", "for(j = 0;j < 10;j++){\n System.out.print(\" \" + one[i][j]);\n }", "j = 0;", "j = 0", "j", "0", "j < 10", "j", "10", "j++", "j++", "j", "{\n System.out.print(\" \" + one[i][j]);\n }", "{\n System.out.print(\" \" + one[i][j]);\n }", "System.out.print(\" \" + one[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + one[i][j]", "\" \"", "one[i][j]", "one[i]", "one", "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(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }", "i = 0;", "i = 0", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }", "{\n for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }\n System.out.println();\n }", "for(j = 0;j < 10;j++){\n\n System.out.print(\" \" + two[i][j]);\n }", "j = 0;", "j = 0", "j", "0", "j < 10", "j", "10", "j++", "j++", "j", "{\n\n System.out.print(\" \" + two[i][j]);\n }", "{\n\n System.out.print(\" \" + two[i][j]);\n }", "System.out.print(\" \" + two[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + two[i][j]", "\" \"", "two[i][j]", "two[i]", "two", "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(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }", "i = 0;", "i = 0", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }", "{\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }\n System.out.println();\n }", "for(j = 0;j < 10;j++){\n System.out.print(\" \" + three[i][j]);\n }", "j = 0;", "j = 0", "j", "0", "j < 10", "j", "10", "j++", "j++", "j", "{\n System.out.print(\" \" + three[i][j]);\n }", "{\n System.out.print(\" \" + three[i][j]);\n }", "System.out.print(\" \" + three[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + three[i][j]", "\" \"", "three[i][j]", "three[i]", "three", "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(i = 0;i < 3;i++){\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }", "i = 0;", "i = 0", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }", "{\n for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }\n System.out.println();\n }", "for(j = 0;j < 10;j++){\n System.out.print(\" \" + four[i][j]);\n }", "j = 0;", "j = 0", "j", "0", "j < 10", "j", "10", "j++", "j++", "j", "{\n System.out.print(\" \" + four[i][j]);\n }", "{\n System.out.print(\" \" + four[i][j]);\n }", "System.out.print(\" \" + four[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + four[i][j]", "\" \"", "four[i][j]", "four[i]", "four", "i", "j", "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[]){ int i,j,k,n,b,f,r,v; int [][] one = new int[3][10]; int [][] two = new int[3][10]; int [][] three = new int[3][10]; int [][] four = new int[3][10]; Scanner sc = new Scanner(System.in); n = sc.nextInt(); for(i = 0;i < 3;i++){ for(j = 0;j < 10;j++){ one[i][j] = 0; two[i][j] = 0; three[i][j] = 0; four[i][j] = 0; } } for(i = 0;i < n;i++){ b = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); v = sc.nextInt(); if(b == 1){ one[f - 1][r - 1] += v; } else if(b == 2){ two[f - 1][r - 1] += v; } else if(b == 3){ three[f - 1][r - 1] += v; } else if(b == 4){ four[f - 1][r - 1] += v; } } for(i = 0;i < 3;i++){ for(j = 0;j < 10;j++){ System.out.print(" " + one[i][j]); } System.out.println(); } System.out.println("####################"); for(i = 0;i < 3;i++){ for(j = 0;j < 10;j++){ System.out.print(" " + two[i][j]); } System.out.println(); } System.out.println("####################"); for(i = 0;i < 3;i++){ for(j = 0;j < 10;j++){ System.out.print(" " + three[i][j]); } System.out.println(); } System.out.println("####################"); for(i = 0;i < 3;i++){ for(j = 0;j < 10;j++){ System.out.print(" " + four[i][j]); } 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, 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, 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 ], [ 161, 5 ], [ 161, 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 ], [ 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 ], [ 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 ], [ 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 ], [ 133, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 6, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}\n\tfor (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}\n\tfor (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}\n }\n}", "Main", "public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}\n\tfor (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}\n\tfor (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int[][][] houses = new int[4][3][10];", "houses", "new int[4][3][10]", "4", "3", "10", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}", "int cnt = 0;", "int cnt = 0;", "cnt", "0", "cnt < n", "cnt", "n", "cnt++", "cnt++", "cnt", "{\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}", "{\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}", "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", "houses[b][f][r] += v", "houses[b][f][r]", "houses[b][f]", "houses[b]", "houses", "b", "f", "r", "v", "for (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}", "int b = 0;", "int b = 0;", "b", "0", "b < 4", "b", "4", "b++", "b++", "b", "{\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}", "{\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}", "for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }", "int f = 0;", "int f = 0;", "f", "0", "f < 3", "f", "3", "f++", "f++", "f", "{\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }", "{\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }", "for (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}", "int r = 0;", "int r = 0;", "r", "0", "r < 10", "r", "10", "r++", "r++", "r", "{\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}", "{\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}", "System.out.print(\" \" + houses[b][f][r])", "System.out.print", "System.out", "System", "System.out", "\" \" + houses[b][f][r]", "\" \"", "houses[b][f][r]", "houses[b][f]", "houses[b]", "houses", "b", "f", "r", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }", "b != 3", "b", "3", "{\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }", "for (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 20", "i", "20", "i++", "i++", "i", "{\n\t\t System.out.print(\"#\");\n\t\t}", "{\n\t\t System.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", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}\n\tfor (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}\n }\n}", "public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t int b = scan.nextInt() - 1;\n\t int f = scan.nextInt() - 1;\n\t int r = scan.nextInt() - 1;\n\t int v = scan.nextInt();\n\t houses[b][f][r] += v;\n\t}\n\tfor (int b = 0; b < 4; b++) {\n\t for (int f = 0; f < 3; f++) {\n\t\tfor (int r = 0; r < 10; r++) {\n\t\t System.out.print(\" \" + houses[b][f][r]);\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t if (b != 3) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"#\");\n\t\t}\n\t\tSystem.out.println();\n\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[][][] houses = new int[4][3][10]; int n = scan.nextInt(); for (int cnt = 0; cnt < n; cnt++) { int b = scan.nextInt() - 1; int f = scan.nextInt() - 1; int r = scan.nextInt() - 1; int v = scan.nextInt(); houses[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(" " + houses[b][f][r]); } System.out.println(); } if (b != 3) { for (int i = 0; i < 20; i++) { System.out.print("#"); } System.out.println(); } } } }
[ 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, 42, 2, 40, 13, 17, 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, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 34, 38 ], [ 31, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 41, 45 ], [ 31, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 48, 52 ], [ 31, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 31, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 59, 65 ], [ 58, 66 ], [ 11, 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 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 79, 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 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 102, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 9, 135 ], [ 135, 136 ] ]
[ "import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int [][][] cnt = new int[4][3][10];\n while(n-- > 0) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n cnt[b][f][r] += v;\n }\n for(int b = 0; b < 4; b++) {\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int [][][] cnt = new int[4][3][10];\n while(n-- > 0) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n cnt[b][f][r] += v;\n }\n for(int b = 0; b < 4; b++) {\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }\n }\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int [][][] cnt = new int[4][3][10];\n while(n-- > 0) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n cnt[b][f][r] += v;\n }\n for(int b = 0; b < 4; b++) {\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int [][][] cnt = new int[4][3][10];\n while(n-- > 0) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n cnt[b][f][r] += v;\n }\n for(int b = 0; b < 4; b++) {\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\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 [][][] cnt = new int[4][3][10];", "cnt", "new int[4][3][10]", "4", "3", "10", "while(n-- > 0) {\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n cnt[b][f][r] += v;\n }", "n-- > 0", "n--", "n", "0", "{\n int b = sc.nextInt() - 1;\n int f = sc.nextInt() - 1;\n int r = sc.nextInt() - 1;\n int v = sc.nextInt();\n cnt[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", "cnt[b][f][r] += v", "cnt[b][f][r]", "cnt[b][f]", "cnt[b]", "cnt", "b", "f", "r", "v", "for(int b = 0; b < 4; b++) {\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }\n }", "int b = 0;", "int b = 0;", "b", "0", "b < 4", "b", "4", "b++", "b++", "b", "{\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }\n }", "{\n if(b>0)System.out.println(\"####################\");\n for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }\n }", "if(b>0)System.out.println(\"####################\");", "b>0", "b", "0", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "for(int f = 0; f < 3; f++) {\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[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(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }", "{\n for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }\n System.out.println();\n }", "for(int r = 0; r < 10; r++) {\n System.out.print(\" \" + cnt[b][f][r]);\n }", "int r = 0;", "int r = 0;", "r", "0", "r < 10", "r", "10", "r++", "r++", "r", "{\n System.out.print(\" \" + cnt[b][f][r]);\n }", "{\n System.out.print(\" \" + cnt[b][f][r]);\n }", "System.out.print(\" \" + cnt[b][f][r])", "System.out.print", "System.out", "System", "System.out", "\" \" + cnt[b][f][r]", "\" \"", "cnt[b][f][r]", "cnt[b][f]", "cnt[b]", "cnt", "b", "f", "r", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[]args", "args" ]
import java.util.*; import java.text.*; class Main { public static void main(String[]args)throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int [][][] cnt = new int[4][3][10]; while(n-- > 0) { int b = sc.nextInt() - 1; int f = sc.nextInt() - 1; int r = sc.nextInt() - 1; int v = sc.nextInt(); cnt[b][f][r] += v; } for(int b = 0; b < 4; b++) { if(b>0)System.out.println("####################"); for(int f = 0; f < 3; f++) { for(int r = 0; r < 10; r++) { System.out.print(" " + cnt[b][f][r]); } System.out.println(); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 41, 13, 20, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 41, 13, 2, 2, 2, 2, 18, 18, 13, 13, 17, 17, 17, 18, 18, 13, 13, 17, 17, 41, 13, 2, 18, 18, 13, 13, 17, 17, 0, 18, 18, 13, 13, 13, 18, 18, 13, 13, 17, 14, 2, 18, 18, 13, 13, 13, 17, 30, 0, 18, 18, 13, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 180, 5 ], [ 180, 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, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 39, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 66, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 64, 80 ], [ 39, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 39, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 39, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 102, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 8, 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 ], [ 131, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 130, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 129, 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 ], [ 168, 170 ], [ 167, 171 ], [ 129, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 6, 177 ], [ 177, 178 ], [ 0, 179 ], [ 179, 180 ], [ 179, 181 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[][] array = new int[num][4];\n int[][] tenant = new int[12][10];\n \n for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }\n \n for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\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 num = sc.nextInt();\n int[][] array = new int[num][4];\n int[][] tenant = new int[12][10];\n \n for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }\n \n for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[][] array = new int[num][4];\n int[][] tenant = new int[12][10];\n \n for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }\n \n for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[][] array = new int[num][4];\n int[][] tenant = new int[12][10];\n \n for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }\n \n for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "int[][] array = new int[num][4];", "array", "new int[num][4]", "num", "4", "int[][] tenant = new int[12][10];", "tenant", "new int[12][10]", "12", "10", "for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }", "{\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }", "for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n array[i][j] = sc.nextInt();\n }", "{\n array[i][j] = sc.nextInt();\n }", "array[i][j] = sc.nextInt()", "array[i][j]", "array[i]", "array", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;", "floor", "(array[i][0] - 1) * 3 + array[i][1] - 1", "(array[i][0] - 1) * 3 + array[i][1]", "(array[i][0] - 1) * 3", "(array[i][0] - 1)", "array[i][0]", "array[i]", "array", "i", "0", "1", "3", "array[i][1]", "array[i]", "array", "i", "1", "1", "int room = array[i][2] - 1;", "room", "array[i][2] - 1", "array[i][2]", "array[i]", "array", "i", "2", "1", "tenant[floor][room] += array[i][3]", "tenant[floor][room]", "tenant[floor]", "tenant", "floor", "room", "array[i][3]", "array[i]", "array", "i", "3", "if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }", "tenant[floor][room] < 0", "tenant[floor][room]", "tenant[floor]", "tenant", "floor", "room", "0", "{\n tenant[floor][room] = 0;\n }", "tenant[floor][room] = 0", "tenant[floor][room]", "tenant[floor]", "tenant", "floor", "room", "0", "for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 12", "i", "12", "i++", "i++", "i", "{\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }", "{\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }", "if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }", "i != 0 && i % 3 == 0", "i != 0", "i", "0", "i % 3 == 0", "i % 3", "i", "3", "0", "{\n System.out.println(\"####################\");\n }", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 10", "j", "10", "j++", "j++", "j", "{\n System.out.print(\" \" + tenant[i][j]);\n }", "{\n System.out.print(\" \" + tenant[i][j]);\n }", "System.out.print(\" \" + tenant[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + tenant[i][j]", "\" \"", "tenant[i][j]", "tenant[i]", "tenant", "i", "j", "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 int num = sc.nextInt();\n int[][] array = new int[num][4];\n int[][] tenant = new int[12][10];\n \n for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }\n \n for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\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 int num = sc.nextInt();\n int[][] array = new int[num][4];\n int[][] tenant = new int[12][10];\n \n for(int i = 0; i < num; i++){\n for(int j = 0; j < 4; j++){\n array[i][j] = sc.nextInt();\n }\n int floor = (array[i][0] - 1) * 3 + array[i][1] - 1;\n int room = array[i][2] - 1;\n tenant[floor][room] += array[i][3];\n if(tenant[floor][room] < 0){\n tenant[floor][room] = 0;\n }\n \n }\n \n for(int i = 0; i < 12; i++){\n if(i != 0 && i % 3 == 0){\n System.out.println(\"####################\");\n }\n for(int j = 0; j < 10; j++){\n System.out.print(\" \" + tenant[i][j]);\n }\n System.out.println();\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[][] array = new int[num][4]; int[][] tenant = new int[12][10]; for(int i = 0; i < num; i++){ for(int j = 0; j < 4; j++){ array[i][j] = sc.nextInt(); } int floor = (array[i][0] - 1) * 3 + array[i][1] - 1; int room = array[i][2] - 1; tenant[floor][room] += array[i][3]; if(tenant[floor][room] < 0){ tenant[floor][room] = 0; } } for(int i = 0; i < 12; i++){ if(i != 0 && i % 3 == 0){ System.out.println("####################"); } for(int j = 0; j < 10; j++){ System.out.print(" " + tenant[i][j]); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 17, 17, 17, 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 ]
[ [ 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 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 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 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 41, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 41, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 41, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 41, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 41, 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 ], [ 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 ], [ 153, 158 ], [ 112, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 6, 170 ], [ 170, 171 ] ]
[ "import java.io.*;\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 \tString str = br.readLine();\n\t\tint line = Integer.parseInt(str);\n\n\t\tfor(int i = 0; i < line; i++) {\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}\n \n \t for(int l = 0; l < 4; l++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \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 \tString str = br.readLine();\n\t\tint line = Integer.parseInt(str);\n\n\t\tfor(int i = 0; i < line; i++) {\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}\n \n \t for(int l = 0; l < 4; l++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \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 \tString str = br.readLine();\n\t\tint line = Integer.parseInt(str);\n\n\t\tfor(int i = 0; i < line; i++) {\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}\n \n \t for(int l = 0; l < 4; l++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \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 \tString str = br.readLine();\n\t\tint line = Integer.parseInt(str);\n\n\t\tfor(int i = 0; i < line; i++) {\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}\n \n \t for(int l = 0; l < 4; l++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \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))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "int line = Integer.parseInt(str);", "line", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "for(int i = 0; i < line; i++) {\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < line", "i", "line", "i++", "i++", "i", "{\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}", "{\n \n\t\t\tString str2 = br.readLine();\n \t String[] str3 = str2.split(\" \");\n \n \tint Building = Integer.parseInt(str3[0]);\n \tint Floor = Integer.parseInt(str3[1]);\n \tint RoomFirst = Integer.parseInt(str3[2]);\n \tint People = Integer.parseInt(str3[3]);\n \n \tRoom[Building -1][Floor -1][RoomFirst -1] += People;\n \t}", "String str2 = br.readLine();", "str2", "br.readLine()", "br.readLine", "br", "String[] str3 = str2.split(\" \");", "str3", "str2.split(\" \")", "str2.split", "str2", "\" \"", "int Building = Integer.parseInt(str3[0]);", "Building", "Integer.parseInt(str3[0])", "Integer.parseInt", "Integer", "str3[0]", "str3", "0", "int Floor = Integer.parseInt(str3[1]);", "Floor", "Integer.parseInt(str3[1])", "Integer.parseInt", "Integer", "str3[1]", "str3", "1", "int RoomFirst = Integer.parseInt(str3[2]);", "RoomFirst", "Integer.parseInt(str3[2])", "Integer.parseInt", "Integer", "str3[2]", "str3", "2", "int People = Integer.parseInt(str3[3]);", "People", "Integer.parseInt(str3[3])", "Integer.parseInt", "Integer", "str3[3]", "str3", "3", "Room[Building -1][Floor -1][RoomFirst -1] += People", "Room[Building -1][Floor -1][RoomFirst -1]", "Room[Building -1][Floor -1]", "Room[Building -1]", "Room", "Building -1", "Building", "1", "Floor -1", "Floor", "1", "RoomFirst -1", "RoomFirst", "1", "People", "for(int l = 0; l < 4; l++) {\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \t}\n\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l < 4", "l", "4", "l++", "l++", "l", "{\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \t}\n\t\t}", "{\n \tfor(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}\n \tif(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \t}\n\t\t}", "for(int j = 0; j < 3; j++) {\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][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\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}", "{\n \t\tfor(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}\n \t\tSystem.out.println(\"\"); \n \t}", "for(int k = 0; k < 10; k++) {\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}", "{\n \t\tSystem.out.print(\" \" + Room[l][j][k]);\n \t\t}", "System.out.print(\" \" + Room[l][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \" + Room[l][j][k]", "\" \"", "Room[l][j][k]", "Room[l][j]", "Room[l]", "Room", "l", "j", "k", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if(l != 3) {\n \t\tSystem.out.println(\"####################\");\n \t}", "l != 3", "l", "3", "{\n \t\tSystem.out.println(\"####################\");\n \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)); String str = br.readLine(); int line = Integer.parseInt(str); for(int i = 0; i < line; i++) { String str2 = br.readLine(); String[] str3 = str2.split(" "); int Building = Integer.parseInt(str3[0]); int Floor = Integer.parseInt(str3[1]); int RoomFirst = Integer.parseInt(str3[2]); int People = Integer.parseInt(str3[3]); Room[Building -1][Floor -1][RoomFirst -1] += People; } for(int l = 0; l < 4; l++) { for(int j = 0; j < 3; j++) { for(int k = 0; k < 10; k++) { System.out.print(" " + Room[l][j][k]); } System.out.println(""); } if(l != 3) { System.out.println("####################"); } } } }
[ 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, 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 ], [ 145, 8 ], [ 145, 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 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 9, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.util.*;\nimport java.lang.*;\n\n/**\n * OfficialHouse\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[][][] list = new int[4][3][10];\n\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\n list[b - 1][f - 1][r - 1] += v;\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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "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[][][] list = new int[4][3][10];\n\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\n list[b - 1][f - 1][r - 1] += v;\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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] list = new int[4][3][10];\n\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\n list[b - 1][f - 1][r - 1] += v;\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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] list = new int[4][3][10];\n\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\n list[b - 1][f - 1][r - 1] += v;\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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][][] list = new int[4][3][10];", "list", "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\n list[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\n list[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\n list[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", "list[b - 1][f - 1][r - 1] += v", "list[b - 1][f - 1][r - 1]", "list[b - 1][f - 1]", "list[b - 1]", "list", "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 k = 0; k < 10; k++) {\n System.out.print(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n 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 for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + list[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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\n }", "for (int j = 0; j < 3; j++) {\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + list[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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }", "{\n for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + list[i][j][k]);\n }\n System.out.println();\n }", "for (int k = 0; k < 10; k++) {\n System.out.print(\" \" + list[i][j][k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < 10", "k", "10", "k++", "k++", "k", "{\n System.out.print(\" \" + list[i][j][k]);\n }", "{\n System.out.print(\" \" + list[i][j][k]);\n }", "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)\n 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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][][] list = new int[4][3][10];\n\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\n list[b - 1][f - 1][r - 1] += v;\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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\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[][][] list = new int[4][3][10];\n\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\n list[b - 1][f - 1][r - 1] += v;\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(\" \" + list[i][j][k]);\n }\n System.out.println();\n }\n if (i != 3)\n System.out.println(\"####################\");\n }\n }\n}", "Main" ]
import java.util.*; import java.lang.*; /** * OfficialHouse */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][][] list = 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(); list[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(" " + list[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, 4, 18, 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, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 18, 13, 18, 13, 13, 17, 0, 18, 18, 18, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 2, 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 17, 18, 18, 18, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 191, 11 ], [ 191, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 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 ], [ 44, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 44, 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 ], [ 93, 95 ], [ 82, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 14, 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 ], [ 127, 135 ], [ 135, 136 ], [ 136, 137 ], [ 127, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 143, 149 ], [ 140, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 158, 164 ], [ 140, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 126, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 113, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 12, 188 ], [ 188, 189 ], [ 0, 190 ], [ 190, 191 ], [ 190, 192 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }", "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[][][] list = new int[4][3][10];", "list", "new int[4][3][10]", "4", "3", "10", "for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }", "{\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }", "String[] lines = br.readLine().split(\" \");", "lines", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] nList = new int[4];", "nList", "new int[4]", "4", "for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }", "{\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }", "nList[j] = Integer.parseInt(lines[j]) - 1", "nList[j]", "nList", "j", "Integer.parseInt(lines[j]) - 1", "Integer.parseInt(lines[j])", "Integer.parseInt", "Integer", "lines[j]", "lines", "j", "1", "list[nList[0]][nList[1]][nList[2]] += nList[3] + 1", "list[nList[0]][nList[1]][nList[2]]", "list[nList[0]][nList[1]]", "list[nList[0]]", "list", "nList[0]", "nList", "0", "nList[1]", "nList", "1", "nList[2]", "nList", "2", "nList[3] + 1", "nList[3]", "nList", "3", "1", "for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 4", "j", "4", "j++", "j++", "j", "{\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }", "{\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }", "for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\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 if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }", "{\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }", "for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }", "int l = 0;", "int l = 0;", "l", "0", "l < 10", "l", "10", "l++", "l++", "l", "{\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }", "{\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }", "if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }", "0 != list[j][k][l]", "0", "list[j][k][l]", "list[j][k]", "list[j]", "list", "j", "k", "l", "{\n System.out.print(\" \" + list[j][k][l]);\n }", "System.out.print(\" \" + list[j][k][l])", "System.out.print", "System.out", "System", "System.out", "\" \" + list[j][k][l]", "\" \"", "list[j][k][l]", "list[j][k]", "list[j]", "list", "j", "k", "l", "{\n System.out.print(\" 0\");\n }", "System.out.print(\" 0\")", "System.out.print", "System.out", "System", "System.out", "\" 0\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (j != 3) {\n System.out.println(\"####################\");\n }", "j != 3", "j", "3", "{\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\n System.out.println(\"####################\");\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[][][] list = new int[4][3][10];\n for (int i = 0; i < n; i++) {\n String[] lines = br.readLine().split(\" \");\n int[] nList = new int[4];\n for (int j = 0; j < 4; j++) {\n nList[j] = Integer.parseInt(lines[j]) - 1;\n }\n list[nList[0]][nList[1]][nList[2]] += nList[3] + 1;\n }\n for (int j = 0; j < 4; j++) {\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 10; l++) {\n if (0 != list[j][k][l]) {\n System.out.print(\" \" + list[j][k][l]);\n } else {\n System.out.print(\" 0\");\n }\n }\n System.out.println();\n }\n if (j != 3) {\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)); int n = Integer.parseInt(br.readLine()); int[][][] list = new int[4][3][10]; for (int i = 0; i < n; i++) { String[] lines = br.readLine().split(" "); int[] nList = new int[4]; for (int j = 0; j < 4; j++) { nList[j] = Integer.parseInt(lines[j]) - 1; } list[nList[0]][nList[1]][nList[2]] += nList[3] + 1; } for (int j = 0; j < 4; j++) { for (int k = 0; k < 3; k++) { for (int l = 0; l < 10; l++) { if (0 != list[j][k][l]) { System.out.print(" " + list[j][k][l]); } else { System.out.print(" 0"); } } System.out.println(); } if (j != 3) { System.out.println("####################"); } } } }
[ 7, 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, 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, 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, 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, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 8, 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 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 57, 61 ], [ 54, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 64, 68 ], [ 54, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 71, 75 ], [ 54, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 54, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 81, 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 ], [ 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 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 136, 142 ], [ 115, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 102, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 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\tpublic static void main(String[] args) {\n\t\tint N_FLOOR = 10;\n\t\tint N_H = 3;\n\t\tint N_TO = 4;\n\t\tint table[][][] = new int[N_TO][N_H][N_FLOOR];\n\n\t\tint n, b, f, r, v;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}\n\t\tfor(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\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 N_FLOOR = 10;\n\t\tint N_H = 3;\n\t\tint N_TO = 4;\n\t\tint table[][][] = new int[N_TO][N_H][N_FLOOR];\n\n\t\tint n, b, f, r, v;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}\n\t\tfor(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\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 N_FLOOR = 10;\n\t\tint N_H = 3;\n\t\tint N_TO = 4;\n\t\tint table[][][] = new int[N_TO][N_H][N_FLOOR];\n\n\t\tint n, b, f, r, v;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}\n\t\tfor(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tint N_FLOOR = 10;\n\t\tint N_H = 3;\n\t\tint N_TO = 4;\n\t\tint table[][][] = new int[N_TO][N_H][N_FLOOR];\n\n\t\tint n, b, f, r, v;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}\n\t\tfor(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}", "int N_FLOOR = 10;", "N_FLOOR", "10", "int N_H = 3;", "N_H", "3", "int N_TO = 4;", "N_TO", "4", "int table[][][] = new int[N_TO][N_H][N_FLOOR];", "table", "new int[N_TO][N_H][N_FLOOR]", "N_TO", "N_H", "N_FLOOR", "int n", "n", "b", "b", "f", "f", "r", "r", "v;", "v", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "n = in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "for(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[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 = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}", "{\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}", "b = in.nextInt() - 1", "b", "in.nextInt() - 1", "in.nextInt()", "in.nextInt", "in", "1", "f = in.nextInt() - 1", "f", "in.nextInt() - 1", "in.nextInt()", "in.nextInt", "in", "1", "r = in.nextInt() - 1", "r", "in.nextInt() - 1", "in.nextInt()", "in.nextInt", "in", "1", "v = in.nextInt()", "v", "in.nextInt()", "in.nextInt", "in", "table[b][f][r] += v", "table[b][f][r]", "table[b][f]", "table[b]", "table", "b", "f", "r", "v", "for(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i < N_TO", "i", "N_TO", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[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<N_H", "j", "N_H", "j++", "j++", "j", "{\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[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<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<N_FLOOR", "k", "N_FLOOR", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}", "System.out.print(\" \"+table[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \"+table[i][j][k]", "\" \"", "table[i][j][k]", "table[i][j]", "table[i]", "table", "i", "j", "k", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if(i != N_TO-1) {\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "i != N_TO-1", "i", "N_TO-1", "N_TO", "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", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint N_FLOOR = 10;\n\t\tint N_H = 3;\n\t\tint N_TO = 4;\n\t\tint table[][][] = new int[N_TO][N_H][N_FLOOR];\n\n\t\tint n, b, f, r, v;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}\n\t\tfor(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\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 N_FLOOR = 10;\n\t\tint N_H = 3;\n\t\tint N_TO = 4;\n\t\tint table[][][] = new int[N_TO][N_H][N_FLOOR];\n\n\t\tint n, b, f, r, v;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tb = in.nextInt() - 1;\n\t\t\tf = in.nextInt() - 1;\n\t\t\tr = in.nextInt() - 1;\n\t\t\tv = in.nextInt();\n\n\t\t\ttable[b][f][r] += v;\n\t\t}\n\t\tfor(int i=0; i < N_TO;i++) {\n\t\t\tfor(int j=0;j<N_H;j++) {\n\t\t\t\tfor(int k=0;k<N_FLOOR;k++) {\n\t\t\t\t\tSystem.out.print(\" \"+table[i][j][k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tif(i != N_TO-1) {\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 N_FLOOR = 10; int N_H = 3; int N_TO = 4; int table[][][] = new int[N_TO][N_H][N_FLOOR]; int n, b, f, r, v; Scanner in = new Scanner(System.in); n = in.nextInt(); for(int i=0;i<n;i++) { b = in.nextInt() - 1; f = in.nextInt() - 1; r = in.nextInt() - 1; v = in.nextInt(); table[b][f][r] += v; } for(int i=0; i < N_TO;i++) { for(int j=0;j<N_H;j++) { for(int k=0;k<N_FLOOR;k++) { System.out.print(" "+table[i][j][k]); } System.out.println(""); } if(i != N_TO-1) { System.out.println("####################"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 18, 13, 13, 13, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 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, 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, 4, 18, 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, 4, 18, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 29, 18, 36, 13, 12, 13, 30, 0, 18, 36, 13, 13, 14, 2, 18, 36, 13, 17, 0, 18, 36, 13, 17, 14, 2, 18, 36, 13, 17, 0, 18, 36, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 306, 5 ], [ 306, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 66, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 8, 87 ], [ 87, 88 ], [ 8, 89 ], [ 89, 90 ], [ 8, 91 ], [ 91, 92 ], [ 8, 93 ], [ 93, 94 ], [ 8, 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 ], [ 118, 121 ], [ 121, 122 ], [ 121, 123 ], [ 107, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 129, 131 ], [ 107, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 137, 139 ], [ 107, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 107, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 154, 156 ], [ 151, 157 ], [ 157, 158 ], [ 157, 159 ], [ 150, 160 ], [ 160, 161 ], [ 160, 162 ], [ 148, 163 ], [ 8, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 164, 174 ], [ 174, 175 ], [ 175, 176 ], [ 164, 177 ], [ 178, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 179, 191 ], [ 191, 192 ], [ 192, 193 ], [ 179, 194 ], [ 195, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 203, 209 ], [ 196, 210 ], [ 210, 211 ], [ 211, 212 ], [ 196, 213 ], [ 214, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 215, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 224, 230 ], [ 195, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 178, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 236, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 244, 249 ], [ 6, 250 ], [ 250, 251 ], [ 0, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 252, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 256, 264 ], [ 264, 265 ], [ 252, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 252, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 275, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 281, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 287, 291 ], [ 275, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 293, 297 ], [ 292, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 298, 302 ], [ 273, 303 ], [ 303, 304 ], [ 0, 305 ], [ 305, 306 ], [ 305, 307 ] ]
[ "import java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tfinal int B_TOTAL = 4;\n\t\tfinal int F_TOTAL = 3;\n\t\tfinal int R_TOTAL = 10;\n\t\tRoom[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];\n\t\t\n\t\tfor (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[4];\n\t\tint b, f, r, v;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n}\n\nclass Room {\n\t\n\tprivate int residents;\n\t\n\tRoom(int residents) {\t\n\t\tthis.residents\t= residents;\n\t}\n\t\n\tpublic int getResidents() {\n\t\treturn this.residents;\n\t}\n\t\n\tpublic void setResidents(int n) {\n\t\tthis.residents += n;\n\t\tif (this.residents > 9) this.residents = 9;\n\t\tif (this.residents < 0) this.residents = 0;\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tfinal int B_TOTAL = 4;\n\t\tfinal int F_TOTAL = 3;\n\t\tfinal int R_TOTAL = 10;\n\t\tRoom[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];\n\t\t\n\t\tfor (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[4];\n\t\tint b, f, r, v;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tfinal int B_TOTAL = 4;\n\t\tfinal int F_TOTAL = 3;\n\t\tfinal int R_TOTAL = 10;\n\t\tRoom[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];\n\t\t\n\t\tfor (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[4];\n\t\tint b, f, r, v;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) 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\tfinal int B_TOTAL = 4;\n\t\tfinal int F_TOTAL = 3;\n\t\tfinal int R_TOTAL = 10;\n\t\tRoom[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];\n\t\t\n\t\tfor (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[4];\n\t\tint b, f, r, v;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) 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))", "final int B_TOTAL = 4;", "B_TOTAL", "4", "final int F_TOTAL = 3;", "F_TOTAL", "3", "final int R_TOTAL = 10;", "R_TOTAL", "10", "Room[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];", "univ_rooms", "new Room[B_TOTAL][F_TOTAL][R_TOTAL]", "B_TOTAL", "F_TOTAL", "R_TOTAL", "for (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < B_TOTAL", "i", "B_TOTAL", "i++", "i++", "i", "{\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < F_TOTAL", "j", "F_TOTAL", "j++", "j++", "j", "{\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}", "for (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < R_TOTAL", "k", "R_TOTAL", "k++", "k++", "k", "{\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}", "{\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}", "univ_rooms[i][j][k] = new Room(0)", "univ_rooms[i][j][k]", "univ_rooms[i][j]", "univ_rooms[i]", "univ_rooms", "i", "j", "k", "new Room(0)", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] str = new String[4];", "str", "new String[4]", "4", "int b", "b", "f", "f", "r", "r", "v;", "v", "for (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}", "{\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}", "str = br.readLine().split(\"\\\\s+\")", "str", "br.readLine().split(\"\\\\s+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\\\\s+\"", "b = Integer.parseInt(str[0])", "b", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "f = Integer.parseInt(str[1])", "f", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "r = Integer.parseInt(str[2])", "r", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "v = Integer.parseInt(str[3])", "v", "Integer.parseInt(str[3])", "Integer.parseInt", "Integer", "str[3]", "str", "3", "univ_rooms[b - 1][f - 1][r - 1].setResidents(v)", "univ_rooms[b - 1][f - 1][r - 1].setResidents", "univ_rooms[b - 1][f - 1][r - 1]", "univ_rooms[b - 1][f - 1]", "univ_rooms[b - 1]", "univ_rooms", "b - 1", "b", "1", "f - 1", "f", "1", "r - 1", "r", "1", "v", "for (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < univ_rooms.length", "i", "univ_rooms.length", "univ_rooms", "univ_rooms.length", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}", "{\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}", "for (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\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 < univ_rooms[i].length", "j", "univ_rooms[i].length", "univ_rooms[i]", "univ_rooms", "i", "univ_rooms[i].length", "j++", "j++", "j", "{\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\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 < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < univ_rooms[i][j].length", "k", "univ_rooms[i][j].length", "univ_rooms[i][j]", "univ_rooms[i]", "univ_rooms", "i", "j", "univ_rooms[i][j].length", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}", "System.out.print(\" \" + univ_rooms[i][j][k].getResidents())", "System.out.print", "System.out", "System", "System.out", "\" \" + univ_rooms[i][j][k].getResidents()", "\" \"", "univ_rooms[i][j][k].getResidents()", "univ_rooms[i][j][k].getResidents", "univ_rooms[i][j][k]", "univ_rooms[i][j]", "univ_rooms[i]", "univ_rooms", "i", "j", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (i < univ_rooms.length - 1) System.out.println(\"####################\");", "i < univ_rooms.length - 1", "i", "univ_rooms.length - 1", "univ_rooms.length", "univ_rooms", "univ_rooms.length", "1", "System.out.println(\"####################\")", "System.out.println", "System.out", "System", "System.out", "\"####################\"", "String[] args", "args", "class Room {\n\t\n\tprivate int residents;\n\t\n\tRoom(int residents) {\t\n\t\tthis.residents\t= residents;\n\t}\n\t\n\tpublic int getResidents() {\n\t\treturn this.residents;\n\t}\n\t\n\tpublic void setResidents(int n) {\n\t\tthis.residents += n;\n\t\tif (this.residents > 9) this.residents = 9;\n\t\tif (this.residents < 0) this.residents = 0;\n\t}\n}", "Room", "private int residents;", "residents", "Room(int residents) {\t\n\t\tthis.residents\t= residents;\n\t}", "Room", "{\t\n\t\tthis.residents\t= residents;\n\t}", "this.residents\t= residents", "this.residents", "this", "this.residents", "residents", "int residents", "residents", "public int getResidents() {\n\t\treturn this.residents;\n\t}", "getResidents", "{\n\t\treturn this.residents;\n\t}", "return this.residents;", "this.residents", "this", "this.residents", "public void setResidents(int n) {\n\t\tthis.residents += n;\n\t\tif (this.residents > 9) this.residents = 9;\n\t\tif (this.residents < 0) this.residents = 0;\n\t}", "setResidents", "{\n\t\tthis.residents += n;\n\t\tif (this.residents > 9) this.residents = 9;\n\t\tif (this.residents < 0) this.residents = 0;\n\t}", "this.residents += n", "this.residents", "this", "this.residents", "n", "if (this.residents > 9) this.residents = 9;", "this.residents > 9", "this.residents", "this", "this.residents", "9", "this.residents = 9", "this.residents", "this", "this.residents", "9", "if (this.residents < 0) this.residents = 0;", "this.residents < 0", "this.residents", "this", "this.residents", "0", "this.residents = 0", "this.residents", "this", "this.residents", "0", "int n", "n", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tfinal int B_TOTAL = 4;\n\t\tfinal int F_TOTAL = 3;\n\t\tfinal int R_TOTAL = 10;\n\t\tRoom[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];\n\t\t\n\t\tfor (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[4];\n\t\tint b, f, r, v;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tfinal int B_TOTAL = 4;\n\t\tfinal int F_TOTAL = 3;\n\t\tfinal int R_TOTAL = 10;\n\t\tRoom[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL];\n\t\t\n\t\tfor (int i = 0; i < B_TOTAL; i++) {\t\n\t\t\tfor (int j = 0; j < F_TOTAL; j++) {\n\t\t\t\tfor (int k = 0; k < R_TOTAL; k++) {\n\t\t\t\t\tuniv_rooms[i][j][k] = new Room(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[4];\n\t\tint b, f, r, v;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\tb = Integer.parseInt(str[0]);\n\t\t\tf = Integer.parseInt(str[1]);\n\t\t\tr = Integer.parseInt(str[2]);\n\t\t\tv = Integer.parseInt(str[3]);\n\t\t\tuniv_rooms[b - 1][f - 1][r - 1].setResidents(v);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < univ_rooms.length; i++) {\n\t\t\tfor (int j = 0; j < univ_rooms[i].length; j++) {\n\t\t\t\tfor (int k = 0; k < univ_rooms[i][j].length; k++) {\n\t\t\t\t\tSystem.out.print(\" \" + univ_rooms[i][j][k].getResidents());\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tif (i < univ_rooms.length - 1) System.out.println(\"####################\");\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); final int B_TOTAL = 4; final int F_TOTAL = 3; final int R_TOTAL = 10; Room[][][] univ_rooms = new Room[B_TOTAL][F_TOTAL][R_TOTAL]; for (int i = 0; i < B_TOTAL; i++) { for (int j = 0; j < F_TOTAL; j++) { for (int k = 0; k < R_TOTAL; k++) { univ_rooms[i][j][k] = new Room(0); } } } int n = Integer.parseInt(br.readLine()); String[] str = new String[4]; int b, f, r, v; for (int i = 0; i < n; i++) { str = br.readLine().split("\\s+"); b = Integer.parseInt(str[0]); f = Integer.parseInt(str[1]); r = Integer.parseInt(str[2]); v = Integer.parseInt(str[3]); univ_rooms[b - 1][f - 1][r - 1].setResidents(v); } for (int i = 0; i < univ_rooms.length; i++) { for (int j = 0; j < univ_rooms[i].length; j++) { for (int k = 0; k < univ_rooms[i][j].length; k++) { System.out.print(" " + univ_rooms[i][j][k].getResidents()); } System.out.println(); } if (i < univ_rooms.length - 1) System.out.println("####################"); } } } class Room { private int residents; Room(int residents) { this.residents = residents; } public int getResidents() { return this.residents; } public void setResidents(int n) { this.residents += n; if (this.residents > 9) this.residents = 9; if (this.residents < 0) this.residents = 0; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 4, 18, 13, 13, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 4, 18, 4, 18, 13, 13, 13, 17, 41, 13, 20, 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, 4, 18, 4, 18, 4, 18, 13, 13, 13, 13, 2, 4, 18, 4, 18, 4, 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, 17, 4, 18, 18, 13, 13, 4, 18, 4, 18, 4, 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 ], [ 226, 5 ], [ 226, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 25, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 43, 49 ], [ 43, 50 ], [ 42, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 66, 72 ], [ 64, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 8, 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 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 97, 101 ], [ 94, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 104, 108 ], [ 94, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 111, 115 ], [ 94, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 94, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 123, 129 ], [ 121, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 134, 140 ], [ 132, 141 ], [ 131, 142 ], [ 8, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 143, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 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 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 181, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 195, 201 ], [ 193, 202 ], [ 168, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 203, 208 ], [ 155, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 8, 220 ], [ 220, 221 ], [ 221, 222 ], [ 6, 223 ], [ 223, 224 ], [ 0, 225 ], [ 225, 226 ], [ 225, 227 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();\n for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }\n \n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n \n for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }\n if (b != 3) {\n System.out.println(\"####################\");\n }\n }\n scanner.close();\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();\n for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }\n \n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n \n for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }\n if (b != 3) {\n System.out.println(\"####################\");\n }\n }\n scanner.close();\n }\n}", "Main", "public static void main(String[] args) {\n ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();\n for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }\n \n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n \n for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }\n if (b != 3) {\n System.out.println(\"####################\");\n }\n }\n scanner.close();\n }", "main", "{\n ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();\n for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }\n \n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n \n for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }\n if (b != 3) {\n System.out.println(\"####################\");\n }\n }\n scanner.close();\n }", "ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();", "rooms", "new ArrayList<ArrayList<ArrayList<Integer>>>()", "for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }", "int b = 0;", "int b = 0;", "b", "0", "b < 4", "b", "4", "b++", "b++", "b", "{\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }", "{\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }", "rooms.add(b, new ArrayList<ArrayList<Integer>>())", "rooms.add", "rooms", "b", "new ArrayList<ArrayList<Integer>>()", "for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }", "int f = 0;", "int f = 0;", "f", "0", "f < 3", "f", "3", "f++", "f++", "f", "{\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }", "{\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }", "rooms.get(b).add(f, new ArrayList<Integer>())", "rooms.get(b).add", "rooms.get(b)", "rooms.get", "rooms", "b", "f", "new ArrayList<Integer>()", "for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }", "int r = 0;", "int r = 0;", "r", "0", "r < 10", "r", "10", "r++", "r++", "r", "{\n rooms.get(b).get(f).add(0);\n }", "{\n rooms.get(b).get(f).add(0);\n }", "rooms.get(b).get(f).add(0)", "rooms.get(b).get(f).add", "rooms.get(b).get(f)", "rooms.get(b).get", "rooms.get(b)", "rooms.get", "rooms", "b", "f", "0", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(r) + v);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(r) + v);\n }", "{\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(r) + v);\n }", "int b = scanner.nextInt() - 1;", "b", "scanner.nextInt() - 1", "scanner.nextInt()", "scanner.nextInt", "scanner", "1", "int f = scanner.nextInt() - 1;", "f", "scanner.nextInt() - 1", "scanner.nextInt()", "scanner.nextInt", "scanner", "1", "int r = scanner.nextInt() - 1;", "r", "scanner.nextInt() - 1", "scanner.nextInt()", "scanner.nextInt", "scanner", "1", "int v = scanner.nextInt();", "v", "scanner.nextInt()", "scanner.nextInt", "scanner", "rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(r) + v)", "rooms.get(b).get(f).set", "rooms.get(b).get(f)", "rooms.get(b).get", "rooms.get(b)", "rooms.get", "rooms", "b", "f", "r", "rooms.get(b).get(f).get(r) + v", "rooms.get(b).get(f).get(r)", "rooms.get(b).get(f).get", "rooms.get(b).get(f)", "rooms.get(b).get", "rooms.get(b)", "rooms.get", "rooms", "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(\" \");\n System.out.print(rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(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(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }", "{\n for (int r = 0; r < 10; r++) {\n System.out.print(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }", "for (int r = 0; r < 10; r++) {\n System.out.print(\" \");\n System.out.print(rooms.get(b).get(f).get(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(rooms.get(b).get(f).get(r));\n }", "{\n System.out.print(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(rooms.get(b).get(f).get(r))", "System.out.print", "System.out", "System", "System.out", "rooms.get(b).get(f).get(r)", "rooms.get(b).get(f).get", "rooms.get(b).get(f)", "rooms.get(b).get", "rooms.get(b)", "rooms.get", "rooms", "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", "\"####################\"", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();\n for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }\n \n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n \n for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }\n if (b != 3) {\n System.out.println(\"####################\");\n }\n }\n scanner.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n ArrayList<ArrayList<ArrayList<Integer>>> rooms =\n new ArrayList<ArrayList<ArrayList<Integer>>>();\n for (int b = 0; b < 4; b++) {\n rooms.add(b, new ArrayList<ArrayList<Integer>>());\n for (int f = 0; f < 3; f++) {\n rooms.get(b).add(f, new ArrayList<Integer>());\n for (int r = 0; r < 10; r++) {\n rooms.get(b).get(f).add(0);\n }\n }\n }\n \n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n \n for (int i = 0; i < n; i++) {\n int b = scanner.nextInt() - 1;\n int f = scanner.nextInt() - 1;\n int r = scanner.nextInt() - 1;\n int v = scanner.nextInt();\n rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(\" \");\n System.out.print(rooms.get(b).get(f).get(r));\n }\n System.out.println(\"\");\n }\n if (b != 3) {\n System.out.println(\"####################\");\n }\n }\n scanner.close();\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { ArrayList<ArrayList<ArrayList<Integer>>> rooms = new ArrayList<ArrayList<ArrayList<Integer>>>(); for (int b = 0; b < 4; b++) { rooms.add(b, new ArrayList<ArrayList<Integer>>()); for (int f = 0; f < 3; f++) { rooms.get(b).add(f, new ArrayList<Integer>()); for (int r = 0; r < 10; r++) { rooms.get(b).get(f).add(0); } } } Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); for (int i = 0; i < n; i++) { int b = scanner.nextInt() - 1; int f = scanner.nextInt() - 1; int r = scanner.nextInt() - 1; int v = scanner.nextInt(); rooms.get(b).get(f).set(r, rooms.get(b).get(f).get(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(" "); System.out.print(rooms.get(b).get(f).get(r)); } System.out.println(""); } if (b != 3) { System.out.println("####################"); } } scanner.close(); } }
[ 7, 15, 13, 17, 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, 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, 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, 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 ], [ 311, 5 ], [ 311, 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, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 49, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 49, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 70, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 87, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 99, 105 ], [ 94, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 111, 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 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 130, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 8, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 8, 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 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 179, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 8, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 210, 215 ], [ 8, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 216, 221 ], [ 221, 222 ], [ 221, 223 ], [ 216, 224 ], [ 224, 225 ], [ 225, 226 ], [ 216, 227 ], [ 228, 228 ], [ 228, 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 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 249, 253 ], [ 228, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 8, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 259, 264 ], [ 8, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 265, 270 ], [ 270, 271 ], [ 270, 272 ], [ 265, 273 ], [ 273, 274 ], [ 274, 275 ], [ 265, 276 ], [ 277, 277 ], [ 277, 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 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 298, 302 ], [ 277, 303 ], [ 303, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 6, 308 ], [ 308, 309 ], [ 0, 310 ], [ 310, 311 ], [ 310, 312 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt(); // infomation amount\n\t\n\t\tint[][] b1 = new int[4][11];\n\t\tint[][] b2 = new int[4][11];\n\t\tint[][] b3 = new int[4][11];\n\t\tint[][] b4 = new int[4][11];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\"); \n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt(); // infomation amount\n\t\n\t\tint[][] b1 = new int[4][11];\n\t\tint[][] b2 = new int[4][11];\n\t\tint[][] b3 = new int[4][11];\n\t\tint[][] b4 = new int[4][11];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\"); \n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt(); // infomation amount\n\t\n\t\tint[][] b1 = new int[4][11];\n\t\tint[][] b2 = new int[4][11];\n\t\tint[][] b3 = new int[4][11];\n\t\tint[][] b4 = new int[4][11];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\"); \n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt(); // infomation amount\n\t\n\t\tint[][] b1 = new int[4][11];\n\t\tint[][] b2 = new int[4][11];\n\t\tint[][] b3 = new int[4][11];\n\t\tint[][] b4 = new int[4][11];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\"); \n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[][] b1 = new int[4][11];", "b1", "new int[4][11]", "4", "11", "int[][] b2 = new int[4][11];", "b2", "new int[4][11]", "4", "11", "int[][] b3 = new int[4][11];", "b3", "new int[4][11]", "4", "11", "int[][] b4 = new int[4][11];", "b4", "new int[4][11]", "4", "11", "for(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\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\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}", "b == 1", "b", "1", "{\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}", "b1[f][r] += v", "b1[f][r]", "b1[f]", "b1", "f", "r", "v", "if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}", "b == 2", "b", "2", "{\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}", "b2[f][r] += v", "b2[f][r]", "b2[f]", "b2", "f", "r", "v", "if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}", "b == 3", "b", "3", "{\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}", "b3[f][r] += v", "b3[f][r]", "b3[f]", "b3", "f", "r", "v", "if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}", "b == 4", "b", "4", "{\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}", "b4[f][r] += v", "b4[f][r]", "b4[f]", "b4", "f", "r", "v", "for(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= 10", "j", "10", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}", "System.out.print(\" \" + b1[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + b1[i][j]", "\" \"", "b1[i][j]", "b1[i]", "b1", "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 = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= 10", "j", "10", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}", "System.out.print(\" \" + b2[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + b2[i][j]", "\" \"", "b2[i][j]", "b2[i]", "b2", "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 = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= 10", "j", "10", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}", "System.out.print(\" \" + b3[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + b3[i][j]", "\" \"", "b3[i][j]", "b3[i]", "b3", "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 = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= 10", "j", "10", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}", "System.out.print(\" \" + b4[i][j])", "System.out.print", "System.out", "System", "System.out", "\" \" + b4[i][j]", "\" \"", "b4[i][j]", "b4[i]", "b4", "i", "j", "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\t\n\t\tint n = scan.nextInt(); // infomation amount\n\t\n\t\tint[][] b1 = new int[4][11];\n\t\tint[][] b2 = new int[4][11];\n\t\tint[][] b3 = new int[4][11];\n\t\tint[][] b4 = new int[4][11];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\"); \n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt(); // infomation amount\n\t\n\t\tint[][] b1 = new int[4][11];\n\t\tint[][] b2 = new int[4][11];\n\t\tint[][] b3 = new int[4][11];\n\t\tint[][] b4 = new int[4][11];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\t\n\t\t\tint b = scan.nextInt(); // tou\n\t\t\tint f = scan.nextInt(); // flor\n\t\t\tint r = scan.nextInt(); // room\n\t\t\tint v = scan.nextInt(); // ninzu\n\t\t\n\t\t\tif(b == 1){\n\t\t\t\tb1[f][r] += v;\n\t\t\t\t}else if(b == 2){\n\t\t\t\t\tb2[f][r] += v;\n\t\t\t\t}else if(b == 3){\n\t\t\t\t\tb3[f][r] += v;\n\t\t\t\t}else if(b == 4){\n\t\t\t\t\tb4[f][r] += v;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b1[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b2[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\");\n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b3[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"####################\"); \n\t\t\n\t\tfor(int i = 1; i <= 3; i++){\n\t\t\tfor(int j = 1; j <= 10; j++){\n\t\t\t\tSystem.out.print(\" \" + b4[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); // infomation amount int[][] b1 = new int[4][11]; int[][] b2 = new int[4][11]; int[][] b3 = new int[4][11]; int[][] b4 = new int[4][11]; for(int i = 0; i < n; i++){ int b = scan.nextInt(); // tou int f = scan.nextInt(); // flor int r = scan.nextInt(); // room int v = scan.nextInt(); // ninzu if(b == 1){ b1[f][r] += v; }else if(b == 2){ b2[f][r] += v; }else if(b == 3){ b3[f][r] += v; }else if(b == 4){ b4[f][r] += v; } } for(int i = 1; i <= 3; i++){ for(int j = 1; j <= 10; j++){ System.out.print(" " + b1[i][j]); } System.out.println(); } System.out.println("####################"); for(int i = 1; i <= 3; i++){ for(int j = 1; j <= 10; j++){ System.out.print(" " + b2[i][j]); } System.out.println(); } System.out.println("####################"); for(int i = 1; i <= 3; i++){ for(int j = 1; j <= 10; j++){ System.out.print(" " + b3[i][j]); } System.out.println(); } System.out.println("####################"); for(int i = 1; i <= 3; i++){ for(int j = 1; j <= 10; j++){ System.out.print(" " + b4[i][j]); } System.out.println(); } } }
[ 7, 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, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 18, 18, 18, 13, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 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, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 18, 18, 18, 13, 13, 13, 13, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 4, 18, 18, 13, 13, 13, 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, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 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 ], [ 50, 51 ], [ 51, 52 ], [ 48, 53 ], [ 45, 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 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 45, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 78, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 77, 97 ], [ 97, 98 ], [ 97, 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 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 138, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 150, 156 ], [ 138, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 125, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 112, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 176, 179 ], [ 174, 180 ], [ 8, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 6, 187 ], [ 187, 188 ], [ 0, 189 ], [ 189, 190 ], [ 189, 191 ] ]
[ "import java.io.*;\n\npublic class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] floor = new int[4][3][10];\n\n int count = Integer.parseInt(br.readLine());\n int[] num = new int[4];\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] floor = new int[4][3][10];\n\n int count = Integer.parseInt(br.readLine());\n int[] num = new int[4];\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }\n}", "Main", "public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] floor = new int[4][3][10];\n\n int count = Integer.parseInt(br.readLine());\n int[] num = new int[4];\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] floor = new int[4][3][10];\n\n int count = Integer.parseInt(br.readLine());\n int[] num = new int[4];\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int[][][] floor = new int[4][3][10];", "floor", "new int[4][3][10]", "4", "3", "10", "int count = Integer.parseInt(br.readLine());", "count", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] num = new int[4];", "num", "new int[4]", "4", "for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\n }", "int i=0;", "int i=0;", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\n }", "{\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\n }", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }", "int k=0;", "int k=0;", "k", "0", "k<4", "k", "4", "k++", "k++", "k", "{\n num[k] = Integer.parseInt(str[k]);\n }", "{\n num[k] = Integer.parseInt(str[k]);\n }", "num[k] = Integer.parseInt(str[k])", "num[k]", "num", "k", "Integer.parseInt(str[k])", "Integer.parseInt", "Integer", "str[k]", "str", "k", "floor[num[0] -1][num[1] -1][num[2] -1] += num[3]", "floor[num[0] -1][num[1] -1][num[2] -1]", "floor[num[0] -1][num[1] -1]", "floor[num[0] -1]", "floor", "num[0] -1", "num[0]", "num", "0", "1", "num[1] -1", "num[1]", "num", "1", "1", "num[2] -1", "num[2]", "num", "2", "1", "num[3]", "num", "3", "for(int b=0; b<4; b++){\n for(int f=0; f<3; f++){\n for(int r=0; r<10; r++){\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }", "{\n for(int f=0; f<3; f++){\n for(int r=0; r<10; r++){\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }", "for(int f=0; f<3; f++){\n for(int r=0; r<10; r++){\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }", "{\n for(int r=0; r<10; r++){\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }", "for(int r=0; r<10; r++){\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }", "int r=0;", "int r=0;", "r", "0", "r<10", "r", "10", "r++", "r++", "r", "{\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }", "{\n if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }", "if(r == 0)sb.append(\" \");", "r == 0", "r", "0", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(floor[b][f][r])", "sb.append", "sb", "floor[b][f][r]", "floor[b][f]", "floor[b]", "floor", "b", "f", "r", "if(r != 9)sb.append(\" \");", "r != 9", "r", "9", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }", "b<3", "b", "3", "{\n sb.append(\"####################\").append(\"\\n\");\n }", "sb.append(\"####################\").append(\"\\n\")", "sb.append(\"####################\").append", "sb.append(\"####################\")", "sb.append", "sb", "\"####################\"", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[]args", "args", "public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] floor = new int[4][3][10];\n\n int count = Integer.parseInt(br.readLine());\n int[] num = new int[4];\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }\n}", "public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int[][][] floor = new int[4][3][10];\n\n int count = Integer.parseInt(br.readLine());\n int[] num = new int[4];\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<4; k++){\n num[k] = Integer.parseInt(str[k]);\n }\n floor[num[0] -1][num[1] -1][num[2] -1] += num[3];\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 if(r == 0)sb.append(\" \");\n sb.append(floor[b][f][r]);\n if(r != 9)sb.append(\" \");\n }\n sb.append(\"\\n\");\n }\n if(b<3){\n sb.append(\"####################\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[]args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int[][][] floor = new int[4][3][10]; int count = Integer.parseInt(br.readLine()); int[] num = new int[4]; for(int i=0; i<count; i++){ String[] str = br.readLine().split(" "); for(int k=0; k<4; k++){ num[k] = Integer.parseInt(str[k]); } floor[num[0] -1][num[1] -1][num[2] -1] += num[3]; } for(int b=0; b<4; b++){ for(int f=0; f<3; f++){ for(int r=0; r<10; r++){ if(r == 0)sb.append(" "); sb.append(floor[b][f][r]); if(r != 9)sb.append(" "); } sb.append("\n"); } if(b<3){ sb.append("####################").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, 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, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 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, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 18, 18, 13, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 225, 5 ], [ 225, 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 ], [ 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 ], [ 127, 129 ], [ 126, 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 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 144, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 125, 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 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 175, 186 ], [ 187, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 200, 206 ], [ 188, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 208, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 215, 221 ], [ 6, 222 ], [ 222, 223 ], [ 0, 224 ], [ 224, 225 ], [ 224, 226 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count[][][] = new int[5][4][11];\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\tcount[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\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\tcount[b][f][r] += v;\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count[][][] = new int[5][4][11];\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\tcount[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\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\tcount[b][f][r] += v;\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count[][][] = new int[5][4][11];\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\tcount[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\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\tcount[b][f][r] += v;\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count[][][] = new int[5][4][11];\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\tcount[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\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\tcount[b][f][r] += v;\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\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[5][4][11];", "count", "new int[5][4][11]", "5", "4", "11", "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\tcount[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\tcount[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\tcount[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\tcount[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\tcount[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\tcount[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\tcount[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\tcount[i][j][k] = 0;\n\t\t\t\t}", "{\n\t\t\t\t\tcount[i][j][k] = 0;\n\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\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\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\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\tcount[b][f][r] += 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\tcount[b][f][r] += 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", "count[b][f][r] += v", "count[b][f][r]", "count[b][f]", "count[b]", "count", "b", "f", "r", "v", "for (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < 5", "i", "5", "i++", "i++", "i", "{\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "{\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "if (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "i != 1", "i", "1", "{\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "int x = 1;", "int x = 1;", "x", "1", "x < 21", "x", "21", "x++", "x++", "x", "{\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\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\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}", "x != 20", "x", "20", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\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", "\"#\"", "for (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < 4", "j", "4", "j++", "j++", "j", "{\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}", "int k = 1;", "int k = 1;", "k", "1", "k < 11", "k", "11", "k++", "k++", "k", "{\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}", "if (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}", "k != 10", "k", "10", "{\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t}", "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", "{\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}", "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", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count[][][] = new int[5][4][11];\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\tcount[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\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\tcount[b][f][r] += v;\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count[][][] = new int[5][4][11];\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\tcount[i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\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\tcount[b][f][r] += v;\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 1; i < 5; i++) {\n\t\t\tif (i != 1) {\n\t\t\t\tfor (int x = 1; x < 21; x++) {\n\t\t\t\t\tif (x != 20) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tfor (int k = 1; k < 11; k++) {\n\t\t\t\t\tif (k != 10) {\n\t\t\t\t\t\tSystem.out.print(\" \" + count[i][j][k]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\" \" + count[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\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 n = sc.nextInt(); int count[][][] = new int[5][4][11]; // ????????? 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++) { int b = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); int v = sc.nextInt(); count[b][f][r] += v; } // ?????? for (int i = 1; i < 5; i++) { if (i != 1) { for (int x = 1; x < 21; x++) { if (x != 20) { System.out.print("#"); } else { System.out.println("#"); } } } for (int j = 1; j < 4; j++) { for (int k = 1; k < 11; k++) { if (k != 10) { System.out.print(" " + count[i][j][k]); } else { System.out.println(" " + count[i][j][k]); } } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 20, 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, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 186, 5 ], [ 186, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 21, 22 ], [ 21, 23 ], [ 16, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 28, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 73, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 73, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 73, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 105, 107 ], [ 94, 108 ], [ 8, 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 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 122, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 135, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 155, 161 ], [ 134, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 121, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 186, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 177, 183 ], [ 183, 184 ], [ 0, 185 ], [ 185, 186 ], [ 185, 187 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][][] room = new int[4][][];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\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\troom[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 < 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][][] room = new int[4][][];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\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\troom[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 < 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][][] room = new int[4][][];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\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\troom[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 < 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}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][][] room = new int[4][][];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\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\troom[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 < 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}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int[][][] room = new int[4][][];", "room", "new int[4][][]", "4", "for (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\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\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}", "{\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}", "room[i] = new int[3][]", "room[i]", "room", "i", "new int[3][]", "3", "for (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}", "{\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}", "room[i][j] = new int[10]", "room[i][j]", "room[i]", "room", "i", "j", "new int[10]", "10", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "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\troom[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 = 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\troom[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\troom[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", "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 < 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", "\"####################\"", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][][] room = new int[4][][];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\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\troom[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 < 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[][][] room = new int[4][][];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\troom[i] = new int[3][];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\troom[i][j] = new int[10];\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\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\troom[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 < 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); int[][][] room = new int[4][][]; for (int i = 0; i < 4; i++) { room[i] = new int[3][]; for (int j = 0; j < 3; j++) { room[i][j] = new int[10]; } } int n = scan.nextInt(); for (int i = 0; i < n; i++) { int b = scan.nextInt(); int f = scan.nextInt(); int r = scan.nextInt(); int v = scan.nextInt(); room[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(" " + room[i][j][k]); } System.out.println(); } if (i != 3) System.out.println("####################"); } } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 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, 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, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 168, 5 ], [ 168, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 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 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 41, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 41, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 41, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 41, 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 ], [ 93, 95 ], [ 82, 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 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 143, 149 ], [ 122, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 109, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 6, 165 ], [ 165, 166 ], [ 0, 167 ], [ 167, 168 ], [ 167, 169 ] ]
[ "import java.io.*;\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb=new StringBuilder();\n int a=Integer.parseInt(bf.readLine());\n int[][][] num=new int[4][3][10];\n \n for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[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 k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb=new StringBuilder();\n int a=Integer.parseInt(bf.readLine());\n int[][][] num=new int[4][3][10];\n \n for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[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 k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb=new StringBuilder();\n int a=Integer.parseInt(bf.readLine());\n int[][][] num=new int[4][3][10];\n \n for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[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 k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }\n }", "main", "{\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb=new StringBuilder();\n int a=Integer.parseInt(bf.readLine());\n int[][][] num=new int[4][3][10];\n \n for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[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 k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }\n }", "BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));", "bf", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb=new StringBuilder();", "sb", "new StringBuilder()", "int a=Integer.parseInt(bf.readLine());", "a", "Integer.parseInt(bf.readLine())", "Integer.parseInt", "Integer", "bf.readLine()", "bf.readLine", "bf", "int[][][] num=new int[4][3][10];", "num", "new int[4][3][10]", "4", "3", "10", "for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[b-1][f-1][r-1]+=v;\n }", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "{\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[b-1][f-1][r-1]+=v;\n }", "{\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[b-1][f-1][r-1]+=v;\n }", "String[] str=bf.readLine().split(\" \");", "str", "bf.readLine().split(\" \")", "bf.readLine().split", "bf.readLine()", "bf.readLine", "bf", "\" \"", "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", "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 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(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n 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 for(int k=0;k<10;k++){\n System.out.print(\" \"+num[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(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }", "for(int j=0;j<3;j++){\n for(int k=0;k<10;k++){\n System.out.print(\" \"+num[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(\" \"+num[i][j][k]);\n }\n System.out.println();\n }", "{\n for(int k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }", "for(int k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }", "int k=0;", "int k=0;", "k", "0", "k<10", "k", "10", "k++", "k++", "k", "{\n System.out.print(\" \"+num[i][j][k]);\n }", "{\n System.out.print(\" \"+num[i][j][k]);\n }", "System.out.print(\" \"+num[i][j][k])", "System.out.print", "System.out", "System", "System.out", "\" \"+num[i][j][k]", "\" \"", "num[i][j][k]", "num[i][j]", "num[i]", "num", "i", "j", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(i !=3)\n 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 void main(String[] args) throws IOException{\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb=new StringBuilder();\n int a=Integer.parseInt(bf.readLine());\n int[][][] num=new int[4][3][10];\n \n for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[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 k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb=new StringBuilder();\n int a=Integer.parseInt(bf.readLine());\n int[][][] num=new int[4][3][10];\n \n for(int i=0;i<a;i++){\n String[] str=bf.readLine().split(\" \");\n int b=Integer.parseInt(str[0]);\n int f=Integer.parseInt(str[1]);\n int r=Integer.parseInt(str[2]);\n int v=Integer.parseInt(str[3]);\n \n num[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 k=0;k<10;k++){\n System.out.print(\" \"+num[i][j][k]);\n }\n System.out.println();\n }\n if(i !=3)\n System.out.println(\"####################\");\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); int a=Integer.parseInt(bf.readLine()); int[][][] num=new int[4][3][10]; for(int i=0;i<a;i++){ String[] str=bf.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]); num[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(" "+num[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, 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, 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, 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, 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 ], [ 175, 11 ], [ 175, 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 ], [ 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 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 55, 62 ], [ 44, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 44, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 75, 82 ], [ 44, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 44, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 91, 99 ], [ 14, 100 ], [ 100, 101 ], [ 100, 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 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 147, 153 ], [ 128, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 115, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 14, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 12, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] info = new int[4][3][10];\n \n int num = Integer.parseInt(br.readLine());\n \n //data input\n for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }\n\n //data output\n StringBuilder sb = new StringBuilder();\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }\n\n System.out.print(sb);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] info = new int[4][3][10];\n \n int num = Integer.parseInt(br.readLine());\n \n //data input\n for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }\n\n //data output\n StringBuilder sb = new StringBuilder();\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }\n\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] info = new int[4][3][10];\n \n int num = Integer.parseInt(br.readLine());\n \n //data input\n for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }\n\n //data output\n StringBuilder sb = new StringBuilder();\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }\n\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] info = new int[4][3][10];\n \n int num = Integer.parseInt(br.readLine());\n \n //data input\n for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }\n\n //data output\n StringBuilder sb = new StringBuilder();\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }\n\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int[][][] info = new int[4][3][10];", "info", "new int[4][3][10]", "4", "3", "10", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }", "{\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int b = Integer.valueOf(input[0])-1;", "b", "Integer.valueOf(input[0])-1", "Integer.valueOf(input[0])", "Integer.valueOf", "Integer", "input[0]", "input", "0", "1", "int f = Integer.valueOf(input[1])-1;", "f", "Integer.valueOf(input[1])-1", "Integer.valueOf(input[1])", "Integer.valueOf", "Integer", "input[1]", "input", "1", "1", "int r = Integer.valueOf(input[2])-1;", "r", "Integer.valueOf(input[2])-1", "Integer.valueOf(input[2])", "Integer.valueOf", "Integer", "input[2]", "input", "2", "1", "int v = Integer.valueOf(input[3]);", "v", "Integer.valueOf(input[3])", "Integer.valueOf", "Integer", "input[3]", "input", "3", "info[b][f][r] += v", "info[b][f][r]", "info[b][f]", "info[b]", "info", "b", "f", "r", "v", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int b = 0; b < 4; b++){\n for(int f = 0; f < 3; f++){\n for(int r = 0; r < 10; r++){\n sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }", "{\n for(int f = 0; f < 3; f++){\n for(int r = 0; r < 10; r++){\n sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }", "for(int f = 0; f < 3; f++){\n for(int r = 0; r < 10; r++){\n sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }", "{\n for(int r = 0; r < 10; r++){\n sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }", "for(int r = 0; r < 10; r++){\n sb.append(\" \" + info[b][f][r]);\n }", "int r = 0;", "int r = 0;", "r", "0", "r < 10", "r", "10", "r++", "r++", "r", "{\n sb.append(\" \" + info[b][f][r]);\n }", "{\n sb.append(\" \" + info[b][f][r]);\n }", "sb.append(\" \" + info[b][f][r])", "sb.append", "sb", "\" \" + info[b][f][r]", "\" \"", "info[b][f][r]", "info[b][f]", "info[b]", "info", "b", "f", "r", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "if(b != 3) sb.append(\"####################\\n\");", "b != 3", "b", "3", "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 public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] info = new int[4][3][10];\n \n int num = Integer.parseInt(br.readLine());\n \n //data input\n for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }\n\n //data output\n StringBuilder sb = new StringBuilder();\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }\n\n System.out.print(sb);\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int[][][] info = new int[4][3][10];\n \n int num = Integer.parseInt(br.readLine());\n \n //data input\n for(int i = 0; i < num; i++){\n String[] input = br.readLine().split(\" \");\n int b = Integer.valueOf(input[0])-1;\n int f = Integer.valueOf(input[1])-1;\n int r = Integer.valueOf(input[2])-1;\n int v = Integer.valueOf(input[3]);\n info[b][f][r] += v;\n }\n\n //data output\n StringBuilder sb = new StringBuilder();\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 sb.append(\" \" + info[b][f][r]);\n }\n sb.append(\"\\n\");\n }\n if(b != 3) sb.append(\"####################\\n\");\n }\n\n System.out.print(sb);\n }\n}", "Main" ]
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[][][] info = new int[4][3][10]; int num = Integer.parseInt(br.readLine()); //data input for(int i = 0; i < num; i++){ String[] input = br.readLine().split(" "); int b = Integer.valueOf(input[0])-1; int f = Integer.valueOf(input[1])-1; int r = Integer.valueOf(input[2])-1; int v = Integer.valueOf(input[3]); info[b][f][r] += v; } //data output StringBuilder sb = new StringBuilder(); for(int b = 0; b < 4; b++){ for(int f = 0; f < 3; f++){ for(int r = 0; r < 10; r++){ sb.append(" " + info[b][f][r]); } sb.append("\n"); } if(b != 3) sb.append("####################\n"); } System.out.print(sb); } }
[ 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, 17, 41, 13, 41, 13, 20, 17, 0, 13, 4, 18, 13, 4, 18, 13, 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, 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, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 8, 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 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 57, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 54, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 54, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 54, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 54, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 103, 104 ], [ 103, 105 ], [ 96, 106 ], [ 106, 107 ], [ 106, 108 ], [ 95, 109 ], [ 8, 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 ], [ 136, 138 ], [ 135, 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 ], [ 152, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 156, 162 ], [ 135, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 122, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 6, 180 ], [ 180, 181 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint\n\t\t\tn,\t\t//入力件数\n\t\t\tb,\t\t//棟\n\t\t\tf,\t\t//階\n\t\t\tr,\t\t//部屋\n\t\t\tv;\t\t//入居者\n\t\t\t\n\t\tint[][][]\n\t\t\thouse\t= new int[4][3][10];\t//記録用配列(4棟3階10部屋分の入居者数(v)を格納)\n\t\t\t\n\t\tString\n\t\t\toutput;\t\t\t\t\t\t\t//出力する文字列\n\t\t\t\n\t\tString[]\n\t\t\tinput\t= new String[4];\t\t//入力(b,f,r,v)を格納する\n\t\t\n\t\t\n\t\tn = Integer.parseInt(sc.nextLine());\t\t//入力件数の入力\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\n\t\t\thouse[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\t\n\t\t//表示処理\n\t\tfor(b = 0;b < 4;b++){\n\t\t\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint\n\t\t\tn,\t\t//入力件数\n\t\t\tb,\t\t//棟\n\t\t\tf,\t\t//階\n\t\t\tr,\t\t//部屋\n\t\t\tv;\t\t//入居者\n\t\t\t\n\t\tint[][][]\n\t\t\thouse\t= new int[4][3][10];\t//記録用配列(4棟3階10部屋分の入居者数(v)を格納)\n\t\t\t\n\t\tString\n\t\t\toutput;\t\t\t\t\t\t\t//出力する文字列\n\t\t\t\n\t\tString[]\n\t\t\tinput\t= new String[4];\t\t//入力(b,f,r,v)を格納する\n\t\t\n\t\t\n\t\tn = Integer.parseInt(sc.nextLine());\t\t//入力件数の入力\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\n\t\t\thouse[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\t\n\t\t//表示処理\n\t\tfor(b = 0;b < 4;b++){\n\t\t\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 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\t\n\t\tint\n\t\t\tn,\t\t//入力件数\n\t\t\tb,\t\t//棟\n\t\t\tf,\t\t//階\n\t\t\tr,\t\t//部屋\n\t\t\tv;\t\t//入居者\n\t\t\t\n\t\tint[][][]\n\t\t\thouse\t= new int[4][3][10];\t//記録用配列(4棟3階10部屋分の入居者数(v)を格納)\n\t\t\t\n\t\tString\n\t\t\toutput;\t\t\t\t\t\t\t//出力する文字列\n\t\t\t\n\t\tString[]\n\t\t\tinput\t= new String[4];\t\t//入力(b,f,r,v)を格納する\n\t\t\n\t\t\n\t\tn = Integer.parseInt(sc.nextLine());\t\t//入力件数の入力\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\n\t\t\thouse[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\t\n\t\t//表示処理\n\t\tfor(b = 0;b < 4;b++){\n\t\t\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 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\t\n\t\tint\n\t\t\tn,\t\t//入力件数\n\t\t\tb,\t\t//棟\n\t\t\tf,\t\t//階\n\t\t\tr,\t\t//部屋\n\t\t\tv;\t\t//入居者\n\t\t\t\n\t\tint[][][]\n\t\t\thouse\t= new int[4][3][10];\t//記録用配列(4棟3階10部屋分の入居者数(v)を格納)\n\t\t\t\n\t\tString\n\t\t\toutput;\t\t\t\t\t\t\t//出力する文字列\n\t\t\t\n\t\tString[]\n\t\t\tinput\t= new String[4];\t\t//入力(b,f,r,v)を格納する\n\t\t\n\t\t\n\t\tn = Integer.parseInt(sc.nextLine());\t\t//入力件数の入力\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\n\t\t\thouse[b - 1][f - 1][r - 1] += v;\n\t\t}\n\t\t\n\t\t//表示処理\n\t\tfor(b = 0;b < 4;b++){\n\t\t\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 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\t\t\tn", "n", "b", "b", "f", "f", "r", "r", "v;", "v", "int[][][]\n\t\t\thouse\t= new int[4][3][10];", "house", "new int[4][3][10]", "4", "3", "10", "String\n\t\t\toutput;", "output", "String[]\n\t\t\tinput\t= new String[4];", "input", "new String[4]", "4", "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\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\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\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\n\t\t\thouse[b - 1][f - 1][r - 1] += v;\n\t\t}", "{\n\t\t\t\n\t\t\t//各情報の入力\n\t\t\tinput = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tb = Integer.parseInt(input[0]);\n\t\t\tf = Integer.parseInt(input[1]);\n\t\t\tr = Integer.parseInt(input[2]);\n\t\t\tv = Integer.parseInt(input[3]);\n\t\t\t\n\t\t\t//入力データを記録用配列に合わせ、入居者を加算\n\t\t\thouse[b - 1][f - 1][r - 1] += v;\n\t\t}", "input = sc.nextLine().split(\"[\\\\s]+\")", "input", "sc.nextLine().split(\"[\\\\s]+\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"[\\\\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\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "b = 0;", "b = 0", "b", "0", "b < 4", "b", "4", "b++", "b++", "b", "{\n\t\t\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tfor(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}\n\t\t\t//棟が変わる場合#を20個入れる(最後の行には入れないように)\n\t\t\tif(b < 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "for(f = 0;f < 3;f++){\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}", "f = 0;", "f = 0", "f", "0", "f < 3", "f", "3", "f++", "f++", "f", "{\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\toutput = \"\";\n\t\t\t\tfor(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}\n\t\t\t\t//出力\n\t\t\t\tSystem.out.println(output);\n\t\t\t\t\n\t\t\t}", "output = \"\"", "output", "\"\"", "for(r = 0;r < 10;r++){\n\t\t\t\t\t\n\t\t\t\t\t//数字の前にスペースを入れる\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\t\n\t\t\t\t\t//数字の前にスペースを入れる\n\t\t\t\t\toutput += \" \" + house[b][f][r];\n\t\t\t\t}", "{\n\t\t\t\t\t\n\t\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", "if(b < 3){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}", "b < 3", "b", "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.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n, //入力件数 b, //棟 f, //階 r, //部屋 v; //入居者 int[][][] house = new int[4][3][10]; //記録用配列(4棟3階10部屋分の入居者数(v)を格納) String output; //出力する文字列 String[] input = new String[4]; //入力(b,f,r,v)を格納する n = Integer.parseInt(sc.nextLine()); //入力件数の入力 for(int i=0;i<n;i++){ //各情報の入力 input = sc.nextLine().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; } //表示処理 for(b = 0;b < 4;b++){ for(f = 0;f < 3;f++){ output = ""; for(r = 0;r < 10;r++){ //数字の前にスペースを入れる output += " " + house[b][f][r]; } //出力 System.out.println(output); } //棟が変わる場合#を20個入れる(最後の行には入れないように) 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, 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, 18, 18, 18, 13, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 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, 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 ], [ 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, 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 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 89, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 94, 98 ], [ 85, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 99, 103 ], [ 84, 104 ], [ 104, 105 ], [ 105, 106 ], [ 8, 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 ], [ 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 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 153, 159 ], [ 132, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 119, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 6, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String [] args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//?????¶????????±?????????\n\t\tint n = sc.nextInt();\n\t\t//3?¬?????????? ?£? ??? ??¨?±??????? ?????°??????????????????\n\t\t//?????? 4?£? 3????????? 10??¨?±?\n\t\tint [][][] list = new int[4][3][10];\n\t\t//??¨????????¨?±??????????\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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//???????????¨???\n\t\tfor(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}\n\t\t//??¨???\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//?????¶????????±?????????\n\t\tint n = sc.nextInt();\n\t\t//3?¬?????????? ?£? ??? ??¨?±??????? ?????°??????????????????\n\t\t//?????? 4?£? 3????????? 10??¨?±?\n\t\tint [][][] list = new int[4][3][10];\n\t\t//??¨????????¨?±??????????\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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//???????????¨???\n\t\tfor(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}\n\t\t//??¨???\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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\t//?????¶????????±?????????\n\t\tint n = sc.nextInt();\n\t\t//3?¬?????????? ?£? ??? ??¨?±??????? ?????°??????????????????\n\t\t//?????? 4?£? 3????????? 10??¨?±?\n\t\tint [][][] list = new int[4][3][10];\n\t\t//??¨????????¨?±??????????\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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//???????????¨???\n\t\tfor(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}\n\t\t//??¨???\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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\t//?????¶????????±?????????\n\t\tint n = sc.nextInt();\n\t\t//3?¬?????????? ?£? ??? ??¨?±??????? ?????°??????????????????\n\t\t//?????? 4?£? 3????????? 10??¨?±?\n\t\tint [][][] list = new int[4][3][10];\n\t\t//??¨????????¨?±??????????\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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//???????????¨???\n\t\tfor(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}\n\t\t//??¨???\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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 [][][] list = new int[4][3][10];", "list", "new int[4][3][10]", "4", "3", "10", "for(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [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\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [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\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [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\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [i][j][k] = 0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [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\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [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\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tlist [i][j][k] = 0;\n\t\t\t\t}", "{\n\t\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", "for(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i <n", "i", "n", "i++", "i++", "i", "{\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}", "{\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}", "list [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt()", "list [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1]", "list [sc.nextInt() - 1][sc.nextInt() - 1]", "list [sc.nextInt() - 1]", "list", "sc.nextInt() - 1", "sc.nextInt()", "sc.nextInt", "sc", "1", "sc.nextInt() - 1", "sc.nextInt()", "sc.nextInt", "sc", "1", "sc.nextInt() - 1", "sc.nextInt()", "sc.nextInt", "sc", "1", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\n\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t}\n\t\t}", "{\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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}", "int j= 0 ;", "int j= 0 ;", "j", "0", "j< 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tSystem.out.print(\" \" + list [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\t//?£? ??? ??¨?±??????????\n\t\t\t\t\tSystem.out.print(\" \" + list [i][j][k] );\n\t\t\t\t}", "{\n\t\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){\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\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//?????¶????????±?????????\n\t\tint n = sc.nextInt();\n\t\t//3?¬?????????? ?£? ??? ??¨?±??????? ?????°??????????????????\n\t\t//?????? 4?£? 3????????? 10??¨?±?\n\t\tint [][][] list = new int[4][3][10];\n\t\t//??¨????????¨?±??????????\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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//???????????¨???\n\t\tfor(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}\n\t\t//??¨???\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//?????¶????????±?????????\n\t\tint n = sc.nextInt();\n\t\t//3?¬?????????? ?£? ??? ??¨?±??????? ?????°??????????????????\n\t\t//?????? 4?£? 3????????? 10??¨?±?\n\t\tint [][][] list = new int[4][3][10];\n\t\t//??¨????????¨?±??????????\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10; k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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//???????????¨???\n\t\tfor(int i =0; i <n;i++){\n\t\t\t//?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´?\n\t\t\tlist [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt();\n\t\t}\n\t\t//??¨???\n\t\t//b ?£?\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//f ???\n\t\t\tfor(int j= 0 ; j< 3; j++){\n\t\t\t\t//r ??¨?±???????\n\t\t\t\tfor(int k =0; k < 10;k++ ){\n\t\t\t\t\t//?£? ??? ??¨?±??????????\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){\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(); //3?¬?????????? ?£? ??? ??¨?±??????? ?????°?????????????????? //?????? 4?£? 3????????? 10??¨?±? int [][][] list = new int[4][3][10]; //??¨????????¨?±?????????? //b ?£? for(int i = 0; i < 4; i++){ //f ??? for(int j= 0 ; j< 3; j++){ //r ??¨?±??????? for(int k =0; k < 10; k++ ){ //?£? ??? ??¨?±?????????? list [i][j][k] = 0; } } } //???????????¨??? for(int i =0; i <n;i++){ //?????????0?????????????§????????????? ?£? ??? ??¨?±??????????????????????v ?????°???????´? list [sc.nextInt() - 1][sc.nextInt() - 1][sc.nextInt() - 1] += sc.nextInt(); } //??¨??? //b ?£? for(int i = 0; i < 4; i++){ //f ??? for(int j= 0 ; j< 3; j++){ //r ??¨?±??????? for(int k =0; k < 10;k++ ){ //?£? ??? ??¨?±?????????? System.out.print(" " + list [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, 38, 5, 13, 30, 4, 18, 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, 4, 18, 13, 13, 41, 13, 41, 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, 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, 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 ], [ 250, 11 ], [ 250, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 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 ], [ 22, 77 ], [ 77, 78 ], [ 77, 79 ], [ 22, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 22, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 22, 91 ], [ 91, 92 ], [ 22, 93 ], [ 93, 94 ], [ 22, 95 ], [ 95, 96 ], [ 22, 97 ], [ 97, 98 ], [ 22, 99 ], [ 99, 100 ], [ 22, 101 ], [ 101, 102 ], [ 22, 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 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 115, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 115, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 132, 134 ], [ 115, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 140, 142 ], [ 115, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 148, 150 ], [ 115, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 156, 157 ], [ 156, 158 ], [ 115, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 161, 167 ], [ 167, 168 ], [ 167, 169 ], [ 160, 170 ], [ 170, 171 ], [ 170, 172 ], [ 159, 173 ], [ 22, 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 ], [ 192, 193 ], [ 192, 194 ], [ 187, 195 ], [ 195, 196 ], [ 196, 197 ], [ 187, 198 ], [ 199, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 200, 205 ], [ 205, 206 ], [ 205, 207 ], [ 200, 208 ], [ 208, 209 ], [ 209, 210 ], [ 200, 211 ], [ 212, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 213, 218 ], [ 212, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 219, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 224, 230 ], [ 199, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 186, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 241, 246 ], [ 12, 247 ], [ 247, 248 ], [ 0, 249 ], [ 249, 250 ], [ 249, 251 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\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\ttry {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\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\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "int [][][] a = new int[4][3][10];", "a", "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\ta[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\ta[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\ta[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\ta[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\ta[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\ta[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\ta[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\ta[i][j][k] = 0;\n\t\t\t\t\t}", "{\n\t\t\t\t\t\ta[i][j][k] = 0;\n\t\t\t\t\t}", "a[i][j][k] = 0", "a[i][j][k]", "a[i][j]", "a[i]", "a", "i", "j", "k", "0", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String s = reader.readLine();", "s", "reader.readLine()", "reader.readLine", "reader", "int n = Integer.parseInt(s);", "n", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "String t;", "t", "String[] u;", "u", "int b", "b", "f", "f", "r", "r", "v;", "v", "for (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l < n", "l", "n", "l++", "l++", "l", "{\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}", "{\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}", "t = reader.readLine()", "t", "reader.readLine()", "reader.readLine", "reader", "u = t.split(\" \")", "u", "t.split(\" \")", "t.split", "t", "\" \"", "b = Integer.parseInt(u[0])", "b", "Integer.parseInt(u[0])", "Integer.parseInt", "Integer", "u[0]", "u", "0", "f = Integer.parseInt(u[1])", "f", "Integer.parseInt(u[1])", "Integer.parseInt", "Integer", "u[1]", "u", "1", "r = Integer.parseInt(u[2])", "r", "Integer.parseInt(u[2])", "Integer.parseInt", "Integer", "u[2]", "u", "2", "v = Integer.parseInt(u[3])", "v", "Integer.parseInt(u[3])", "Integer.parseInt", "Integer", "u[3]", "u", "3", "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 m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < 4", "m", "4", "m++", "m++", "m", "{\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}", "for (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "int o = 0;", "int o = 0;", "o", "0", "o < 3", "o", "3", "o++", "o++", "o", "{\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\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 p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "for (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}", "int p = 0;", "int p = 0;", "p", "0", "p < 10", "p", "10", "p++", "p++", "p", "{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(a[m][o][p])", "System.out.print", "System.out", "System", "System.out", "a[m][o][p]", "a[m][o]", "a[m]", "a", "m", "o", "p", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}", "m != 3", "m", "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\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\n\t\t\tint [][][] a = new int[4][3][10];\n\t\t\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\ta[i][j][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\t\n\t\t\tint n = Integer.parseInt(s);\n\n\t\t\tString t;\n\t\t\tString[] u;\n\t\t\tint b, f, r, v;\n\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\tt = reader.readLine();\n\t\t\t\tu = t.split(\" \");\n\t\t\t\tb = Integer.parseInt(u[0]);\n\t\t\t\tf = Integer.parseInt(u[1]);\n\t\t\t\tr = Integer.parseInt(u[2]);\n\t\t\t\tv = Integer.parseInt(u[3]);\n\t\t\t\ta[b - 1][f - 1][r - 1] += v;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int m = 0; m < 4; m++) {\n\t\t\t\tfor (int o = 0; o < 3; o++) {\n\t\t\t\t\tfor (int p = 0; p < 10; p++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(a[m][o][p]);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (m != 3) {\n\t\t\t\t\tSystem.out.println(\"####################\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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) { try { int [][][] a = 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++) { a[i][j][k] = 0; } } } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s = reader.readLine(); int n = Integer.parseInt(s); String t; String[] u; int b, f, r, v; for (int l = 0; l < n; l++) { t = reader.readLine(); u = t.split(" "); b = Integer.parseInt(u[0]); f = Integer.parseInt(u[1]); r = Integer.parseInt(u[2]); v = Integer.parseInt(u[3]); a[b - 1][f - 1][r - 1] += v; } for (int m = 0; m < 4; m++) { for (int o = 0; o < 3; o++) { for (int p = 0; p < 10; p++) { System.out.print(" "); System.out.print(a[m][o][p]); } System.out.println(); } if (m != 3) { System.out.println("####################"); } } } catch (IOException e) { e.printStackTrace(); } } }