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.
INF
36
-1277
-1277
3127
7200
7075
5065
INF
-1203
2573
INF
1240
2528
3143
4352
4885
-1564
-2769
1288
1558
-1147
INF
-2151
INF
6529
INF
INF
-4456
INF
INF
3418
INF
-3388
-459
725
1001
-526
3918
4257
INF
1292
INF
5299
INF
1979
3167
INF
2107
1880
8517
516
-1920
84
87
6589
INF
9502
4271
-58
1945
2741
2365
-880
-1102
2033
INF
8456
INF
1171
3061
INF
1891
5497
4415
7041
1720
-1579
3977
-2258
-865
-318
3906
4068
3410
2412
1942
1418
8278
84
1648
1864
-403
INF
INF
1942
3697
INF
-1384
INF
INF
INF
-3641
3274
INF
-56
4064
7496
0
INF
2020
6553
760
5141
4719
1440
INF
7275
4619
1175
INF
1478
4327
2435
2655
INF
INF
8548
402
4160
5840
2339
-1956
-1614
2731
1247
4313
-588
2220
4242
3852
1332
2284
2368
5989
-524
1566
1032
INF
3039
8618
2623
INF
3460
3439
3601
697
-2939
9338
-10
1829
3458
443
1491
30
6234
INF
-980
-2578
3831
2921
1746
3056
-1581
8827
4885
929
2731
-1038
1712
INF
INF
-3871
5465
-3725
INF
6768
5048
1574
-2739
1180
INF
-2290
1441
7221
INF
5309
INF
INF
2217
INF
1154
6143
98
INF
1766

JOJ Answer

Invalid graph. Exiting.