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
13 7 270 92 38 966 17 71 28 6 12 182 88 72 92 11 2 930 39 69 127 43 77 561 94 89 951 32 3 865 35 85 494 14 77 640 36 64 703 69 85 242 2 82 881 24 7 812 26 7 309 4 1 540 40 61 439 61 57 609 23 21 79 20 58 189 26 29 920 84 66 797 75 51 29 1 7 919 41 72 236 58 0 194 16 24 482 58 98 473 52 16 772 55 95 773 18 46 615 4 97 412 67 88 556 15 31 498 77 78 665 70 85 473 74 94 14 20 21 950 85 78 205 82 72 389 84 18 263 41 5 238 6 25 539 84 77 979 11 48 689 21 83 734 41 8 301 95 53 954 71 48 977 32 46 879 79 29 861 86 95 687 96 37 817 25 17 78 1 26 58 54 53 984 60 12 138 0 33 793 47 60 757 59 6 8 14 18 347 69 1 403 22 6 741 94 60 216 53 58 286 25 28 957 51 87 330 58 46 991 69 29 67 60 22 154 59 36 410 35 65 881 62 47 351 33 16 299 36 2 286 68 35 139 47 1 371 27 78 261 84 27 140 67 93 373 97 69 754 72 59 201 54 81 436 71 36 909 53 32 841 66 50 340 60 21 599 62 95 711 7 84 129 20 80 726 23 6 358 0 22 649 10 88 98 31 18 38 25 60 838 7 54 903 5 90 388 62 16 741 Shortest path length is 424 The graph is not a DAG The total wei
JOJ Answer
Shortest path length is 424 The graph is not a DAG The total weight of MST is 5246