# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1023242 |
2024-07-14T14:02:18 Z |
snpmrnhlol |
Maze (JOI23_ho_t3) |
C++17 |
|
1836 ms |
1573784 KB |
#include<bits/stdc++.h>
#pragma GCC optimize("O3,unroll-loops")
using namespace std;
const int N = 6e6;
const int inf = 2e9;
vector <char> v[N];
vector <vector<bool>> vis[N];
int k,n,m,sx,sy,ex,ey;
queue <array<int,2>> q[2];
queue <array<int,3>> q2;
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>(2,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;
q[0].push({sx,sy});
for(int i = 0;i <= n + m;i++){
while(!q[i%2].empty()){
auto x = q[i%2].front();
q[i%2].pop();
if(x[0] == ex && x[1] == ey){
ans = i;
}
///bfs
if(!vis[x[0]][x[1]][1]){
q2.push({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[i%2].push({nx,ny});
}
}
}
while(!q2.empty()){
auto x = q2.front();
q2.pop();
if(!vis[x[0]][x[1]][0]){
q[(i%2)^1].push({x[0],x[1]});
vis[x[0]][x[1]][0] = 1;
}
if(x[2] != k - 1){
for(int j = 0;j < 8;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.push({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[(i%2)^1].push({nx,ny});
}
}
}
}
}
cout<<ans<<'\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
110 ms |
282192 KB |
Output is correct |
2 |
Correct |
113 ms |
282240 KB |
Output is correct |
3 |
Correct |
112 ms |
282192 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
115 ms |
282312 KB |
Output is correct |
6 |
Correct |
113 ms |
282096 KB |
Output is correct |
7 |
Correct |
116 ms |
282456 KB |
Output is correct |
8 |
Correct |
111 ms |
282320 KB |
Output is correct |
9 |
Correct |
111 ms |
282192 KB |
Output is correct |
10 |
Correct |
121 ms |
282192 KB |
Output is correct |
11 |
Correct |
130 ms |
282084 KB |
Output is correct |
12 |
Correct |
111 ms |
282152 KB |
Output is correct |
13 |
Correct |
119 ms |
282120 KB |
Output is correct |
14 |
Correct |
112 ms |
282192 KB |
Output is correct |
15 |
Correct |
111 ms |
282192 KB |
Output is correct |
16 |
Correct |
112 ms |
282264 KB |
Output is correct |
17 |
Correct |
115 ms |
282196 KB |
Output is correct |
18 |
Correct |
111 ms |
282124 KB |
Output is correct |
19 |
Correct |
132 ms |
286616 KB |
Output is correct |
20 |
Correct |
120 ms |
292184 KB |
Output is correct |
21 |
Correct |
141 ms |
287320 KB |
Output is correct |
22 |
Correct |
123 ms |
286504 KB |
Output is correct |
23 |
Correct |
119 ms |
286548 KB |
Output is correct |
24 |
Correct |
121 ms |
294992 KB |
Output is correct |
25 |
Correct |
122 ms |
295048 KB |
Output is correct |
26 |
Correct |
134 ms |
286548 KB |
Output is correct |
27 |
Correct |
120 ms |
286620 KB |
Output is correct |
28 |
Correct |
130 ms |
286584 KB |
Output is correct |
29 |
Correct |
126 ms |
292992 KB |
Output is correct |
30 |
Correct |
129 ms |
290896 KB |
Output is correct |
31 |
Correct |
125 ms |
294948 KB |
Output is correct |
32 |
Correct |
134 ms |
293244 KB |
Output is correct |
33 |
Correct |
127 ms |
293200 KB |
Output is correct |
34 |
Correct |
146 ms |
314452 KB |
Output is correct |
35 |
Correct |
140 ms |
314448 KB |
Output is correct |
36 |
Correct |
133 ms |
293204 KB |
Output is correct |
37 |
Correct |
132 ms |
293224 KB |
Output is correct |
38 |
Correct |
126 ms |
293200 KB |
Output is correct |
39 |
Correct |
371 ms |
391248 KB |
Output is correct |
40 |
Correct |
136 ms |
295980 KB |
Output is correct |
41 |
Correct |
144 ms |
321700 KB |
Output is correct |
42 |
Correct |
137 ms |
297808 KB |
Output is correct |
43 |
Correct |
151 ms |
316896 KB |
Output is correct |
44 |
Correct |
225 ms |
353628 KB |
Output is correct |
45 |
Correct |
213 ms |
363092 KB |
Output is correct |
46 |
Correct |
286 ms |
409096 KB |
Output is correct |
47 |
Correct |
366 ms |
391252 KB |
Output is correct |
48 |
Correct |
334 ms |
390992 KB |
Output is correct |
49 |
Correct |
365 ms |
604944 KB |
Output is correct |
50 |
Correct |
373 ms |
605008 KB |
Output is correct |
51 |
Correct |
442 ms |
391760 KB |
Output is correct |
52 |
Correct |
378 ms |
391216 KB |
Output is correct |
53 |
Correct |
316 ms |
391024 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
112 ms |
282160 KB |
Output is correct |
2 |
Correct |
120 ms |
282224 KB |
Output is correct |
3 |
Correct |
114 ms |
282132 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
111 ms |
282268 KB |
Output is correct |
6 |
Correct |
112 ms |
282244 KB |
Output is correct |
7 |
Correct |
122 ms |
282444 KB |
Output is correct |
8 |
Correct |
112 ms |
282104 KB |
Output is correct |
9 |
Correct |
140 ms |
282196 KB |
Output is correct |
10 |
Correct |
113 ms |
282164 KB |
Output is correct |
11 |
Correct |
143 ms |
282156 KB |
Output is correct |
12 |
Correct |
135 ms |
282192 KB |
Output is correct |
13 |
Correct |
130 ms |
282124 KB |
Output is correct |
14 |
Correct |
130 ms |
282192 KB |
Output is correct |
15 |
Correct |
116 ms |
282452 KB |
Output is correct |
16 |
Correct |
136 ms |
282448 KB |
Output is correct |
17 |
Correct |
113 ms |
282192 KB |
Output is correct |
18 |
Correct |
113 ms |
282056 KB |
Output is correct |
19 |
Correct |
124 ms |
282348 KB |
Output is correct |
20 |
Correct |
115 ms |
282196 KB |
Output is correct |
21 |
Correct |
121 ms |
282192 KB |
Output is correct |
22 |
Correct |
116 ms |
282192 KB |
Output is correct |
23 |
Correct |
122 ms |
282132 KB |
Output is correct |
24 |
Correct |
111 ms |
282196 KB |
Output is correct |
25 |
Correct |
115 ms |
282240 KB |
Output is correct |
26 |
Correct |
118 ms |
282200 KB |
Output is correct |
27 |
Correct |
113 ms |
282164 KB |
Output is correct |
28 |
Correct |
111 ms |
282196 KB |
Output is correct |
29 |
Correct |
112 ms |
282192 KB |
Output is correct |
30 |
Correct |
114 ms |
282156 KB |
Output is correct |
31 |
Correct |
113 ms |
282156 KB |
Output is correct |
32 |
Correct |
120 ms |
282448 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
148 ms |
282192 KB |
Output is correct |
2 |
Correct |
113 ms |
282196 KB |
Output is correct |
3 |
Correct |
112 ms |
282124 KB |
Output is correct |
4 |
Correct |
132 ms |
282192 KB |
Output is correct |
5 |
Correct |
134 ms |
282196 KB |
Output is correct |
6 |
Correct |
113 ms |
282220 KB |
Output is correct |
7 |
Correct |
114 ms |
282164 KB |
Output is correct |
8 |
Correct |
116 ms |
282196 KB |
Output is correct |
9 |
Correct |
115 ms |
282296 KB |
Output is correct |
10 |
Correct |
112 ms |
282192 KB |
Output is correct |
11 |
Correct |
112 ms |
282192 KB |
Output is correct |
12 |
Correct |
136 ms |
282444 KB |
Output is correct |
13 |
Correct |
136 ms |
282240 KB |
Output is correct |
14 |
Correct |
133 ms |
282112 KB |
Output is correct |
15 |
Correct |
132 ms |
282096 KB |
Output is correct |
16 |
Correct |
116 ms |
282196 KB |
Output is correct |
17 |
Correct |
113 ms |
282192 KB |
Output is correct |
18 |
Correct |
115 ms |
282196 KB |
Output is correct |
19 |
Correct |
143 ms |
282024 KB |
Output is correct |
20 |
Correct |
115 ms |
282260 KB |
Output is correct |
21 |
Correct |
115 ms |
282244 KB |
Output is correct |
22 |
Correct |
115 ms |
282192 KB |
Output is correct |
23 |
Correct |
116 ms |
282192 KB |
Output is correct |
24 |
Correct |
121 ms |
282268 KB |
Output is correct |
25 |
Correct |
134 ms |
285008 KB |
Output is correct |
26 |
Correct |
154 ms |
286804 KB |
Output is correct |
27 |
Correct |
167 ms |
287312 KB |
Output is correct |
28 |
Correct |
136 ms |
287316 KB |
Output is correct |
29 |
Correct |
139 ms |
287056 KB |
Output is correct |
30 |
Correct |
146 ms |
287060 KB |
Output is correct |
31 |
Correct |
144 ms |
286544 KB |
Output is correct |
32 |
Correct |
146 ms |
286548 KB |
Output is correct |
33 |
Correct |
168 ms |
286504 KB |
Output is correct |
34 |
Correct |
165 ms |
292476 KB |
Output is correct |
35 |
Correct |
145 ms |
294992 KB |
Output is correct |
36 |
Correct |
147 ms |
294996 KB |
Output is correct |
37 |
Correct |
149 ms |
294284 KB |
Output is correct |
38 |
Correct |
144 ms |
294224 KB |
Output is correct |
39 |
Correct |
210 ms |
319024 KB |
Output is correct |
40 |
Correct |
464 ms |
391584 KB |
Output is correct |
41 |
Correct |
341 ms |
409068 KB |
Output is correct |
42 |
Correct |
395 ms |
409340 KB |
Output is correct |
43 |
Correct |
334 ms |
403436 KB |
Output is correct |
44 |
Correct |
363 ms |
403448 KB |
Output is correct |
45 |
Correct |
546 ms |
411560 KB |
Output is correct |
46 |
Correct |
520 ms |
410776 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
112 ms |
282160 KB |
Output is correct |
2 |
Correct |
120 ms |
282224 KB |
Output is correct |
3 |
Correct |
114 ms |
282132 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
111 ms |
282268 KB |
Output is correct |
6 |
Correct |
112 ms |
282244 KB |
Output is correct |
7 |
Correct |
122 ms |
282444 KB |
Output is correct |
8 |
Correct |
112 ms |
282104 KB |
Output is correct |
9 |
Correct |
140 ms |
282196 KB |
Output is correct |
10 |
Correct |
113 ms |
282164 KB |
Output is correct |
11 |
Correct |
143 ms |
282156 KB |
Output is correct |
12 |
Correct |
135 ms |
282192 KB |
Output is correct |
13 |
Correct |
130 ms |
282124 KB |
Output is correct |
14 |
Correct |
130 ms |
282192 KB |
Output is correct |
15 |
Correct |
116 ms |
282452 KB |
Output is correct |
16 |
Correct |
136 ms |
282448 KB |
Output is correct |
17 |
Correct |
113 ms |
282192 KB |
Output is correct |
18 |
Correct |
113 ms |
282056 KB |
Output is correct |
19 |
Correct |
124 ms |
282348 KB |
Output is correct |
20 |
Correct |
115 ms |
282196 KB |
Output is correct |
21 |
Correct |
121 ms |
282192 KB |
Output is correct |
22 |
Correct |
116 ms |
282192 KB |
Output is correct |
23 |
Correct |
122 ms |
282132 KB |
Output is correct |
24 |
Correct |
111 ms |
282196 KB |
Output is correct |
25 |
Correct |
115 ms |
282240 KB |
Output is correct |
26 |
Correct |
118 ms |
282200 KB |
Output is correct |
27 |
Correct |
113 ms |
282164 KB |
Output is correct |
28 |
Correct |
111 ms |
282196 KB |
Output is correct |
29 |
Correct |
112 ms |
282192 KB |
Output is correct |
30 |
Correct |
114 ms |
282156 KB |
Output is correct |
31 |
Correct |
113 ms |
282156 KB |
Output is correct |
32 |
Correct |
120 ms |
282448 KB |
Output is correct |
33 |
Correct |
144 ms |
286584 KB |
Output is correct |
34 |
Correct |
167 ms |
282604 KB |
Output is correct |
35 |
Correct |
135 ms |
282880 KB |
Output is correct |
36 |
Correct |
142 ms |
285008 KB |
Output is correct |
37 |
Correct |
148 ms |
292176 KB |
Output is correct |
38 |
Correct |
142 ms |
286800 KB |
Output is correct |
39 |
Correct |
167 ms |
287372 KB |
Output is correct |
40 |
Correct |
142 ms |
286684 KB |
Output is correct |
41 |
Correct |
130 ms |
286504 KB |
Output is correct |
42 |
Correct |
140 ms |
287312 KB |
Output is correct |
43 |
Correct |
141 ms |
287060 KB |
Output is correct |
44 |
Correct |
139 ms |
287064 KB |
Output is correct |
45 |
Correct |
146 ms |
295180 KB |
Output is correct |
46 |
Correct |
147 ms |
294924 KB |
Output is correct |
47 |
Correct |
146 ms |
290640 KB |
Output is correct |
48 |
Correct |
139 ms |
287056 KB |
Output is correct |
49 |
Correct |
136 ms |
286772 KB |
Output is correct |
50 |
Correct |
138 ms |
286804 KB |
Output is correct |
51 |
Correct |
142 ms |
286548 KB |
Output is correct |
52 |
Correct |
141 ms |
286612 KB |
Output is correct |
53 |
Correct |
138 ms |
286564 KB |
Output is correct |
54 |
Correct |
143 ms |
286620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
112 ms |
282160 KB |
Output is correct |
2 |
Correct |
120 ms |
282224 KB |
Output is correct |
3 |
Correct |
114 ms |
282132 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
111 ms |
282268 KB |
Output is correct |
6 |
Correct |
112 ms |
282244 KB |
Output is correct |
7 |
Correct |
122 ms |
282444 KB |
Output is correct |
8 |
Correct |
112 ms |
282104 KB |
Output is correct |
9 |
Correct |
140 ms |
282196 KB |
Output is correct |
10 |
Correct |
113 ms |
282164 KB |
Output is correct |
11 |
Correct |
143 ms |
282156 KB |
Output is correct |
12 |
Correct |
135 ms |
282192 KB |
Output is correct |
13 |
Correct |
130 ms |
282124 KB |
Output is correct |
14 |
Correct |
130 ms |
282192 KB |
Output is correct |
15 |
Correct |
116 ms |
282452 KB |
Output is correct |
16 |
Correct |
136 ms |
282448 KB |
Output is correct |
17 |
Correct |
113 ms |
282192 KB |
Output is correct |
18 |
Correct |
113 ms |
282056 KB |
Output is correct |
19 |
Correct |
124 ms |
282348 KB |
Output is correct |
20 |
Correct |
115 ms |
282196 KB |
Output is correct |
21 |
Correct |
121 ms |
282192 KB |
Output is correct |
22 |
Correct |
116 ms |
282192 KB |
Output is correct |
23 |
Correct |
122 ms |
282132 KB |
Output is correct |
24 |
Correct |
111 ms |
282196 KB |
Output is correct |
25 |
Correct |
115 ms |
282240 KB |
Output is correct |
26 |
Correct |
118 ms |
282200 KB |
Output is correct |
27 |
Correct |
113 ms |
282164 KB |
Output is correct |
28 |
Correct |
111 ms |
282196 KB |
Output is correct |
29 |
Correct |
112 ms |
282192 KB |
Output is correct |
30 |
Correct |
114 ms |
282156 KB |
Output is correct |
31 |
Correct |
113 ms |
282156 KB |
Output is correct |
32 |
Correct |
120 ms |
282448 KB |
Output is correct |
33 |
Correct |
144 ms |
286584 KB |
Output is correct |
34 |
Correct |
167 ms |
282604 KB |
Output is correct |
35 |
Correct |
135 ms |
282880 KB |
Output is correct |
36 |
Correct |
142 ms |
285008 KB |
Output is correct |
37 |
Correct |
148 ms |
292176 KB |
Output is correct |
38 |
Correct |
142 ms |
286800 KB |
Output is correct |
39 |
Correct |
167 ms |
287372 KB |
Output is correct |
40 |
Correct |
142 ms |
286684 KB |
Output is correct |
41 |
Correct |
130 ms |
286504 KB |
Output is correct |
42 |
Correct |
140 ms |
287312 KB |
Output is correct |
43 |
Correct |
141 ms |
287060 KB |
Output is correct |
44 |
Correct |
139 ms |
287064 KB |
Output is correct |
45 |
Correct |
146 ms |
295180 KB |
Output is correct |
46 |
Correct |
147 ms |
294924 KB |
Output is correct |
47 |
Correct |
146 ms |
290640 KB |
Output is correct |
48 |
Correct |
139 ms |
287056 KB |
Output is correct |
49 |
Correct |
136 ms |
286772 KB |
Output is correct |
50 |
Correct |
138 ms |
286804 KB |
Output is correct |
51 |
Correct |
142 ms |
286548 KB |
Output is correct |
52 |
Correct |
141 ms |
286612 KB |
Output is correct |
53 |
Correct |
138 ms |
286564 KB |
Output is correct |
54 |
Correct |
143 ms |
286620 KB |
Output is correct |
55 |
Correct |
139 ms |
293200 KB |
Output is correct |
56 |
Correct |
140 ms |
291016 KB |
Output is correct |
57 |
Correct |
153 ms |
292476 KB |
Output is correct |
58 |
Correct |
145 ms |
293460 KB |
Output is correct |
59 |
Correct |
146 ms |
295024 KB |
Output is correct |
60 |
Correct |
155 ms |
293200 KB |
Output is correct |
61 |
Correct |
148 ms |
293216 KB |
Output is correct |
62 |
Correct |
156 ms |
294992 KB |
Output is correct |
63 |
Correct |
151 ms |
294248 KB |
Output is correct |
64 |
Correct |
155 ms |
294392 KB |
Output is correct |
65 |
Correct |
158 ms |
314520 KB |
Output is correct |
66 |
Correct |
163 ms |
314452 KB |
Output is correct |
67 |
Correct |
163 ms |
303620 KB |
Output is correct |
68 |
Correct |
148 ms |
294076 KB |
Output is correct |
69 |
Correct |
148 ms |
293704 KB |
Output is correct |
70 |
Correct |
188 ms |
293404 KB |
Output is correct |
71 |
Correct |
149 ms |
293456 KB |
Output is correct |
72 |
Correct |
175 ms |
293188 KB |
Output is correct |
73 |
Correct |
161 ms |
293204 KB |
Output is correct |
74 |
Correct |
178 ms |
293460 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
110 ms |
282192 KB |
Output is correct |
2 |
Correct |
113 ms |
282240 KB |
Output is correct |
3 |
Correct |
112 ms |
282192 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
115 ms |
282312 KB |
Output is correct |
6 |
Correct |
113 ms |
282096 KB |
Output is correct |
7 |
Correct |
116 ms |
282456 KB |
Output is correct |
8 |
Correct |
111 ms |
282320 KB |
Output is correct |
9 |
Correct |
111 ms |
282192 KB |
Output is correct |
10 |
Correct |
121 ms |
282192 KB |
Output is correct |
11 |
Correct |
130 ms |
282084 KB |
Output is correct |
12 |
Correct |
111 ms |
282152 KB |
Output is correct |
13 |
Correct |
119 ms |
282120 KB |
Output is correct |
14 |
Correct |
112 ms |
282192 KB |
Output is correct |
15 |
Correct |
111 ms |
282192 KB |
Output is correct |
16 |
Correct |
112 ms |
282264 KB |
Output is correct |
17 |
Correct |
115 ms |
282196 KB |
Output is correct |
18 |
Correct |
111 ms |
282124 KB |
Output is correct |
19 |
Correct |
132 ms |
286616 KB |
Output is correct |
20 |
Correct |
120 ms |
292184 KB |
Output is correct |
21 |
Correct |
141 ms |
287320 KB |
Output is correct |
22 |
Correct |
123 ms |
286504 KB |
Output is correct |
23 |
Correct |
119 ms |
286548 KB |
Output is correct |
24 |
Correct |
121 ms |
294992 KB |
Output is correct |
25 |
Correct |
122 ms |
295048 KB |
Output is correct |
26 |
Correct |
134 ms |
286548 KB |
Output is correct |
27 |
Correct |
120 ms |
286620 KB |
Output is correct |
28 |
Correct |
130 ms |
286584 KB |
Output is correct |
29 |
Correct |
126 ms |
292992 KB |
Output is correct |
30 |
Correct |
129 ms |
290896 KB |
Output is correct |
31 |
Correct |
125 ms |
294948 KB |
Output is correct |
32 |
Correct |
134 ms |
293244 KB |
Output is correct |
33 |
Correct |
127 ms |
293200 KB |
Output is correct |
34 |
Correct |
146 ms |
314452 KB |
Output is correct |
35 |
Correct |
140 ms |
314448 KB |
Output is correct |
36 |
Correct |
133 ms |
293204 KB |
Output is correct |
37 |
Correct |
132 ms |
293224 KB |
Output is correct |
38 |
Correct |
126 ms |
293200 KB |
Output is correct |
39 |
Correct |
371 ms |
391248 KB |
Output is correct |
40 |
Correct |
136 ms |
295980 KB |
Output is correct |
41 |
Correct |
144 ms |
321700 KB |
Output is correct |
42 |
Correct |
137 ms |
297808 KB |
Output is correct |
43 |
Correct |
151 ms |
316896 KB |
Output is correct |
44 |
Correct |
225 ms |
353628 KB |
Output is correct |
45 |
Correct |
213 ms |
363092 KB |
Output is correct |
46 |
Correct |
286 ms |
409096 KB |
Output is correct |
47 |
Correct |
366 ms |
391252 KB |
Output is correct |
48 |
Correct |
334 ms |
390992 KB |
Output is correct |
49 |
Correct |
365 ms |
604944 KB |
Output is correct |
50 |
Correct |
373 ms |
605008 KB |
Output is correct |
51 |
Correct |
442 ms |
391760 KB |
Output is correct |
52 |
Correct |
378 ms |
391216 KB |
Output is correct |
53 |
Correct |
316 ms |
391024 KB |
Output is correct |
54 |
Correct |
112 ms |
282160 KB |
Output is correct |
55 |
Correct |
120 ms |
282224 KB |
Output is correct |
56 |
Correct |
114 ms |
282132 KB |
Output is correct |
57 |
Correct |
113 ms |
282192 KB |
Output is correct |
58 |
Correct |
111 ms |
282268 KB |
Output is correct |
59 |
Correct |
112 ms |
282244 KB |
Output is correct |
60 |
Correct |
122 ms |
282444 KB |
Output is correct |
61 |
Correct |
112 ms |
282104 KB |
Output is correct |
62 |
Correct |
140 ms |
282196 KB |
Output is correct |
63 |
Correct |
113 ms |
282164 KB |
Output is correct |
64 |
Correct |
143 ms |
282156 KB |
Output is correct |
65 |
Correct |
135 ms |
282192 KB |
Output is correct |
66 |
Correct |
130 ms |
282124 KB |
Output is correct |
67 |
Correct |
130 ms |
282192 KB |
Output is correct |
68 |
Correct |
116 ms |
282452 KB |
Output is correct |
69 |
Correct |
136 ms |
282448 KB |
Output is correct |
70 |
Correct |
113 ms |
282192 KB |
Output is correct |
71 |
Correct |
113 ms |
282056 KB |
Output is correct |
72 |
Correct |
124 ms |
282348 KB |
Output is correct |
73 |
Correct |
115 ms |
282196 KB |
Output is correct |
74 |
Correct |
121 ms |
282192 KB |
Output is correct |
75 |
Correct |
116 ms |
282192 KB |
Output is correct |
76 |
Correct |
122 ms |
282132 KB |
Output is correct |
77 |
Correct |
111 ms |
282196 KB |
Output is correct |
78 |
Correct |
115 ms |
282240 KB |
Output is correct |
79 |
Correct |
118 ms |
282200 KB |
Output is correct |
80 |
Correct |
113 ms |
282164 KB |
Output is correct |
81 |
Correct |
111 ms |
282196 KB |
Output is correct |
82 |
Correct |
112 ms |
282192 KB |
Output is correct |
83 |
Correct |
114 ms |
282156 KB |
Output is correct |
84 |
Correct |
113 ms |
282156 KB |
Output is correct |
85 |
Correct |
120 ms |
282448 KB |
Output is correct |
86 |
Correct |
148 ms |
282192 KB |
Output is correct |
87 |
Correct |
113 ms |
282196 KB |
Output is correct |
88 |
Correct |
112 ms |
282124 KB |
Output is correct |
89 |
Correct |
132 ms |
282192 KB |
Output is correct |
90 |
Correct |
134 ms |
282196 KB |
Output is correct |
91 |
Correct |
113 ms |
282220 KB |
Output is correct |
92 |
Correct |
114 ms |
282164 KB |
Output is correct |
93 |
Correct |
116 ms |
282196 KB |
Output is correct |
94 |
Correct |
115 ms |
282296 KB |
Output is correct |
95 |
Correct |
112 ms |
282192 KB |
Output is correct |
96 |
Correct |
112 ms |
282192 KB |
Output is correct |
97 |
Correct |
136 ms |
282444 KB |
Output is correct |
98 |
Correct |
136 ms |
282240 KB |
Output is correct |
99 |
Correct |
133 ms |
282112 KB |
Output is correct |
100 |
Correct |
132 ms |
282096 KB |
Output is correct |
101 |
Correct |
116 ms |
282196 KB |
Output is correct |
102 |
Correct |
113 ms |
282192 KB |
Output is correct |
103 |
Correct |
115 ms |
282196 KB |
Output is correct |
104 |
Correct |
143 ms |
282024 KB |
Output is correct |
105 |
Correct |
115 ms |
282260 KB |
Output is correct |
106 |
Correct |
115 ms |
282244 KB |
Output is correct |
107 |
Correct |
115 ms |
282192 KB |
Output is correct |
108 |
Correct |
116 ms |
282192 KB |
Output is correct |
109 |
Correct |
121 ms |
282268 KB |
Output is correct |
110 |
Correct |
134 ms |
285008 KB |
Output is correct |
111 |
Correct |
154 ms |
286804 KB |
Output is correct |
112 |
Correct |
167 ms |
287312 KB |
Output is correct |
113 |
Correct |
136 ms |
287316 KB |
Output is correct |
114 |
Correct |
139 ms |
287056 KB |
Output is correct |
115 |
Correct |
146 ms |
287060 KB |
Output is correct |
116 |
Correct |
144 ms |
286544 KB |
Output is correct |
117 |
Correct |
146 ms |
286548 KB |
Output is correct |
118 |
Correct |
168 ms |
286504 KB |
Output is correct |
119 |
Correct |
165 ms |
292476 KB |
Output is correct |
120 |
Correct |
145 ms |
294992 KB |
Output is correct |
121 |
Correct |
147 ms |
294996 KB |
Output is correct |
122 |
Correct |
149 ms |
294284 KB |
Output is correct |
123 |
Correct |
144 ms |
294224 KB |
Output is correct |
124 |
Correct |
210 ms |
319024 KB |
Output is correct |
125 |
Correct |
464 ms |
391584 KB |
Output is correct |
126 |
Correct |
341 ms |
409068 KB |
Output is correct |
127 |
Correct |
395 ms |
409340 KB |
Output is correct |
128 |
Correct |
334 ms |
403436 KB |
Output is correct |
129 |
Correct |
363 ms |
403448 KB |
Output is correct |
130 |
Correct |
546 ms |
411560 KB |
Output is correct |
131 |
Correct |
520 ms |
410776 KB |
Output is correct |
132 |
Correct |
144 ms |
286584 KB |
Output is correct |
133 |
Correct |
167 ms |
282604 KB |
Output is correct |
134 |
Correct |
135 ms |
282880 KB |
Output is correct |
135 |
Correct |
142 ms |
285008 KB |
Output is correct |
136 |
Correct |
148 ms |
292176 KB |
Output is correct |
137 |
Correct |
142 ms |
286800 KB |
Output is correct |
138 |
Correct |
167 ms |
287372 KB |
Output is correct |
139 |
Correct |
142 ms |
286684 KB |
Output is correct |
140 |
Correct |
130 ms |
286504 KB |
Output is correct |
141 |
Correct |
140 ms |
287312 KB |
Output is correct |
142 |
Correct |
141 ms |
287060 KB |
Output is correct |
143 |
Correct |
139 ms |
287064 KB |
Output is correct |
144 |
Correct |
146 ms |
295180 KB |
Output is correct |
145 |
Correct |
147 ms |
294924 KB |
Output is correct |
146 |
Correct |
146 ms |
290640 KB |
Output is correct |
147 |
Correct |
139 ms |
287056 KB |
Output is correct |
148 |
Correct |
136 ms |
286772 KB |
Output is correct |
149 |
Correct |
138 ms |
286804 KB |
Output is correct |
150 |
Correct |
142 ms |
286548 KB |
Output is correct |
151 |
Correct |
141 ms |
286612 KB |
Output is correct |
152 |
Correct |
138 ms |
286564 KB |
Output is correct |
153 |
Correct |
143 ms |
286620 KB |
Output is correct |
154 |
Correct |
139 ms |
293200 KB |
Output is correct |
155 |
Correct |
140 ms |
291016 KB |
Output is correct |
156 |
Correct |
153 ms |
292476 KB |
Output is correct |
157 |
Correct |
145 ms |
293460 KB |
Output is correct |
158 |
Correct |
146 ms |
295024 KB |
Output is correct |
159 |
Correct |
155 ms |
293200 KB |
Output is correct |
160 |
Correct |
148 ms |
293216 KB |
Output is correct |
161 |
Correct |
156 ms |
294992 KB |
Output is correct |
162 |
Correct |
151 ms |
294248 KB |
Output is correct |
163 |
Correct |
155 ms |
294392 KB |
Output is correct |
164 |
Correct |
158 ms |
314520 KB |
Output is correct |
165 |
Correct |
163 ms |
314452 KB |
Output is correct |
166 |
Correct |
163 ms |
303620 KB |
Output is correct |
167 |
Correct |
148 ms |
294076 KB |
Output is correct |
168 |
Correct |
148 ms |
293704 KB |
Output is correct |
169 |
Correct |
188 ms |
293404 KB |
Output is correct |
170 |
Correct |
149 ms |
293456 KB |
Output is correct |
171 |
Correct |
175 ms |
293188 KB |
Output is correct |
172 |
Correct |
161 ms |
293204 KB |
Output is correct |
173 |
Correct |
178 ms |
293460 KB |
Output is correct |
174 |
Correct |
154 ms |
298572 KB |
Output is correct |
175 |
Correct |
164 ms |
307280 KB |
Output is correct |
176 |
Correct |
256 ms |
373508 KB |
Output is correct |
177 |
Correct |
291 ms |
361300 KB |
Output is correct |
178 |
Correct |
333 ms |
381932 KB |
Output is correct |
179 |
Correct |
366 ms |
395760 KB |
Output is correct |
180 |
Correct |
335 ms |
394064 KB |
Output is correct |
181 |
Correct |
347 ms |
393044 KB |
Output is correct |
182 |
Correct |
379 ms |
392520 KB |
Output is correct |
183 |
Correct |
431 ms |
397904 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
110 ms |
282192 KB |
Output is correct |
2 |
Correct |
113 ms |
282240 KB |
Output is correct |
3 |
Correct |
112 ms |
282192 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
115 ms |
282312 KB |
Output is correct |
6 |
Correct |
113 ms |
282096 KB |
Output is correct |
7 |
Correct |
116 ms |
282456 KB |
Output is correct |
8 |
Correct |
111 ms |
282320 KB |
Output is correct |
9 |
Correct |
111 ms |
282192 KB |
Output is correct |
10 |
Correct |
121 ms |
282192 KB |
Output is correct |
11 |
Correct |
130 ms |
282084 KB |
Output is correct |
12 |
Correct |
111 ms |
282152 KB |
Output is correct |
13 |
Correct |
119 ms |
282120 KB |
Output is correct |
14 |
Correct |
112 ms |
282192 KB |
Output is correct |
15 |
Correct |
111 ms |
282192 KB |
Output is correct |
16 |
Correct |
112 ms |
282264 KB |
Output is correct |
17 |
Correct |
115 ms |
282196 KB |
Output is correct |
18 |
Correct |
111 ms |
282124 KB |
Output is correct |
19 |
Correct |
132 ms |
286616 KB |
Output is correct |
20 |
Correct |
120 ms |
292184 KB |
Output is correct |
21 |
Correct |
141 ms |
287320 KB |
Output is correct |
22 |
Correct |
123 ms |
286504 KB |
Output is correct |
23 |
Correct |
119 ms |
286548 KB |
Output is correct |
24 |
Correct |
121 ms |
294992 KB |
Output is correct |
25 |
Correct |
122 ms |
295048 KB |
Output is correct |
26 |
Correct |
134 ms |
286548 KB |
Output is correct |
27 |
Correct |
120 ms |
286620 KB |
Output is correct |
28 |
Correct |
130 ms |
286584 KB |
Output is correct |
29 |
Correct |
126 ms |
292992 KB |
Output is correct |
30 |
Correct |
129 ms |
290896 KB |
Output is correct |
31 |
Correct |
125 ms |
294948 KB |
Output is correct |
32 |
Correct |
134 ms |
293244 KB |
Output is correct |
33 |
Correct |
127 ms |
293200 KB |
Output is correct |
34 |
Correct |
146 ms |
314452 KB |
Output is correct |
35 |
Correct |
140 ms |
314448 KB |
Output is correct |
36 |
Correct |
133 ms |
293204 KB |
Output is correct |
37 |
Correct |
132 ms |
293224 KB |
Output is correct |
38 |
Correct |
126 ms |
293200 KB |
Output is correct |
39 |
Correct |
371 ms |
391248 KB |
Output is correct |
40 |
Correct |
136 ms |
295980 KB |
Output is correct |
41 |
Correct |
144 ms |
321700 KB |
Output is correct |
42 |
Correct |
137 ms |
297808 KB |
Output is correct |
43 |
Correct |
151 ms |
316896 KB |
Output is correct |
44 |
Correct |
225 ms |
353628 KB |
Output is correct |
45 |
Correct |
213 ms |
363092 KB |
Output is correct |
46 |
Correct |
286 ms |
409096 KB |
Output is correct |
47 |
Correct |
366 ms |
391252 KB |
Output is correct |
48 |
Correct |
334 ms |
390992 KB |
Output is correct |
49 |
Correct |
365 ms |
604944 KB |
Output is correct |
50 |
Correct |
373 ms |
605008 KB |
Output is correct |
51 |
Correct |
442 ms |
391760 KB |
Output is correct |
52 |
Correct |
378 ms |
391216 KB |
Output is correct |
53 |
Correct |
316 ms |
391024 KB |
Output is correct |
54 |
Correct |
112 ms |
282160 KB |
Output is correct |
55 |
Correct |
120 ms |
282224 KB |
Output is correct |
56 |
Correct |
114 ms |
282132 KB |
Output is correct |
57 |
Correct |
113 ms |
282192 KB |
Output is correct |
58 |
Correct |
111 ms |
282268 KB |
Output is correct |
59 |
Correct |
112 ms |
282244 KB |
Output is correct |
60 |
Correct |
122 ms |
282444 KB |
Output is correct |
61 |
Correct |
112 ms |
282104 KB |
Output is correct |
62 |
Correct |
140 ms |
282196 KB |
Output is correct |
63 |
Correct |
113 ms |
282164 KB |
Output is correct |
64 |
Correct |
143 ms |
282156 KB |
Output is correct |
65 |
Correct |
135 ms |
282192 KB |
Output is correct |
66 |
Correct |
130 ms |
282124 KB |
Output is correct |
67 |
Correct |
130 ms |
282192 KB |
Output is correct |
68 |
Correct |
116 ms |
282452 KB |
Output is correct |
69 |
Correct |
136 ms |
282448 KB |
Output is correct |
70 |
Correct |
113 ms |
282192 KB |
Output is correct |
71 |
Correct |
113 ms |
282056 KB |
Output is correct |
72 |
Correct |
124 ms |
282348 KB |
Output is correct |
73 |
Correct |
115 ms |
282196 KB |
Output is correct |
74 |
Correct |
121 ms |
282192 KB |
Output is correct |
75 |
Correct |
116 ms |
282192 KB |
Output is correct |
76 |
Correct |
122 ms |
282132 KB |
Output is correct |
77 |
Correct |
111 ms |
282196 KB |
Output is correct |
78 |
Correct |
115 ms |
282240 KB |
Output is correct |
79 |
Correct |
118 ms |
282200 KB |
Output is correct |
80 |
Correct |
113 ms |
282164 KB |
Output is correct |
81 |
Correct |
111 ms |
282196 KB |
Output is correct |
82 |
Correct |
112 ms |
282192 KB |
Output is correct |
83 |
Correct |
114 ms |
282156 KB |
Output is correct |
84 |
Correct |
113 ms |
282156 KB |
Output is correct |
85 |
Correct |
120 ms |
282448 KB |
Output is correct |
86 |
Correct |
148 ms |
282192 KB |
Output is correct |
87 |
Correct |
113 ms |
282196 KB |
Output is correct |
88 |
Correct |
112 ms |
282124 KB |
Output is correct |
89 |
Correct |
132 ms |
282192 KB |
Output is correct |
90 |
Correct |
134 ms |
282196 KB |
Output is correct |
91 |
Correct |
113 ms |
282220 KB |
Output is correct |
92 |
Correct |
114 ms |
282164 KB |
Output is correct |
93 |
Correct |
116 ms |
282196 KB |
Output is correct |
94 |
Correct |
115 ms |
282296 KB |
Output is correct |
95 |
Correct |
112 ms |
282192 KB |
Output is correct |
96 |
Correct |
112 ms |
282192 KB |
Output is correct |
97 |
Correct |
136 ms |
282444 KB |
Output is correct |
98 |
Correct |
136 ms |
282240 KB |
Output is correct |
99 |
Correct |
133 ms |
282112 KB |
Output is correct |
100 |
Correct |
132 ms |
282096 KB |
Output is correct |
101 |
Correct |
116 ms |
282196 KB |
Output is correct |
102 |
Correct |
113 ms |
282192 KB |
Output is correct |
103 |
Correct |
115 ms |
282196 KB |
Output is correct |
104 |
Correct |
143 ms |
282024 KB |
Output is correct |
105 |
Correct |
115 ms |
282260 KB |
Output is correct |
106 |
Correct |
115 ms |
282244 KB |
Output is correct |
107 |
Correct |
115 ms |
282192 KB |
Output is correct |
108 |
Correct |
116 ms |
282192 KB |
Output is correct |
109 |
Correct |
121 ms |
282268 KB |
Output is correct |
110 |
Correct |
134 ms |
285008 KB |
Output is correct |
111 |
Correct |
154 ms |
286804 KB |
Output is correct |
112 |
Correct |
167 ms |
287312 KB |
Output is correct |
113 |
Correct |
136 ms |
287316 KB |
Output is correct |
114 |
Correct |
139 ms |
287056 KB |
Output is correct |
115 |
Correct |
146 ms |
287060 KB |
Output is correct |
116 |
Correct |
144 ms |
286544 KB |
Output is correct |
117 |
Correct |
146 ms |
286548 KB |
Output is correct |
118 |
Correct |
168 ms |
286504 KB |
Output is correct |
119 |
Correct |
165 ms |
292476 KB |
Output is correct |
120 |
Correct |
145 ms |
294992 KB |
Output is correct |
121 |
Correct |
147 ms |
294996 KB |
Output is correct |
122 |
Correct |
149 ms |
294284 KB |
Output is correct |
123 |
Correct |
144 ms |
294224 KB |
Output is correct |
124 |
Correct |
210 ms |
319024 KB |
Output is correct |
125 |
Correct |
464 ms |
391584 KB |
Output is correct |
126 |
Correct |
341 ms |
409068 KB |
Output is correct |
127 |
Correct |
395 ms |
409340 KB |
Output is correct |
128 |
Correct |
334 ms |
403436 KB |
Output is correct |
129 |
Correct |
363 ms |
403448 KB |
Output is correct |
130 |
Correct |
546 ms |
411560 KB |
Output is correct |
131 |
Correct |
520 ms |
410776 KB |
Output is correct |
132 |
Correct |
144 ms |
286584 KB |
Output is correct |
133 |
Correct |
167 ms |
282604 KB |
Output is correct |
134 |
Correct |
135 ms |
282880 KB |
Output is correct |
135 |
Correct |
142 ms |
285008 KB |
Output is correct |
136 |
Correct |
148 ms |
292176 KB |
Output is correct |
137 |
Correct |
142 ms |
286800 KB |
Output is correct |
138 |
Correct |
167 ms |
287372 KB |
Output is correct |
139 |
Correct |
142 ms |
286684 KB |
Output is correct |
140 |
Correct |
130 ms |
286504 KB |
Output is correct |
141 |
Correct |
140 ms |
287312 KB |
Output is correct |
142 |
Correct |
141 ms |
287060 KB |
Output is correct |
143 |
Correct |
139 ms |
287064 KB |
Output is correct |
144 |
Correct |
146 ms |
295180 KB |
Output is correct |
145 |
Correct |
147 ms |
294924 KB |
Output is correct |
146 |
Correct |
146 ms |
290640 KB |
Output is correct |
147 |
Correct |
139 ms |
287056 KB |
Output is correct |
148 |
Correct |
136 ms |
286772 KB |
Output is correct |
149 |
Correct |
138 ms |
286804 KB |
Output is correct |
150 |
Correct |
142 ms |
286548 KB |
Output is correct |
151 |
Correct |
141 ms |
286612 KB |
Output is correct |
152 |
Correct |
138 ms |
286564 KB |
Output is correct |
153 |
Correct |
143 ms |
286620 KB |
Output is correct |
154 |
Correct |
139 ms |
293200 KB |
Output is correct |
155 |
Correct |
140 ms |
291016 KB |
Output is correct |
156 |
Correct |
153 ms |
292476 KB |
Output is correct |
157 |
Correct |
145 ms |
293460 KB |
Output is correct |
158 |
Correct |
146 ms |
295024 KB |
Output is correct |
159 |
Correct |
155 ms |
293200 KB |
Output is correct |
160 |
Correct |
148 ms |
293216 KB |
Output is correct |
161 |
Correct |
156 ms |
294992 KB |
Output is correct |
162 |
Correct |
151 ms |
294248 KB |
Output is correct |
163 |
Correct |
155 ms |
294392 KB |
Output is correct |
164 |
Correct |
158 ms |
314520 KB |
Output is correct |
165 |
Correct |
163 ms |
314452 KB |
Output is correct |
166 |
Correct |
163 ms |
303620 KB |
Output is correct |
167 |
Correct |
148 ms |
294076 KB |
Output is correct |
168 |
Correct |
148 ms |
293704 KB |
Output is correct |
169 |
Correct |
188 ms |
293404 KB |
Output is correct |
170 |
Correct |
149 ms |
293456 KB |
Output is correct |
171 |
Correct |
175 ms |
293188 KB |
Output is correct |
172 |
Correct |
161 ms |
293204 KB |
Output is correct |
173 |
Correct |
178 ms |
293460 KB |
Output is correct |
174 |
Correct |
154 ms |
298572 KB |
Output is correct |
175 |
Correct |
164 ms |
307280 KB |
Output is correct |
176 |
Correct |
256 ms |
373508 KB |
Output is correct |
177 |
Correct |
291 ms |
361300 KB |
Output is correct |
178 |
Correct |
333 ms |
381932 KB |
Output is correct |
179 |
Correct |
366 ms |
395760 KB |
Output is correct |
180 |
Correct |
335 ms |
394064 KB |
Output is correct |
181 |
Correct |
347 ms |
393044 KB |
Output is correct |
182 |
Correct |
379 ms |
392520 KB |
Output is correct |
183 |
Correct |
431 ms |
397904 KB |
Output is correct |
184 |
Correct |
694 ms |
500036 KB |
Output is correct |
185 |
Correct |
359 ms |
408384 KB |
Output is correct |
186 |
Correct |
574 ms |
429904 KB |
Output is correct |
187 |
Correct |
510 ms |
438460 KB |
Output is correct |
188 |
Correct |
588 ms |
535888 KB |
Output is correct |
189 |
Correct |
715 ms |
500108 KB |
Output is correct |
190 |
Correct |
687 ms |
499848 KB |
Output is correct |
191 |
Correct |
749 ms |
536764 KB |
Output is correct |
192 |
Correct |
663 ms |
524628 KB |
Output is correct |
193 |
Correct |
606 ms |
524452 KB |
Output is correct |
194 |
Correct |
720 ms |
927828 KB |
Output is correct |
195 |
Correct |
794 ms |
927928 KB |
Output is correct |
196 |
Correct |
522 ms |
507000 KB |
Output is correct |
197 |
Correct |
517 ms |
504404 KB |
Output is correct |
198 |
Correct |
522 ms |
503124 KB |
Output is correct |
199 |
Correct |
575 ms |
502744 KB |
Output is correct |
200 |
Correct |
858 ms |
500824 KB |
Output is correct |
201 |
Correct |
823 ms |
500432 KB |
Output is correct |
202 |
Correct |
715 ms |
500308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
110 ms |
282192 KB |
Output is correct |
2 |
Correct |
113 ms |
282240 KB |
Output is correct |
3 |
Correct |
112 ms |
282192 KB |
Output is correct |
4 |
Correct |
113 ms |
282192 KB |
Output is correct |
5 |
Correct |
115 ms |
282312 KB |
Output is correct |
6 |
Correct |
113 ms |
282096 KB |
Output is correct |
7 |
Correct |
116 ms |
282456 KB |
Output is correct |
8 |
Correct |
111 ms |
282320 KB |
Output is correct |
9 |
Correct |
111 ms |
282192 KB |
Output is correct |
10 |
Correct |
121 ms |
282192 KB |
Output is correct |
11 |
Correct |
130 ms |
282084 KB |
Output is correct |
12 |
Correct |
111 ms |
282152 KB |
Output is correct |
13 |
Correct |
119 ms |
282120 KB |
Output is correct |
14 |
Correct |
112 ms |
282192 KB |
Output is correct |
15 |
Correct |
111 ms |
282192 KB |
Output is correct |
16 |
Correct |
112 ms |
282264 KB |
Output is correct |
17 |
Correct |
115 ms |
282196 KB |
Output is correct |
18 |
Correct |
111 ms |
282124 KB |
Output is correct |
19 |
Correct |
132 ms |
286616 KB |
Output is correct |
20 |
Correct |
120 ms |
292184 KB |
Output is correct |
21 |
Correct |
141 ms |
287320 KB |
Output is correct |
22 |
Correct |
123 ms |
286504 KB |
Output is correct |
23 |
Correct |
119 ms |
286548 KB |
Output is correct |
24 |
Correct |
121 ms |
294992 KB |
Output is correct |
25 |
Correct |
122 ms |
295048 KB |
Output is correct |
26 |
Correct |
134 ms |
286548 KB |
Output is correct |
27 |
Correct |
120 ms |
286620 KB |
Output is correct |
28 |
Correct |
130 ms |
286584 KB |
Output is correct |
29 |
Correct |
126 ms |
292992 KB |
Output is correct |
30 |
Correct |
129 ms |
290896 KB |
Output is correct |
31 |
Correct |
125 ms |
294948 KB |
Output is correct |
32 |
Correct |
134 ms |
293244 KB |
Output is correct |
33 |
Correct |
127 ms |
293200 KB |
Output is correct |
34 |
Correct |
146 ms |
314452 KB |
Output is correct |
35 |
Correct |
140 ms |
314448 KB |
Output is correct |
36 |
Correct |
133 ms |
293204 KB |
Output is correct |
37 |
Correct |
132 ms |
293224 KB |
Output is correct |
38 |
Correct |
126 ms |
293200 KB |
Output is correct |
39 |
Correct |
371 ms |
391248 KB |
Output is correct |
40 |
Correct |
136 ms |
295980 KB |
Output is correct |
41 |
Correct |
144 ms |
321700 KB |
Output is correct |
42 |
Correct |
137 ms |
297808 KB |
Output is correct |
43 |
Correct |
151 ms |
316896 KB |
Output is correct |
44 |
Correct |
225 ms |
353628 KB |
Output is correct |
45 |
Correct |
213 ms |
363092 KB |
Output is correct |
46 |
Correct |
286 ms |
409096 KB |
Output is correct |
47 |
Correct |
366 ms |
391252 KB |
Output is correct |
48 |
Correct |
334 ms |
390992 KB |
Output is correct |
49 |
Correct |
365 ms |
604944 KB |
Output is correct |
50 |
Correct |
373 ms |
605008 KB |
Output is correct |
51 |
Correct |
442 ms |
391760 KB |
Output is correct |
52 |
Correct |
378 ms |
391216 KB |
Output is correct |
53 |
Correct |
316 ms |
391024 KB |
Output is correct |
54 |
Correct |
112 ms |
282160 KB |
Output is correct |
55 |
Correct |
120 ms |
282224 KB |
Output is correct |
56 |
Correct |
114 ms |
282132 KB |
Output is correct |
57 |
Correct |
113 ms |
282192 KB |
Output is correct |
58 |
Correct |
111 ms |
282268 KB |
Output is correct |
59 |
Correct |
112 ms |
282244 KB |
Output is correct |
60 |
Correct |
122 ms |
282444 KB |
Output is correct |
61 |
Correct |
112 ms |
282104 KB |
Output is correct |
62 |
Correct |
140 ms |
282196 KB |
Output is correct |
63 |
Correct |
113 ms |
282164 KB |
Output is correct |
64 |
Correct |
143 ms |
282156 KB |
Output is correct |
65 |
Correct |
135 ms |
282192 KB |
Output is correct |
66 |
Correct |
130 ms |
282124 KB |
Output is correct |
67 |
Correct |
130 ms |
282192 KB |
Output is correct |
68 |
Correct |
116 ms |
282452 KB |
Output is correct |
69 |
Correct |
136 ms |
282448 KB |
Output is correct |
70 |
Correct |
113 ms |
282192 KB |
Output is correct |
71 |
Correct |
113 ms |
282056 KB |
Output is correct |
72 |
Correct |
124 ms |
282348 KB |
Output is correct |
73 |
Correct |
115 ms |
282196 KB |
Output is correct |
74 |
Correct |
121 ms |
282192 KB |
Output is correct |
75 |
Correct |
116 ms |
282192 KB |
Output is correct |
76 |
Correct |
122 ms |
282132 KB |
Output is correct |
77 |
Correct |
111 ms |
282196 KB |
Output is correct |
78 |
Correct |
115 ms |
282240 KB |
Output is correct |
79 |
Correct |
118 ms |
282200 KB |
Output is correct |
80 |
Correct |
113 ms |
282164 KB |
Output is correct |
81 |
Correct |
111 ms |
282196 KB |
Output is correct |
82 |
Correct |
112 ms |
282192 KB |
Output is correct |
83 |
Correct |
114 ms |
282156 KB |
Output is correct |
84 |
Correct |
113 ms |
282156 KB |
Output is correct |
85 |
Correct |
120 ms |
282448 KB |
Output is correct |
86 |
Correct |
148 ms |
282192 KB |
Output is correct |
87 |
Correct |
113 ms |
282196 KB |
Output is correct |
88 |
Correct |
112 ms |
282124 KB |
Output is correct |
89 |
Correct |
132 ms |
282192 KB |
Output is correct |
90 |
Correct |
134 ms |
282196 KB |
Output is correct |
91 |
Correct |
113 ms |
282220 KB |
Output is correct |
92 |
Correct |
114 ms |
282164 KB |
Output is correct |
93 |
Correct |
116 ms |
282196 KB |
Output is correct |
94 |
Correct |
115 ms |
282296 KB |
Output is correct |
95 |
Correct |
112 ms |
282192 KB |
Output is correct |
96 |
Correct |
112 ms |
282192 KB |
Output is correct |
97 |
Correct |
136 ms |
282444 KB |
Output is correct |
98 |
Correct |
136 ms |
282240 KB |
Output is correct |
99 |
Correct |
133 ms |
282112 KB |
Output is correct |
100 |
Correct |
132 ms |
282096 KB |
Output is correct |
101 |
Correct |
116 ms |
282196 KB |
Output is correct |
102 |
Correct |
113 ms |
282192 KB |
Output is correct |
103 |
Correct |
115 ms |
282196 KB |
Output is correct |
104 |
Correct |
143 ms |
282024 KB |
Output is correct |
105 |
Correct |
115 ms |
282260 KB |
Output is correct |
106 |
Correct |
115 ms |
282244 KB |
Output is correct |
107 |
Correct |
115 ms |
282192 KB |
Output is correct |
108 |
Correct |
116 ms |
282192 KB |
Output is correct |
109 |
Correct |
121 ms |
282268 KB |
Output is correct |
110 |
Correct |
134 ms |
285008 KB |
Output is correct |
111 |
Correct |
154 ms |
286804 KB |
Output is correct |
112 |
Correct |
167 ms |
287312 KB |
Output is correct |
113 |
Correct |
136 ms |
287316 KB |
Output is correct |
114 |
Correct |
139 ms |
287056 KB |
Output is correct |
115 |
Correct |
146 ms |
287060 KB |
Output is correct |
116 |
Correct |
144 ms |
286544 KB |
Output is correct |
117 |
Correct |
146 ms |
286548 KB |
Output is correct |
118 |
Correct |
168 ms |
286504 KB |
Output is correct |
119 |
Correct |
165 ms |
292476 KB |
Output is correct |
120 |
Correct |
145 ms |
294992 KB |
Output is correct |
121 |
Correct |
147 ms |
294996 KB |
Output is correct |
122 |
Correct |
149 ms |
294284 KB |
Output is correct |
123 |
Correct |
144 ms |
294224 KB |
Output is correct |
124 |
Correct |
210 ms |
319024 KB |
Output is correct |
125 |
Correct |
464 ms |
391584 KB |
Output is correct |
126 |
Correct |
341 ms |
409068 KB |
Output is correct |
127 |
Correct |
395 ms |
409340 KB |
Output is correct |
128 |
Correct |
334 ms |
403436 KB |
Output is correct |
129 |
Correct |
363 ms |
403448 KB |
Output is correct |
130 |
Correct |
546 ms |
411560 KB |
Output is correct |
131 |
Correct |
520 ms |
410776 KB |
Output is correct |
132 |
Correct |
144 ms |
286584 KB |
Output is correct |
133 |
Correct |
167 ms |
282604 KB |
Output is correct |
134 |
Correct |
135 ms |
282880 KB |
Output is correct |
135 |
Correct |
142 ms |
285008 KB |
Output is correct |
136 |
Correct |
148 ms |
292176 KB |
Output is correct |
137 |
Correct |
142 ms |
286800 KB |
Output is correct |
138 |
Correct |
167 ms |
287372 KB |
Output is correct |
139 |
Correct |
142 ms |
286684 KB |
Output is correct |
140 |
Correct |
130 ms |
286504 KB |
Output is correct |
141 |
Correct |
140 ms |
287312 KB |
Output is correct |
142 |
Correct |
141 ms |
287060 KB |
Output is correct |
143 |
Correct |
139 ms |
287064 KB |
Output is correct |
144 |
Correct |
146 ms |
295180 KB |
Output is correct |
145 |
Correct |
147 ms |
294924 KB |
Output is correct |
146 |
Correct |
146 ms |
290640 KB |
Output is correct |
147 |
Correct |
139 ms |
287056 KB |
Output is correct |
148 |
Correct |
136 ms |
286772 KB |
Output is correct |
149 |
Correct |
138 ms |
286804 KB |
Output is correct |
150 |
Correct |
142 ms |
286548 KB |
Output is correct |
151 |
Correct |
141 ms |
286612 KB |
Output is correct |
152 |
Correct |
138 ms |
286564 KB |
Output is correct |
153 |
Correct |
143 ms |
286620 KB |
Output is correct |
154 |
Correct |
139 ms |
293200 KB |
Output is correct |
155 |
Correct |
140 ms |
291016 KB |
Output is correct |
156 |
Correct |
153 ms |
292476 KB |
Output is correct |
157 |
Correct |
145 ms |
293460 KB |
Output is correct |
158 |
Correct |
146 ms |
295024 KB |
Output is correct |
159 |
Correct |
155 ms |
293200 KB |
Output is correct |
160 |
Correct |
148 ms |
293216 KB |
Output is correct |
161 |
Correct |
156 ms |
294992 KB |
Output is correct |
162 |
Correct |
151 ms |
294248 KB |
Output is correct |
163 |
Correct |
155 ms |
294392 KB |
Output is correct |
164 |
Correct |
158 ms |
314520 KB |
Output is correct |
165 |
Correct |
163 ms |
314452 KB |
Output is correct |
166 |
Correct |
163 ms |
303620 KB |
Output is correct |
167 |
Correct |
148 ms |
294076 KB |
Output is correct |
168 |
Correct |
148 ms |
293704 KB |
Output is correct |
169 |
Correct |
188 ms |
293404 KB |
Output is correct |
170 |
Correct |
149 ms |
293456 KB |
Output is correct |
171 |
Correct |
175 ms |
293188 KB |
Output is correct |
172 |
Correct |
161 ms |
293204 KB |
Output is correct |
173 |
Correct |
178 ms |
293460 KB |
Output is correct |
174 |
Correct |
154 ms |
298572 KB |
Output is correct |
175 |
Correct |
164 ms |
307280 KB |
Output is correct |
176 |
Correct |
256 ms |
373508 KB |
Output is correct |
177 |
Correct |
291 ms |
361300 KB |
Output is correct |
178 |
Correct |
333 ms |
381932 KB |
Output is correct |
179 |
Correct |
366 ms |
395760 KB |
Output is correct |
180 |
Correct |
335 ms |
394064 KB |
Output is correct |
181 |
Correct |
347 ms |
393044 KB |
Output is correct |
182 |
Correct |
379 ms |
392520 KB |
Output is correct |
183 |
Correct |
431 ms |
397904 KB |
Output is correct |
184 |
Correct |
694 ms |
500036 KB |
Output is correct |
185 |
Correct |
359 ms |
408384 KB |
Output is correct |
186 |
Correct |
574 ms |
429904 KB |
Output is correct |
187 |
Correct |
510 ms |
438460 KB |
Output is correct |
188 |
Correct |
588 ms |
535888 KB |
Output is correct |
189 |
Correct |
715 ms |
500108 KB |
Output is correct |
190 |
Correct |
687 ms |
499848 KB |
Output is correct |
191 |
Correct |
749 ms |
536764 KB |
Output is correct |
192 |
Correct |
663 ms |
524628 KB |
Output is correct |
193 |
Correct |
606 ms |
524452 KB |
Output is correct |
194 |
Correct |
720 ms |
927828 KB |
Output is correct |
195 |
Correct |
794 ms |
927928 KB |
Output is correct |
196 |
Correct |
522 ms |
507000 KB |
Output is correct |
197 |
Correct |
517 ms |
504404 KB |
Output is correct |
198 |
Correct |
522 ms |
503124 KB |
Output is correct |
199 |
Correct |
575 ms |
502744 KB |
Output is correct |
200 |
Correct |
858 ms |
500824 KB |
Output is correct |
201 |
Correct |
823 ms |
500432 KB |
Output is correct |
202 |
Correct |
715 ms |
500308 KB |
Output is correct |
203 |
Correct |
1406 ms |
717320 KB |
Output is correct |
204 |
Correct |
681 ms |
511568 KB |
Output is correct |
205 |
Correct |
957 ms |
549272 KB |
Output is correct |
206 |
Correct |
1109 ms |
740132 KB |
Output is correct |
207 |
Correct |
962 ms |
789036 KB |
Output is correct |
208 |
Correct |
1664 ms |
717392 KB |
Output is correct |
209 |
Correct |
1286 ms |
717408 KB |
Output is correct |
210 |
Correct |
1358 ms |
790536 KB |
Output is correct |
211 |
Correct |
962 ms |
766236 KB |
Output is correct |
212 |
Correct |
1522 ms |
766324 KB |
Output is correct |
213 |
Correct |
1300 ms |
1573620 KB |
Output is correct |
214 |
Correct |
1274 ms |
1573784 KB |
Output is correct |
215 |
Correct |
1113 ms |
728668 KB |
Output is correct |
216 |
Correct |
900 ms |
724308 KB |
Output is correct |
217 |
Correct |
989 ms |
722256 KB |
Output is correct |
218 |
Correct |
1362 ms |
721876 KB |
Output is correct |
219 |
Correct |
1716 ms |
755064 KB |
Output is correct |
220 |
Correct |
1830 ms |
773208 KB |
Output is correct |
221 |
Correct |
1811 ms |
796064 KB |
Output is correct |
222 |
Correct |
1836 ms |
793760 KB |
Output is correct |
223 |
Correct |
1470 ms |
718624 KB |
Output is correct |
224 |
Correct |
1500 ms |
718004 KB |
Output is correct |
225 |
Correct |
1403 ms |
717192 KB |
Output is correct |