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

1000009999
5590975678
72156463370
61696934136
62853482639
83705167546
65681965961
87827153956
71272061263
34794237510
66108001355
73643565810
79507655987
78336097783
41153179642
83045162247
73292588423
92644282279
5821320829
9116504250
59645524108
55499003339
9076995180
40223926734
5585727064
86698161755
57865121575
89346480424
55855176336
18352852720
68284675844
70828590435
416983824
128964943
8320459280
95156407468
3545175959
86972033165
17215129643
8742757971
22643892369
12159090486
863192954
86764286685
5672791374
7827357440
4039780684
3363128590
50442514423
99118980584
2899162939
67146330369
89968915911
2349957327
70852329462
76287813652
85333177789
20504999263
8508769817
8427486600
44395554219
57096061283
4182660291
32461605379
6753018631
38874184234
83666921840
94254386559
63175733590
49188452440
99328244994
20482945757
14977990271
95107344582
59805156291
91131058758
57281852490
27432813740
7567968377
22001816186
15113062696
3181571698
5799901852
61036333967
16063993689
3046321070
21678346965
118411125

JOJ Answer

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