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

13982 11996 125
24940 44072 183
155 20316 764
8540 2801 890
31296 36792 773
27324 8083 82
14981 46877 599
28514 3144 305
14904 41626 113
16629 40045 749
22717 25949 782
36190 6227 893
39095 1189 877
10555 30820 347
21544 33045 405
12050 1955 872
27306 742 966
32239 35390 450
18112 49190 75
5610 17014 960
24066 22427 471
28750 8299 235
2091 7786 325
22882 33911 815
17920 17117 815
26355 39671 59
39491 37027 367
11887 23674 340
31795 27706 136
34001 34025 426
2906 12412 681
6854 36288 143
19479 5537 878
5844 10254 958
35112 29705 800
39265 20108 947
14091 27705 21
3648 5417 943
47496 24180 174
39576 47769 944
26981 48869 565
16650 7149 905
19812 40284 212
10615 44346 389
45412 21991 274
49555 7796 157
35450 16128 563
27089 23091 492
35950 9154 943
15387 27227 46
33937 28954 86
11347 5253 951
12794 27404 740
41668 1557 885
16716 4427 887
33164 48925 236
13725 33121 93
7786 28723 304
46717 20798 351
25852 1371 364
11570 40230 841
24726 47493 345
8433 16028 570
12597 49000 633
33897 13842 50
31971 34167 623
19578 

JOJ Answer

Shortest path length is 5676
The graph is not a DAG
No MST exists!