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
22056 31505 476 41904 37594 524 22582 41871 535 11594 8292 242 48474 18286 892 41431 8388 377 11244 38856 341 43585 38549 953 1259 17947 512 33314 42672 321 10446 12422 51 37726 43113 710 19807 26175 489 44328 25561 856 6740 39656 61 12728 24573 260 17010 17283 793 46655 3079 66 30140 42952 49 10469 48928 699 19413 34543 178 19628 47555 963 32548 49725 887 37523 10585 651 40510 8778 477 26167 27235 133 635 4335 715 44530 17707 632 12717 24621 284 4811 13555 256 13186 46383 148 859 4158 140 25746 20862 843 19244 7599 402 4838 1204 747 22973 36832 583 49463 49341 632 13664 18064 780 22736 23403 478 31196 34045 142 43011 29378 744 2819 30393 840 5263 35335 956 3190 29690 309 40604 28981 559 28905 35313 434 36763 12887 853 19017 25994 663 3860 43149 875 7158 22620 703 769 18800 199 19483 44293 516 33728 30724 390 3112 26711 237 30587 20525 721 48011 46470 670 2572 21985 410 48081 39589 82 22175 21918 826 41113 1877 482 47030 19914 763 15264 12643 840 3834 49582 53 46979 45729 540 37446 30372 453 45905 36890 342 1
JOJ Answer
Shortest path length is 5176 The graph is not a DAG No MST exists!