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

100099
5218469
443337
6680791
184251
6360369
7027642
3833440
553336
1027159
5416851
2382547
959773
3881217
3328378
8736146
441276
8579865
8378478
4015377
450568
2473267
5159927
973353
360744
574730
1743918
3429455
022595
5948713
2927326
4847469
02627
336279
3781641
795874
9067157
9367965
8051926
3926893
214590
9995603
6142778
6327809
5251134
5278976
901264
4715555
585982
8035506
2490957
590633
4895426
753524
2150449
8376330
4361513
1744840
7447324
312815
4865367
918721
841948
299510
5028472
5335145
626891
599429
4296329
2568644
77043
3037820
2942386
562371
7283139
8758991
5544881
6740820
862072
7652293
6963550
4314285
2445543
9135444
9894612
194184
6851905
2822638
5314191
6018353
2188261
8256264
2522326
5363909
740482
1580772
4971559
247286
6542370
378760
6336912
1698809
227325
4347409
304717
42128
8678784
7999977
7024816
788974
3614830
6351874
7086180
284262
5748581
6718662
9188911
2038284
9084292
978428
8650830
5044751
7558617
739687
3914996
7185886
1533894
7463460
283722
3335405
1893645
863182
6190318
2049

JOJ Answer

Shortest path length is 929
The graph is not a DAG
The total weight of MST is 12237