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
3 302 941 847 580 171 351 759 179 538 412 909 412 743 301 640 326 953 199 436 786 413 763 192 120 816 490 680 358 753 744 403 840 851 586 729 97 474 637 762 222 651 450 98 614 933 293 879 819 595 638 152 675 207 550 188 896 213 54 87 785 401 82 196 230 902 319 10 222 730 386 179 806 528 254 213 864 876 727 311 662 104 357 983 318 108 383 994 291 132 510 200 97 143 747 705 507 480 773 597 381 364 345 93 236 921 172 764 527 21 105 370 936 949 245 627 60 14 965 597 693 634 156 557 507 177 282 532 827 538 244 67 308 918 37 755 489 761 418 500 247 21 378 248 746 522 156 383 626 74 143 360 625 422 438 238 305 562 948 428 77 766 690 501 603 144 742 20 458 420 67 156 50 528 883 906 984 279 271 275 879 339 449 733 110 234 907 761 988 931 937 354 489 175 277 775 270 532 328 656 788 526 314 908 138 123 961 187 413 903 204 684 202 211 232 134 743 113 899 995 477 612 833 671 201 589 510 516 205 938 676 275 574 177 628 133 279 633 469 863 861 208 934 430 113 765 215 488 849 760 24 317 639 748 450 342 6 202 884 686 395 881
JOJ Answer
No path exists! The graph is not a DAG No MST exists!