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

50000049999
1398211996125
2494044072183
15520316764
85402801890
3129636792773
27324808382
1498146877599
285143144305
1490441626113
1662940045749
2271725949782
361906227893
390951189877
1055530820347
2154433045405
120501955872
27306742966
3223935390450
181124919075
561017014960
2406622427471
287508299235
20917786325
2288233911815
1792017117815
263553967159
3949137027367
1188723674340
3179527706136
3400134025426
290612412681
685436288143
194795537878
584410254958
3511229705800
3926520108947
140912770521
36485417943
4749624180174
3957647769944
2698148869565
166507149905
1981240284212
1061544346389
4541221991274
495557796157
3545016128563
2708923091492
359509154943
153872722746
339372895486
113475253951
1279427404740
416681557885
167164427887
3316448925236
137253312193
778628723304
4671720798351
258521371364
1157040230841
2472647493345
843316028570
1259749000633
338971384250
3197134167623
1957823813784
3672312144184
114424473810
1692513465753
2220145032576
162759549246
1615527922945
2423533674593
870730151797
208

JOJ Answer

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