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

0
2147483647
3261
2147483647
9178
8556
3459
4942
5806
6173
2147483647
3150
6751
2435
851
2636
657
7084
1431
2147483647
8663
0
633
8686
1099
1520
2051
7475
3356
14836
215
11813
563
8213
151
2320
8669
5876
10094
4725
828
7063
0
4799
781
2177
968
2004
5356
767
7278
3576
3265
3182
1679
3464
1485
4441
2259
1780
7700
8837
6872
0
7653
9049
2763
8876
6166
1359
8694
10448
2607
1427
8551
231
2168
8865
8
1548
3600
5345
2772
7251
0
4949
85
4340
8128
3539
4570
2732
5908
5954
4451
6236
4257
7002
2371
4552
2821
1360
1993
2643
2459
0
1189
3150
4716
2760
1021
5191
1923
3267
1511
2874
1113
3547
695
1431
2217
4926
1389
1917
2170
3566
0
3393
6745
2156
2681
4902
3688
3344
3068
2148
2874
480
1925
3169
2310
2384
3017
3667
3483
1024
2213
0
5740
3784
2045
5460
2947
4291
2535
3898
2137
1090
1719
2455
2663
1727
2360
4828
2826
2640
2911
4150
0
3127
1942
2057
489
5098
1878
1709
3320
3391
2225
4071
4284
3357
3456
3984
4237
1997
2067
5147
4846
0
3018
6903
3920
4819
2465
598
3110
2547
2692
3428
1078
2400
250
2567
1031
2427
650
2254
5606
101

JOJ Answer

1593
695
852
911
497
2547
1796
1957
1472
1454
941
763
2067
2130
1389
980
1346
391
1680
1094
760
620
2894
151
919
1071
2643
650
432
1476
2288
1280
1659
854
2002
1035
850
1181
1331
851
2374
1687
3220
2341
1156
1859
1039
1469
856
8
1248
919
1405
2172
1365
866
3674
1863
2044
1796
1980
2676
38
1661
1315
1059
1360
198
701
480
1896
2567
1770
1519
3714
650
2461
3065
3054
851
2004
1636
2172
896
899
1695
1099
1551