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
50049 012 0218 1324 1410 2510 2612 3720 381 4928 41013 51126 5126 61319 6143 7153 7162 8173 81817 91923 92014 102126 102218 112319 11247 12257 122621 132721 132819 14298 143022 15319 153223 163322 163416 17355 173629 183724 18382 19397 194027 20419 20421 214321 214424 224527 224612 23471 234821 244925 173312 343622 17313 49156 114528 314028 113529 18212 34320 4342 4342 Shortest path length is 86 The graph is not a DAG The total weight of MST is 661
JOJ Answer
Shortest path length is 86 The graph is not a DAG The total weight of MST is 637