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
6587
2876
1497
2526
4645
2147483647
2147483647
5619
9117
2147483647
8257
2147483647
6910
7781
7381
5966
742
2147483647
2147483647
4827
364
3629
3369
6547
6379
2185
5578
5522
2249
2147483647
4318
3013
4976
5573
2147483647
7612
2376
2839
121
298
4063
5000
9011
0
8323
6051
2147483647
6155
6893
2147483647
2147483647
2518
2147483647
2266
-9
28
2604
5349
5432
4378
7975
5044
4451
6775
2147483647
4040
9095
2147483647
2913
5051
2147483647
2696
8374
4286
0
7162
5783
72
7718
2147483647
2006
9905
6376
2147483647
2182
7129
7936
4970
8891
7921
5028
2147483647
1320
1704
-8
7915
7619
1570
667
2018
7644
4699
2865
277
7233
1317
9262
7031
8480
11898
2148
7125
2707
4584
1290
9286
2369
4286
232
1802
2147483647
1157
1016
1186
2147483647
6804
2649
6552
4277
4314
825
8918
4862
2824
2224
6230
1465
11061
2147483647
990
6219
2147483647
7199
3821
1951
177
1323
2016
4408
0
631
4480
3917
1308
21
5396
0
8288
2331
1364
8649
6749
3897
2961
2758
8507
5567
6112
2380
5645
115
5978
1401
4201
1366
5676
4265
4685
3422
5029
111
1448
7544
9628
439

JOJ Answer

35
27
-16
153
128
-29
117
123
130
-11
80
12
-12
125
95
133
225
21
149
158
55
112
-31
53
16
155
267
68
25
185
93
20
-12
193
25
15
-16
74
107
-10
159
15
101
99
338
47
46
55
34
66
307
240
19
61
75
47
9
68
15
23
55
22
-29
62
20
80
-18
-34
73
63
90
-9
194
77
9
5
47
146
16
17
-13
56
56
17
43
7
52
213
246
182
120
139
68
35
-36
96
43
92
-14
-27
77
9
68
-10
69
146
68
13
4
61
20
15
194
-11
145
26
116
239
-6
26
123
-5
20