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

7440 69
35
11 41
27
4 40
-16
55 42
153
66 12
128
21 64
-29
59 9
117
26 9
123
25 31
130
4 19
-11
28 32
80
18 66
12
24 28
-12
36 56
125
71 1
95
18 57
133
73 0
225
71 68
21
37 57
149
73 59
158
37 32
55
62 8
112
1 28
-31
60 62
53
59 66
16
62 23
155
45 48
267
54 66
68
34 44
25
28 7
185
0 31
93
18 54
20
4 53
-12
22 17
193
19 18
25
27 18
15
4 40
-16
61 49
74
49 25
107
16 40
-10
51 56
159
26 37
15
34 42
101
20 36
99
64 53
338
18 33
47
55 52
46
59 13
55
39 18
34
22 1
66
64 14
307
45 32
240
22 43
19
70 67
61
25 27
75
43 18
47
42 14
9
0 25
68
2 50
15
38 58
23
37 32
55
32 46
22
1 63
-29
31 0
62
71 28
20
5 23
80
24 61
-18
7 64
-34
13 23
73
69 28
63
34 0
90
18 40
-9
38 17
194
54 46
77
24 35
9
26 72
5
56 67
47
25 23
146
63 72
16
33 43
17
4 46
-13
49 43
56
61 53
56
2 27
17
39 41
43
3 18
7
27 13
52
45 71
213
73 42
246
40 9
182
40 13
120
65 57
139
40 32
68
14 53
35
1 52
-36
70 16
96
28 71
43
8 26
92
47 73
-14
32 71
-27
70 59
77
23 40
9
50 10
68
65 73
-10
55 50
69
52 9
146
70 34
68
8 62
13
5 32
4
29 8
61
8 43
20
32 50
15
21 17

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