Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
INF 346 INF 152 87 42 INF 110 49 INF INF 233 189 180 INF INF 249 319 INF INF 154 78 193 280 199 176 201 INF INF 68 213 237 INF 82 INF INF 240 204 162 299 INF 118 105 229 173 138 98 216 228 219 232 244 345 INF INF 68 INF INF INF 199 280 264 187 201 219 179 520 155 188 91 79 324 322 4 INF 287 86 INF INF INF 87 149 311 INF 79 INF 171 232 124 INF INF INF 232 180 219 334 223 96 INF 267 280 137 INF -6 153 INF INF 32 INF 171 INF 332 255 77 INF 155 97 72 118 INF 278 115 155 114 169 INF 348 INF 210 INF 25 12 INF INF 279 INF 261 INF 432 71 INF 72 INF 7 92 182 109 248 INF 134 INF INF 167 72 INF 222 256 68 83 249 116 343 179 287 81 103 193 151 86 151 217 INF 167 INF INF 88 241 100 INF 108 183 151 INF 305 INF 115 247 INF 146 281 INF 121 301 INF INF 192 245 146 424 INF 298 INF 94 INF 86 INF 94 222 12 125 INF 229 INF 248 304 245 121 110 561 INF 259 INF INF INF INF -9 359 155 157 127 INF 77 148 92 INF INF 208 21 INF 174 155 212 117 INF 97 600 -2 INF 68 40 INF 137 136 INF 494 151 348 188 137 252 236 121 123 -9 INF 67 162 149
JOJ Answer
245 237 326 152 62 42 77 110 49 518 97 223 115 180 114 80 198 319 44 28 111 57 52 126 101 94 85 76 90 68 150 139 49 82 206 272 213 96 -1 180 21 78 105 199 154 36 98 174 161 44 158 244 345 101 38 12 73 187 81 90 239 264 118 86 128 154 454 112 163 91 79 147 213 4 121 223 86 331 58 308 87 131 240 239 60 65 70 171 71 85 121 -8 232 169 126 64 169 96 138 171 250 137 130 -6 86 141 134 32 28 65 242 241 189 77 18 101 22 15 91 179 183 115 155 101 144 289 280 108 103 113 25 12 85 7 252 95 118 79 321 71 99 72 247 7 58 49 109 182 75 134 183 304 167 71 183 179 188 68 83 131 33 100 154 287 81 49 193 52 -9 104 131 70 140 297 338 88 99 55 54 86 145 93 81 170 172 13 167 32 128 110 84 114 250 19 74 165 207 144 424 159 140 51 71 92 86 145 50 192 12 3 72 160 167 186 125 196 40 72 297 33 121 286 262 93 233 -9 288 148 100 127 154 30 91 25 166 13 176 21 67 81 112 79 113 85 66 497 -2 148 -10 40 183 94 136 120 494 24 280 156 35 140 180 65 1 -9 106 7 132 31 125 -14 136 58 191 34 -10 33 14 71 27 185 224 98 112 140 156 128 112 74 48 161