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

559
-1820
-7980
-7980
-1243
-1181
-5730
5065
-1834
-1203
-2989
16140
-733
-6264
3143
288
-4059
-1564
-2769
-659
-505
-3382
1912
-2151
974
-4728
-4332
-22
-4702
4363
-1889
-5029
-3777
-3388
-5629
-2983
-487
-526
-2723
4071
989
1292
2458
2675
1417
-3639
2323
2651
-2380
1880
8517
-3603
-1920
84
87
-1567
INF
9502
-2212
-58
14
954
-348
-5884
-1513
2033
-1518
8456
377
-1676
-3029
-4520
1891
-1460
3648
6020
-2000
-1579
-2688
-2258
-865
-885
3906
932
3410
1218
1942
-8087
-6083
84
1648
1864
-403
-521
4839
1942
3002
INF
-1384
INF
-1035
7290
-3641
-6853
6008
-1742
4064
-7384
0
-1071
2020
4023
-6261
63
4719
1440
-5436
2266
435
-2987
-3234
1478
1521
-1906
-3693
INF
-1733
2248
-61
-4302
-6688
-1246
-1956
-1860
2731
-499
1112
-5591
-1283
4242
3852
-685
-7095
-7262
-2293
-524
-7199
-4241
-595
3039
8618
2623
-6744
-6145
-1087
1684
697
-2939
3869
-10
-4534
3458
239
-2246
30
3978
-485
-980
-2578
-231
2001
1136
-7975
-6168
4088
-4059
-928
2463
-1038
-6014
815
7727
-3871
-3306
-3725
783
-3168
5048
1574
-2739
-1864
-1017
-2290
-43

JOJ Answer

Invalid graph. Exiting.