#include<bits/stdc++.h>
using namespace std;
const int N = 6e6;
const int inf = 2e9;
vector <vector<char>> v;
vector <vector<bool>> vis[N];
int k,n,m,sx,sy,ex,ey;
bool inbound(int x,int y){
return 0 <= x && x < n && 0 <= y && y < m;
}
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(){
int ans = inf;
cin>>n>>m>>k;
cin>>sx>>sy>>ex>>ey;
sx--;sy--;ex--;ey--;
v.assign(n,vector<char>(m,0));
for(int i = 0;i < n;i++){
vis[i].assign(m,vector<bool>(2,0));
for(int j = 0;j < m;j++){
cin>>v[i][j];
}
}
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(inbound(nx,ny) && !vis[nx][ny][0] && v[nx][ny] == '.'){
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(inbound(nx,ny) && !vis[nx][ny][1]){
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(inbound(nx,ny) && !vis[nx][ny][0]){
vis[nx][ny][0] = 1;
q[(i%2)^1].push({nx,ny});
}
}
}
}
}
cout<<ans<<'\n';
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
68 ms |
141140 KB |
Output is correct |
2 |
Correct |
64 ms |
141324 KB |
Output is correct |
3 |
Correct |
66 ms |
141392 KB |
Output is correct |
4 |
Correct |
69 ms |
141400 KB |
Output is correct |
5 |
Correct |
64 ms |
141392 KB |
Output is correct |
6 |
Correct |
69 ms |
141396 KB |
Output is correct |
7 |
Correct |
68 ms |
141396 KB |
Output is correct |
8 |
Correct |
67 ms |
141168 KB |
Output is correct |
9 |
Correct |
65 ms |
141136 KB |
Output is correct |
10 |
Correct |
65 ms |
141140 KB |
Output is correct |
11 |
Correct |
69 ms |
141136 KB |
Output is correct |
12 |
Correct |
68 ms |
141408 KB |
Output is correct |
13 |
Correct |
66 ms |
141140 KB |
Output is correct |
14 |
Correct |
63 ms |
141192 KB |
Output is correct |
15 |
Correct |
68 ms |
141116 KB |
Output is correct |
16 |
Correct |
88 ms |
141280 KB |
Output is correct |
17 |
Correct |
68 ms |
141276 KB |
Output is correct |
18 |
Correct |
71 ms |
141368 KB |
Output is correct |
19 |
Correct |
77 ms |
145488 KB |
Output is correct |
20 |
Correct |
72 ms |
144468 KB |
Output is correct |
21 |
Correct |
80 ms |
146256 KB |
Output is correct |
22 |
Correct |
76 ms |
145384 KB |
Output is correct |
23 |
Correct |
78 ms |
145596 KB |
Output is correct |
24 |
Correct |
74 ms |
145492 KB |
Output is correct |
25 |
Correct |
74 ms |
145488 KB |
Output is correct |
26 |
Correct |
80 ms |
145624 KB |
Output is correct |
27 |
Correct |
77 ms |
145492 KB |
Output is correct |
28 |
Correct |
81 ms |
145496 KB |
Output is correct |
29 |
Correct |
92 ms |
151940 KB |
Output is correct |
30 |
Correct |
80 ms |
145488 KB |
Output is correct |
31 |
Correct |
96 ms |
153684 KB |
Output is correct |
32 |
Correct |
99 ms |
151884 KB |
Output is correct |
33 |
Correct |
90 ms |
151804 KB |
Output is correct |
34 |
Correct |
85 ms |
152056 KB |
Output is correct |
35 |
Correct |
87 ms |
152024 KB |
Output is correct |
36 |
Correct |
103 ms |
151996 KB |
Output is correct |
37 |
Correct |
99 ms |
151896 KB |
Output is correct |
38 |
Correct |
91 ms |
151904 KB |
Output is correct |
39 |
Correct |
385 ms |
248660 KB |
Output is correct |
40 |
Correct |
90 ms |
153424 KB |
Output is correct |
41 |
Correct |
90 ms |
154264 KB |
Output is correct |
42 |
Correct |
109 ms |
156500 KB |
Output is correct |
43 |
Correct |
104 ms |
158552 KB |
Output is correct |
44 |
Correct |
172 ms |
194132 KB |
Output is correct |
45 |
Correct |
180 ms |
198480 KB |
Output is correct |
46 |
Correct |
373 ms |
266240 KB |
Output is correct |
47 |
Correct |
405 ms |
248400 KB |
Output is correct |
48 |
Correct |
355 ms |
248324 KB |
Output is correct |
49 |
Correct |
232 ms |
248320 KB |
Output is correct |
50 |
Correct |
237 ms |
248464 KB |
Output is correct |
51 |
Correct |
433 ms |
249168 KB |
Output is correct |
52 |
Correct |
441 ms |
248648 KB |
Output is correct |
53 |
Correct |
405 ms |
248404 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
79 ms |
141136 KB |
Output is correct |
2 |
Correct |
68 ms |
141140 KB |
Output is correct |
3 |
Correct |
66 ms |
141136 KB |
Output is correct |
4 |
Correct |
72 ms |
141392 KB |
Output is correct |
5 |
Correct |
59 ms |
141368 KB |
Output is correct |
6 |
Correct |
69 ms |
141304 KB |
Output is correct |
7 |
Correct |
69 ms |
141136 KB |
Output is correct |
8 |
Correct |
67 ms |
141136 KB |
Output is correct |
9 |
Correct |
78 ms |
141396 KB |
Output is correct |
10 |
Correct |
67 ms |
141400 KB |
Output is correct |
11 |
Correct |
86 ms |
141396 KB |
Output is correct |
12 |
Correct |
66 ms |
141396 KB |
Output is correct |
13 |
Correct |
78 ms |
141376 KB |
Output is correct |
14 |
Correct |
73 ms |
141440 KB |
Output is correct |
15 |
Correct |
65 ms |
141168 KB |
Output is correct |
16 |
Correct |
69 ms |
141392 KB |
Output is correct |
17 |
Correct |
69 ms |
141272 KB |
Output is correct |
18 |
Correct |
69 ms |
141096 KB |
Output is correct |
19 |
Correct |
70 ms |
141260 KB |
Output is correct |
20 |
Correct |
67 ms |
141140 KB |
Output is correct |
21 |
Correct |
66 ms |
141132 KB |
Output is correct |
22 |
Correct |
67 ms |
141136 KB |
Output is correct |
23 |
Correct |
66 ms |
141136 KB |
Output is correct |
24 |
Correct |
66 ms |
141112 KB |
Output is correct |
25 |
Correct |
76 ms |
141260 KB |
Output is correct |
26 |
Correct |
67 ms |
141140 KB |
Output is correct |
27 |
Correct |
65 ms |
141332 KB |
Output is correct |
28 |
Correct |
68 ms |
141136 KB |
Output is correct |
29 |
Correct |
67 ms |
141140 KB |
Output is correct |
30 |
Correct |
67 ms |
141648 KB |
Output is correct |
31 |
Correct |
69 ms |
141396 KB |
Output is correct |
32 |
Correct |
67 ms |
141308 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
67 ms |
141140 KB |
Output is correct |
2 |
Correct |
68 ms |
141136 KB |
Output is correct |
3 |
Correct |
72 ms |
141136 KB |
Output is correct |
4 |
Correct |
85 ms |
141136 KB |
Output is correct |
5 |
Correct |
69 ms |
141140 KB |
Output is correct |
6 |
Correct |
69 ms |
141136 KB |
Output is correct |
7 |
Correct |
69 ms |
141392 KB |
Output is correct |
8 |
Correct |
68 ms |
141392 KB |
Output is correct |
9 |
Correct |
66 ms |
141392 KB |
Output is correct |
10 |
Correct |
75 ms |
141320 KB |
Output is correct |
11 |
Correct |
66 ms |
141396 KB |
Output is correct |
12 |
Correct |
67 ms |
141392 KB |
Output is correct |
13 |
Correct |
70 ms |
141140 KB |
Output is correct |
14 |
Correct |
67 ms |
141392 KB |
Output is correct |
15 |
Correct |
68 ms |
141100 KB |
Output is correct |
16 |
Correct |
69 ms |
141124 KB |
Output is correct |
17 |
Correct |
66 ms |
141140 KB |
Output is correct |
18 |
Correct |
72 ms |
141148 KB |
Output is correct |
19 |
Correct |
67 ms |
141140 KB |
Output is correct |
20 |
Correct |
86 ms |
141136 KB |
Output is correct |
21 |
Correct |
70 ms |
141140 KB |
Output is correct |
22 |
Correct |
67 ms |
141396 KB |
Output is correct |
23 |
Correct |
67 ms |
141392 KB |
Output is correct |
24 |
Correct |
67 ms |
141396 KB |
Output is correct |
25 |
Correct |
81 ms |
143892 KB |
Output is correct |
26 |
Correct |
80 ms |
145700 KB |
Output is correct |
27 |
Correct |
74 ms |
146256 KB |
Output is correct |
28 |
Correct |
80 ms |
146304 KB |
Output is correct |
29 |
Correct |
75 ms |
146036 KB |
Output is correct |
30 |
Correct |
76 ms |
145948 KB |
Output is correct |
31 |
Correct |
74 ms |
145488 KB |
Output is correct |
32 |
Correct |
77 ms |
145492 KB |
Output is correct |
33 |
Correct |
83 ms |
145832 KB |
Output is correct |
34 |
Correct |
94 ms |
151376 KB |
Output is correct |
35 |
Correct |
110 ms |
153684 KB |
Output is correct |
36 |
Correct |
92 ms |
153680 KB |
Output is correct |
37 |
Correct |
94 ms |
153172 KB |
Output is correct |
38 |
Correct |
95 ms |
153168 KB |
Output is correct |
39 |
Correct |
193 ms |
177496 KB |
Output is correct |
40 |
Correct |
471 ms |
247556 KB |
Output is correct |
41 |
Correct |
368 ms |
266248 KB |
Output is correct |
42 |
Correct |
387 ms |
266760 KB |
Output is correct |
43 |
Correct |
346 ms |
260832 KB |
Output is correct |
44 |
Correct |
350 ms |
260580 KB |
Output is correct |
45 |
Correct |
583 ms |
266244 KB |
Output is correct |
46 |
Correct |
517 ms |
266504 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
79 ms |
141136 KB |
Output is correct |
2 |
Correct |
68 ms |
141140 KB |
Output is correct |
3 |
Correct |
66 ms |
141136 KB |
Output is correct |
4 |
Correct |
72 ms |
141392 KB |
Output is correct |
5 |
Correct |
59 ms |
141368 KB |
Output is correct |
6 |
Correct |
69 ms |
141304 KB |
Output is correct |
7 |
Correct |
69 ms |
141136 KB |
Output is correct |
8 |
Correct |
67 ms |
141136 KB |
Output is correct |
9 |
Correct |
78 ms |
141396 KB |
Output is correct |
10 |
Correct |
67 ms |
141400 KB |
Output is correct |
11 |
Correct |
86 ms |
141396 KB |
Output is correct |
12 |
Correct |
66 ms |
141396 KB |
Output is correct |
13 |
Correct |
78 ms |
141376 KB |
Output is correct |
14 |
Correct |
73 ms |
141440 KB |
Output is correct |
15 |
Correct |
65 ms |
141168 KB |
Output is correct |
16 |
Correct |
69 ms |
141392 KB |
Output is correct |
17 |
Correct |
69 ms |
141272 KB |
Output is correct |
18 |
Correct |
69 ms |
141096 KB |
Output is correct |
19 |
Correct |
70 ms |
141260 KB |
Output is correct |
20 |
Correct |
67 ms |
141140 KB |
Output is correct |
21 |
Correct |
66 ms |
141132 KB |
Output is correct |
22 |
Correct |
67 ms |
141136 KB |
Output is correct |
23 |
Correct |
66 ms |
141136 KB |
Output is correct |
24 |
Correct |
66 ms |
141112 KB |
Output is correct |
25 |
Correct |
76 ms |
141260 KB |
Output is correct |
26 |
Correct |
67 ms |
141140 KB |
Output is correct |
27 |
Correct |
65 ms |
141332 KB |
Output is correct |
28 |
Correct |
68 ms |
141136 KB |
Output is correct |
29 |
Correct |
67 ms |
141140 KB |
Output is correct |
30 |
Correct |
67 ms |
141648 KB |
Output is correct |
31 |
Correct |
69 ms |
141396 KB |
Output is correct |
32 |
Correct |
67 ms |
141308 KB |
Output is correct |
33 |
Correct |
75 ms |
145484 KB |
Output is correct |
34 |
Correct |
76 ms |
141392 KB |
Output is correct |
35 |
Correct |
69 ms |
141648 KB |
Output is correct |
36 |
Correct |
78 ms |
143880 KB |
Output is correct |
37 |
Correct |
75 ms |
144468 KB |
Output is correct |
38 |
Correct |
77 ms |
145752 KB |
Output is correct |
39 |
Correct |
78 ms |
146256 KB |
Output is correct |
40 |
Correct |
76 ms |
145492 KB |
Output is correct |
41 |
Correct |
76 ms |
145492 KB |
Output is correct |
42 |
Correct |
78 ms |
146256 KB |
Output is correct |
43 |
Correct |
78 ms |
146000 KB |
Output is correct |
44 |
Correct |
76 ms |
146092 KB |
Output is correct |
45 |
Correct |
74 ms |
145492 KB |
Output is correct |
46 |
Correct |
75 ms |
145488 KB |
Output is correct |
47 |
Correct |
75 ms |
145488 KB |
Output is correct |
48 |
Correct |
80 ms |
145488 KB |
Output is correct |
49 |
Correct |
81 ms |
145492 KB |
Output is correct |
50 |
Correct |
77 ms |
145624 KB |
Output is correct |
51 |
Correct |
96 ms |
145412 KB |
Output is correct |
52 |
Correct |
77 ms |
145688 KB |
Output is correct |
53 |
Correct |
79 ms |
145492 KB |
Output is correct |
54 |
Correct |
79 ms |
145488 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
79 ms |
141136 KB |
Output is correct |
2 |
Correct |
68 ms |
141140 KB |
Output is correct |
3 |
Correct |
66 ms |
141136 KB |
Output is correct |
4 |
Correct |
72 ms |
141392 KB |
Output is correct |
5 |
Correct |
59 ms |
141368 KB |
Output is correct |
6 |
Correct |
69 ms |
141304 KB |
Output is correct |
7 |
Correct |
69 ms |
141136 KB |
Output is correct |
8 |
Correct |
67 ms |
141136 KB |
Output is correct |
9 |
Correct |
78 ms |
141396 KB |
Output is correct |
10 |
Correct |
67 ms |
141400 KB |
Output is correct |
11 |
Correct |
86 ms |
141396 KB |
Output is correct |
12 |
Correct |
66 ms |
141396 KB |
Output is correct |
13 |
Correct |
78 ms |
141376 KB |
Output is correct |
14 |
Correct |
73 ms |
141440 KB |
Output is correct |
15 |
Correct |
65 ms |
141168 KB |
Output is correct |
16 |
Correct |
69 ms |
141392 KB |
Output is correct |
17 |
Correct |
69 ms |
141272 KB |
Output is correct |
18 |
Correct |
69 ms |
141096 KB |
Output is correct |
19 |
Correct |
70 ms |
141260 KB |
Output is correct |
20 |
Correct |
67 ms |
141140 KB |
Output is correct |
21 |
Correct |
66 ms |
141132 KB |
Output is correct |
22 |
Correct |
67 ms |
141136 KB |
Output is correct |
23 |
Correct |
66 ms |
141136 KB |
Output is correct |
24 |
Correct |
66 ms |
141112 KB |
Output is correct |
25 |
Correct |
76 ms |
141260 KB |
Output is correct |
26 |
Correct |
67 ms |
141140 KB |
Output is correct |
27 |
Correct |
65 ms |
141332 KB |
Output is correct |
28 |
Correct |
68 ms |
141136 KB |
Output is correct |
29 |
Correct |
67 ms |
141140 KB |
Output is correct |
30 |
Correct |
67 ms |
141648 KB |
Output is correct |
31 |
Correct |
69 ms |
141396 KB |
Output is correct |
32 |
Correct |
67 ms |
141308 KB |
Output is correct |
33 |
Correct |
75 ms |
145484 KB |
Output is correct |
34 |
Correct |
76 ms |
141392 KB |
Output is correct |
35 |
Correct |
69 ms |
141648 KB |
Output is correct |
36 |
Correct |
78 ms |
143880 KB |
Output is correct |
37 |
Correct |
75 ms |
144468 KB |
Output is correct |
38 |
Correct |
77 ms |
145752 KB |
Output is correct |
39 |
Correct |
78 ms |
146256 KB |
Output is correct |
40 |
Correct |
76 ms |
145492 KB |
Output is correct |
41 |
Correct |
76 ms |
145492 KB |
Output is correct |
42 |
Correct |
78 ms |
146256 KB |
Output is correct |
43 |
Correct |
78 ms |
146000 KB |
Output is correct |
44 |
Correct |
76 ms |
146092 KB |
Output is correct |
45 |
Correct |
74 ms |
145492 KB |
Output is correct |
46 |
Correct |
75 ms |
145488 KB |
Output is correct |
47 |
Correct |
75 ms |
145488 KB |
Output is correct |
48 |
Correct |
80 ms |
145488 KB |
Output is correct |
49 |
Correct |
81 ms |
145492 KB |
Output is correct |
50 |
Correct |
77 ms |
145624 KB |
Output is correct |
51 |
Correct |
96 ms |
145412 KB |
Output is correct |
52 |
Correct |
77 ms |
145688 KB |
Output is correct |
53 |
Correct |
79 ms |
145492 KB |
Output is correct |
54 |
Correct |
79 ms |
145488 KB |
Output is correct |
55 |
Correct |
89 ms |
151888 KB |
Output is correct |
56 |
Correct |
77 ms |
145492 KB |
Output is correct |
57 |
Correct |
97 ms |
151380 KB |
Output is correct |
58 |
Correct |
91 ms |
150864 KB |
Output is correct |
59 |
Correct |
94 ms |
153684 KB |
Output is correct |
60 |
Correct |
114 ms |
151960 KB |
Output is correct |
61 |
Correct |
91 ms |
151892 KB |
Output is correct |
62 |
Correct |
89 ms |
153684 KB |
Output is correct |
63 |
Correct |
81 ms |
153076 KB |
Output is correct |
64 |
Correct |
81 ms |
153268 KB |
Output is correct |
65 |
Correct |
101 ms |
152000 KB |
Output is correct |
66 |
Correct |
105 ms |
151816 KB |
Output is correct |
67 |
Correct |
96 ms |
152052 KB |
Output is correct |
68 |
Correct |
91 ms |
151892 KB |
Output is correct |
69 |
Correct |
81 ms |
151892 KB |
Output is correct |
70 |
Correct |
89 ms |
151888 KB |
Output is correct |
71 |
Correct |
96 ms |
152144 KB |
Output is correct |
72 |
Correct |
100 ms |
152144 KB |
Output is correct |
73 |
Correct |
120 ms |
152028 KB |
Output is correct |
74 |
Correct |
107 ms |
151964 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
68 ms |
141140 KB |
Output is correct |
2 |
Correct |
64 ms |
141324 KB |
Output is correct |
3 |
Correct |
66 ms |
141392 KB |
Output is correct |
4 |
Correct |
69 ms |
141400 KB |
Output is correct |
5 |
Correct |
64 ms |
141392 KB |
Output is correct |
6 |
Correct |
69 ms |
141396 KB |
Output is correct |
7 |
Correct |
68 ms |
141396 KB |
Output is correct |
8 |
Correct |
67 ms |
141168 KB |
Output is correct |
9 |
Correct |
65 ms |
141136 KB |
Output is correct |
10 |
Correct |
65 ms |
141140 KB |
Output is correct |
11 |
Correct |
69 ms |
141136 KB |
Output is correct |
12 |
Correct |
68 ms |
141408 KB |
Output is correct |
13 |
Correct |
66 ms |
141140 KB |
Output is correct |
14 |
Correct |
63 ms |
141192 KB |
Output is correct |
15 |
Correct |
68 ms |
141116 KB |
Output is correct |
16 |
Correct |
88 ms |
141280 KB |
Output is correct |
17 |
Correct |
68 ms |
141276 KB |
Output is correct |
18 |
Correct |
71 ms |
141368 KB |
Output is correct |
19 |
Correct |
77 ms |
145488 KB |
Output is correct |
20 |
Correct |
72 ms |
144468 KB |
Output is correct |
21 |
Correct |
80 ms |
146256 KB |
Output is correct |
22 |
Correct |
76 ms |
145384 KB |
Output is correct |
23 |
Correct |
78 ms |
145596 KB |
Output is correct |
24 |
Correct |
74 ms |
145492 KB |
Output is correct |
25 |
Correct |
74 ms |
145488 KB |
Output is correct |
26 |
Correct |
80 ms |
145624 KB |
Output is correct |
27 |
Correct |
77 ms |
145492 KB |
Output is correct |
28 |
Correct |
81 ms |
145496 KB |
Output is correct |
29 |
Correct |
92 ms |
151940 KB |
Output is correct |
30 |
Correct |
80 ms |
145488 KB |
Output is correct |
31 |
Correct |
96 ms |
153684 KB |
Output is correct |
32 |
Correct |
99 ms |
151884 KB |
Output is correct |
33 |
Correct |
90 ms |
151804 KB |
Output is correct |
34 |
Correct |
85 ms |
152056 KB |
Output is correct |
35 |
Correct |
87 ms |
152024 KB |
Output is correct |
36 |
Correct |
103 ms |
151996 KB |
Output is correct |
37 |
Correct |
99 ms |
151896 KB |
Output is correct |
38 |
Correct |
91 ms |
151904 KB |
Output is correct |
39 |
Correct |
385 ms |
248660 KB |
Output is correct |
40 |
Correct |
90 ms |
153424 KB |
Output is correct |
41 |
Correct |
90 ms |
154264 KB |
Output is correct |
42 |
Correct |
109 ms |
156500 KB |
Output is correct |
43 |
Correct |
104 ms |
158552 KB |
Output is correct |
44 |
Correct |
172 ms |
194132 KB |
Output is correct |
45 |
Correct |
180 ms |
198480 KB |
Output is correct |
46 |
Correct |
373 ms |
266240 KB |
Output is correct |
47 |
Correct |
405 ms |
248400 KB |
Output is correct |
48 |
Correct |
355 ms |
248324 KB |
Output is correct |
49 |
Correct |
232 ms |
248320 KB |
Output is correct |
50 |
Correct |
237 ms |
248464 KB |
Output is correct |
51 |
Correct |
433 ms |
249168 KB |
Output is correct |
52 |
Correct |
441 ms |
248648 KB |
Output is correct |
53 |
Correct |
405 ms |
248404 KB |
Output is correct |
54 |
Correct |
79 ms |
141136 KB |
Output is correct |
55 |
Correct |
68 ms |
141140 KB |
Output is correct |
56 |
Correct |
66 ms |
141136 KB |
Output is correct |
57 |
Correct |
72 ms |
141392 KB |
Output is correct |
58 |
Correct |
59 ms |
141368 KB |
Output is correct |
59 |
Correct |
69 ms |
141304 KB |
Output is correct |
60 |
Correct |
69 ms |
141136 KB |
Output is correct |
61 |
Correct |
67 ms |
141136 KB |
Output is correct |
62 |
Correct |
78 ms |
141396 KB |
Output is correct |
63 |
Correct |
67 ms |
141400 KB |
Output is correct |
64 |
Correct |
86 ms |
141396 KB |
Output is correct |
65 |
Correct |
66 ms |
141396 KB |
Output is correct |
66 |
Correct |
78 ms |
141376 KB |
Output is correct |
67 |
Correct |
73 ms |
141440 KB |
Output is correct |
68 |
Correct |
65 ms |
141168 KB |
Output is correct |
69 |
Correct |
69 ms |
141392 KB |
Output is correct |
70 |
Correct |
69 ms |
141272 KB |
Output is correct |
71 |
Correct |
69 ms |
141096 KB |
Output is correct |
72 |
Correct |
70 ms |
141260 KB |
Output is correct |
73 |
Correct |
67 ms |
141140 KB |
Output is correct |
74 |
Correct |
66 ms |
141132 KB |
Output is correct |
75 |
Correct |
67 ms |
141136 KB |
Output is correct |
76 |
Correct |
66 ms |
141136 KB |
Output is correct |
77 |
Correct |
66 ms |
141112 KB |
Output is correct |
78 |
Correct |
76 ms |
141260 KB |
Output is correct |
79 |
Correct |
67 ms |
141140 KB |
Output is correct |
80 |
Correct |
65 ms |
141332 KB |
Output is correct |
81 |
Correct |
68 ms |
141136 KB |
Output is correct |
82 |
Correct |
67 ms |
141140 KB |
Output is correct |
83 |
Correct |
67 ms |
141648 KB |
Output is correct |
84 |
Correct |
69 ms |
141396 KB |
Output is correct |
85 |
Correct |
67 ms |
141308 KB |
Output is correct |
86 |
Correct |
67 ms |
141140 KB |
Output is correct |
87 |
Correct |
68 ms |
141136 KB |
Output is correct |
88 |
Correct |
72 ms |
141136 KB |
Output is correct |
89 |
Correct |
85 ms |
141136 KB |
Output is correct |
90 |
Correct |
69 ms |
141140 KB |
Output is correct |
91 |
Correct |
69 ms |
141136 KB |
Output is correct |
92 |
Correct |
69 ms |
141392 KB |
Output is correct |
93 |
Correct |
68 ms |
141392 KB |
Output is correct |
94 |
Correct |
66 ms |
141392 KB |
Output is correct |
95 |
Correct |
75 ms |
141320 KB |
Output is correct |
96 |
Correct |
66 ms |
141396 KB |
Output is correct |
97 |
Correct |
67 ms |
141392 KB |
Output is correct |
98 |
Correct |
70 ms |
141140 KB |
Output is correct |
99 |
Correct |
67 ms |
141392 KB |
Output is correct |
100 |
Correct |
68 ms |
141100 KB |
Output is correct |
101 |
Correct |
69 ms |
141124 KB |
Output is correct |
102 |
Correct |
66 ms |
141140 KB |
Output is correct |
103 |
Correct |
72 ms |
141148 KB |
Output is correct |
104 |
Correct |
67 ms |
141140 KB |
Output is correct |
105 |
Correct |
86 ms |
141136 KB |
Output is correct |
106 |
Correct |
70 ms |
141140 KB |
Output is correct |
107 |
Correct |
67 ms |
141396 KB |
Output is correct |
108 |
Correct |
67 ms |
141392 KB |
Output is correct |
109 |
Correct |
67 ms |
141396 KB |
Output is correct |
110 |
Correct |
81 ms |
143892 KB |
Output is correct |
111 |
Correct |
80 ms |
145700 KB |
Output is correct |
112 |
Correct |
74 ms |
146256 KB |
Output is correct |
113 |
Correct |
80 ms |
146304 KB |
Output is correct |
114 |
Correct |
75 ms |
146036 KB |
Output is correct |
115 |
Correct |
76 ms |
145948 KB |
Output is correct |
116 |
Correct |
74 ms |
145488 KB |
Output is correct |
117 |
Correct |
77 ms |
145492 KB |
Output is correct |
118 |
Correct |
83 ms |
145832 KB |
Output is correct |
119 |
Correct |
94 ms |
151376 KB |
Output is correct |
120 |
Correct |
110 ms |
153684 KB |
Output is correct |
121 |
Correct |
92 ms |
153680 KB |
Output is correct |
122 |
Correct |
94 ms |
153172 KB |
Output is correct |
123 |
Correct |
95 ms |
153168 KB |
Output is correct |
124 |
Correct |
193 ms |
177496 KB |
Output is correct |
125 |
Correct |
471 ms |
247556 KB |
Output is correct |
126 |
Correct |
368 ms |
266248 KB |
Output is correct |
127 |
Correct |
387 ms |
266760 KB |
Output is correct |
128 |
Correct |
346 ms |
260832 KB |
Output is correct |
129 |
Correct |
350 ms |
260580 KB |
Output is correct |
130 |
Correct |
583 ms |
266244 KB |
Output is correct |
131 |
Correct |
517 ms |
266504 KB |
Output is correct |
132 |
Correct |
75 ms |
145484 KB |
Output is correct |
133 |
Correct |
76 ms |
141392 KB |
Output is correct |
134 |
Correct |
69 ms |
141648 KB |
Output is correct |
135 |
Correct |
78 ms |
143880 KB |
Output is correct |
136 |
Correct |
75 ms |
144468 KB |
Output is correct |
137 |
Correct |
77 ms |
145752 KB |
Output is correct |
138 |
Correct |
78 ms |
146256 KB |
Output is correct |
139 |
Correct |
76 ms |
145492 KB |
Output is correct |
140 |
Correct |
76 ms |
145492 KB |
Output is correct |
141 |
Correct |
78 ms |
146256 KB |
Output is correct |
142 |
Correct |
78 ms |
146000 KB |
Output is correct |
143 |
Correct |
76 ms |
146092 KB |
Output is correct |
144 |
Correct |
74 ms |
145492 KB |
Output is correct |
145 |
Correct |
75 ms |
145488 KB |
Output is correct |
146 |
Correct |
75 ms |
145488 KB |
Output is correct |
147 |
Correct |
80 ms |
145488 KB |
Output is correct |
148 |
Correct |
81 ms |
145492 KB |
Output is correct |
149 |
Correct |
77 ms |
145624 KB |
Output is correct |
150 |
Correct |
96 ms |
145412 KB |
Output is correct |
151 |
Correct |
77 ms |
145688 KB |
Output is correct |
152 |
Correct |
79 ms |
145492 KB |
Output is correct |
153 |
Correct |
79 ms |
145488 KB |
Output is correct |
154 |
Correct |
89 ms |
151888 KB |
Output is correct |
155 |
Correct |
77 ms |
145492 KB |
Output is correct |
156 |
Correct |
97 ms |
151380 KB |
Output is correct |
157 |
Correct |
91 ms |
150864 KB |
Output is correct |
158 |
Correct |
94 ms |
153684 KB |
Output is correct |
159 |
Correct |
114 ms |
151960 KB |
Output is correct |
160 |
Correct |
91 ms |
151892 KB |
Output is correct |
161 |
Correct |
89 ms |
153684 KB |
Output is correct |
162 |
Correct |
81 ms |
153076 KB |
Output is correct |
163 |
Correct |
81 ms |
153268 KB |
Output is correct |
164 |
Correct |
101 ms |
152000 KB |
Output is correct |
165 |
Correct |
105 ms |
151816 KB |
Output is correct |
166 |
Correct |
96 ms |
152052 KB |
Output is correct |
167 |
Correct |
91 ms |
151892 KB |
Output is correct |
168 |
Correct |
81 ms |
151892 KB |
Output is correct |
169 |
Correct |
89 ms |
151888 KB |
Output is correct |
170 |
Correct |
96 ms |
152144 KB |
Output is correct |
171 |
Correct |
100 ms |
152144 KB |
Output is correct |
172 |
Correct |
120 ms |
152028 KB |
Output is correct |
173 |
Correct |
107 ms |
151964 KB |
Output is correct |
174 |
Correct |
108 ms |
155216 KB |
Output is correct |
175 |
Correct |
116 ms |
165176 KB |
Output is correct |
176 |
Correct |
179 ms |
195668 KB |
Output is correct |
177 |
Correct |
235 ms |
212820 KB |
Output is correct |
178 |
Correct |
297 ms |
234832 KB |
Output is correct |
179 |
Correct |
286 ms |
248400 KB |
Output is correct |
180 |
Correct |
339 ms |
248512 KB |
Output is correct |
181 |
Correct |
321 ms |
248912 KB |
Output is correct |
182 |
Correct |
354 ms |
248916 KB |
Output is correct |
183 |
Correct |
416 ms |
250964 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
68 ms |
141140 KB |
Output is correct |
2 |
Correct |
64 ms |
141324 KB |
Output is correct |
3 |
Correct |
66 ms |
141392 KB |
Output is correct |
4 |
Correct |
69 ms |
141400 KB |
Output is correct |
5 |
Correct |
64 ms |
141392 KB |
Output is correct |
6 |
Correct |
69 ms |
141396 KB |
Output is correct |
7 |
Correct |
68 ms |
141396 KB |
Output is correct |
8 |
Correct |
67 ms |
141168 KB |
Output is correct |
9 |
Correct |
65 ms |
141136 KB |
Output is correct |
10 |
Correct |
65 ms |
141140 KB |
Output is correct |
11 |
Correct |
69 ms |
141136 KB |
Output is correct |
12 |
Correct |
68 ms |
141408 KB |
Output is correct |
13 |
Correct |
66 ms |
141140 KB |
Output is correct |
14 |
Correct |
63 ms |
141192 KB |
Output is correct |
15 |
Correct |
68 ms |
141116 KB |
Output is correct |
16 |
Correct |
88 ms |
141280 KB |
Output is correct |
17 |
Correct |
68 ms |
141276 KB |
Output is correct |
18 |
Correct |
71 ms |
141368 KB |
Output is correct |
19 |
Correct |
77 ms |
145488 KB |
Output is correct |
20 |
Correct |
72 ms |
144468 KB |
Output is correct |
21 |
Correct |
80 ms |
146256 KB |
Output is correct |
22 |
Correct |
76 ms |
145384 KB |
Output is correct |
23 |
Correct |
78 ms |
145596 KB |
Output is correct |
24 |
Correct |
74 ms |
145492 KB |
Output is correct |
25 |
Correct |
74 ms |
145488 KB |
Output is correct |
26 |
Correct |
80 ms |
145624 KB |
Output is correct |
27 |
Correct |
77 ms |
145492 KB |
Output is correct |
28 |
Correct |
81 ms |
145496 KB |
Output is correct |
29 |
Correct |
92 ms |
151940 KB |
Output is correct |
30 |
Correct |
80 ms |
145488 KB |
Output is correct |
31 |
Correct |
96 ms |
153684 KB |
Output is correct |
32 |
Correct |
99 ms |
151884 KB |
Output is correct |
33 |
Correct |
90 ms |
151804 KB |
Output is correct |
34 |
Correct |
85 ms |
152056 KB |
Output is correct |
35 |
Correct |
87 ms |
152024 KB |
Output is correct |
36 |
Correct |
103 ms |
151996 KB |
Output is correct |
37 |
Correct |
99 ms |
151896 KB |
Output is correct |
38 |
Correct |
91 ms |
151904 KB |
Output is correct |
39 |
Correct |
385 ms |
248660 KB |
Output is correct |
40 |
Correct |
90 ms |
153424 KB |
Output is correct |
41 |
Correct |
90 ms |
154264 KB |
Output is correct |
42 |
Correct |
109 ms |
156500 KB |
Output is correct |
43 |
Correct |
104 ms |
158552 KB |
Output is correct |
44 |
Correct |
172 ms |
194132 KB |
Output is correct |
45 |
Correct |
180 ms |
198480 KB |
Output is correct |
46 |
Correct |
373 ms |
266240 KB |
Output is correct |
47 |
Correct |
405 ms |
248400 KB |
Output is correct |
48 |
Correct |
355 ms |
248324 KB |
Output is correct |
49 |
Correct |
232 ms |
248320 KB |
Output is correct |
50 |
Correct |
237 ms |
248464 KB |
Output is correct |
51 |
Correct |
433 ms |
249168 KB |
Output is correct |
52 |
Correct |
441 ms |
248648 KB |
Output is correct |
53 |
Correct |
405 ms |
248404 KB |
Output is correct |
54 |
Correct |
79 ms |
141136 KB |
Output is correct |
55 |
Correct |
68 ms |
141140 KB |
Output is correct |
56 |
Correct |
66 ms |
141136 KB |
Output is correct |
57 |
Correct |
72 ms |
141392 KB |
Output is correct |
58 |
Correct |
59 ms |
141368 KB |
Output is correct |
59 |
Correct |
69 ms |
141304 KB |
Output is correct |
60 |
Correct |
69 ms |
141136 KB |
Output is correct |
61 |
Correct |
67 ms |
141136 KB |
Output is correct |
62 |
Correct |
78 ms |
141396 KB |
Output is correct |
63 |
Correct |
67 ms |
141400 KB |
Output is correct |
64 |
Correct |
86 ms |
141396 KB |
Output is correct |
65 |
Correct |
66 ms |
141396 KB |
Output is correct |
66 |
Correct |
78 ms |
141376 KB |
Output is correct |
67 |
Correct |
73 ms |
141440 KB |
Output is correct |
68 |
Correct |
65 ms |
141168 KB |
Output is correct |
69 |
Correct |
69 ms |
141392 KB |
Output is correct |
70 |
Correct |
69 ms |
141272 KB |
Output is correct |
71 |
Correct |
69 ms |
141096 KB |
Output is correct |
72 |
Correct |
70 ms |
141260 KB |
Output is correct |
73 |
Correct |
67 ms |
141140 KB |
Output is correct |
74 |
Correct |
66 ms |
141132 KB |
Output is correct |
75 |
Correct |
67 ms |
141136 KB |
Output is correct |
76 |
Correct |
66 ms |
141136 KB |
Output is correct |
77 |
Correct |
66 ms |
141112 KB |
Output is correct |
78 |
Correct |
76 ms |
141260 KB |
Output is correct |
79 |
Correct |
67 ms |
141140 KB |
Output is correct |
80 |
Correct |
65 ms |
141332 KB |
Output is correct |
81 |
Correct |
68 ms |
141136 KB |
Output is correct |
82 |
Correct |
67 ms |
141140 KB |
Output is correct |
83 |
Correct |
67 ms |
141648 KB |
Output is correct |
84 |
Correct |
69 ms |
141396 KB |
Output is correct |
85 |
Correct |
67 ms |
141308 KB |
Output is correct |
86 |
Correct |
67 ms |
141140 KB |
Output is correct |
87 |
Correct |
68 ms |
141136 KB |
Output is correct |
88 |
Correct |
72 ms |
141136 KB |
Output is correct |
89 |
Correct |
85 ms |
141136 KB |
Output is correct |
90 |
Correct |
69 ms |
141140 KB |
Output is correct |
91 |
Correct |
69 ms |
141136 KB |
Output is correct |
92 |
Correct |
69 ms |
141392 KB |
Output is correct |
93 |
Correct |
68 ms |
141392 KB |
Output is correct |
94 |
Correct |
66 ms |
141392 KB |
Output is correct |
95 |
Correct |
75 ms |
141320 KB |
Output is correct |
96 |
Correct |
66 ms |
141396 KB |
Output is correct |
97 |
Correct |
67 ms |
141392 KB |
Output is correct |
98 |
Correct |
70 ms |
141140 KB |
Output is correct |
99 |
Correct |
67 ms |
141392 KB |
Output is correct |
100 |
Correct |
68 ms |
141100 KB |
Output is correct |
101 |
Correct |
69 ms |
141124 KB |
Output is correct |
102 |
Correct |
66 ms |
141140 KB |
Output is correct |
103 |
Correct |
72 ms |
141148 KB |
Output is correct |
104 |
Correct |
67 ms |
141140 KB |
Output is correct |
105 |
Correct |
86 ms |
141136 KB |
Output is correct |
106 |
Correct |
70 ms |
141140 KB |
Output is correct |
107 |
Correct |
67 ms |
141396 KB |
Output is correct |
108 |
Correct |
67 ms |
141392 KB |
Output is correct |
109 |
Correct |
67 ms |
141396 KB |
Output is correct |
110 |
Correct |
81 ms |
143892 KB |
Output is correct |
111 |
Correct |
80 ms |
145700 KB |
Output is correct |
112 |
Correct |
74 ms |
146256 KB |
Output is correct |
113 |
Correct |
80 ms |
146304 KB |
Output is correct |
114 |
Correct |
75 ms |
146036 KB |
Output is correct |
115 |
Correct |
76 ms |
145948 KB |
Output is correct |
116 |
Correct |
74 ms |
145488 KB |
Output is correct |
117 |
Correct |
77 ms |
145492 KB |
Output is correct |
118 |
Correct |
83 ms |
145832 KB |
Output is correct |
119 |
Correct |
94 ms |
151376 KB |
Output is correct |
120 |
Correct |
110 ms |
153684 KB |
Output is correct |
121 |
Correct |
92 ms |
153680 KB |
Output is correct |
122 |
Correct |
94 ms |
153172 KB |
Output is correct |
123 |
Correct |
95 ms |
153168 KB |
Output is correct |
124 |
Correct |
193 ms |
177496 KB |
Output is correct |
125 |
Correct |
471 ms |
247556 KB |
Output is correct |
126 |
Correct |
368 ms |
266248 KB |
Output is correct |
127 |
Correct |
387 ms |
266760 KB |
Output is correct |
128 |
Correct |
346 ms |
260832 KB |
Output is correct |
129 |
Correct |
350 ms |
260580 KB |
Output is correct |
130 |
Correct |
583 ms |
266244 KB |
Output is correct |
131 |
Correct |
517 ms |
266504 KB |
Output is correct |
132 |
Correct |
75 ms |
145484 KB |
Output is correct |
133 |
Correct |
76 ms |
141392 KB |
Output is correct |
134 |
Correct |
69 ms |
141648 KB |
Output is correct |
135 |
Correct |
78 ms |
143880 KB |
Output is correct |
136 |
Correct |
75 ms |
144468 KB |
Output is correct |
137 |
Correct |
77 ms |
145752 KB |
Output is correct |
138 |
Correct |
78 ms |
146256 KB |
Output is correct |
139 |
Correct |
76 ms |
145492 KB |
Output is correct |
140 |
Correct |
76 ms |
145492 KB |
Output is correct |
141 |
Correct |
78 ms |
146256 KB |
Output is correct |
142 |
Correct |
78 ms |
146000 KB |
Output is correct |
143 |
Correct |
76 ms |
146092 KB |
Output is correct |
144 |
Correct |
74 ms |
145492 KB |
Output is correct |
145 |
Correct |
75 ms |
145488 KB |
Output is correct |
146 |
Correct |
75 ms |
145488 KB |
Output is correct |
147 |
Correct |
80 ms |
145488 KB |
Output is correct |
148 |
Correct |
81 ms |
145492 KB |
Output is correct |
149 |
Correct |
77 ms |
145624 KB |
Output is correct |
150 |
Correct |
96 ms |
145412 KB |
Output is correct |
151 |
Correct |
77 ms |
145688 KB |
Output is correct |
152 |
Correct |
79 ms |
145492 KB |
Output is correct |
153 |
Correct |
79 ms |
145488 KB |
Output is correct |
154 |
Correct |
89 ms |
151888 KB |
Output is correct |
155 |
Correct |
77 ms |
145492 KB |
Output is correct |
156 |
Correct |
97 ms |
151380 KB |
Output is correct |
157 |
Correct |
91 ms |
150864 KB |
Output is correct |
158 |
Correct |
94 ms |
153684 KB |
Output is correct |
159 |
Correct |
114 ms |
151960 KB |
Output is correct |
160 |
Correct |
91 ms |
151892 KB |
Output is correct |
161 |
Correct |
89 ms |
153684 KB |
Output is correct |
162 |
Correct |
81 ms |
153076 KB |
Output is correct |
163 |
Correct |
81 ms |
153268 KB |
Output is correct |
164 |
Correct |
101 ms |
152000 KB |
Output is correct |
165 |
Correct |
105 ms |
151816 KB |
Output is correct |
166 |
Correct |
96 ms |
152052 KB |
Output is correct |
167 |
Correct |
91 ms |
151892 KB |
Output is correct |
168 |
Correct |
81 ms |
151892 KB |
Output is correct |
169 |
Correct |
89 ms |
151888 KB |
Output is correct |
170 |
Correct |
96 ms |
152144 KB |
Output is correct |
171 |
Correct |
100 ms |
152144 KB |
Output is correct |
172 |
Correct |
120 ms |
152028 KB |
Output is correct |
173 |
Correct |
107 ms |
151964 KB |
Output is correct |
174 |
Correct |
108 ms |
155216 KB |
Output is correct |
175 |
Correct |
116 ms |
165176 KB |
Output is correct |
176 |
Correct |
179 ms |
195668 KB |
Output is correct |
177 |
Correct |
235 ms |
212820 KB |
Output is correct |
178 |
Correct |
297 ms |
234832 KB |
Output is correct |
179 |
Correct |
286 ms |
248400 KB |
Output is correct |
180 |
Correct |
339 ms |
248512 KB |
Output is correct |
181 |
Correct |
321 ms |
248912 KB |
Output is correct |
182 |
Correct |
354 ms |
248916 KB |
Output is correct |
183 |
Correct |
416 ms |
250964 KB |
Output is correct |
184 |
Correct |
661 ms |
355664 KB |
Output is correct |
185 |
Correct |
318 ms |
258900 KB |
Output is correct |
186 |
Correct |
469 ms |
286216 KB |
Output is correct |
187 |
Correct |
469 ms |
294576 KB |
Output is correct |
188 |
Correct |
551 ms |
391560 KB |
Output is correct |
189 |
Correct |
725 ms |
355800 KB |
Output is correct |
190 |
Correct |
588 ms |
355664 KB |
Output is correct |
191 |
Correct |
704 ms |
392280 KB |
Output is correct |
192 |
Correct |
614 ms |
380168 KB |
Output is correct |
193 |
Correct |
618 ms |
380256 KB |
Output is correct |
194 |
Correct |
368 ms |
355456 KB |
Output is correct |
195 |
Correct |
374 ms |
355540 KB |
Output is correct |
196 |
Correct |
483 ms |
355668 KB |
Output is correct |
197 |
Correct |
522 ms |
355964 KB |
Output is correct |
198 |
Correct |
514 ms |
356180 KB |
Output is correct |
199 |
Correct |
490 ms |
356944 KB |
Output is correct |
200 |
Correct |
777 ms |
356432 KB |
Output is correct |
201 |
Correct |
745 ms |
356124 KB |
Output is correct |
202 |
Correct |
699 ms |
355668 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
68 ms |
141140 KB |
Output is correct |
2 |
Correct |
64 ms |
141324 KB |
Output is correct |
3 |
Correct |
66 ms |
141392 KB |
Output is correct |
4 |
Correct |
69 ms |
141400 KB |
Output is correct |
5 |
Correct |
64 ms |
141392 KB |
Output is correct |
6 |
Correct |
69 ms |
141396 KB |
Output is correct |
7 |
Correct |
68 ms |
141396 KB |
Output is correct |
8 |
Correct |
67 ms |
141168 KB |
Output is correct |
9 |
Correct |
65 ms |
141136 KB |
Output is correct |
10 |
Correct |
65 ms |
141140 KB |
Output is correct |
11 |
Correct |
69 ms |
141136 KB |
Output is correct |
12 |
Correct |
68 ms |
141408 KB |
Output is correct |
13 |
Correct |
66 ms |
141140 KB |
Output is correct |
14 |
Correct |
63 ms |
141192 KB |
Output is correct |
15 |
Correct |
68 ms |
141116 KB |
Output is correct |
16 |
Correct |
88 ms |
141280 KB |
Output is correct |
17 |
Correct |
68 ms |
141276 KB |
Output is correct |
18 |
Correct |
71 ms |
141368 KB |
Output is correct |
19 |
Correct |
77 ms |
145488 KB |
Output is correct |
20 |
Correct |
72 ms |
144468 KB |
Output is correct |
21 |
Correct |
80 ms |
146256 KB |
Output is correct |
22 |
Correct |
76 ms |
145384 KB |
Output is correct |
23 |
Correct |
78 ms |
145596 KB |
Output is correct |
24 |
Correct |
74 ms |
145492 KB |
Output is correct |
25 |
Correct |
74 ms |
145488 KB |
Output is correct |
26 |
Correct |
80 ms |
145624 KB |
Output is correct |
27 |
Correct |
77 ms |
145492 KB |
Output is correct |
28 |
Correct |
81 ms |
145496 KB |
Output is correct |
29 |
Correct |
92 ms |
151940 KB |
Output is correct |
30 |
Correct |
80 ms |
145488 KB |
Output is correct |
31 |
Correct |
96 ms |
153684 KB |
Output is correct |
32 |
Correct |
99 ms |
151884 KB |
Output is correct |
33 |
Correct |
90 ms |
151804 KB |
Output is correct |
34 |
Correct |
85 ms |
152056 KB |
Output is correct |
35 |
Correct |
87 ms |
152024 KB |
Output is correct |
36 |
Correct |
103 ms |
151996 KB |
Output is correct |
37 |
Correct |
99 ms |
151896 KB |
Output is correct |
38 |
Correct |
91 ms |
151904 KB |
Output is correct |
39 |
Correct |
385 ms |
248660 KB |
Output is correct |
40 |
Correct |
90 ms |
153424 KB |
Output is correct |
41 |
Correct |
90 ms |
154264 KB |
Output is correct |
42 |
Correct |
109 ms |
156500 KB |
Output is correct |
43 |
Correct |
104 ms |
158552 KB |
Output is correct |
44 |
Correct |
172 ms |
194132 KB |
Output is correct |
45 |
Correct |
180 ms |
198480 KB |
Output is correct |
46 |
Correct |
373 ms |
266240 KB |
Output is correct |
47 |
Correct |
405 ms |
248400 KB |
Output is correct |
48 |
Correct |
355 ms |
248324 KB |
Output is correct |
49 |
Correct |
232 ms |
248320 KB |
Output is correct |
50 |
Correct |
237 ms |
248464 KB |
Output is correct |
51 |
Correct |
433 ms |
249168 KB |
Output is correct |
52 |
Correct |
441 ms |
248648 KB |
Output is correct |
53 |
Correct |
405 ms |
248404 KB |
Output is correct |
54 |
Correct |
79 ms |
141136 KB |
Output is correct |
55 |
Correct |
68 ms |
141140 KB |
Output is correct |
56 |
Correct |
66 ms |
141136 KB |
Output is correct |
57 |
Correct |
72 ms |
141392 KB |
Output is correct |
58 |
Correct |
59 ms |
141368 KB |
Output is correct |
59 |
Correct |
69 ms |
141304 KB |
Output is correct |
60 |
Correct |
69 ms |
141136 KB |
Output is correct |
61 |
Correct |
67 ms |
141136 KB |
Output is correct |
62 |
Correct |
78 ms |
141396 KB |
Output is correct |
63 |
Correct |
67 ms |
141400 KB |
Output is correct |
64 |
Correct |
86 ms |
141396 KB |
Output is correct |
65 |
Correct |
66 ms |
141396 KB |
Output is correct |
66 |
Correct |
78 ms |
141376 KB |
Output is correct |
67 |
Correct |
73 ms |
141440 KB |
Output is correct |
68 |
Correct |
65 ms |
141168 KB |
Output is correct |
69 |
Correct |
69 ms |
141392 KB |
Output is correct |
70 |
Correct |
69 ms |
141272 KB |
Output is correct |
71 |
Correct |
69 ms |
141096 KB |
Output is correct |
72 |
Correct |
70 ms |
141260 KB |
Output is correct |
73 |
Correct |
67 ms |
141140 KB |
Output is correct |
74 |
Correct |
66 ms |
141132 KB |
Output is correct |
75 |
Correct |
67 ms |
141136 KB |
Output is correct |
76 |
Correct |
66 ms |
141136 KB |
Output is correct |
77 |
Correct |
66 ms |
141112 KB |
Output is correct |
78 |
Correct |
76 ms |
141260 KB |
Output is correct |
79 |
Correct |
67 ms |
141140 KB |
Output is correct |
80 |
Correct |
65 ms |
141332 KB |
Output is correct |
81 |
Correct |
68 ms |
141136 KB |
Output is correct |
82 |
Correct |
67 ms |
141140 KB |
Output is correct |
83 |
Correct |
67 ms |
141648 KB |
Output is correct |
84 |
Correct |
69 ms |
141396 KB |
Output is correct |
85 |
Correct |
67 ms |
141308 KB |
Output is correct |
86 |
Correct |
67 ms |
141140 KB |
Output is correct |
87 |
Correct |
68 ms |
141136 KB |
Output is correct |
88 |
Correct |
72 ms |
141136 KB |
Output is correct |
89 |
Correct |
85 ms |
141136 KB |
Output is correct |
90 |
Correct |
69 ms |
141140 KB |
Output is correct |
91 |
Correct |
69 ms |
141136 KB |
Output is correct |
92 |
Correct |
69 ms |
141392 KB |
Output is correct |
93 |
Correct |
68 ms |
141392 KB |
Output is correct |
94 |
Correct |
66 ms |
141392 KB |
Output is correct |
95 |
Correct |
75 ms |
141320 KB |
Output is correct |
96 |
Correct |
66 ms |
141396 KB |
Output is correct |
97 |
Correct |
67 ms |
141392 KB |
Output is correct |
98 |
Correct |
70 ms |
141140 KB |
Output is correct |
99 |
Correct |
67 ms |
141392 KB |
Output is correct |
100 |
Correct |
68 ms |
141100 KB |
Output is correct |
101 |
Correct |
69 ms |
141124 KB |
Output is correct |
102 |
Correct |
66 ms |
141140 KB |
Output is correct |
103 |
Correct |
72 ms |
141148 KB |
Output is correct |
104 |
Correct |
67 ms |
141140 KB |
Output is correct |
105 |
Correct |
86 ms |
141136 KB |
Output is correct |
106 |
Correct |
70 ms |
141140 KB |
Output is correct |
107 |
Correct |
67 ms |
141396 KB |
Output is correct |
108 |
Correct |
67 ms |
141392 KB |
Output is correct |
109 |
Correct |
67 ms |
141396 KB |
Output is correct |
110 |
Correct |
81 ms |
143892 KB |
Output is correct |
111 |
Correct |
80 ms |
145700 KB |
Output is correct |
112 |
Correct |
74 ms |
146256 KB |
Output is correct |
113 |
Correct |
80 ms |
146304 KB |
Output is correct |
114 |
Correct |
75 ms |
146036 KB |
Output is correct |
115 |
Correct |
76 ms |
145948 KB |
Output is correct |
116 |
Correct |
74 ms |
145488 KB |
Output is correct |
117 |
Correct |
77 ms |
145492 KB |
Output is correct |
118 |
Correct |
83 ms |
145832 KB |
Output is correct |
119 |
Correct |
94 ms |
151376 KB |
Output is correct |
120 |
Correct |
110 ms |
153684 KB |
Output is correct |
121 |
Correct |
92 ms |
153680 KB |
Output is correct |
122 |
Correct |
94 ms |
153172 KB |
Output is correct |
123 |
Correct |
95 ms |
153168 KB |
Output is correct |
124 |
Correct |
193 ms |
177496 KB |
Output is correct |
125 |
Correct |
471 ms |
247556 KB |
Output is correct |
126 |
Correct |
368 ms |
266248 KB |
Output is correct |
127 |
Correct |
387 ms |
266760 KB |
Output is correct |
128 |
Correct |
346 ms |
260832 KB |
Output is correct |
129 |
Correct |
350 ms |
260580 KB |
Output is correct |
130 |
Correct |
583 ms |
266244 KB |
Output is correct |
131 |
Correct |
517 ms |
266504 KB |
Output is correct |
132 |
Correct |
75 ms |
145484 KB |
Output is correct |
133 |
Correct |
76 ms |
141392 KB |
Output is correct |
134 |
Correct |
69 ms |
141648 KB |
Output is correct |
135 |
Correct |
78 ms |
143880 KB |
Output is correct |
136 |
Correct |
75 ms |
144468 KB |
Output is correct |
137 |
Correct |
77 ms |
145752 KB |
Output is correct |
138 |
Correct |
78 ms |
146256 KB |
Output is correct |
139 |
Correct |
76 ms |
145492 KB |
Output is correct |
140 |
Correct |
76 ms |
145492 KB |
Output is correct |
141 |
Correct |
78 ms |
146256 KB |
Output is correct |
142 |
Correct |
78 ms |
146000 KB |
Output is correct |
143 |
Correct |
76 ms |
146092 KB |
Output is correct |
144 |
Correct |
74 ms |
145492 KB |
Output is correct |
145 |
Correct |
75 ms |
145488 KB |
Output is correct |
146 |
Correct |
75 ms |
145488 KB |
Output is correct |
147 |
Correct |
80 ms |
145488 KB |
Output is correct |
148 |
Correct |
81 ms |
145492 KB |
Output is correct |
149 |
Correct |
77 ms |
145624 KB |
Output is correct |
150 |
Correct |
96 ms |
145412 KB |
Output is correct |
151 |
Correct |
77 ms |
145688 KB |
Output is correct |
152 |
Correct |
79 ms |
145492 KB |
Output is correct |
153 |
Correct |
79 ms |
145488 KB |
Output is correct |
154 |
Correct |
89 ms |
151888 KB |
Output is correct |
155 |
Correct |
77 ms |
145492 KB |
Output is correct |
156 |
Correct |
97 ms |
151380 KB |
Output is correct |
157 |
Correct |
91 ms |
150864 KB |
Output is correct |
158 |
Correct |
94 ms |
153684 KB |
Output is correct |
159 |
Correct |
114 ms |
151960 KB |
Output is correct |
160 |
Correct |
91 ms |
151892 KB |
Output is correct |
161 |
Correct |
89 ms |
153684 KB |
Output is correct |
162 |
Correct |
81 ms |
153076 KB |
Output is correct |
163 |
Correct |
81 ms |
153268 KB |
Output is correct |
164 |
Correct |
101 ms |
152000 KB |
Output is correct |
165 |
Correct |
105 ms |
151816 KB |
Output is correct |
166 |
Correct |
96 ms |
152052 KB |
Output is correct |
167 |
Correct |
91 ms |
151892 KB |
Output is correct |
168 |
Correct |
81 ms |
151892 KB |
Output is correct |
169 |
Correct |
89 ms |
151888 KB |
Output is correct |
170 |
Correct |
96 ms |
152144 KB |
Output is correct |
171 |
Correct |
100 ms |
152144 KB |
Output is correct |
172 |
Correct |
120 ms |
152028 KB |
Output is correct |
173 |
Correct |
107 ms |
151964 KB |
Output is correct |
174 |
Correct |
108 ms |
155216 KB |
Output is correct |
175 |
Correct |
116 ms |
165176 KB |
Output is correct |
176 |
Correct |
179 ms |
195668 KB |
Output is correct |
177 |
Correct |
235 ms |
212820 KB |
Output is correct |
178 |
Correct |
297 ms |
234832 KB |
Output is correct |
179 |
Correct |
286 ms |
248400 KB |
Output is correct |
180 |
Correct |
339 ms |
248512 KB |
Output is correct |
181 |
Correct |
321 ms |
248912 KB |
Output is correct |
182 |
Correct |
354 ms |
248916 KB |
Output is correct |
183 |
Correct |
416 ms |
250964 KB |
Output is correct |
184 |
Correct |
661 ms |
355664 KB |
Output is correct |
185 |
Correct |
318 ms |
258900 KB |
Output is correct |
186 |
Correct |
469 ms |
286216 KB |
Output is correct |
187 |
Correct |
469 ms |
294576 KB |
Output is correct |
188 |
Correct |
551 ms |
391560 KB |
Output is correct |
189 |
Correct |
725 ms |
355800 KB |
Output is correct |
190 |
Correct |
588 ms |
355664 KB |
Output is correct |
191 |
Correct |
704 ms |
392280 KB |
Output is correct |
192 |
Correct |
614 ms |
380168 KB |
Output is correct |
193 |
Correct |
618 ms |
380256 KB |
Output is correct |
194 |
Correct |
368 ms |
355456 KB |
Output is correct |
195 |
Correct |
374 ms |
355540 KB |
Output is correct |
196 |
Correct |
483 ms |
355668 KB |
Output is correct |
197 |
Correct |
522 ms |
355964 KB |
Output is correct |
198 |
Correct |
514 ms |
356180 KB |
Output is correct |
199 |
Correct |
490 ms |
356944 KB |
Output is correct |
200 |
Correct |
777 ms |
356432 KB |
Output is correct |
201 |
Correct |
745 ms |
356124 KB |
Output is correct |
202 |
Correct |
699 ms |
355668 KB |
Output is correct |
203 |
Correct |
1311 ms |
569680 KB |
Output is correct |
204 |
Correct |
664 ms |
366420 KB |
Output is correct |
205 |
Correct |
842 ms |
404040 KB |
Output is correct |
206 |
Correct |
968 ms |
567452 KB |
Output is correct |
207 |
Correct |
1204 ms |
641812 KB |
Output is correct |
208 |
Correct |
1740 ms |
570264 KB |
Output is correct |
209 |
Correct |
1137 ms |
569948 KB |
Output is correct |
210 |
Correct |
1324 ms |
643064 KB |
Output is correct |
211 |
Correct |
974 ms |
618840 KB |
Output is correct |
212 |
Correct |
1253 ms |
619012 KB |
Output is correct |
213 |
Correct |
737 ms |
569904 KB |
Output is correct |
214 |
Correct |
699 ms |
569896 KB |
Output is correct |
215 |
Correct |
1066 ms |
569848 KB |
Output is correct |
216 |
Correct |
1012 ms |
570044 KB |
Output is correct |
217 |
Correct |
1073 ms |
570544 KB |
Output is correct |
218 |
Correct |
1375 ms |
572052 KB |
Output is correct |
219 |
Correct |
1645 ms |
593156 KB |
Output is correct |
220 |
Correct |
1865 ms |
614516 KB |
Output is correct |
221 |
Correct |
1839 ms |
647496 KB |
Output is correct |
222 |
Correct |
1919 ms |
648116 KB |
Output is correct |
223 |
Correct |
1945 ms |
576932 KB |
Output is correct |
224 |
Correct |
1820 ms |
576264 KB |
Output is correct |
225 |
Correct |
1488 ms |
575840 KB |
Output is correct |