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
13 40 781 35 96 459 27 29 426 39 9 462 22 15 799 59 74 534 17 21 905 93 41 294 42 88 571 39 45 667 84 0 581 81 77 42 82 21 969 62 61 392 15 1 528 14 87 487 78 13 592 54 24 387 99 25 901 16 46 350 25 57 14 94 63 430 5 75 734 31 96 749 11 44 941 49 58 25 55 17 941 67 42 860 75 56 966 50 16 810 59 24 42 72 42 902 47 30 79 12 78 274 88 17 358 65 76 251 29 31 817 17 58 823 76 2 409 2 92 496 30 82 205 50 90 135 63 67 914 32 53 682 98 28 380 52 76 21 0 58 449 10 12 882 70 58 996 80 43 644 5 81 292 95 16 962 75 45 890 94 17 624 17 52 499 88 2 153 12 50 571 43 9 390 66 3 214 17 93 670 72 35 455 18 15 42 33 14 990 25 68 813 81 82 877 36 42 479 75 67 182 20 66 342 99 66 535 27 44 217 34 99 644 16 38 171 48 19 180 7 52 799 60 35 72 24 63 585 63 15 436 64 24 210 36 87 453 5 11 520 62 41 545 25 80 209 43 34 976 13 50 387 18 44 623 65 0 973 54 88 839 4 5 122 79 17 860 46 30 516 7 43 944 50 76 995 82 85 291 66 12 442 49 16 468 6 1 757 70 96 459 4 83 386 52 36 877 65 19 59 69 9 99 25 6 448 75 58 855 95 88 325 2 9 544 66 27 90
JOJ Answer
Shortest path length is 1021 The graph is not a DAG The total weight of MST is 11919