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
903 279 883 691 907 782 194 786 174 617 105 103 252 643 896 390 922 3 740 91 487 615 70 144 500 111 396 297 147 428 949 137 961 204 282 976 434 908 571 416 788 254 558 829 64 381 774 623 738 743 413 412 277 954 21 998 37 572 788 533 483 2 984 476 363 535 169 777 328 153 193 23 93 368 280 796 195 110 43 959 220 288 129 694 386 247 993 521 958 39 138 60 49 496 236 254 378 186 640 304 170 435 404 458 300 158 621 940 996 570 858 677 469 512 801 820 447 604 707 922 689 502 75 603 286 976 295 744 460 846 530 571 134 632 717 943 397 999 855 68 358 385 939 632 119 180 806 781 127 619 665 391 749 813 540 658 135 21 562 794 991 915 239 61 293 86 861 826 258 735 465 945 200 51 646 136 421 266 856 134 541 491 389 611 240 755 804 146 17 825 121 928 57 882 691 215 537 635 765 756 549 330 452 604 806 756 421 280 585 72 14 409 545 141 297 300 589 820 716 956 914 689 474 273 102 931 745 165 598 181 770 494 89 689 517 135 862 908 512 475 982 426 369 929 270 924 598 351 196 200 86 486 862 643 95 594 70 684 893 111 24 601 811 56
JOJ Answer
No path exists! The graph is not a DAG No MST exists!