# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1023271 |
2024-07-14T14:38:52 Z |
snpmrnhlol |
Maze (JOI23_ho_t3) |
C++17 |
|
2000 ms |
1161944 KB |
#include<bits/stdc++.h>
using namespace std;
const int N = 3001*3001;
const int inf = 2e9;
vector <char> v[N + 2];
vector <vector<bool>> vis[N + 2];
int k,n,m,sx,sy,ex,ey;
array<int,2> q[N + 5];
array<int,3> q2[N + 5];
array<int,3> q3[N + 5];
int d[8][2] = {{1,0},{-1,0},{0,1},{0,-1},{1,1},{1,-1},{-1,1},{-1,-1}};
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int ans = inf;
cin>>n>>m>>k;
cin>>sx>>sy>>ex>>ey;
for(int i = 0;i < n + 2;i++){
v[i].assign(m + 2,0);
vis[i].assign(m + 2,vector<bool>(3,0));
v[i][0] = 2;
v[i][m + 1] = 2;
}
for(int i = 0;i < m + 2;i++){
v[0][i] = 2;
v[n + 1][i] = 2;
}
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
char ch;
cin>>ch;
if(ch == '.'){
v[i + 1][j + 1] = 0;
}else{
v[i + 1][j + 1] = 1;
}
}
}
vis[sx][sy][0] = 1;
int pt = 0,sz = 0;
int pt2 = 0,sz2 = 0;
int pt3 = 0,sz3 = 0;
q[sz++] = {sx,sy};
for(int i = 0;i <= n + m;i++){
while(pt < sz){
auto x = q[pt];pt++;
if(x[0] == ex && x[1] == ey){
ans = i;
}
///bfs
if(!vis[x[0]][x[1]][1]){
q2[sz2++] = {x[0],x[1],0};
}
for(int j = 0;j < 4;j++){
int nx = x[0] + d[j][0];
int ny = x[1] + d[j][1];
if(!vis[nx][ny][0] && v[nx][ny] == 0){
vis[nx][ny][0] = 1;
q[sz++] = {nx,ny};
}
}
}
while(pt2 < sz2){
auto x = q2[pt2];
pt2++;
if(!vis[x[0]][x[1]][2]){
q3[sz3++] = {x[0],x[1],0};
vis[x[0]][x[1]][2] = 1;
}
if(x[2] != k - 1){
for(int j = 0;j < 2;j++){
int nx = x[0] + d[j][0];
int ny = x[1] + d[j][1];
if(!vis[nx][ny][1] && v[nx][ny] != 2){
vis[nx][ny][1] = 1;
q2[sz2++] = {nx,ny,x[2] + 1};
}
}
}else{
for(int j = 0;j < 4;j++){
int nx = x[0] + d[j][0];
int ny = x[1] + d[j][1];
if(!vis[nx][ny][0] && v[nx][ny] != 2){
vis[nx][ny][0] = 1;
q[sz++] = {nx,ny};
}
}
}
}
while(pt3 < sz3){
auto x = q3[pt3];
pt3++;
if(!vis[x[0]][x[1]][0]){
q[sz++] = {x[0],x[1]};
vis[x[0]][x[1]][0] = 1;
}
if(x[2] != k - 1){
for(int j = 2;j < 4;j++){
int nx = x[0] + d[j][0];
int ny = x[1] + d[j][1];
if(!vis[nx][ny][2] && v[nx][ny] != 2){
vis[nx][ny][2] = 1;
q3[sz3++] = {nx,ny,x[2] + 1};
}
}
}else{
for(int j = 0;j < 4;j++){
int nx = x[0] + d[j][0];
int ny = x[1] + d[j][1];
if(!vis[nx][ny][0] && v[nx][ny] != 2){
vis[nx][ny][0] = 1;
q[sz++] = {nx,ny};
}
}
}
}
}
cout<<ans<<'\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
208 ms |
423508 KB |
Output is correct |
2 |
Correct |
172 ms |
423268 KB |
Output is correct |
3 |
Correct |
164 ms |
423504 KB |
Output is correct |
4 |
Correct |
252 ms |
423508 KB |
Output is correct |
5 |
Correct |
172 ms |
423508 KB |
Output is correct |
6 |
Correct |
177 ms |
423504 KB |
Output is correct |
7 |
Correct |
180 ms |
423464 KB |
Output is correct |
8 |
Correct |
173 ms |
423504 KB |
Output is correct |
9 |
Correct |
166 ms |
423252 KB |
Output is correct |
10 |
Correct |
180 ms |
423400 KB |
Output is correct |
11 |
Correct |
174 ms |
423424 KB |
Output is correct |
12 |
Correct |
179 ms |
423440 KB |
Output is correct |
13 |
Correct |
178 ms |
423348 KB |
Output is correct |
14 |
Correct |
179 ms |
423508 KB |
Output is correct |
15 |
Correct |
181 ms |
423248 KB |
Output is correct |
16 |
Correct |
175 ms |
423504 KB |
Output is correct |
17 |
Correct |
173 ms |
423504 KB |
Output is correct |
18 |
Correct |
172 ms |
423556 KB |
Output is correct |
19 |
Correct |
181 ms |
429648 KB |
Output is correct |
20 |
Correct |
185 ms |
434768 KB |
Output is correct |
21 |
Correct |
187 ms |
429600 KB |
Output is correct |
22 |
Correct |
193 ms |
429652 KB |
Output is correct |
23 |
Correct |
184 ms |
429672 KB |
Output is correct |
24 |
Correct |
190 ms |
438096 KB |
Output is correct |
25 |
Correct |
189 ms |
438076 KB |
Output is correct |
26 |
Correct |
197 ms |
429660 KB |
Output is correct |
27 |
Correct |
183 ms |
429652 KB |
Output is correct |
28 |
Correct |
181 ms |
429648 KB |
Output is correct |
29 |
Correct |
206 ms |
439024 KB |
Output is correct |
30 |
Correct |
188 ms |
434060 KB |
Output is correct |
31 |
Correct |
195 ms |
438864 KB |
Output is correct |
32 |
Correct |
201 ms |
439068 KB |
Output is correct |
33 |
Correct |
222 ms |
438868 KB |
Output is correct |
34 |
Correct |
210 ms |
460368 KB |
Output is correct |
35 |
Correct |
223 ms |
460312 KB |
Output is correct |
36 |
Correct |
196 ms |
439096 KB |
Output is correct |
37 |
Correct |
191 ms |
438868 KB |
Output is correct |
38 |
Correct |
190 ms |
438868 KB |
Output is correct |
39 |
Correct |
445 ms |
578864 KB |
Output is correct |
40 |
Correct |
199 ms |
442448 KB |
Output is correct |
41 |
Correct |
213 ms |
468852 KB |
Output is correct |
42 |
Correct |
211 ms |
445776 KB |
Output is correct |
43 |
Correct |
222 ms |
465744 KB |
Output is correct |
44 |
Correct |
308 ms |
517716 KB |
Output is correct |
45 |
Correct |
312 ms |
529492 KB |
Output is correct |
46 |
Correct |
484 ms |
578852 KB |
Output is correct |
47 |
Correct |
499 ms |
578896 KB |
Output is correct |
48 |
Correct |
441 ms |
578896 KB |
Output is correct |
49 |
Correct |
471 ms |
792660 KB |
Output is correct |
50 |
Correct |
471 ms |
792656 KB |
Output is correct |
51 |
Correct |
515 ms |
578896 KB |
Output is correct |
52 |
Correct |
549 ms |
578808 KB |
Output is correct |
53 |
Correct |
488 ms |
578676 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
423196 KB |
Output is correct |
2 |
Correct |
173 ms |
423256 KB |
Output is correct |
3 |
Correct |
179 ms |
423288 KB |
Output is correct |
4 |
Correct |
196 ms |
423204 KB |
Output is correct |
5 |
Correct |
170 ms |
423508 KB |
Output is correct |
6 |
Correct |
190 ms |
423252 KB |
Output is correct |
7 |
Correct |
205 ms |
423248 KB |
Output is correct |
8 |
Correct |
167 ms |
423248 KB |
Output is correct |
9 |
Correct |
176 ms |
423504 KB |
Output is correct |
10 |
Correct |
180 ms |
423504 KB |
Output is correct |
11 |
Correct |
178 ms |
423324 KB |
Output is correct |
12 |
Correct |
190 ms |
423448 KB |
Output is correct |
13 |
Correct |
171 ms |
423508 KB |
Output is correct |
14 |
Correct |
166 ms |
423416 KB |
Output is correct |
15 |
Correct |
171 ms |
423768 KB |
Output is correct |
16 |
Correct |
169 ms |
423512 KB |
Output is correct |
17 |
Correct |
171 ms |
423508 KB |
Output is correct |
18 |
Correct |
169 ms |
423252 KB |
Output is correct |
19 |
Correct |
179 ms |
423340 KB |
Output is correct |
20 |
Correct |
182 ms |
423480 KB |
Output is correct |
21 |
Correct |
171 ms |
423248 KB |
Output is correct |
22 |
Correct |
173 ms |
423508 KB |
Output is correct |
23 |
Correct |
173 ms |
423416 KB |
Output is correct |
24 |
Correct |
173 ms |
423252 KB |
Output is correct |
25 |
Correct |
164 ms |
423400 KB |
Output is correct |
26 |
Correct |
170 ms |
423248 KB |
Output is correct |
27 |
Correct |
177 ms |
423252 KB |
Output is correct |
28 |
Correct |
169 ms |
423720 KB |
Output is correct |
29 |
Correct |
169 ms |
423364 KB |
Output is correct |
30 |
Correct |
170 ms |
423484 KB |
Output is correct |
31 |
Correct |
176 ms |
423508 KB |
Output is correct |
32 |
Correct |
168 ms |
423456 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
172 ms |
423252 KB |
Output is correct |
2 |
Correct |
176 ms |
423404 KB |
Output is correct |
3 |
Correct |
182 ms |
423248 KB |
Output is correct |
4 |
Correct |
176 ms |
423392 KB |
Output is correct |
5 |
Correct |
175 ms |
423244 KB |
Output is correct |
6 |
Correct |
199 ms |
423316 KB |
Output is correct |
7 |
Correct |
168 ms |
423504 KB |
Output is correct |
8 |
Correct |
176 ms |
423492 KB |
Output is correct |
9 |
Correct |
178 ms |
423564 KB |
Output is correct |
10 |
Correct |
170 ms |
423508 KB |
Output is correct |
11 |
Correct |
174 ms |
423532 KB |
Output is correct |
12 |
Correct |
177 ms |
424016 KB |
Output is correct |
13 |
Correct |
173 ms |
423248 KB |
Output is correct |
14 |
Correct |
169 ms |
423408 KB |
Output is correct |
15 |
Correct |
173 ms |
423248 KB |
Output is correct |
16 |
Correct |
174 ms |
423528 KB |
Output is correct |
17 |
Correct |
173 ms |
423252 KB |
Output is correct |
18 |
Correct |
176 ms |
423332 KB |
Output is correct |
19 |
Correct |
175 ms |
423304 KB |
Output is correct |
20 |
Correct |
170 ms |
423408 KB |
Output is correct |
21 |
Correct |
171 ms |
423504 KB |
Output is correct |
22 |
Correct |
179 ms |
423424 KB |
Output is correct |
23 |
Correct |
177 ms |
423508 KB |
Output is correct |
24 |
Correct |
173 ms |
423508 KB |
Output is correct |
25 |
Correct |
186 ms |
427600 KB |
Output is correct |
26 |
Correct |
185 ms |
429712 KB |
Output is correct |
27 |
Correct |
190 ms |
429652 KB |
Output is correct |
28 |
Correct |
176 ms |
430416 KB |
Output is correct |
29 |
Correct |
178 ms |
430164 KB |
Output is correct |
30 |
Correct |
179 ms |
430384 KB |
Output is correct |
31 |
Correct |
175 ms |
430348 KB |
Output is correct |
32 |
Correct |
187 ms |
429576 KB |
Output is correct |
33 |
Correct |
184 ms |
429648 KB |
Output is correct |
34 |
Correct |
187 ms |
437080 KB |
Output is correct |
35 |
Correct |
188 ms |
438868 KB |
Output is correct |
36 |
Correct |
187 ms |
440656 KB |
Output is correct |
37 |
Correct |
200 ms |
440660 KB |
Output is correct |
38 |
Correct |
195 ms |
440912 KB |
Output is correct |
39 |
Correct |
286 ms |
472148 KB |
Output is correct |
40 |
Correct |
548 ms |
567564 KB |
Output is correct |
41 |
Correct |
478 ms |
578896 KB |
Output is correct |
42 |
Correct |
550 ms |
596412 KB |
Output is correct |
43 |
Correct |
602 ms |
596244 KB |
Output is correct |
44 |
Correct |
525 ms |
596456 KB |
Output is correct |
45 |
Correct |
643 ms |
592420 KB |
Output is correct |
46 |
Correct |
687 ms |
591392 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
423196 KB |
Output is correct |
2 |
Correct |
173 ms |
423256 KB |
Output is correct |
3 |
Correct |
179 ms |
423288 KB |
Output is correct |
4 |
Correct |
196 ms |
423204 KB |
Output is correct |
5 |
Correct |
170 ms |
423508 KB |
Output is correct |
6 |
Correct |
190 ms |
423252 KB |
Output is correct |
7 |
Correct |
205 ms |
423248 KB |
Output is correct |
8 |
Correct |
167 ms |
423248 KB |
Output is correct |
9 |
Correct |
176 ms |
423504 KB |
Output is correct |
10 |
Correct |
180 ms |
423504 KB |
Output is correct |
11 |
Correct |
178 ms |
423324 KB |
Output is correct |
12 |
Correct |
190 ms |
423448 KB |
Output is correct |
13 |
Correct |
171 ms |
423508 KB |
Output is correct |
14 |
Correct |
166 ms |
423416 KB |
Output is correct |
15 |
Correct |
171 ms |
423768 KB |
Output is correct |
16 |
Correct |
169 ms |
423512 KB |
Output is correct |
17 |
Correct |
171 ms |
423508 KB |
Output is correct |
18 |
Correct |
169 ms |
423252 KB |
Output is correct |
19 |
Correct |
179 ms |
423340 KB |
Output is correct |
20 |
Correct |
182 ms |
423480 KB |
Output is correct |
21 |
Correct |
171 ms |
423248 KB |
Output is correct |
22 |
Correct |
173 ms |
423508 KB |
Output is correct |
23 |
Correct |
173 ms |
423416 KB |
Output is correct |
24 |
Correct |
173 ms |
423252 KB |
Output is correct |
25 |
Correct |
164 ms |
423400 KB |
Output is correct |
26 |
Correct |
170 ms |
423248 KB |
Output is correct |
27 |
Correct |
177 ms |
423252 KB |
Output is correct |
28 |
Correct |
169 ms |
423720 KB |
Output is correct |
29 |
Correct |
169 ms |
423364 KB |
Output is correct |
30 |
Correct |
170 ms |
423484 KB |
Output is correct |
31 |
Correct |
176 ms |
423508 KB |
Output is correct |
32 |
Correct |
168 ms |
423456 KB |
Output is correct |
33 |
Correct |
179 ms |
429656 KB |
Output is correct |
34 |
Correct |
173 ms |
423504 KB |
Output is correct |
35 |
Correct |
176 ms |
424196 KB |
Output is correct |
36 |
Correct |
188 ms |
427596 KB |
Output is correct |
37 |
Correct |
183 ms |
434772 KB |
Output is correct |
38 |
Correct |
189 ms |
429652 KB |
Output is correct |
39 |
Correct |
178 ms |
429652 KB |
Output is correct |
40 |
Correct |
179 ms |
429648 KB |
Output is correct |
41 |
Correct |
178 ms |
429648 KB |
Output is correct |
42 |
Correct |
174 ms |
430416 KB |
Output is correct |
43 |
Correct |
181 ms |
430160 KB |
Output is correct |
44 |
Correct |
202 ms |
430388 KB |
Output is correct |
45 |
Correct |
182 ms |
438096 KB |
Output is correct |
46 |
Correct |
182 ms |
438140 KB |
Output is correct |
47 |
Correct |
201 ms |
434256 KB |
Output is correct |
48 |
Correct |
175 ms |
430672 KB |
Output is correct |
49 |
Correct |
181 ms |
430400 KB |
Output is correct |
50 |
Correct |
174 ms |
430416 KB |
Output is correct |
51 |
Correct |
195 ms |
430432 KB |
Output is correct |
52 |
Correct |
186 ms |
429688 KB |
Output is correct |
53 |
Correct |
180 ms |
429648 KB |
Output is correct |
54 |
Correct |
182 ms |
429488 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
423196 KB |
Output is correct |
2 |
Correct |
173 ms |
423256 KB |
Output is correct |
3 |
Correct |
179 ms |
423288 KB |
Output is correct |
4 |
Correct |
196 ms |
423204 KB |
Output is correct |
5 |
Correct |
170 ms |
423508 KB |
Output is correct |
6 |
Correct |
190 ms |
423252 KB |
Output is correct |
7 |
Correct |
205 ms |
423248 KB |
Output is correct |
8 |
Correct |
167 ms |
423248 KB |
Output is correct |
9 |
Correct |
176 ms |
423504 KB |
Output is correct |
10 |
Correct |
180 ms |
423504 KB |
Output is correct |
11 |
Correct |
178 ms |
423324 KB |
Output is correct |
12 |
Correct |
190 ms |
423448 KB |
Output is correct |
13 |
Correct |
171 ms |
423508 KB |
Output is correct |
14 |
Correct |
166 ms |
423416 KB |
Output is correct |
15 |
Correct |
171 ms |
423768 KB |
Output is correct |
16 |
Correct |
169 ms |
423512 KB |
Output is correct |
17 |
Correct |
171 ms |
423508 KB |
Output is correct |
18 |
Correct |
169 ms |
423252 KB |
Output is correct |
19 |
Correct |
179 ms |
423340 KB |
Output is correct |
20 |
Correct |
182 ms |
423480 KB |
Output is correct |
21 |
Correct |
171 ms |
423248 KB |
Output is correct |
22 |
Correct |
173 ms |
423508 KB |
Output is correct |
23 |
Correct |
173 ms |
423416 KB |
Output is correct |
24 |
Correct |
173 ms |
423252 KB |
Output is correct |
25 |
Correct |
164 ms |
423400 KB |
Output is correct |
26 |
Correct |
170 ms |
423248 KB |
Output is correct |
27 |
Correct |
177 ms |
423252 KB |
Output is correct |
28 |
Correct |
169 ms |
423720 KB |
Output is correct |
29 |
Correct |
169 ms |
423364 KB |
Output is correct |
30 |
Correct |
170 ms |
423484 KB |
Output is correct |
31 |
Correct |
176 ms |
423508 KB |
Output is correct |
32 |
Correct |
168 ms |
423456 KB |
Output is correct |
33 |
Correct |
179 ms |
429656 KB |
Output is correct |
34 |
Correct |
173 ms |
423504 KB |
Output is correct |
35 |
Correct |
176 ms |
424196 KB |
Output is correct |
36 |
Correct |
188 ms |
427596 KB |
Output is correct |
37 |
Correct |
183 ms |
434772 KB |
Output is correct |
38 |
Correct |
189 ms |
429652 KB |
Output is correct |
39 |
Correct |
178 ms |
429652 KB |
Output is correct |
40 |
Correct |
179 ms |
429648 KB |
Output is correct |
41 |
Correct |
178 ms |
429648 KB |
Output is correct |
42 |
Correct |
174 ms |
430416 KB |
Output is correct |
43 |
Correct |
181 ms |
430160 KB |
Output is correct |
44 |
Correct |
202 ms |
430388 KB |
Output is correct |
45 |
Correct |
182 ms |
438096 KB |
Output is correct |
46 |
Correct |
182 ms |
438140 KB |
Output is correct |
47 |
Correct |
201 ms |
434256 KB |
Output is correct |
48 |
Correct |
175 ms |
430672 KB |
Output is correct |
49 |
Correct |
181 ms |
430400 KB |
Output is correct |
50 |
Correct |
174 ms |
430416 KB |
Output is correct |
51 |
Correct |
195 ms |
430432 KB |
Output is correct |
52 |
Correct |
186 ms |
429688 KB |
Output is correct |
53 |
Correct |
180 ms |
429648 KB |
Output is correct |
54 |
Correct |
182 ms |
429488 KB |
Output is correct |
55 |
Correct |
201 ms |
438968 KB |
Output is correct |
56 |
Correct |
185 ms |
434008 KB |
Output is correct |
57 |
Correct |
215 ms |
437284 KB |
Output is correct |
58 |
Correct |
205 ms |
440464 KB |
Output is correct |
59 |
Correct |
204 ms |
438860 KB |
Output is correct |
60 |
Correct |
195 ms |
438860 KB |
Output is correct |
61 |
Correct |
196 ms |
438868 KB |
Output is correct |
62 |
Correct |
193 ms |
440764 KB |
Output is correct |
63 |
Correct |
196 ms |
440656 KB |
Output is correct |
64 |
Correct |
210 ms |
440660 KB |
Output is correct |
65 |
Correct |
208 ms |
460204 KB |
Output is correct |
66 |
Correct |
203 ms |
460368 KB |
Output is correct |
67 |
Correct |
206 ms |
451032 KB |
Output is correct |
68 |
Correct |
196 ms |
441428 KB |
Output is correct |
69 |
Correct |
198 ms |
441168 KB |
Output is correct |
70 |
Correct |
222 ms |
440848 KB |
Output is correct |
71 |
Correct |
196 ms |
440656 KB |
Output is correct |
72 |
Correct |
197 ms |
438880 KB |
Output is correct |
73 |
Correct |
211 ms |
438868 KB |
Output is correct |
74 |
Correct |
199 ms |
438868 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
208 ms |
423508 KB |
Output is correct |
2 |
Correct |
172 ms |
423268 KB |
Output is correct |
3 |
Correct |
164 ms |
423504 KB |
Output is correct |
4 |
Correct |
252 ms |
423508 KB |
Output is correct |
5 |
Correct |
172 ms |
423508 KB |
Output is correct |
6 |
Correct |
177 ms |
423504 KB |
Output is correct |
7 |
Correct |
180 ms |
423464 KB |
Output is correct |
8 |
Correct |
173 ms |
423504 KB |
Output is correct |
9 |
Correct |
166 ms |
423252 KB |
Output is correct |
10 |
Correct |
180 ms |
423400 KB |
Output is correct |
11 |
Correct |
174 ms |
423424 KB |
Output is correct |
12 |
Correct |
179 ms |
423440 KB |
Output is correct |
13 |
Correct |
178 ms |
423348 KB |
Output is correct |
14 |
Correct |
179 ms |
423508 KB |
Output is correct |
15 |
Correct |
181 ms |
423248 KB |
Output is correct |
16 |
Correct |
175 ms |
423504 KB |
Output is correct |
17 |
Correct |
173 ms |
423504 KB |
Output is correct |
18 |
Correct |
172 ms |
423556 KB |
Output is correct |
19 |
Correct |
181 ms |
429648 KB |
Output is correct |
20 |
Correct |
185 ms |
434768 KB |
Output is correct |
21 |
Correct |
187 ms |
429600 KB |
Output is correct |
22 |
Correct |
193 ms |
429652 KB |
Output is correct |
23 |
Correct |
184 ms |
429672 KB |
Output is correct |
24 |
Correct |
190 ms |
438096 KB |
Output is correct |
25 |
Correct |
189 ms |
438076 KB |
Output is correct |
26 |
Correct |
197 ms |
429660 KB |
Output is correct |
27 |
Correct |
183 ms |
429652 KB |
Output is correct |
28 |
Correct |
181 ms |
429648 KB |
Output is correct |
29 |
Correct |
206 ms |
439024 KB |
Output is correct |
30 |
Correct |
188 ms |
434060 KB |
Output is correct |
31 |
Correct |
195 ms |
438864 KB |
Output is correct |
32 |
Correct |
201 ms |
439068 KB |
Output is correct |
33 |
Correct |
222 ms |
438868 KB |
Output is correct |
34 |
Correct |
210 ms |
460368 KB |
Output is correct |
35 |
Correct |
223 ms |
460312 KB |
Output is correct |
36 |
Correct |
196 ms |
439096 KB |
Output is correct |
37 |
Correct |
191 ms |
438868 KB |
Output is correct |
38 |
Correct |
190 ms |
438868 KB |
Output is correct |
39 |
Correct |
445 ms |
578864 KB |
Output is correct |
40 |
Correct |
199 ms |
442448 KB |
Output is correct |
41 |
Correct |
213 ms |
468852 KB |
Output is correct |
42 |
Correct |
211 ms |
445776 KB |
Output is correct |
43 |
Correct |
222 ms |
465744 KB |
Output is correct |
44 |
Correct |
308 ms |
517716 KB |
Output is correct |
45 |
Correct |
312 ms |
529492 KB |
Output is correct |
46 |
Correct |
484 ms |
578852 KB |
Output is correct |
47 |
Correct |
499 ms |
578896 KB |
Output is correct |
48 |
Correct |
441 ms |
578896 KB |
Output is correct |
49 |
Correct |
471 ms |
792660 KB |
Output is correct |
50 |
Correct |
471 ms |
792656 KB |
Output is correct |
51 |
Correct |
515 ms |
578896 KB |
Output is correct |
52 |
Correct |
549 ms |
578808 KB |
Output is correct |
53 |
Correct |
488 ms |
578676 KB |
Output is correct |
54 |
Correct |
165 ms |
423196 KB |
Output is correct |
55 |
Correct |
173 ms |
423256 KB |
Output is correct |
56 |
Correct |
179 ms |
423288 KB |
Output is correct |
57 |
Correct |
196 ms |
423204 KB |
Output is correct |
58 |
Correct |
170 ms |
423508 KB |
Output is correct |
59 |
Correct |
190 ms |
423252 KB |
Output is correct |
60 |
Correct |
205 ms |
423248 KB |
Output is correct |
61 |
Correct |
167 ms |
423248 KB |
Output is correct |
62 |
Correct |
176 ms |
423504 KB |
Output is correct |
63 |
Correct |
180 ms |
423504 KB |
Output is correct |
64 |
Correct |
178 ms |
423324 KB |
Output is correct |
65 |
Correct |
190 ms |
423448 KB |
Output is correct |
66 |
Correct |
171 ms |
423508 KB |
Output is correct |
67 |
Correct |
166 ms |
423416 KB |
Output is correct |
68 |
Correct |
171 ms |
423768 KB |
Output is correct |
69 |
Correct |
169 ms |
423512 KB |
Output is correct |
70 |
Correct |
171 ms |
423508 KB |
Output is correct |
71 |
Correct |
169 ms |
423252 KB |
Output is correct |
72 |
Correct |
179 ms |
423340 KB |
Output is correct |
73 |
Correct |
182 ms |
423480 KB |
Output is correct |
74 |
Correct |
171 ms |
423248 KB |
Output is correct |
75 |
Correct |
173 ms |
423508 KB |
Output is correct |
76 |
Correct |
173 ms |
423416 KB |
Output is correct |
77 |
Correct |
173 ms |
423252 KB |
Output is correct |
78 |
Correct |
164 ms |
423400 KB |
Output is correct |
79 |
Correct |
170 ms |
423248 KB |
Output is correct |
80 |
Correct |
177 ms |
423252 KB |
Output is correct |
81 |
Correct |
169 ms |
423720 KB |
Output is correct |
82 |
Correct |
169 ms |
423364 KB |
Output is correct |
83 |
Correct |
170 ms |
423484 KB |
Output is correct |
84 |
Correct |
176 ms |
423508 KB |
Output is correct |
85 |
Correct |
168 ms |
423456 KB |
Output is correct |
86 |
Correct |
172 ms |
423252 KB |
Output is correct |
87 |
Correct |
176 ms |
423404 KB |
Output is correct |
88 |
Correct |
182 ms |
423248 KB |
Output is correct |
89 |
Correct |
176 ms |
423392 KB |
Output is correct |
90 |
Correct |
175 ms |
423244 KB |
Output is correct |
91 |
Correct |
199 ms |
423316 KB |
Output is correct |
92 |
Correct |
168 ms |
423504 KB |
Output is correct |
93 |
Correct |
176 ms |
423492 KB |
Output is correct |
94 |
Correct |
178 ms |
423564 KB |
Output is correct |
95 |
Correct |
170 ms |
423508 KB |
Output is correct |
96 |
Correct |
174 ms |
423532 KB |
Output is correct |
97 |
Correct |
177 ms |
424016 KB |
Output is correct |
98 |
Correct |
173 ms |
423248 KB |
Output is correct |
99 |
Correct |
169 ms |
423408 KB |
Output is correct |
100 |
Correct |
173 ms |
423248 KB |
Output is correct |
101 |
Correct |
174 ms |
423528 KB |
Output is correct |
102 |
Correct |
173 ms |
423252 KB |
Output is correct |
103 |
Correct |
176 ms |
423332 KB |
Output is correct |
104 |
Correct |
175 ms |
423304 KB |
Output is correct |
105 |
Correct |
170 ms |
423408 KB |
Output is correct |
106 |
Correct |
171 ms |
423504 KB |
Output is correct |
107 |
Correct |
179 ms |
423424 KB |
Output is correct |
108 |
Correct |
177 ms |
423508 KB |
Output is correct |
109 |
Correct |
173 ms |
423508 KB |
Output is correct |
110 |
Correct |
186 ms |
427600 KB |
Output is correct |
111 |
Correct |
185 ms |
429712 KB |
Output is correct |
112 |
Correct |
190 ms |
429652 KB |
Output is correct |
113 |
Correct |
176 ms |
430416 KB |
Output is correct |
114 |
Correct |
178 ms |
430164 KB |
Output is correct |
115 |
Correct |
179 ms |
430384 KB |
Output is correct |
116 |
Correct |
175 ms |
430348 KB |
Output is correct |
117 |
Correct |
187 ms |
429576 KB |
Output is correct |
118 |
Correct |
184 ms |
429648 KB |
Output is correct |
119 |
Correct |
187 ms |
437080 KB |
Output is correct |
120 |
Correct |
188 ms |
438868 KB |
Output is correct |
121 |
Correct |
187 ms |
440656 KB |
Output is correct |
122 |
Correct |
200 ms |
440660 KB |
Output is correct |
123 |
Correct |
195 ms |
440912 KB |
Output is correct |
124 |
Correct |
286 ms |
472148 KB |
Output is correct |
125 |
Correct |
548 ms |
567564 KB |
Output is correct |
126 |
Correct |
478 ms |
578896 KB |
Output is correct |
127 |
Correct |
550 ms |
596412 KB |
Output is correct |
128 |
Correct |
602 ms |
596244 KB |
Output is correct |
129 |
Correct |
525 ms |
596456 KB |
Output is correct |
130 |
Correct |
643 ms |
592420 KB |
Output is correct |
131 |
Correct |
687 ms |
591392 KB |
Output is correct |
132 |
Correct |
179 ms |
429656 KB |
Output is correct |
133 |
Correct |
173 ms |
423504 KB |
Output is correct |
134 |
Correct |
176 ms |
424196 KB |
Output is correct |
135 |
Correct |
188 ms |
427596 KB |
Output is correct |
136 |
Correct |
183 ms |
434772 KB |
Output is correct |
137 |
Correct |
189 ms |
429652 KB |
Output is correct |
138 |
Correct |
178 ms |
429652 KB |
Output is correct |
139 |
Correct |
179 ms |
429648 KB |
Output is correct |
140 |
Correct |
178 ms |
429648 KB |
Output is correct |
141 |
Correct |
174 ms |
430416 KB |
Output is correct |
142 |
Correct |
181 ms |
430160 KB |
Output is correct |
143 |
Correct |
202 ms |
430388 KB |
Output is correct |
144 |
Correct |
182 ms |
438096 KB |
Output is correct |
145 |
Correct |
182 ms |
438140 KB |
Output is correct |
146 |
Correct |
201 ms |
434256 KB |
Output is correct |
147 |
Correct |
175 ms |
430672 KB |
Output is correct |
148 |
Correct |
181 ms |
430400 KB |
Output is correct |
149 |
Correct |
174 ms |
430416 KB |
Output is correct |
150 |
Correct |
195 ms |
430432 KB |
Output is correct |
151 |
Correct |
186 ms |
429688 KB |
Output is correct |
152 |
Correct |
180 ms |
429648 KB |
Output is correct |
153 |
Correct |
182 ms |
429488 KB |
Output is correct |
154 |
Correct |
201 ms |
438968 KB |
Output is correct |
155 |
Correct |
185 ms |
434008 KB |
Output is correct |
156 |
Correct |
215 ms |
437284 KB |
Output is correct |
157 |
Correct |
205 ms |
440464 KB |
Output is correct |
158 |
Correct |
204 ms |
438860 KB |
Output is correct |
159 |
Correct |
195 ms |
438860 KB |
Output is correct |
160 |
Correct |
196 ms |
438868 KB |
Output is correct |
161 |
Correct |
193 ms |
440764 KB |
Output is correct |
162 |
Correct |
196 ms |
440656 KB |
Output is correct |
163 |
Correct |
210 ms |
440660 KB |
Output is correct |
164 |
Correct |
208 ms |
460204 KB |
Output is correct |
165 |
Correct |
203 ms |
460368 KB |
Output is correct |
166 |
Correct |
206 ms |
451032 KB |
Output is correct |
167 |
Correct |
196 ms |
441428 KB |
Output is correct |
168 |
Correct |
198 ms |
441168 KB |
Output is correct |
169 |
Correct |
222 ms |
440848 KB |
Output is correct |
170 |
Correct |
196 ms |
440656 KB |
Output is correct |
171 |
Correct |
197 ms |
438880 KB |
Output is correct |
172 |
Correct |
211 ms |
438868 KB |
Output is correct |
173 |
Correct |
199 ms |
438868 KB |
Output is correct |
174 |
Correct |
250 ms |
447316 KB |
Output is correct |
175 |
Correct |
216 ms |
462672 KB |
Output is correct |
176 |
Correct |
334 ms |
544848 KB |
Output is correct |
177 |
Correct |
339 ms |
543824 KB |
Output is correct |
178 |
Correct |
379 ms |
575016 KB |
Output is correct |
179 |
Correct |
521 ms |
601172 KB |
Output is correct |
180 |
Correct |
417 ms |
597724 KB |
Output is correct |
181 |
Correct |
477 ms |
597136 KB |
Output is correct |
182 |
Correct |
472 ms |
596696 KB |
Output is correct |
183 |
Correct |
541 ms |
594000 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
208 ms |
423508 KB |
Output is correct |
2 |
Correct |
172 ms |
423268 KB |
Output is correct |
3 |
Correct |
164 ms |
423504 KB |
Output is correct |
4 |
Correct |
252 ms |
423508 KB |
Output is correct |
5 |
Correct |
172 ms |
423508 KB |
Output is correct |
6 |
Correct |
177 ms |
423504 KB |
Output is correct |
7 |
Correct |
180 ms |
423464 KB |
Output is correct |
8 |
Correct |
173 ms |
423504 KB |
Output is correct |
9 |
Correct |
166 ms |
423252 KB |
Output is correct |
10 |
Correct |
180 ms |
423400 KB |
Output is correct |
11 |
Correct |
174 ms |
423424 KB |
Output is correct |
12 |
Correct |
179 ms |
423440 KB |
Output is correct |
13 |
Correct |
178 ms |
423348 KB |
Output is correct |
14 |
Correct |
179 ms |
423508 KB |
Output is correct |
15 |
Correct |
181 ms |
423248 KB |
Output is correct |
16 |
Correct |
175 ms |
423504 KB |
Output is correct |
17 |
Correct |
173 ms |
423504 KB |
Output is correct |
18 |
Correct |
172 ms |
423556 KB |
Output is correct |
19 |
Correct |
181 ms |
429648 KB |
Output is correct |
20 |
Correct |
185 ms |
434768 KB |
Output is correct |
21 |
Correct |
187 ms |
429600 KB |
Output is correct |
22 |
Correct |
193 ms |
429652 KB |
Output is correct |
23 |
Correct |
184 ms |
429672 KB |
Output is correct |
24 |
Correct |
190 ms |
438096 KB |
Output is correct |
25 |
Correct |
189 ms |
438076 KB |
Output is correct |
26 |
Correct |
197 ms |
429660 KB |
Output is correct |
27 |
Correct |
183 ms |
429652 KB |
Output is correct |
28 |
Correct |
181 ms |
429648 KB |
Output is correct |
29 |
Correct |
206 ms |
439024 KB |
Output is correct |
30 |
Correct |
188 ms |
434060 KB |
Output is correct |
31 |
Correct |
195 ms |
438864 KB |
Output is correct |
32 |
Correct |
201 ms |
439068 KB |
Output is correct |
33 |
Correct |
222 ms |
438868 KB |
Output is correct |
34 |
Correct |
210 ms |
460368 KB |
Output is correct |
35 |
Correct |
223 ms |
460312 KB |
Output is correct |
36 |
Correct |
196 ms |
439096 KB |
Output is correct |
37 |
Correct |
191 ms |
438868 KB |
Output is correct |
38 |
Correct |
190 ms |
438868 KB |
Output is correct |
39 |
Correct |
445 ms |
578864 KB |
Output is correct |
40 |
Correct |
199 ms |
442448 KB |
Output is correct |
41 |
Correct |
213 ms |
468852 KB |
Output is correct |
42 |
Correct |
211 ms |
445776 KB |
Output is correct |
43 |
Correct |
222 ms |
465744 KB |
Output is correct |
44 |
Correct |
308 ms |
517716 KB |
Output is correct |
45 |
Correct |
312 ms |
529492 KB |
Output is correct |
46 |
Correct |
484 ms |
578852 KB |
Output is correct |
47 |
Correct |
499 ms |
578896 KB |
Output is correct |
48 |
Correct |
441 ms |
578896 KB |
Output is correct |
49 |
Correct |
471 ms |
792660 KB |
Output is correct |
50 |
Correct |
471 ms |
792656 KB |
Output is correct |
51 |
Correct |
515 ms |
578896 KB |
Output is correct |
52 |
Correct |
549 ms |
578808 KB |
Output is correct |
53 |
Correct |
488 ms |
578676 KB |
Output is correct |
54 |
Correct |
165 ms |
423196 KB |
Output is correct |
55 |
Correct |
173 ms |
423256 KB |
Output is correct |
56 |
Correct |
179 ms |
423288 KB |
Output is correct |
57 |
Correct |
196 ms |
423204 KB |
Output is correct |
58 |
Correct |
170 ms |
423508 KB |
Output is correct |
59 |
Correct |
190 ms |
423252 KB |
Output is correct |
60 |
Correct |
205 ms |
423248 KB |
Output is correct |
61 |
Correct |
167 ms |
423248 KB |
Output is correct |
62 |
Correct |
176 ms |
423504 KB |
Output is correct |
63 |
Correct |
180 ms |
423504 KB |
Output is correct |
64 |
Correct |
178 ms |
423324 KB |
Output is correct |
65 |
Correct |
190 ms |
423448 KB |
Output is correct |
66 |
Correct |
171 ms |
423508 KB |
Output is correct |
67 |
Correct |
166 ms |
423416 KB |
Output is correct |
68 |
Correct |
171 ms |
423768 KB |
Output is correct |
69 |
Correct |
169 ms |
423512 KB |
Output is correct |
70 |
Correct |
171 ms |
423508 KB |
Output is correct |
71 |
Correct |
169 ms |
423252 KB |
Output is correct |
72 |
Correct |
179 ms |
423340 KB |
Output is correct |
73 |
Correct |
182 ms |
423480 KB |
Output is correct |
74 |
Correct |
171 ms |
423248 KB |
Output is correct |
75 |
Correct |
173 ms |
423508 KB |
Output is correct |
76 |
Correct |
173 ms |
423416 KB |
Output is correct |
77 |
Correct |
173 ms |
423252 KB |
Output is correct |
78 |
Correct |
164 ms |
423400 KB |
Output is correct |
79 |
Correct |
170 ms |
423248 KB |
Output is correct |
80 |
Correct |
177 ms |
423252 KB |
Output is correct |
81 |
Correct |
169 ms |
423720 KB |
Output is correct |
82 |
Correct |
169 ms |
423364 KB |
Output is correct |
83 |
Correct |
170 ms |
423484 KB |
Output is correct |
84 |
Correct |
176 ms |
423508 KB |
Output is correct |
85 |
Correct |
168 ms |
423456 KB |
Output is correct |
86 |
Correct |
172 ms |
423252 KB |
Output is correct |
87 |
Correct |
176 ms |
423404 KB |
Output is correct |
88 |
Correct |
182 ms |
423248 KB |
Output is correct |
89 |
Correct |
176 ms |
423392 KB |
Output is correct |
90 |
Correct |
175 ms |
423244 KB |
Output is correct |
91 |
Correct |
199 ms |
423316 KB |
Output is correct |
92 |
Correct |
168 ms |
423504 KB |
Output is correct |
93 |
Correct |
176 ms |
423492 KB |
Output is correct |
94 |
Correct |
178 ms |
423564 KB |
Output is correct |
95 |
Correct |
170 ms |
423508 KB |
Output is correct |
96 |
Correct |
174 ms |
423532 KB |
Output is correct |
97 |
Correct |
177 ms |
424016 KB |
Output is correct |
98 |
Correct |
173 ms |
423248 KB |
Output is correct |
99 |
Correct |
169 ms |
423408 KB |
Output is correct |
100 |
Correct |
173 ms |
423248 KB |
Output is correct |
101 |
Correct |
174 ms |
423528 KB |
Output is correct |
102 |
Correct |
173 ms |
423252 KB |
Output is correct |
103 |
Correct |
176 ms |
423332 KB |
Output is correct |
104 |
Correct |
175 ms |
423304 KB |
Output is correct |
105 |
Correct |
170 ms |
423408 KB |
Output is correct |
106 |
Correct |
171 ms |
423504 KB |
Output is correct |
107 |
Correct |
179 ms |
423424 KB |
Output is correct |
108 |
Correct |
177 ms |
423508 KB |
Output is correct |
109 |
Correct |
173 ms |
423508 KB |
Output is correct |
110 |
Correct |
186 ms |
427600 KB |
Output is correct |
111 |
Correct |
185 ms |
429712 KB |
Output is correct |
112 |
Correct |
190 ms |
429652 KB |
Output is correct |
113 |
Correct |
176 ms |
430416 KB |
Output is correct |
114 |
Correct |
178 ms |
430164 KB |
Output is correct |
115 |
Correct |
179 ms |
430384 KB |
Output is correct |
116 |
Correct |
175 ms |
430348 KB |
Output is correct |
117 |
Correct |
187 ms |
429576 KB |
Output is correct |
118 |
Correct |
184 ms |
429648 KB |
Output is correct |
119 |
Correct |
187 ms |
437080 KB |
Output is correct |
120 |
Correct |
188 ms |
438868 KB |
Output is correct |
121 |
Correct |
187 ms |
440656 KB |
Output is correct |
122 |
Correct |
200 ms |
440660 KB |
Output is correct |
123 |
Correct |
195 ms |
440912 KB |
Output is correct |
124 |
Correct |
286 ms |
472148 KB |
Output is correct |
125 |
Correct |
548 ms |
567564 KB |
Output is correct |
126 |
Correct |
478 ms |
578896 KB |
Output is correct |
127 |
Correct |
550 ms |
596412 KB |
Output is correct |
128 |
Correct |
602 ms |
596244 KB |
Output is correct |
129 |
Correct |
525 ms |
596456 KB |
Output is correct |
130 |
Correct |
643 ms |
592420 KB |
Output is correct |
131 |
Correct |
687 ms |
591392 KB |
Output is correct |
132 |
Correct |
179 ms |
429656 KB |
Output is correct |
133 |
Correct |
173 ms |
423504 KB |
Output is correct |
134 |
Correct |
176 ms |
424196 KB |
Output is correct |
135 |
Correct |
188 ms |
427596 KB |
Output is correct |
136 |
Correct |
183 ms |
434772 KB |
Output is correct |
137 |
Correct |
189 ms |
429652 KB |
Output is correct |
138 |
Correct |
178 ms |
429652 KB |
Output is correct |
139 |
Correct |
179 ms |
429648 KB |
Output is correct |
140 |
Correct |
178 ms |
429648 KB |
Output is correct |
141 |
Correct |
174 ms |
430416 KB |
Output is correct |
142 |
Correct |
181 ms |
430160 KB |
Output is correct |
143 |
Correct |
202 ms |
430388 KB |
Output is correct |
144 |
Correct |
182 ms |
438096 KB |
Output is correct |
145 |
Correct |
182 ms |
438140 KB |
Output is correct |
146 |
Correct |
201 ms |
434256 KB |
Output is correct |
147 |
Correct |
175 ms |
430672 KB |
Output is correct |
148 |
Correct |
181 ms |
430400 KB |
Output is correct |
149 |
Correct |
174 ms |
430416 KB |
Output is correct |
150 |
Correct |
195 ms |
430432 KB |
Output is correct |
151 |
Correct |
186 ms |
429688 KB |
Output is correct |
152 |
Correct |
180 ms |
429648 KB |
Output is correct |
153 |
Correct |
182 ms |
429488 KB |
Output is correct |
154 |
Correct |
201 ms |
438968 KB |
Output is correct |
155 |
Correct |
185 ms |
434008 KB |
Output is correct |
156 |
Correct |
215 ms |
437284 KB |
Output is correct |
157 |
Correct |
205 ms |
440464 KB |
Output is correct |
158 |
Correct |
204 ms |
438860 KB |
Output is correct |
159 |
Correct |
195 ms |
438860 KB |
Output is correct |
160 |
Correct |
196 ms |
438868 KB |
Output is correct |
161 |
Correct |
193 ms |
440764 KB |
Output is correct |
162 |
Correct |
196 ms |
440656 KB |
Output is correct |
163 |
Correct |
210 ms |
440660 KB |
Output is correct |
164 |
Correct |
208 ms |
460204 KB |
Output is correct |
165 |
Correct |
203 ms |
460368 KB |
Output is correct |
166 |
Correct |
206 ms |
451032 KB |
Output is correct |
167 |
Correct |
196 ms |
441428 KB |
Output is correct |
168 |
Correct |
198 ms |
441168 KB |
Output is correct |
169 |
Correct |
222 ms |
440848 KB |
Output is correct |
170 |
Correct |
196 ms |
440656 KB |
Output is correct |
171 |
Correct |
197 ms |
438880 KB |
Output is correct |
172 |
Correct |
211 ms |
438868 KB |
Output is correct |
173 |
Correct |
199 ms |
438868 KB |
Output is correct |
174 |
Correct |
250 ms |
447316 KB |
Output is correct |
175 |
Correct |
216 ms |
462672 KB |
Output is correct |
176 |
Correct |
334 ms |
544848 KB |
Output is correct |
177 |
Correct |
339 ms |
543824 KB |
Output is correct |
178 |
Correct |
379 ms |
575016 KB |
Output is correct |
179 |
Correct |
521 ms |
601172 KB |
Output is correct |
180 |
Correct |
417 ms |
597724 KB |
Output is correct |
181 |
Correct |
477 ms |
597136 KB |
Output is correct |
182 |
Correct |
472 ms |
596696 KB |
Output is correct |
183 |
Correct |
541 ms |
594000 KB |
Output is correct |
184 |
Correct |
881 ms |
733968 KB |
Output is correct |
185 |
Correct |
459 ms |
617296 KB |
Output is correct |
186 |
Correct |
686 ms |
618584 KB |
Output is correct |
187 |
Correct |
654 ms |
666192 KB |
Output is correct |
188 |
Correct |
707 ms |
733780 KB |
Output is correct |
189 |
Correct |
896 ms |
733728 KB |
Output is correct |
190 |
Correct |
747 ms |
733792 KB |
Output is correct |
191 |
Correct |
912 ms |
768840 KB |
Output is correct |
192 |
Correct |
1135 ms |
769104 KB |
Output is correct |
193 |
Correct |
1075 ms |
769180 KB |
Output is correct |
194 |
Correct |
806 ms |
1161900 KB |
Output is correct |
195 |
Correct |
817 ms |
1161944 KB |
Output is correct |
196 |
Correct |
641 ms |
772948 KB |
Output is correct |
197 |
Correct |
652 ms |
771380 KB |
Output is correct |
198 |
Correct |
639 ms |
770180 KB |
Output is correct |
199 |
Correct |
658 ms |
769620 KB |
Output is correct |
200 |
Correct |
897 ms |
733780 KB |
Output is correct |
201 |
Correct |
898 ms |
733780 KB |
Output is correct |
202 |
Correct |
842 ms |
733776 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
208 ms |
423508 KB |
Output is correct |
2 |
Correct |
172 ms |
423268 KB |
Output is correct |
3 |
Correct |
164 ms |
423504 KB |
Output is correct |
4 |
Correct |
252 ms |
423508 KB |
Output is correct |
5 |
Correct |
172 ms |
423508 KB |
Output is correct |
6 |
Correct |
177 ms |
423504 KB |
Output is correct |
7 |
Correct |
180 ms |
423464 KB |
Output is correct |
8 |
Correct |
173 ms |
423504 KB |
Output is correct |
9 |
Correct |
166 ms |
423252 KB |
Output is correct |
10 |
Correct |
180 ms |
423400 KB |
Output is correct |
11 |
Correct |
174 ms |
423424 KB |
Output is correct |
12 |
Correct |
179 ms |
423440 KB |
Output is correct |
13 |
Correct |
178 ms |
423348 KB |
Output is correct |
14 |
Correct |
179 ms |
423508 KB |
Output is correct |
15 |
Correct |
181 ms |
423248 KB |
Output is correct |
16 |
Correct |
175 ms |
423504 KB |
Output is correct |
17 |
Correct |
173 ms |
423504 KB |
Output is correct |
18 |
Correct |
172 ms |
423556 KB |
Output is correct |
19 |
Correct |
181 ms |
429648 KB |
Output is correct |
20 |
Correct |
185 ms |
434768 KB |
Output is correct |
21 |
Correct |
187 ms |
429600 KB |
Output is correct |
22 |
Correct |
193 ms |
429652 KB |
Output is correct |
23 |
Correct |
184 ms |
429672 KB |
Output is correct |
24 |
Correct |
190 ms |
438096 KB |
Output is correct |
25 |
Correct |
189 ms |
438076 KB |
Output is correct |
26 |
Correct |
197 ms |
429660 KB |
Output is correct |
27 |
Correct |
183 ms |
429652 KB |
Output is correct |
28 |
Correct |
181 ms |
429648 KB |
Output is correct |
29 |
Correct |
206 ms |
439024 KB |
Output is correct |
30 |
Correct |
188 ms |
434060 KB |
Output is correct |
31 |
Correct |
195 ms |
438864 KB |
Output is correct |
32 |
Correct |
201 ms |
439068 KB |
Output is correct |
33 |
Correct |
222 ms |
438868 KB |
Output is correct |
34 |
Correct |
210 ms |
460368 KB |
Output is correct |
35 |
Correct |
223 ms |
460312 KB |
Output is correct |
36 |
Correct |
196 ms |
439096 KB |
Output is correct |
37 |
Correct |
191 ms |
438868 KB |
Output is correct |
38 |
Correct |
190 ms |
438868 KB |
Output is correct |
39 |
Correct |
445 ms |
578864 KB |
Output is correct |
40 |
Correct |
199 ms |
442448 KB |
Output is correct |
41 |
Correct |
213 ms |
468852 KB |
Output is correct |
42 |
Correct |
211 ms |
445776 KB |
Output is correct |
43 |
Correct |
222 ms |
465744 KB |
Output is correct |
44 |
Correct |
308 ms |
517716 KB |
Output is correct |
45 |
Correct |
312 ms |
529492 KB |
Output is correct |
46 |
Correct |
484 ms |
578852 KB |
Output is correct |
47 |
Correct |
499 ms |
578896 KB |
Output is correct |
48 |
Correct |
441 ms |
578896 KB |
Output is correct |
49 |
Correct |
471 ms |
792660 KB |
Output is correct |
50 |
Correct |
471 ms |
792656 KB |
Output is correct |
51 |
Correct |
515 ms |
578896 KB |
Output is correct |
52 |
Correct |
549 ms |
578808 KB |
Output is correct |
53 |
Correct |
488 ms |
578676 KB |
Output is correct |
54 |
Correct |
165 ms |
423196 KB |
Output is correct |
55 |
Correct |
173 ms |
423256 KB |
Output is correct |
56 |
Correct |
179 ms |
423288 KB |
Output is correct |
57 |
Correct |
196 ms |
423204 KB |
Output is correct |
58 |
Correct |
170 ms |
423508 KB |
Output is correct |
59 |
Correct |
190 ms |
423252 KB |
Output is correct |
60 |
Correct |
205 ms |
423248 KB |
Output is correct |
61 |
Correct |
167 ms |
423248 KB |
Output is correct |
62 |
Correct |
176 ms |
423504 KB |
Output is correct |
63 |
Correct |
180 ms |
423504 KB |
Output is correct |
64 |
Correct |
178 ms |
423324 KB |
Output is correct |
65 |
Correct |
190 ms |
423448 KB |
Output is correct |
66 |
Correct |
171 ms |
423508 KB |
Output is correct |
67 |
Correct |
166 ms |
423416 KB |
Output is correct |
68 |
Correct |
171 ms |
423768 KB |
Output is correct |
69 |
Correct |
169 ms |
423512 KB |
Output is correct |
70 |
Correct |
171 ms |
423508 KB |
Output is correct |
71 |
Correct |
169 ms |
423252 KB |
Output is correct |
72 |
Correct |
179 ms |
423340 KB |
Output is correct |
73 |
Correct |
182 ms |
423480 KB |
Output is correct |
74 |
Correct |
171 ms |
423248 KB |
Output is correct |
75 |
Correct |
173 ms |
423508 KB |
Output is correct |
76 |
Correct |
173 ms |
423416 KB |
Output is correct |
77 |
Correct |
173 ms |
423252 KB |
Output is correct |
78 |
Correct |
164 ms |
423400 KB |
Output is correct |
79 |
Correct |
170 ms |
423248 KB |
Output is correct |
80 |
Correct |
177 ms |
423252 KB |
Output is correct |
81 |
Correct |
169 ms |
423720 KB |
Output is correct |
82 |
Correct |
169 ms |
423364 KB |
Output is correct |
83 |
Correct |
170 ms |
423484 KB |
Output is correct |
84 |
Correct |
176 ms |
423508 KB |
Output is correct |
85 |
Correct |
168 ms |
423456 KB |
Output is correct |
86 |
Correct |
172 ms |
423252 KB |
Output is correct |
87 |
Correct |
176 ms |
423404 KB |
Output is correct |
88 |
Correct |
182 ms |
423248 KB |
Output is correct |
89 |
Correct |
176 ms |
423392 KB |
Output is correct |
90 |
Correct |
175 ms |
423244 KB |
Output is correct |
91 |
Correct |
199 ms |
423316 KB |
Output is correct |
92 |
Correct |
168 ms |
423504 KB |
Output is correct |
93 |
Correct |
176 ms |
423492 KB |
Output is correct |
94 |
Correct |
178 ms |
423564 KB |
Output is correct |
95 |
Correct |
170 ms |
423508 KB |
Output is correct |
96 |
Correct |
174 ms |
423532 KB |
Output is correct |
97 |
Correct |
177 ms |
424016 KB |
Output is correct |
98 |
Correct |
173 ms |
423248 KB |
Output is correct |
99 |
Correct |
169 ms |
423408 KB |
Output is correct |
100 |
Correct |
173 ms |
423248 KB |
Output is correct |
101 |
Correct |
174 ms |
423528 KB |
Output is correct |
102 |
Correct |
173 ms |
423252 KB |
Output is correct |
103 |
Correct |
176 ms |
423332 KB |
Output is correct |
104 |
Correct |
175 ms |
423304 KB |
Output is correct |
105 |
Correct |
170 ms |
423408 KB |
Output is correct |
106 |
Correct |
171 ms |
423504 KB |
Output is correct |
107 |
Correct |
179 ms |
423424 KB |
Output is correct |
108 |
Correct |
177 ms |
423508 KB |
Output is correct |
109 |
Correct |
173 ms |
423508 KB |
Output is correct |
110 |
Correct |
186 ms |
427600 KB |
Output is correct |
111 |
Correct |
185 ms |
429712 KB |
Output is correct |
112 |
Correct |
190 ms |
429652 KB |
Output is correct |
113 |
Correct |
176 ms |
430416 KB |
Output is correct |
114 |
Correct |
178 ms |
430164 KB |
Output is correct |
115 |
Correct |
179 ms |
430384 KB |
Output is correct |
116 |
Correct |
175 ms |
430348 KB |
Output is correct |
117 |
Correct |
187 ms |
429576 KB |
Output is correct |
118 |
Correct |
184 ms |
429648 KB |
Output is correct |
119 |
Correct |
187 ms |
437080 KB |
Output is correct |
120 |
Correct |
188 ms |
438868 KB |
Output is correct |
121 |
Correct |
187 ms |
440656 KB |
Output is correct |
122 |
Correct |
200 ms |
440660 KB |
Output is correct |
123 |
Correct |
195 ms |
440912 KB |
Output is correct |
124 |
Correct |
286 ms |
472148 KB |
Output is correct |
125 |
Correct |
548 ms |
567564 KB |
Output is correct |
126 |
Correct |
478 ms |
578896 KB |
Output is correct |
127 |
Correct |
550 ms |
596412 KB |
Output is correct |
128 |
Correct |
602 ms |
596244 KB |
Output is correct |
129 |
Correct |
525 ms |
596456 KB |
Output is correct |
130 |
Correct |
643 ms |
592420 KB |
Output is correct |
131 |
Correct |
687 ms |
591392 KB |
Output is correct |
132 |
Correct |
179 ms |
429656 KB |
Output is correct |
133 |
Correct |
173 ms |
423504 KB |
Output is correct |
134 |
Correct |
176 ms |
424196 KB |
Output is correct |
135 |
Correct |
188 ms |
427596 KB |
Output is correct |
136 |
Correct |
183 ms |
434772 KB |
Output is correct |
137 |
Correct |
189 ms |
429652 KB |
Output is correct |
138 |
Correct |
178 ms |
429652 KB |
Output is correct |
139 |
Correct |
179 ms |
429648 KB |
Output is correct |
140 |
Correct |
178 ms |
429648 KB |
Output is correct |
141 |
Correct |
174 ms |
430416 KB |
Output is correct |
142 |
Correct |
181 ms |
430160 KB |
Output is correct |
143 |
Correct |
202 ms |
430388 KB |
Output is correct |
144 |
Correct |
182 ms |
438096 KB |
Output is correct |
145 |
Correct |
182 ms |
438140 KB |
Output is correct |
146 |
Correct |
201 ms |
434256 KB |
Output is correct |
147 |
Correct |
175 ms |
430672 KB |
Output is correct |
148 |
Correct |
181 ms |
430400 KB |
Output is correct |
149 |
Correct |
174 ms |
430416 KB |
Output is correct |
150 |
Correct |
195 ms |
430432 KB |
Output is correct |
151 |
Correct |
186 ms |
429688 KB |
Output is correct |
152 |
Correct |
180 ms |
429648 KB |
Output is correct |
153 |
Correct |
182 ms |
429488 KB |
Output is correct |
154 |
Correct |
201 ms |
438968 KB |
Output is correct |
155 |
Correct |
185 ms |
434008 KB |
Output is correct |
156 |
Correct |
215 ms |
437284 KB |
Output is correct |
157 |
Correct |
205 ms |
440464 KB |
Output is correct |
158 |
Correct |
204 ms |
438860 KB |
Output is correct |
159 |
Correct |
195 ms |
438860 KB |
Output is correct |
160 |
Correct |
196 ms |
438868 KB |
Output is correct |
161 |
Correct |
193 ms |
440764 KB |
Output is correct |
162 |
Correct |
196 ms |
440656 KB |
Output is correct |
163 |
Correct |
210 ms |
440660 KB |
Output is correct |
164 |
Correct |
208 ms |
460204 KB |
Output is correct |
165 |
Correct |
203 ms |
460368 KB |
Output is correct |
166 |
Correct |
206 ms |
451032 KB |
Output is correct |
167 |
Correct |
196 ms |
441428 KB |
Output is correct |
168 |
Correct |
198 ms |
441168 KB |
Output is correct |
169 |
Correct |
222 ms |
440848 KB |
Output is correct |
170 |
Correct |
196 ms |
440656 KB |
Output is correct |
171 |
Correct |
197 ms |
438880 KB |
Output is correct |
172 |
Correct |
211 ms |
438868 KB |
Output is correct |
173 |
Correct |
199 ms |
438868 KB |
Output is correct |
174 |
Correct |
250 ms |
447316 KB |
Output is correct |
175 |
Correct |
216 ms |
462672 KB |
Output is correct |
176 |
Correct |
334 ms |
544848 KB |
Output is correct |
177 |
Correct |
339 ms |
543824 KB |
Output is correct |
178 |
Correct |
379 ms |
575016 KB |
Output is correct |
179 |
Correct |
521 ms |
601172 KB |
Output is correct |
180 |
Correct |
417 ms |
597724 KB |
Output is correct |
181 |
Correct |
477 ms |
597136 KB |
Output is correct |
182 |
Correct |
472 ms |
596696 KB |
Output is correct |
183 |
Correct |
541 ms |
594000 KB |
Output is correct |
184 |
Correct |
881 ms |
733968 KB |
Output is correct |
185 |
Correct |
459 ms |
617296 KB |
Output is correct |
186 |
Correct |
686 ms |
618584 KB |
Output is correct |
187 |
Correct |
654 ms |
666192 KB |
Output is correct |
188 |
Correct |
707 ms |
733780 KB |
Output is correct |
189 |
Correct |
896 ms |
733728 KB |
Output is correct |
190 |
Correct |
747 ms |
733792 KB |
Output is correct |
191 |
Correct |
912 ms |
768840 KB |
Output is correct |
192 |
Correct |
1135 ms |
769104 KB |
Output is correct |
193 |
Correct |
1075 ms |
769180 KB |
Output is correct |
194 |
Correct |
806 ms |
1161900 KB |
Output is correct |
195 |
Correct |
817 ms |
1161944 KB |
Output is correct |
196 |
Correct |
641 ms |
772948 KB |
Output is correct |
197 |
Correct |
652 ms |
771380 KB |
Output is correct |
198 |
Correct |
639 ms |
770180 KB |
Output is correct |
199 |
Correct |
658 ms |
769620 KB |
Output is correct |
200 |
Correct |
897 ms |
733780 KB |
Output is correct |
201 |
Correct |
898 ms |
733780 KB |
Output is correct |
202 |
Correct |
842 ms |
733776 KB |
Output is correct |
203 |
Correct |
1504 ms |
1043536 KB |
Output is correct |
204 |
Correct |
903 ms |
781904 KB |
Output is correct |
205 |
Correct |
1012 ms |
829008 KB |
Output is correct |
206 |
Correct |
1190 ms |
1065556 KB |
Output is correct |
207 |
Correct |
1505 ms |
1043464 KB |
Output is correct |
208 |
Correct |
1734 ms |
1043508 KB |
Output is correct |
209 |
Correct |
1474 ms |
1043544 KB |
Output is correct |
210 |
Correct |
1868 ms |
1078944 KB |
Output is correct |
211 |
Correct |
1957 ms |
1081416 KB |
Output is correct |
212 |
Execution timed out |
2031 ms |
1081504 KB |
Time limit exceeded |
213 |
Halted |
0 ms |
0 KB |
- |