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
0 2 32610 4 91780 5 85560 6 34590 7 49420 8 58060 9 61730 11 31500 12 67510 13 24350 14 8510 15 26360 16 6570 17 70840 18 14311 0 86631 2 6331 3 86861 4 10991 5 15201 6 20511 7 74751 8 33561 10 2151 12 5631 13 82131 14 1511 15 23201 16 86691 17 58761 19 47252 0 8282 1 70632 3 47992 4 7812 5 21772 6 9682 7 20042 8 53562 9 7672 10 91132 11 35762 12 32652 13 31822 14 26212 15 78592 16 15272 17 44412 18 85902 19 17803 1 88373 2 68723 4 94863 5 92263 6 27633 8 61663 9 13593 10 86943 12 26073 13 14273 14 92153 15 2313 16 21683 17 88653 18 83 19 15484 1 53454 2 27724 3 72514 5 64284 6 854 7 43404 8 82844 9 74854 10 45704 11 27324 13 71944 14 45974 15 82894 17 70024 18 23714 19 91895 0 61295 1 13605 2 39335 3 26435 6 11895 7 31505 8 91375 9 81635 10 10215 11 88175 12 80575 13 32675 14 19195 15 37325 16 11135 17 35475 18 6955 19 14316 0 63196 2 13896 3 19176 4 37606 7 51046 8 82536 9 95646 10 26816 11 83556 12 36886 13 82686 14 82236 15 29806 17 4806 18 24696 19 71187 0 23107 1 60237 3 82557 5 10247 6 70817 9 49587 11
JOJ Answer
1593 695 852 911 497 2547 1796 1957 1472 1454 941 763 2067 2130 1389 980 1346 391 1680 1094 760 620 2894 151 919 1071 2643 650 432 1476 2288 1280 1659 854 2002 1035 850 1181 1331 851 2374 1687 3220 2341 1156 1859 1039 1469 856 8 1248 919 1405 2172 1365 866 3674 1863 2044 1796 1980 2676 38 1661 1315 1059 1360 198 701 480 1896 2567 1770 1519 3714 650 2461 3065 3054 851 2004 1636 2172 896 899 1695 1099 1551