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
100099 1340781 3596459 2729426 399462 2215799 5974534 1721905 9341294 4288571 3945667 840581 817742 8221969 6261392 151528 1487487 7813592 5424387 9925901 1646350 255714 9463430 575734 3196749 1144941 495825 5517941 6742860 7556966 5016810 592442 7242902 473079 1278274 8817358 6576251 2931817 1758823 762409 292496 3082205 5090135 6367914 3253682 9828380 527621 058449 1012882 7058996 8043644 581292 9516962 7545890 9417624 1752499 882153 1250571 439390 663214 1793670 7235455 181542 3314990 2568813 8182877 3642479 7567182 2066342 9966535 2744217 3499644 1638171 4819180 752799 603572 2463585 6315436 6424210 3687453 511520 6241545 2580209 4334976 1350387 1844623 650973 5488839 45122 7917860 4630516 743944 5076995 8285291 6612442 4916468 61757 7096459 483386 5236877 651959 69999 256448 7558855 9588325 29544 6627900 227470 9959840 3616945 7940618 86497 219479 2120492 5760707 9061455 2614219 349087 5750138 9185284 8763934 5999701 216560 6698358 6426497 9666557 1243733 8216508 9734415 012404 1690113 7864284 5894282 32
JOJ Answer
Shortest path length is 1021 The graph is not a DAG The total weight of MST is 11919