This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
1
2
14
10
9
11
8
12
13
6
7
5
4
3
15
1
2
12
79
28
4
6
14
5
11
13
31
22
9
3
18
19
8
15
17
27
21
73
23
39
10
29
40
61
50
16
20
7
37
33
30
36
49
24
41
42
82
32
56
25
35
54
65
57
81
55
108
38
43
44
45
47
53
67
34
58
48
46
26
51
69
75
52
66
63
59
60
68
71
86
126
76
64
84
80
77
62
72
98
89
96
83
78
88
99
101
97
92
87
70
91
100
93
94
95
106
128
102
104
118
116
112
121
105
110
90
85
114
134
119
120
107
127
122
157
74
103
109
124
117
115
111
125
148
140
136
137
129
130
133
139
142
123
113
132
172
151
138
141
135
143
162
147
144
183
145
150
164
131
152
163
182
155
156
146
154
149
173
190
160
159
168
181
174
176
165
171
170
188
189
200
179
167
193
153
158
191
177
184
180
166
195
196
197
194
169
185
199
161
187
175
192
178
198
186
1
2
10
13
11
5
14
3
4
7
6
20
15
8
9
12
17
34
80
21
19
24
52
16
25
81
22
18
30
23
26
27
33
41
28
31
35
36
113
29
32
71
40
37
68
75
79
45
38
42
39
48
57
58
47
46
63
76
49
44
51
73
119
77
50
53
93
55
43
61
62
86
66
78
56
54
65
67
69
83
59
70
72
84
97
127
87
91
64
60
88
115
74
82
85
89
156
103
90
96
100
98
92
99
111
116
101
112
95
104
108
150
120
118
102
106
133
128
138
134
125
94
105
110
107
126
136
171
129
114
117
137
139
124
109
121
122
141
132
142
123
130
145
176
154
153
135
140
149
147
131
144
163
173
177
143
146
155
189
164
151
148
157
178
180
183
152
158
160
167
165
194
198
174
159
161
192
182
195
175
184
197
166
162
172
185
190
168
169
193
181
200
199
191
188
196
187
179
170
186
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |