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
7285 271 586 6543 216 932 1166 2169 585 4411 7632 359 640 9884 505 2717 9031 540 8469 7978 27 5883 3143 975 2925 2673 906 3228 551 10 6496 9554 799 7854 3413 932 1469 3294 637 3327 3329 702 1643 1856 867 4152 2007 18 6188 4095 700 1045 1587 424 4009 4085 195 7209 7877 390 6417 3939 642 9929 1182 611 997 1992 4 459 9509 168 8897 575 163 3451 1635 797 1202 7371 77 7 2693 425 8 2989 122 4116 5981 121 4371 6132 380 4616 7535 27 797 2915 105 8070 8092 616 3678 209 217 2232 3279 320 7995 4151 140 5039 7757 776 917 9641 29 2918 190 765 5032 8580 330 6860 6489 776 5210 4148 489 2186 6754 83 922 629 885 7664 2236 520 6207 1888 744 4303 912 792 8864 1945 916 4344 4917 253 720 9695 125 9824 9301 952 1930 3033 823 7385 822 336 8909 2876 646 5619 4943 884 927 3313 375 8813 204 530 2811 4276 803 7949 2929 727 9935 5111 975 9626 8150 209 7762 4512 679 2552 7164 945 7762 6284 784 4818 5130 33 3115 1341 131 6392 2608 354 5891 9083 106 692 8986 663 9619 1746 467 1909 1075 164 4696 6759 683 5168 5811 249 6267 7149 679 8766 7794
JOJ Answer
Shortest path length is 2133 The graph is not a DAG No MST exists!