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