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
148 107 197 358 645 385 785 463 452 204 275 477 191 866 961 245 683 82 329 370 10 112 757 575 186 379 205 40 549 301 860 502 342 143 400 192 389 45 192 845 465 691 905 760 498 604 34 499 773 697 340 993 199 430 555 752 786 859 843 345 620 993 651 154 89 372 961 844 472 663 798 466 645 498 725 733 998 461 901 643 484 466 169 580 583 714 285 784 857 657 446 862 140 587 115 443 261 254 473 947 936 223 412 53 620 167 782 904 182 264 263 968 277 492 539 348 885 193 144 488 533 899 990 611 302 408 174 256 707 407 594 890 726 947 447 3 29 647 557 573 354 134 351 362 565 287 856 466 719 245 163 253 468 500 652 24 585 881 368 843 459 718 904 913 622 960 398 196 119 785 813 928 923 605 9 256 601 627 1 36 451 41 649 842 250 128 621 701 82 464 401 887 90 832 955 107 2 942 42 723 408 558 699 799 571 867 892 444 517 321 822 256 565 762 42 679 391 768 370 11 389 178 665 199 690 4 112 655 182 735 463 328 752 199 62 200 548 620 927 573 861 399 276 471 711 523 46 171 624 508 723 574 131 786 970 339 608 57 644 81 9 438 969 538
JOJ Answer
Shortest path length is 705 The graph is not a DAG The total weight of MST is 117166