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 0126 026 038 1416 152 1615 272 2828 2919 3108 3119 31217 41327 41410 41525 5162 5179 51810 6192 6207 62122 72213 72320 7242 82523 82613 82724 92822 9292 93013 103118 10325 103319 113429 11356 11363 123719 123814 123910 134023 13410 13421 144311 144413 144520 154613 15471 154810 164925 373020 493217 354013 32019 35114 2252 74719 393127 36414 9229 151911 19012 252316 26281 464513 42341 10015 17513 343316 1805 282323 41158 363410 41364 374214 18440 3161 2201 46159 2316 29918 33454 202426 412410 62515 381625 82112 17722 48018 29302 62915 81510 26254 11239 363522 4589 7252 272126 13479 173918 10366 33246 43427 364723 211725 46327 3367 1654 374325 27328 352421 63816 164416 261512 40260 251129 33359 44131 35106 292123 4952 453424 39459 400 192623 4166 492411 1317 1522 310 35189 9144 37520 93326 17382 25486 16391 20495 17426 6119 01317 374714 18728 153115 308 14218 3864 23327 11415 304610 304610 Shortest path length is 32 The graph is not a DAG The total weight of MST is 327
JOJ Answer
Shortest path length is 28 The graph is not a DAG The total weight of MST is 193