Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

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

551 733 94
831 77 925
149 371 797
348 711 203
261 105 367
980 239 805
95 700 102
676 303 913
802 484 154
848 953 651
774 86 935
244 477 707
551 914 663
143 678 953
605 955 433
255 663 3
561 97 510
653 866 944
489 939 298
996 684 845
983 267 556
224 689 920
206 601 729
251 965 492
123 841 554
186 897 81
285 857 91
252 352 736
226 148 85
532 798 492
467 995 738
101 480 489
921 290 471
901 264 174
103 462 363
116 747 393
731 274 140
81 518 413
254 165 14
241 797 411
57 83 815
150 272 642
86 953 841
130 924 666
658 160 611
959 999 630
435 33 444
614 897 524
933 593 534
571 217 143
325 968 868
422 676 928
738 18 923
349 189 660
883 39 676
461 959 872
12 23 586
605 646 782
816 7 598
42 881 246
870 188 896
963 588 126
250 733 364
544 632 331
904 190 863
963 117 465
943 242 688
307 33 354
109 22 19
327 711 647
730 200 936
227 747 472
520 643 495
654 12 850
864 411 1000
89 16 481
103 964 452
763 844 222
899 302 857
146 109 228
108 592 207
825 193 305
218 270 85
38 130 214
232 305 682
806 879 422
667 455 489
192 467 74

JOJ Answer

Shortest path length is 87
The graph is not a DAG
The total weight of MST is 6130