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 2548559 231014 3464144 556227 7377155 6557422 3137722 789522 9860729 413479 920660 7884464 6635295 8960605 556184 769650 485889 1887630 8376419 2545660 7158559 1421901 1188194 3159770 29297 2265256 036902 9290345 3368947 4912225 8559241 317842 3956117 9691918 118777 4649970 3998582 8047804 8964333 8020837 2687594 976539 2998831 017694 2193784 397390 3787284 375889 1866339 1456537 3638316 2661844 1039927 186905 5791675 5946537 3338463 4535513 5074803 3843682 7027533 7740807 7181442 856832 3069229 9764240 8138931 66796 9598300 2136965 8867568 3554242 2645364 8936443 1380811 7726609 6331142 1186121 6416704 9286314 513977 176289 9656708 4360649 879828 5773858 6542207 7293784 2086519 570774 6958851 8381278 18271 3211762 1686554 4793261 7321812 1270462 122615 486122 7695181 7816731 9636861 3490794 4590576 9457501 9918190 7360121 3042207 883778 194462 895785 2732909 569682 179143 340290 512113 738039 6925586 918518 4865973 6618989 389947 2337100 2294113 8991273 958374 5161436 6748213 9276605 8881510 419587 16
JOJ Answer
Shortest path length is 2 The graph is not a DAG The total weight of MST is 571