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

10000999
448778172
183462605
666670457
351416685
175570392
751248125
760692454
191137970
65491460
43435757
5176595
887265424
252232707
18386122
180684223
5768861
772267404
9964580
914963893
511326383
757204836
50468016
8389975
996443574
9376069
298187187
946154993
74257183
229642325
715638464
201965904
84670229
25338958
476296235
218977214
245401836
90214523
866317786
411972441
78593549
568434334
515589923
765324425
16112817
24135197
759235306
798178556
199755621
578704326
49568360
101135207
393772207
309430266
323937551
275393159
279457602
652567713
296849983
560216395
65187405
836524511
55901213
329241959
1976699
755137163
147874713
871224137
97253371
181573202
370888925
36424693
928530553
944924839
447928201
840968269
208324944
102706341
569267374
576291488
58186795
544298932
225146572
903555857
332827909
1244061
940491509
284573926
627766593
298920556
982133254
713325158
237393898
925793185
26022356
664776954
656978305
778257453
28038559
57188283
543901227
37670549
832892121
393409512
467758189
824177111

JOJ Answer

Shortest path length is 1409
The graph is not a DAG
The total weight of MST is 120917