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
Distance Matrix: 0 397 -555 -483 -271 334 -127 -428 -245 -392 -127 545 -650 -185 -60 -30 803 -364 -471 1046 0 400 349 684 149 828 527 710 563 828 1500 305 770 772 925 662 591 484 1294 1365 0 763 697 1449 1119 540 1001 854 1119 1301 596 1061 1055 938 2027 882 775 1528 1599 234 0 931 817 1353 774 1235 1088 1353 1535 830 1295 423 1172 2261 1116 1009 597 994 42 114 0 931 470 169 352 205 470 1142 -53 412 537 567 1400 233 126 897 1203 251 323 535 0 679 378 561 414 679 1351 156 621 746 776 1609 442 335 2304 1299 1010 1648 1707 1448 0 1550 1311 1862 1429 672 1604 2069 2065 1948 1961 242 1783 754 825 151 223 157 974 579 0 461 314 579 1017 56 521 646 398 1487 342 235 1623 1417 649 572 1346 1009 118 1189 0 1231 118 790 973 1347 995 1587 1440 -119 1152 483 789 -163 -91 121 726 356 -36 238 0 356 981 -258 207 332 362 1286 119 12 1505 1299 531 1022 1228 1448 0 1071 1260 1113 0 672 855 1229 1445 1469 1322 -237 1034 1806 760 1126 1109 1297 909 757 1287 639 1323 757 0 1065 1530 1532 1685 1422 520 1244 976 1047 95 1
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