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
6455 334 145 3565 2280 201 2222 1860 451 4495 6196 711 5231 5507 430 3707 2926 431 8342 1836 100 3403 3578 948 1133 9815 692 939 9551 446 5195 773 366 4978 7307 823 240 5454 609 9109 2438 686 2160 3263 28 615 4351 971 1693 6624 2 3018 6408 739 1995 7872 928 6023 5500 563 9097 7725 586 8701 9280 280 5585 4113 810 4640 5455 428 3293 1228 488 5110 7441 276 8669 8838 509 469 6046 444 6946 3477 980 3807 4495 206 8275 9595 398 7794 2452 89 226 7822 850 8825 202 573 6472 8645 167 2996 1818 815 4245 4066 869 3659 7771 491 6537 239 351 2216 2561 279 855 1675 482 9444 5091 541 4043 4859 801 3558 3813 684 6548 6105 360 1019 9890 632 7516 157 89 5780 2622 207 6571 817 321 7467 254 641 7838 9289 848 5823 3647 110 7025 706 783 5137 8703 294 1780 9255 646 2820 1342 546 6538 4720 311 9976 7486 650 8619 7056 24 7072 3026 98 258 7036 369 1344 2813 426 1006 7761 567 5735 2451 696 6432 7426 885 9707 2778 980 1687 7080 145 7388 3300 562 5302 9134 992 6932 4421 104 2114 2386 422 901 5049 831 6448 2084 973 3915 4810 306 9146 8744 9
JOJ Answer
Shortest path length is 7291 The graph is not a DAG No MST exists!