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
1009 0297 3920 6342 9888 1242 7896 3218 8973 8752 1833 6860 2558 7575 1737 5683 5233 0637 9246 9589 5135 3662 1435 0515 533 0490 4918 2177 8348 5763 7491 2846 2347 8491 9619 0129 0381 3553 3168 6071 2015 2990 465 2611 932 7944 7122 139 7013 1994 8693 161 6195 9742 0765 7622 5473 8218 5053 4541 4162 0859 9496 6776 4781 2449 4043 3068 4848 817 6958 107 7368 1510 5962 6475 276 9186 9051 8598 5827 7233 4325 3754 3485 6229 381 6514 8054 4225 0945 0945 Shortest path length is 45 The graph is not a DAG The total weight of MST is 69
JOJ Answer
Shortest path length is 38 The graph is not a DAG The total weight of MST is 43