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

35
62
-16
357
872
-29
156
148
237
181
86
12
-12
142
828
140
481
21
149
158
114
460
-31
66
16
217
267
68
25
282
164
46
-12
227
25
27
-16
87
107
-10
180
15
366
136
338
81
62
168
34
304
307
240
24
61
146
107
9
68
15
38
114
22
-29
525
20
97
-18
-34
96
82
190
-9
311
77
49
5
47
208
16
17
-13
56
88
28
61
49
96
213
471
216
232
166
137
35
-21
178
43
116
-14
-27
77
43
68
-10
69
180
148
13
87
643
20
49
247
-11
147
26
172
239
-6
51
123
-5
26

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