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
3059120
2694652
9732789
107714
6135414
80193
959583
403719
1068584
4391230
2329777
79451
1060456
658449
3833785
603159
9048300
682682
291497
2541782
5463646
2514416
5864823
6155617
9895225
6171798
947519
6046972
8574771
7823496
9185828
8135655
6417119
1897514
9391687
7841808
311997
4737610
270508
5051521
8458862
1910534
5531365
1765284
8144496
1299250
206972
5281632
5119461
3324613
1989145
8054187
2569646
7254615
6660956
361328
4441719
943619
8372771
5486263
1625229
4340691
614642
4022703
109267
1671642
3388873
1338702
120921
755833
5098628
5843656
87291
9588771
7319945
654928
5347205
3413237
9526236
6578889
452699
2994704
6898276
1828948
7867464
4930420
1933533
6523458
9617581
213930
6238821
7531318
8496903
7266746
3617479
5452532
2869273
3627990
4131152
618637
7837467
137270
9238966
177128
612182
887292
112930
3969127
4377561
9489951
323865
3585494
1477640
3664703
6985242
282881
247812
267309
41540
4061439
6157609
232179
2058189
2629920
8466797
755129
17919
4172236
580194
1624482
5898473
5216772
5595

JOJ Answer

Shortest path length is 424
The graph is not a DAG
The total weight of MST is 5246