This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
10
24
23
41
18
21
51
22
54
16
46
25
8
3
43
38
60
20
56
14
37
28
30
32
53
7
55
15
11
4
56
180
4
131
54
82
86
284
200
282
259
30
236
238
121
233
202
27
292
106
285
140
239
203
134
147
35
190
262
275
210
105
158
230
124
103
295
29
100
181
234
68
150
127
129
152
113
245
274
22
273
7
240
296
75
165
25
115
279
300
145
102
162
26
261
107
232
264
268
253
216
43
193
178
63
164
204
267
21
153
170
24
37
78
297
14
20
246
93
120
212
48
298
287
114
130
137
53
51
299
224
169
207
88
281
34
141
49
184
270
55
142
187
99
23
96
71
291
255
244
231
31
226
206
243
4
144
9
140
51
167
213
155
89
183
240
70
118
221
59
45
172
203
36
50
24
217
180
53
49
58
163
210
186
244
64
40
81
106
77
236
233
132
87
78
5
209
127
21
109
191
63
111
242
112
13
20
2
173
80
15
148
243
46
162
189
178
198
196
67
83
96
241
6
31
71
204
141
231
151
90
219
139
29
159
230
3
32
195
238
182
171
185
66
101
19
107
246
27
42
56
113
239
130
156
192
94
23
165
214
54
97
208
142
181
76
149
100
26
225
74
249
103
25
86
115
117
110
143
102
212
8
62
200
138
160
234
179
120
161
248
61
99
126
247
223
222
205
34
224
37
121
235
114
129
12
227
69
57
60
177
43
184
175
65
72
237
158
245
232
202
136
10
82
170
68
157
216
145
33
128
218
220
1
52
14
73
75
152
137
190
153
206
55
38
166
147
47
48
135
84
98
176
197
30
22
11
88
95
228
28
35
150
85
119
169
91
250
187
199
105
39
7
215
92
226
194
18
104
108
229
146
41
154
134
174
125
122
133
79
211
123
116
16
124
164
193
44
207
17
131
188
201
168
93
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |