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
30 59 120 26 94 652 97 32 789 10 7 714 61 35 414 80 1 93 9 59 583 40 37 19 10 68 584 43 91 230 23 29 777 79 4 51 10 60 456 65 84 49 38 33 785 60 31 59 90 48 300 68 26 82 29 14 97 25 41 782 54 63 646 25 14 416 58 64 823 61 55 617 98 95 225 61 71 798 9 47 519 60 46 972 85 74 771 78 23 496 91 85 828 81 35 655 64 17 119 18 97 514 93 91 687 78 41 808 31 1 997 47 37 610 27 0 508 50 51 521 84 58 862 19 10 534 55 31 365 17 65 284 81 44 496 12 99 250 20 69 72 52 81 632 51 19 461 33 24 613 19 89 145 80 54 187 25 69 646 72 54 615 66 60 956 3 61 328 44 41 719 94 36 19 83 72 771 54 86 263 16 25 229 43 40 691 61 46 42 40 22 703 10 92 67 16 71 642 33 88 873 13 38 702 12 0 921 7 55 833 50 98 628 58 43 656 87 2 91 95 88 771 73 19 945 65 49 28 53 47 205 34 13 237 95 26 236 65 78 889 45 2 699 29 94 704 68 98 276 18 28 948 78 67 464 49 30 420 19 33 533 65 23 458 96 17 581 2 13 930 62 38 821 75 31 318 84 96 903 72 66 746 36 17 479 54 52 532 28 69 273 36 27 990 41 31 152 61 86 37 78 37 467 13 7 270 92 38 966 17 71 28 6 12 182 88 7
JOJ Answer
Shortest path length is 424 The graph is not a DAG The total weight of MST is 5246