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
103 0 5901,0 INF 1,1179 0 0,2 INF 1125,0 INF 3,2171 0 0,6 INF 2670,0 INF 8,5174 0 0,9 INF 579,0 INF 10,5039 0 0,11 INF 7102,0 INF 14,2313 0 0,16 INF 5264,0 INF 17,1808 0 0,18 INF 7255,0 INF 20,3595 0 0,21 INF 5907,0 INF 23,5578 0 0,28 INF 6945,0 INF 32,1912 0 0,34 INF 2231,0 INF 35,2992 0 0,36 INF 3823,0 INF 37,2440 0 0,38 INF 1578,0 INF 39,7212 0 0,40 INF 6984,0 INF 41,3727 0 0,44 INF 302,0 INF 50,5192 0 0,51 INF 5196,0 INF 54,5109 0 0,55 INF 6741,0 INF 58,2000 0 0,59 INF 1246,0 INF 61,5430 0 0,62 INF 5555,0 INF 63,4836 0 0,64 INF 849,0 INF 66,7336 0 0,67 INF 2582,0 INF 70,371 0 0,74 INF 4881,0 INF 75,4044 0 0,79 INF 8864,0 INF 83,2140 0 0,85 INF 5593,0 INF 92,5450 0 0,94 INF 620,0 INF 96,8988 0 0,98 INF 5937,0 INF 100,8136 0 0,101 INF 9372,0 INF 102,8597 0 1,0 INF 439,1 INF 4,4606 0 1,5 INF 6546,1 INF 6,5169 0 1,9 INF 1985,1 INF 10,2418 0 1,12 INF 2951,1 INF 13,7575 0 1,15 INF 8151,1 INF 18,21 INF 1,21 INF 3754,1 INF 23,1081 0 1,24 INF 189,1 INF 25,2043 0 1,28 INF 7641,1 INF 34,6326 0 1,36 INF 4312,1 INF 41
JOJ Answer
338 174 851 407 530 215 646 219 321 249 351 275 116 155 290 268 558 1021 310 398 239 160 154 330 152 441 259 213 131 98 335 171 257 278 140 53 181 92 127 225 98 561 436 225 374 109 227 286 421 137 249 213 200 203 229 362 129 164 416 265 178 192 111 378 279 670 233 520 193 201 405 166 182 251 201 244 217 467 248 724 134 161 36 307 148 123 201 314 -18 511 243 161 107 244 243 112 332 373 100 94 183 639 229 60 206 154 247 230 111 171 84 273 115 186 655 115 95 341 156 143 298 352 199 168 219 140 810 265 342 257 193 378 278 539 219 639 212 82 448 127 263 147 527 77 642 524 230 69 313 272 352 362 712 78 358 670 346 387 283 266 113 211 169 103 109 246 180 180 324 293 279 231 225 171 94 531 54 91 160 304 217 245 129 241 247 267 325 46 146 19 337 376 168 180 181 178 333 102 454 421 377 247 674 286 222 99 201 64 -2 595 157 235 201 187 176 190 240 124 152 40 126 216 615 281 279 260 236 166 527 229 414 61 201 406 197 236 240 265 51 203 304 184 241 365 138 177 451 345 86 891 203 674 192 172 271 382 303 158 393 179 302 213