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

5183 73 911
3202 5103 909
159 9532 912
8157 8492 24
4962 5533 520
6135 793 312
3626 5118 274
294 7867 582
2270 1117 740
9991 607 577
612 7701 621
785 5797 689
1720 162 200
8714 5439 226
7109 5056 473
734 4216 531
3886 5213 712
6259 6952 623
8101 889 309
7460 8382 744
462 3238 191
6996 2017 27
8008 8208 804
7547 57 136
9965 1054 361
5880 2272 436
9636 2973 633
4001 1256 101
5577 4117 808
4901 4882 88
371 95 484
6244 2209 562
7484 3239 739
2040 882 9
3736 2968 860
2843 9499 335
1654 3890 378
1618 1643 71
8809 6077 766
5624 9849 179
2233 648 122
571 6960 822
6962 4658 79
8164 5340 535
9818 488 635
9904 7432 404
6334 2938 802
8179 2522 736
8963 9091 605
4698 5943 847
3344 9290 441
9024 9439 496
3578 2562 969
3432 9502 883
1777 2121 503
1686 434 916
5138 3678 508
997 1174 981
9563 146 671
453 9508 286
8555 9520 634
3277 6158 623
1164 68 303
4609 7194 751
8529 6375 442
996 1580 520
1749 3810 636
4246 4432 342
9517 8212 496
9501 3435 873
6415 1439 490
4250 1799 944
9341 5118 273
9058 3369 547
1547 9750 952
4563 4370

JOJ Answer

Shortest path length is 114
The graph is not a DAG
The total weight of MST is 59857