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
25 6 448 75 58 855 95 88 325 2 9 544 66 27 900 2 27 470 99 59 840 36 16 945 79 40 618 86 49 7 2 19 479 21 20 492 57 60 707 90 61 455 26 14 219 34 90 87 57 50 138 91 85 284 87 63 934 59 99 701 21 6 560 66 98 358 64 26 497 96 66 557 12 43 733 82 16 508 97 34 415 0 12 404 16 90 113 78 64 284 58 94 282 32 39 167 93 46 308 33 32 238 74 79 871 26 21 202 81 54 839 56 44 549 3 58 615 24 5 55 98 22 609 30 61 484 30 81 522 93 57 90 92 14 430 55 63 885 81 36 454 67 87 693 96 34 527 6 95 167 67 12 446 47 11 63 40 81 895 95 32 692 60 33 443 69 71 440 44 49 962 25 96 643 91 5 559 98 70 41 28 19 192 47 71 580 65 9 819 57 70 414 18 24 869 62 32 118 72 63 993 48 13 952 28 12 958 2 8 761 99 85 338 83 47 833 88 98 183 51 75 714 93 51 352 28 26 275 2 30 570 40 88 727 16 49 131 63 26 333 67 19 120 10 45 135 47 65 372 8 92 306 83 30 275 11 86 97 93 89 465 96 18 813 9 89 266 65 73 205 29 42 179 38 91 351 75 99 17 90 83 31 97 29 333 62 96 95 56 30 685 89 13 521 21 37 789 37 63 582 Shortest path length is 1021 The graph is not a DAG
JOJ Answer
Shortest path length is 1021 The graph is not a DAG The total weight of MST is 11919