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 1 28140 2 62160 3 10310 4 19300 5 67530 6 51230 7 30590 8 39540 9 6700 10 10390 11 4470 13 67930 14 20300 15 68500 16 17020 17 74060 18 60150 19 4320 22 34520 23 40100 24 57690 26 14930 27 11720 28 58950 29 18500 30 26390 31 26750 32 45600 34 25830 35 79310 37 59580 38 28070 39 13590 41 26340 43 16770 44 40550 45 21070 46 18690 47 2020 48 66960 49 51670 50 34020 51 89200 52 64810 53 32040 55 52550 56 21600 57 87830 58 -70 59 50 60 50250 63 57700 64 910 65 14570 66 13620 67 7830 68 67870 69 34680 70 93350 72 64580 73 17850 74 33230 77 63760 78 45560 82 73400 84 26770 85 1390 87 93120 89 22430 90 44720 91 56430 93 31470 94 79470 95 44390 98 22000 99 76800 100 37480 103 72510 105 86530 106 9230 107 25790 108 74670 109 27180 110 44220 111 72580 112 83100 113 28260 114 49150 115 24660 118 12800 119 19940 120 53570 121 73181 0 27361 2 77841 3 36111 6 91681 7 26651 8 41921 9 71291 12 2811 13 81091 14 25271 16 8001 17 6501 18 91201 19 85581 21 47011 23 67571 24 36441 26 34381 28 61931 29 28931 30 20271 32 92451 33 

JOJ Answer

245
237
326
152
62
42
77
110
49
518
97
223
115
180
114
80
198
319
44
28
111
57
52
126
101
94
85
76
90
68
150
139
49
82
206
272
213
96
-1
180
21
78
105
199
154
36
98
174
161
44
158
244
345
101
38
12
73
187
81
90
239
264
118
86
128
154
454
112
163
91
79
147
213
4
121
223
86
331
58
308
87
131
240
239
60
65
70
171
71
85
121
-8
232
169
126
64
169
96
138
171
250
137
130
-6
86
141
134
32
28
65
242
241
189
77
18
101
22
15
91
179
183
115
155
101
144
289
280
108
103
113
25
12
85
7
252
95
118
79
321
71
99
72
247
7
58
49
109
182
75
134
183
304
167
71
183
179
188
68
83
131
33
100
154
287
81
49
193
52
-9
104
131
70
140
297
338
88
99
55
54
86
145
93
81
170
172
13
167
32
128
110
84
114
250
19
74
165
207
144
424
159
140
51
71
92
86
145
50
192
12
3
72
160
167
186
125
196
40
72
297
33
121
286
262
93
233
-9
288
148
100
127
154
30
91
25
166
13
176
21
67
81
112
79
113
85
66
497
-2
148
-10
40
183
94
136
120
494
24
280
156
35
140
180
65
1
-9
106
7
132
31
125
-14
136
58
191
34
-10
33
14
71
27
185
224
98
112
140
156
128
112
74
48
161