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
22 79 485 63 67 914 37 67 969 58 39 887 50 13 968 87 92 122 96 98 522 87 60 26 65 51 260 19 42 667 88 5 965 79 62 17 1 51 448 94 10 320 87 11 447 73 32 714 83 37 904 97 58 746 8 84 774 33 50 309 19 16 163 71 16 915 1 14 735 12 37 826 19 88 910 98 88 202 93 8 638 9 18 374 96 41 443 97 74 118 33 72 446 83 90 713 99 89 37 92 42 677 83 95 48 13 30 460 24 71 735 51 59 657 23 38 774 22 85 97 16 55 991 64 83 390 13 74 715 65 68 24 74 17 389 68 52 864 3 7 548 86 18 833 89 50 527 2 46 175 12 93 339 39 66 367 91 90 885 87 48 859 68 2 670 69 23 52 34 1 352 57 54 167 86 42 114 59 95 817 68 44 838 26 72 382 44 76 355 64 55 569 14 89 793 25 98 816 79 58 354 11 72 281 60 87 992 57 34 868 76 84 446 1 39 221 16 33 687 52 2 66 72 48 109 13 14 806 30 6 668 19 66 126 41 7 461 41 44 38 29 45 305 69 61 954 0 93 736 32 47 734 23 98 805 26 34 657 59 89 697 2 63 378 88 87 792 65 32 514 98 40 783 22 27 186 54 57 372 81 3 262 27 6 106 56 99 149 24 52 403 35 11 413 26 39 96 29 39 796 21 39 742 31 98 659 68 11 438 13 3 640 86 96 920 67 4
JOJ Answer
Shortest path length is 483 The graph is not a DAG The total weight of MST is 5566