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

Invalid graph. Exiting.
14346
36
-1277
-1277
3127
7200
7075
5065
6868
-1203
133
16140
1240
2528
3143
4352
-4059
-1564
-2769
794
1558
-1147
INF
-2151
INF
6529
-1731
1195
-4456
INF
6546
3418
7667
-3388
-459
725
1001
-526
3918
4257
5014
1292
2458
2675
INF
1979
3167
2651
2107
1880
3932
516
-1920
84
87
6589
5906
9502
-2212
-58
1945
954
2365
-880
-1102
2033
1809
541
INF
1171
3061
INF
1891
5497
3648
6020
1720
-4656
3977
-2258
-865
-318
3906
4068
-987
2059
1942
1418
1117
84
1648
1864
-403
5065
5536
1942
3002
5053
-1384
1690
-1035
7290
-3641
3274
INF
-1742
4064
894
0
-1071
2020
6553
760
63
4719
1440
INF
7275
4619
1175
-3234
1478
4327
2435
294
INF
-1618
8548
402
4160
5840
2339
-1956
-1614
2731
-499
4313
-588
2220
4242
3852
1178
2284
2368
3813
-524
-372
1032
7540
-6751
-830
2623
-4881
3460
1557
1684
697
-2939
3869
-10
1829
3458
443
1491
30
6234
INF
-980
-2578
3831
2001
1746
2423
-1581
8205
-4059
929
2731
-1038
-2086
815
INF
-3871
5465
-3725
4326
6768
5048
-3775
-2739
1180
472
-2290
1441
7221
8353
5309
6404
3884
2217
INF

JOJ Answer

Invalid graph. Exiting.