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
90379 8854 INF INF 51812 306891 INF 42622 INF 49030 236517 91481 36221 61617 5954 6032 INF 5545 4484 INF 6284 33783 22484 10574 189428 66665 115623 19307 75659 16059 31056 75659 13946 64326 16716 119225 141462 163039 128859 155761 45190 16059 42180 42622 113569 55918 12252 10952 164126 37714 70157 36567 328791 INF 9769 INF 119225 INF 91481 42180 306891 INF 16059 INF 112400 146195 50874 4731 9545 13253 INF 12558 10574 INF 39830 INF 8324 244962 618347 71006 36650 42117 702504 73272 6032 51399 20282 383059 INF 9413 129755 179159 5545 INF 61269 16716 36221 61269 76331 16716 13253 122074 60420 91877 INF INF 13946 55918 6032 59953 51812 39791 42947 189428 INF 18497 122074 53352 36221 INF INF 15185 164126 INF 57297 80775 29548 10185 22536 30375 INF 31056 INF 8324 INF 66665 INF 41523 8175 164781 62191 65557 18497 21316 INF 189428 49983 17791 23462 7130 INF 18497 119225 122074 INF 38204 268950 INF 15573 38081 324494 19229 13946 45190 105488 516183 42180 20282 INF 702504 INF 18217 163039 36767 42180 5954 476486 50286 2
JOJ Answer
925 -247 499 1707 537 1055 1351 843 1009 801 1116 1535 542 578 597 619 1622 970 216 1311 149 305 1515 1806 564 -258 1685 483 540 1505 789 540 151 -374 -342 1229 1469 1548 1323 2261 122 1505 470 843 1172 356 -127 1599 1322 114 683 1109 233 -152 -120 1244 1229 1009 1535 470 1055 -195 1505 1449 441 1948 801 181 -279 -84 323 1047 1806 1400 -12 1400 817 596 107 149 320 352 342 1189 619 222 760 -471 323 334 414 -127 970 499 697 -342 542 697 1065 -342 -84 520 1034 378 118 1609 151 356 619 1260 537 169 743 564 1707 754 520 940 542 1244 344 -245 1322 1422 121 31 157 5 251 1299 931 789 1707 817 1016 -258 119 1010 828 286 563 679 754 200 119 564 910 238 226 -207 1311 754 1229 520 2065 373 1604 0 349 1448 746 579 151 122 1073 -364 470 760 854 342 323 2062 1548 470 470 597 235 -91 2027 226 1015 442 -163 2198 521 1274 1299 1465 743 151 -91 2304 1550 578 -163 342 356 149 242 233 378 1465 970 1274 591 984 1914 1536 442 970 1311 1203 1010 373 562 830 789 107 1301 1536 1015 -175 373 0 -207 828 1297 579 356 31 356 672 1322 1274