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 94 683 13 35 34 29 28 24 8 95 845 0 52 296 1 12 171 52 57 397 82 66 368 8 1 940 33 2 379 36 85 301 18 56 749 75 68 520 76 79 588 70 32 3 70 69 715 46 73 337 47 33 285 95 20 500 58 56 661 44 64 807 95 69 353 4 33 588 24 7 143 36 90 94 49 62 428 36 39 593 23 68 416 36 22 654 17 94 613 71 58 841 65 94 771 59 48 801 81 96 661 26 11 323 50 86 727 57 20 703 94 54 755 9 58 583 63 2 289 86 69 448 15 84 272 62 46 830 11 67 794 1 69 341 10 92 306 42 39 106 86 75 564 43 17 702 99 41 775 86 57 445 62 29 262 31 32 549 3 74 584 31 70 755 80 30 551 0 31 105 52 60 410 73 63 722 76 6 646 40 49 789 56 3 730 25 55 517 44 6 167 71 44 250 6 95 95 19 74 266 42 82 984 95 74 242 3 33 350 10 96 730 47 93 721 70 53 275 54 36 998 80 0 561 23 56 836 93 18 618 64 70 200 7 5 820 96 45 844 99 64 351 14 59 636 57 58 929 91 99 70 77 0 612 56 19 788 30 79 835 77 94 289 77 88 567 11 60 48 35 99 786 18 38 89 25 91 211 50 75 795 89 17 940 57 97 551 11 44 426 62 91 930 56 62 341 70 79 129 44 0 69 92 71 842 90 68 911 27 84 144 67 97 699 69 43 19
JOJ Answer
Shortest path length is 54 The graph is not a DAG The total weight of MST is 724