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

2837
3012
2156
4321
972
INF
7411
4644
3636
3929
3261
4227
2372
957
2613
INF
1721
INF
4425
3056
87
1784
2555
5421
3526
INF
INF
3938
2636
INF
1309
INF
2355
2595
INF
487
INF
1999
INF
INF
INF
2819
915
7174
63
INF
780
INF
INF
-1868
3421
2684
3960
INF
6295
598
3346
INF
4380
INF
187
2463
3548
INF
820
INF
4666
INF
INF
INF
1671
INF
1554
330
INF
3816
INF
INF
INF
1837
INF
1124
3392
786
104
1593
4579
3769
2426
INF
2621
3950
561
2839
-801
939
-410
4338
INF
INF
INF
1700
3805
INF
INF
2748
847
598
1535
2468
INF
179
2287
INF
INF
3229
INF
3224
2250
761
INF
326
INF
INF
3175
INF
INF
1491
2754
INF
3301
4043
2292
1932
1195
INF
2604
3855
INF
INF
1103
4014
1950
3809
882
1094
INF
1128
INF
1546
1736
3294
45
2312
874
INF
4750
1957
3818
3018
INF
3976
INF
INF
4173
4691
INF
INF
1934
981
INF
2794
3745
INF
5152
INF
3922
INF
1430
2593
INF
INF
579
INF
3367
4210
599
4314
3097
INF
INF
2554
1861
4357
283
INF
4249
1312
4632
4499
3999
2180
2766
1302
2736
1916
1971
INF
INF
4294
4638
INF
2711
INF
142
INF
3603
3637
INF
4003
4354
2815
INF
299
3011
110

JOJ Answer

Invalid graph. Exiting.