#include "bits/stdc++.h"
#define int long long
#define all(v) v.begin() , v.end()
#define sz(a) (int)a.size()
using namespace std;
int n,m,k,a,b,c,d;
vector<vector<int>> v,dist,vis,pot;
const int INF = 1e9;
bool is_valid(int x,int y){
return (x>=1 && x<=n && y>=1 && y<=m && !v[x][y] && !vis[x][y]);
}
bool _Valid(int x,int y){
return (x>=1 && x<=n && y>=1 && y<=m && !vis[x][y]);
}
vector<array<int,2>> Extend(queue<array<int,2>> q){
vector<array<int,2>> New;
while(!q.empty()){
int A=q.front()[0],B=q.front()[1];
q.pop();
for(int dx=-1;dx<=1;dx++)
for(int dy=-1;dy<=1;dy++)
if(is_valid(A+dx,B+dy) && abs(dx)+abs(dy)==1){
q.push({A+dx,B+dy});
New.push_back({A+dx,B+dy});
vis[A+dx][B+dy]=1;
dist[A+dx][B+dy]=dist[A][B];
}
}
return New;
}
vector<array<int,2>> Update(queue<array<int,2>> q){
vector<array<int,2>> New;
while(!q.empty()){
int A=q.front()[0],B=q.front()[1];
q.pop();
for(int dx=-1;dx<=1;dx++)
for(int dy=-1;dy<=1;dy++){
if(!_Valid(A+dx,B+dy)) continue;
if(pot[A][B]==k) continue;
if(pot[A][B]==0 && abs(dx)+abs(dy)==1){
q.push({A+dx,B+dy});
New.push_back({A+dx,B+dy});
vis[A+dx][B+dy]=1;
dist[A+dx][B+dy]=dist[A][B]+1;
pot[A+dx][B+dy]=pot[A][B]+1;
}
if(pot[A][B]>0){
q.push({A+dx,B+dy});
New.push_back({A+dx,B+dy});
vis[A+dx][B+dy]=1;
dist[A+dx][B+dy]=dist[A][B];
pot[A+dx][B+dy]=pot[A][B]+1;
}
}
}
return New;
}
void _(){
cin >> n >> m >> k;
cin >> a >> b >> c >> d;
dist.assign(n+5,vector<int>(m+5,INF));
v.assign(n+5,vector<int>(m+5,0));
pot.assign(n+5,vector<int>(m+5,0));
vis.assign(n+5,vector<int>(m+5,0));
for(int i=1;i<=n;i++){
string s;cin >> s;
for(int j=1;j<=m;j++){
if(s[j-1]=='.') v[i][j]=0;
else v[i][j]=1;
}
}
pot[a][b]=dist[a][b]=0;
vis[a][b]=1;
queue<array<int,2>> q;
q.push({a,b});
while(dist[c][d]==INF){
vector<array<int,2>> round;
queue<array<int,2>> qq=q;
vector<array<int,2>> cur=Extend(qq);
for(array<int,2> x:cur){
round.push_back(x);
q.push(x);
}
qq=q;
vector<array<int,2>> Swarm=Update(qq);
for(array<int,2> x:Swarm) round.push_back(x);
for(array<int,2> x:round) pot[x[0]][x[1]]=0;
while(!q.empty()) q.pop();
for(array<int,2> x:round) q.push(x);
}
cout << dist[c][d] << '\n';
}
int32_t main(){
cin.tie(0); ios::sync_with_stdio(0);
int tc=1;//cin >> tc;
while(tc--) _();
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
7 ms |
2512 KB |
Output is correct |
20 |
Correct |
12 ms |
9456 KB |
Output is correct |
21 |
Correct |
8 ms |
7116 KB |
Output is correct |
22 |
Correct |
11 ms |
2652 KB |
Output is correct |
23 |
Correct |
8 ms |
2548 KB |
Output is correct |
24 |
Correct |
17 ms |
12160 KB |
Output is correct |
25 |
Correct |
16 ms |
12164 KB |
Output is correct |
26 |
Correct |
2 ms |
3164 KB |
Output is correct |
27 |
Correct |
2 ms |
2652 KB |
Output is correct |
28 |
Correct |
4 ms |
2676 KB |
Output is correct |
29 |
Correct |
21 ms |
5468 KB |
Output is correct |
30 |
Correct |
11 ms |
7276 KB |
Output is correct |
31 |
Correct |
20 ms |
20560 KB |
Output is correct |
32 |
Correct |
32 ms |
5872 KB |
Output is correct |
33 |
Correct |
19 ms |
5468 KB |
Output is correct |
34 |
Correct |
30 ms |
29896 KB |
Output is correct |
35 |
Correct |
46 ms |
29892 KB |
Output is correct |
36 |
Correct |
21 ms |
6988 KB |
Output is correct |
37 |
Correct |
29 ms |
6412 KB |
Output is correct |
38 |
Correct |
4 ms |
5724 KB |
Output is correct |
39 |
Correct |
286 ms |
49728 KB |
Output is correct |
40 |
Correct |
13 ms |
7768 KB |
Output is correct |
41 |
Correct |
28 ms |
36532 KB |
Output is correct |
42 |
Correct |
42 ms |
7516 KB |
Output is correct |
43 |
Correct |
43 ms |
28040 KB |
Output is correct |
44 |
Correct |
67 ms |
44756 KB |
Output is correct |
45 |
Correct |
77 ms |
52716 KB |
Output is correct |
46 |
Correct |
252 ms |
170388 KB |
Output is correct |
47 |
Correct |
360 ms |
50740 KB |
Output is correct |
48 |
Correct |
219 ms |
49556 KB |
Output is correct |
49 |
Correct |
240 ms |
295452 KB |
Output is correct |
50 |
Correct |
324 ms |
295376 KB |
Output is correct |
51 |
Correct |
264 ms |
56372 KB |
Output is correct |
52 |
Correct |
199 ms |
52136 KB |
Output is correct |
53 |
Correct |
249 ms |
50244 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
460 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
452 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
604 KB |
Output is correct |
16 |
Correct |
1 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
456 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
600 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
604 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
1884 KB |
Output is correct |
26 |
Correct |
9 ms |
6356 KB |
Output is correct |
27 |
Correct |
9 ms |
7268 KB |
Output is correct |
28 |
Correct |
9 ms |
7128 KB |
Output is correct |
29 |
Correct |
5 ms |
5212 KB |
Output is correct |
30 |
Correct |
5 ms |
5208 KB |
Output is correct |
31 |
Correct |
5 ms |
3024 KB |
Output is correct |
32 |
Correct |
3 ms |
3164 KB |
Output is correct |
33 |
Correct |
2 ms |
2652 KB |
Output is correct |
34 |
Correct |
20 ms |
13252 KB |
Output is correct |
35 |
Correct |
20 ms |
19676 KB |
Output is correct |
36 |
Correct |
22 ms |
17616 KB |
Output is correct |
37 |
Correct |
13 ms |
14288 KB |
Output is correct |
38 |
Correct |
15 ms |
14092 KB |
Output is correct |
39 |
Correct |
72 ms |
46008 KB |
Output is correct |
40 |
Correct |
219 ms |
152160 KB |
Output is correct |
41 |
Correct |
245 ms |
171416 KB |
Output is correct |
42 |
Correct |
245 ms |
171152 KB |
Output is correct |
43 |
Correct |
137 ms |
122004 KB |
Output is correct |
44 |
Correct |
146 ms |
122432 KB |
Output is correct |
45 |
Correct |
252 ms |
153568 KB |
Output is correct |
46 |
Correct |
249 ms |
150684 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
460 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
452 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
604 KB |
Output is correct |
16 |
Correct |
1 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
456 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
600 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
8 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
860 KB |
Output is correct |
36 |
Correct |
2 ms |
1884 KB |
Output is correct |
37 |
Correct |
13 ms |
9580 KB |
Output is correct |
38 |
Correct |
9 ms |
6356 KB |
Output is correct |
39 |
Correct |
8 ms |
7124 KB |
Output is correct |
40 |
Correct |
13 ms |
2652 KB |
Output is correct |
41 |
Correct |
7 ms |
2396 KB |
Output is correct |
42 |
Correct |
8 ms |
7128 KB |
Output is correct |
43 |
Correct |
6 ms |
5208 KB |
Output is correct |
44 |
Correct |
6 ms |
5320 KB |
Output is correct |
45 |
Correct |
11 ms |
12164 KB |
Output is correct |
46 |
Correct |
16 ms |
12160 KB |
Output is correct |
47 |
Correct |
10 ms |
7348 KB |
Output is correct |
48 |
Correct |
8 ms |
2908 KB |
Output is correct |
49 |
Correct |
7 ms |
2812 KB |
Output is correct |
50 |
Correct |
9 ms |
2648 KB |
Output is correct |
51 |
Correct |
4 ms |
3028 KB |
Output is correct |
52 |
Correct |
3 ms |
3164 KB |
Output is correct |
53 |
Correct |
3 ms |
2652 KB |
Output is correct |
54 |
Correct |
5 ms |
2648 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
460 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
452 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
604 KB |
Output is correct |
16 |
Correct |
1 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
456 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
600 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
8 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
860 KB |
Output is correct |
36 |
Correct |
2 ms |
1884 KB |
Output is correct |
37 |
Correct |
13 ms |
9580 KB |
Output is correct |
38 |
Correct |
9 ms |
6356 KB |
Output is correct |
39 |
Correct |
8 ms |
7124 KB |
Output is correct |
40 |
Correct |
13 ms |
2652 KB |
Output is correct |
41 |
Correct |
7 ms |
2396 KB |
Output is correct |
42 |
Correct |
8 ms |
7128 KB |
Output is correct |
43 |
Correct |
6 ms |
5208 KB |
Output is correct |
44 |
Correct |
6 ms |
5320 KB |
Output is correct |
45 |
Correct |
11 ms |
12164 KB |
Output is correct |
46 |
Correct |
16 ms |
12160 KB |
Output is correct |
47 |
Correct |
10 ms |
7348 KB |
Output is correct |
48 |
Correct |
8 ms |
2908 KB |
Output is correct |
49 |
Correct |
7 ms |
2812 KB |
Output is correct |
50 |
Correct |
9 ms |
2648 KB |
Output is correct |
51 |
Correct |
4 ms |
3028 KB |
Output is correct |
52 |
Correct |
3 ms |
3164 KB |
Output is correct |
53 |
Correct |
3 ms |
2652 KB |
Output is correct |
54 |
Correct |
5 ms |
2648 KB |
Output is correct |
55 |
Correct |
23 ms |
5468 KB |
Output is correct |
56 |
Correct |
11 ms |
7492 KB |
Output is correct |
57 |
Correct |
19 ms |
13260 KB |
Output is correct |
58 |
Correct |
18 ms |
6492 KB |
Output is correct |
59 |
Correct |
22 ms |
20688 KB |
Output is correct |
60 |
Correct |
34 ms |
5872 KB |
Output is correct |
61 |
Correct |
19 ms |
5480 KB |
Output is correct |
62 |
Correct |
20 ms |
18640 KB |
Output is correct |
63 |
Correct |
14 ms |
16452 KB |
Output is correct |
64 |
Correct |
13 ms |
14232 KB |
Output is correct |
65 |
Correct |
29 ms |
29896 KB |
Output is correct |
66 |
Correct |
53 ms |
29760 KB |
Output is correct |
67 |
Correct |
33 ms |
17664 KB |
Output is correct |
68 |
Correct |
25 ms |
6492 KB |
Output is correct |
69 |
Correct |
22 ms |
6324 KB |
Output is correct |
70 |
Correct |
23 ms |
6296 KB |
Output is correct |
71 |
Correct |
18 ms |
6992 KB |
Output is correct |
72 |
Correct |
20 ms |
7104 KB |
Output is correct |
73 |
Correct |
26 ms |
6384 KB |
Output is correct |
74 |
Correct |
4 ms |
5724 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
7 ms |
2512 KB |
Output is correct |
20 |
Correct |
12 ms |
9456 KB |
Output is correct |
21 |
Correct |
8 ms |
7116 KB |
Output is correct |
22 |
Correct |
11 ms |
2652 KB |
Output is correct |
23 |
Correct |
8 ms |
2548 KB |
Output is correct |
24 |
Correct |
17 ms |
12160 KB |
Output is correct |
25 |
Correct |
16 ms |
12164 KB |
Output is correct |
26 |
Correct |
2 ms |
3164 KB |
Output is correct |
27 |
Correct |
2 ms |
2652 KB |
Output is correct |
28 |
Correct |
4 ms |
2676 KB |
Output is correct |
29 |
Correct |
21 ms |
5468 KB |
Output is correct |
30 |
Correct |
11 ms |
7276 KB |
Output is correct |
31 |
Correct |
20 ms |
20560 KB |
Output is correct |
32 |
Correct |
32 ms |
5872 KB |
Output is correct |
33 |
Correct |
19 ms |
5468 KB |
Output is correct |
34 |
Correct |
30 ms |
29896 KB |
Output is correct |
35 |
Correct |
46 ms |
29892 KB |
Output is correct |
36 |
Correct |
21 ms |
6988 KB |
Output is correct |
37 |
Correct |
29 ms |
6412 KB |
Output is correct |
38 |
Correct |
4 ms |
5724 KB |
Output is correct |
39 |
Correct |
286 ms |
49728 KB |
Output is correct |
40 |
Correct |
13 ms |
7768 KB |
Output is correct |
41 |
Correct |
28 ms |
36532 KB |
Output is correct |
42 |
Correct |
42 ms |
7516 KB |
Output is correct |
43 |
Correct |
43 ms |
28040 KB |
Output is correct |
44 |
Correct |
67 ms |
44756 KB |
Output is correct |
45 |
Correct |
77 ms |
52716 KB |
Output is correct |
46 |
Correct |
252 ms |
170388 KB |
Output is correct |
47 |
Correct |
360 ms |
50740 KB |
Output is correct |
48 |
Correct |
219 ms |
49556 KB |
Output is correct |
49 |
Correct |
240 ms |
295452 KB |
Output is correct |
50 |
Correct |
324 ms |
295376 KB |
Output is correct |
51 |
Correct |
264 ms |
56372 KB |
Output is correct |
52 |
Correct |
199 ms |
52136 KB |
Output is correct |
53 |
Correct |
249 ms |
50244 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
460 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
452 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
604 KB |
Output is correct |
69 |
Correct |
1 ms |
604 KB |
Output is correct |
70 |
Correct |
1 ms |
456 KB |
Output is correct |
71 |
Correct |
1 ms |
344 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
1 ms |
344 KB |
Output is correct |
81 |
Correct |
1 ms |
600 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
604 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
344 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
1884 KB |
Output is correct |
111 |
Correct |
9 ms |
6356 KB |
Output is correct |
112 |
Correct |
9 ms |
7268 KB |
Output is correct |
113 |
Correct |
9 ms |
7128 KB |
Output is correct |
114 |
Correct |
5 ms |
5212 KB |
Output is correct |
115 |
Correct |
5 ms |
5208 KB |
Output is correct |
116 |
Correct |
5 ms |
3024 KB |
Output is correct |
117 |
Correct |
3 ms |
3164 KB |
Output is correct |
118 |
Correct |
2 ms |
2652 KB |
Output is correct |
119 |
Correct |
20 ms |
13252 KB |
Output is correct |
120 |
Correct |
20 ms |
19676 KB |
Output is correct |
121 |
Correct |
22 ms |
17616 KB |
Output is correct |
122 |
Correct |
13 ms |
14288 KB |
Output is correct |
123 |
Correct |
15 ms |
14092 KB |
Output is correct |
124 |
Correct |
72 ms |
46008 KB |
Output is correct |
125 |
Correct |
219 ms |
152160 KB |
Output is correct |
126 |
Correct |
245 ms |
171416 KB |
Output is correct |
127 |
Correct |
245 ms |
171152 KB |
Output is correct |
128 |
Correct |
137 ms |
122004 KB |
Output is correct |
129 |
Correct |
146 ms |
122432 KB |
Output is correct |
130 |
Correct |
252 ms |
153568 KB |
Output is correct |
131 |
Correct |
249 ms |
150684 KB |
Output is correct |
132 |
Correct |
8 ms |
2396 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
860 KB |
Output is correct |
135 |
Correct |
2 ms |
1884 KB |
Output is correct |
136 |
Correct |
13 ms |
9580 KB |
Output is correct |
137 |
Correct |
9 ms |
6356 KB |
Output is correct |
138 |
Correct |
8 ms |
7124 KB |
Output is correct |
139 |
Correct |
13 ms |
2652 KB |
Output is correct |
140 |
Correct |
7 ms |
2396 KB |
Output is correct |
141 |
Correct |
8 ms |
7128 KB |
Output is correct |
142 |
Correct |
6 ms |
5208 KB |
Output is correct |
143 |
Correct |
6 ms |
5320 KB |
Output is correct |
144 |
Correct |
11 ms |
12164 KB |
Output is correct |
145 |
Correct |
16 ms |
12160 KB |
Output is correct |
146 |
Correct |
10 ms |
7348 KB |
Output is correct |
147 |
Correct |
8 ms |
2908 KB |
Output is correct |
148 |
Correct |
7 ms |
2812 KB |
Output is correct |
149 |
Correct |
9 ms |
2648 KB |
Output is correct |
150 |
Correct |
4 ms |
3028 KB |
Output is correct |
151 |
Correct |
3 ms |
3164 KB |
Output is correct |
152 |
Correct |
3 ms |
2652 KB |
Output is correct |
153 |
Correct |
5 ms |
2648 KB |
Output is correct |
154 |
Correct |
23 ms |
5468 KB |
Output is correct |
155 |
Correct |
11 ms |
7492 KB |
Output is correct |
156 |
Correct |
19 ms |
13260 KB |
Output is correct |
157 |
Correct |
18 ms |
6492 KB |
Output is correct |
158 |
Correct |
22 ms |
20688 KB |
Output is correct |
159 |
Correct |
34 ms |
5872 KB |
Output is correct |
160 |
Correct |
19 ms |
5480 KB |
Output is correct |
161 |
Correct |
20 ms |
18640 KB |
Output is correct |
162 |
Correct |
14 ms |
16452 KB |
Output is correct |
163 |
Correct |
13 ms |
14232 KB |
Output is correct |
164 |
Correct |
29 ms |
29896 KB |
Output is correct |
165 |
Correct |
53 ms |
29760 KB |
Output is correct |
166 |
Correct |
33 ms |
17664 KB |
Output is correct |
167 |
Correct |
25 ms |
6492 KB |
Output is correct |
168 |
Correct |
22 ms |
6324 KB |
Output is correct |
169 |
Correct |
23 ms |
6296 KB |
Output is correct |
170 |
Correct |
18 ms |
6992 KB |
Output is correct |
171 |
Correct |
20 ms |
7104 KB |
Output is correct |
172 |
Correct |
26 ms |
6384 KB |
Output is correct |
173 |
Correct |
4 ms |
5724 KB |
Output is correct |
174 |
Correct |
11 ms |
9048 KB |
Output is correct |
175 |
Correct |
51 ms |
12592 KB |
Output is correct |
176 |
Correct |
65 ms |
66720 KB |
Output is correct |
177 |
Correct |
102 ms |
40420 KB |
Output is correct |
178 |
Correct |
32 ms |
48452 KB |
Output is correct |
179 |
Correct |
124 ms |
54740 KB |
Output is correct |
180 |
Correct |
226 ms |
53392 KB |
Output is correct |
181 |
Correct |
225 ms |
53684 KB |
Output is correct |
182 |
Correct |
243 ms |
57312 KB |
Output is correct |
183 |
Correct |
291 ms |
74032 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
7 ms |
2512 KB |
Output is correct |
20 |
Correct |
12 ms |
9456 KB |
Output is correct |
21 |
Correct |
8 ms |
7116 KB |
Output is correct |
22 |
Correct |
11 ms |
2652 KB |
Output is correct |
23 |
Correct |
8 ms |
2548 KB |
Output is correct |
24 |
Correct |
17 ms |
12160 KB |
Output is correct |
25 |
Correct |
16 ms |
12164 KB |
Output is correct |
26 |
Correct |
2 ms |
3164 KB |
Output is correct |
27 |
Correct |
2 ms |
2652 KB |
Output is correct |
28 |
Correct |
4 ms |
2676 KB |
Output is correct |
29 |
Correct |
21 ms |
5468 KB |
Output is correct |
30 |
Correct |
11 ms |
7276 KB |
Output is correct |
31 |
Correct |
20 ms |
20560 KB |
Output is correct |
32 |
Correct |
32 ms |
5872 KB |
Output is correct |
33 |
Correct |
19 ms |
5468 KB |
Output is correct |
34 |
Correct |
30 ms |
29896 KB |
Output is correct |
35 |
Correct |
46 ms |
29892 KB |
Output is correct |
36 |
Correct |
21 ms |
6988 KB |
Output is correct |
37 |
Correct |
29 ms |
6412 KB |
Output is correct |
38 |
Correct |
4 ms |
5724 KB |
Output is correct |
39 |
Correct |
286 ms |
49728 KB |
Output is correct |
40 |
Correct |
13 ms |
7768 KB |
Output is correct |
41 |
Correct |
28 ms |
36532 KB |
Output is correct |
42 |
Correct |
42 ms |
7516 KB |
Output is correct |
43 |
Correct |
43 ms |
28040 KB |
Output is correct |
44 |
Correct |
67 ms |
44756 KB |
Output is correct |
45 |
Correct |
77 ms |
52716 KB |
Output is correct |
46 |
Correct |
252 ms |
170388 KB |
Output is correct |
47 |
Correct |
360 ms |
50740 KB |
Output is correct |
48 |
Correct |
219 ms |
49556 KB |
Output is correct |
49 |
Correct |
240 ms |
295452 KB |
Output is correct |
50 |
Correct |
324 ms |
295376 KB |
Output is correct |
51 |
Correct |
264 ms |
56372 KB |
Output is correct |
52 |
Correct |
199 ms |
52136 KB |
Output is correct |
53 |
Correct |
249 ms |
50244 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
460 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
452 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
604 KB |
Output is correct |
69 |
Correct |
1 ms |
604 KB |
Output is correct |
70 |
Correct |
1 ms |
456 KB |
Output is correct |
71 |
Correct |
1 ms |
344 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
1 ms |
344 KB |
Output is correct |
81 |
Correct |
1 ms |
600 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
604 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
344 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
1884 KB |
Output is correct |
111 |
Correct |
9 ms |
6356 KB |
Output is correct |
112 |
Correct |
9 ms |
7268 KB |
Output is correct |
113 |
Correct |
9 ms |
7128 KB |
Output is correct |
114 |
Correct |
5 ms |
5212 KB |
Output is correct |
115 |
Correct |
5 ms |
5208 KB |
Output is correct |
116 |
Correct |
5 ms |
3024 KB |
Output is correct |
117 |
Correct |
3 ms |
3164 KB |
Output is correct |
118 |
Correct |
2 ms |
2652 KB |
Output is correct |
119 |
Correct |
20 ms |
13252 KB |
Output is correct |
120 |
Correct |
20 ms |
19676 KB |
Output is correct |
121 |
Correct |
22 ms |
17616 KB |
Output is correct |
122 |
Correct |
13 ms |
14288 KB |
Output is correct |
123 |
Correct |
15 ms |
14092 KB |
Output is correct |
124 |
Correct |
72 ms |
46008 KB |
Output is correct |
125 |
Correct |
219 ms |
152160 KB |
Output is correct |
126 |
Correct |
245 ms |
171416 KB |
Output is correct |
127 |
Correct |
245 ms |
171152 KB |
Output is correct |
128 |
Correct |
137 ms |
122004 KB |
Output is correct |
129 |
Correct |
146 ms |
122432 KB |
Output is correct |
130 |
Correct |
252 ms |
153568 KB |
Output is correct |
131 |
Correct |
249 ms |
150684 KB |
Output is correct |
132 |
Correct |
8 ms |
2396 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
860 KB |
Output is correct |
135 |
Correct |
2 ms |
1884 KB |
Output is correct |
136 |
Correct |
13 ms |
9580 KB |
Output is correct |
137 |
Correct |
9 ms |
6356 KB |
Output is correct |
138 |
Correct |
8 ms |
7124 KB |
Output is correct |
139 |
Correct |
13 ms |
2652 KB |
Output is correct |
140 |
Correct |
7 ms |
2396 KB |
Output is correct |
141 |
Correct |
8 ms |
7128 KB |
Output is correct |
142 |
Correct |
6 ms |
5208 KB |
Output is correct |
143 |
Correct |
6 ms |
5320 KB |
Output is correct |
144 |
Correct |
11 ms |
12164 KB |
Output is correct |
145 |
Correct |
16 ms |
12160 KB |
Output is correct |
146 |
Correct |
10 ms |
7348 KB |
Output is correct |
147 |
Correct |
8 ms |
2908 KB |
Output is correct |
148 |
Correct |
7 ms |
2812 KB |
Output is correct |
149 |
Correct |
9 ms |
2648 KB |
Output is correct |
150 |
Correct |
4 ms |
3028 KB |
Output is correct |
151 |
Correct |
3 ms |
3164 KB |
Output is correct |
152 |
Correct |
3 ms |
2652 KB |
Output is correct |
153 |
Correct |
5 ms |
2648 KB |
Output is correct |
154 |
Correct |
23 ms |
5468 KB |
Output is correct |
155 |
Correct |
11 ms |
7492 KB |
Output is correct |
156 |
Correct |
19 ms |
13260 KB |
Output is correct |
157 |
Correct |
18 ms |
6492 KB |
Output is correct |
158 |
Correct |
22 ms |
20688 KB |
Output is correct |
159 |
Correct |
34 ms |
5872 KB |
Output is correct |
160 |
Correct |
19 ms |
5480 KB |
Output is correct |
161 |
Correct |
20 ms |
18640 KB |
Output is correct |
162 |
Correct |
14 ms |
16452 KB |
Output is correct |
163 |
Correct |
13 ms |
14232 KB |
Output is correct |
164 |
Correct |
29 ms |
29896 KB |
Output is correct |
165 |
Correct |
53 ms |
29760 KB |
Output is correct |
166 |
Correct |
33 ms |
17664 KB |
Output is correct |
167 |
Correct |
25 ms |
6492 KB |
Output is correct |
168 |
Correct |
22 ms |
6324 KB |
Output is correct |
169 |
Correct |
23 ms |
6296 KB |
Output is correct |
170 |
Correct |
18 ms |
6992 KB |
Output is correct |
171 |
Correct |
20 ms |
7104 KB |
Output is correct |
172 |
Correct |
26 ms |
6384 KB |
Output is correct |
173 |
Correct |
4 ms |
5724 KB |
Output is correct |
174 |
Correct |
11 ms |
9048 KB |
Output is correct |
175 |
Correct |
51 ms |
12592 KB |
Output is correct |
176 |
Correct |
65 ms |
66720 KB |
Output is correct |
177 |
Correct |
102 ms |
40420 KB |
Output is correct |
178 |
Correct |
32 ms |
48452 KB |
Output is correct |
179 |
Correct |
124 ms |
54740 KB |
Output is correct |
180 |
Correct |
226 ms |
53392 KB |
Output is correct |
181 |
Correct |
225 ms |
53684 KB |
Output is correct |
182 |
Correct |
243 ms |
57312 KB |
Output is correct |
183 |
Correct |
291 ms |
74032 KB |
Output is correct |
184 |
Correct |
678 ms |
98436 KB |
Output is correct |
185 |
Correct |
79 ms |
61400 KB |
Output is correct |
186 |
Correct |
249 ms |
183716 KB |
Output is correct |
187 |
Correct |
67 ms |
78796 KB |
Output is correct |
188 |
Correct |
449 ms |
340056 KB |
Output is correct |
189 |
Correct |
582 ms |
100036 KB |
Output is correct |
190 |
Correct |
226 ms |
98128 KB |
Output is correct |
191 |
Correct |
463 ms |
340028 KB |
Output is correct |
192 |
Correct |
254 ms |
241000 KB |
Output is correct |
193 |
Correct |
266 ms |
240996 KB |
Output is correct |
194 |
Correct |
571 ms |
590492 KB |
Output is correct |
195 |
Correct |
670 ms |
590244 KB |
Output is correct |
196 |
Correct |
449 ms |
106292 KB |
Output is correct |
197 |
Correct |
240 ms |
104772 KB |
Output is correct |
198 |
Correct |
251 ms |
105200 KB |
Output is correct |
199 |
Correct |
407 ms |
108940 KB |
Output is correct |
200 |
Correct |
313 ms |
109040 KB |
Output is correct |
201 |
Correct |
516 ms |
102684 KB |
Output is correct |
202 |
Correct |
610 ms |
99172 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
7 ms |
2512 KB |
Output is correct |
20 |
Correct |
12 ms |
9456 KB |
Output is correct |
21 |
Correct |
8 ms |
7116 KB |
Output is correct |
22 |
Correct |
11 ms |
2652 KB |
Output is correct |
23 |
Correct |
8 ms |
2548 KB |
Output is correct |
24 |
Correct |
17 ms |
12160 KB |
Output is correct |
25 |
Correct |
16 ms |
12164 KB |
Output is correct |
26 |
Correct |
2 ms |
3164 KB |
Output is correct |
27 |
Correct |
2 ms |
2652 KB |
Output is correct |
28 |
Correct |
4 ms |
2676 KB |
Output is correct |
29 |
Correct |
21 ms |
5468 KB |
Output is correct |
30 |
Correct |
11 ms |
7276 KB |
Output is correct |
31 |
Correct |
20 ms |
20560 KB |
Output is correct |
32 |
Correct |
32 ms |
5872 KB |
Output is correct |
33 |
Correct |
19 ms |
5468 KB |
Output is correct |
34 |
Correct |
30 ms |
29896 KB |
Output is correct |
35 |
Correct |
46 ms |
29892 KB |
Output is correct |
36 |
Correct |
21 ms |
6988 KB |
Output is correct |
37 |
Correct |
29 ms |
6412 KB |
Output is correct |
38 |
Correct |
4 ms |
5724 KB |
Output is correct |
39 |
Correct |
286 ms |
49728 KB |
Output is correct |
40 |
Correct |
13 ms |
7768 KB |
Output is correct |
41 |
Correct |
28 ms |
36532 KB |
Output is correct |
42 |
Correct |
42 ms |
7516 KB |
Output is correct |
43 |
Correct |
43 ms |
28040 KB |
Output is correct |
44 |
Correct |
67 ms |
44756 KB |
Output is correct |
45 |
Correct |
77 ms |
52716 KB |
Output is correct |
46 |
Correct |
252 ms |
170388 KB |
Output is correct |
47 |
Correct |
360 ms |
50740 KB |
Output is correct |
48 |
Correct |
219 ms |
49556 KB |
Output is correct |
49 |
Correct |
240 ms |
295452 KB |
Output is correct |
50 |
Correct |
324 ms |
295376 KB |
Output is correct |
51 |
Correct |
264 ms |
56372 KB |
Output is correct |
52 |
Correct |
199 ms |
52136 KB |
Output is correct |
53 |
Correct |
249 ms |
50244 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
460 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
452 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
604 KB |
Output is correct |
69 |
Correct |
1 ms |
604 KB |
Output is correct |
70 |
Correct |
1 ms |
456 KB |
Output is correct |
71 |
Correct |
1 ms |
344 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
1 ms |
344 KB |
Output is correct |
81 |
Correct |
1 ms |
600 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
604 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
344 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
1884 KB |
Output is correct |
111 |
Correct |
9 ms |
6356 KB |
Output is correct |
112 |
Correct |
9 ms |
7268 KB |
Output is correct |
113 |
Correct |
9 ms |
7128 KB |
Output is correct |
114 |
Correct |
5 ms |
5212 KB |
Output is correct |
115 |
Correct |
5 ms |
5208 KB |
Output is correct |
116 |
Correct |
5 ms |
3024 KB |
Output is correct |
117 |
Correct |
3 ms |
3164 KB |
Output is correct |
118 |
Correct |
2 ms |
2652 KB |
Output is correct |
119 |
Correct |
20 ms |
13252 KB |
Output is correct |
120 |
Correct |
20 ms |
19676 KB |
Output is correct |
121 |
Correct |
22 ms |
17616 KB |
Output is correct |
122 |
Correct |
13 ms |
14288 KB |
Output is correct |
123 |
Correct |
15 ms |
14092 KB |
Output is correct |
124 |
Correct |
72 ms |
46008 KB |
Output is correct |
125 |
Correct |
219 ms |
152160 KB |
Output is correct |
126 |
Correct |
245 ms |
171416 KB |
Output is correct |
127 |
Correct |
245 ms |
171152 KB |
Output is correct |
128 |
Correct |
137 ms |
122004 KB |
Output is correct |
129 |
Correct |
146 ms |
122432 KB |
Output is correct |
130 |
Correct |
252 ms |
153568 KB |
Output is correct |
131 |
Correct |
249 ms |
150684 KB |
Output is correct |
132 |
Correct |
8 ms |
2396 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
860 KB |
Output is correct |
135 |
Correct |
2 ms |
1884 KB |
Output is correct |
136 |
Correct |
13 ms |
9580 KB |
Output is correct |
137 |
Correct |
9 ms |
6356 KB |
Output is correct |
138 |
Correct |
8 ms |
7124 KB |
Output is correct |
139 |
Correct |
13 ms |
2652 KB |
Output is correct |
140 |
Correct |
7 ms |
2396 KB |
Output is correct |
141 |
Correct |
8 ms |
7128 KB |
Output is correct |
142 |
Correct |
6 ms |
5208 KB |
Output is correct |
143 |
Correct |
6 ms |
5320 KB |
Output is correct |
144 |
Correct |
11 ms |
12164 KB |
Output is correct |
145 |
Correct |
16 ms |
12160 KB |
Output is correct |
146 |
Correct |
10 ms |
7348 KB |
Output is correct |
147 |
Correct |
8 ms |
2908 KB |
Output is correct |
148 |
Correct |
7 ms |
2812 KB |
Output is correct |
149 |
Correct |
9 ms |
2648 KB |
Output is correct |
150 |
Correct |
4 ms |
3028 KB |
Output is correct |
151 |
Correct |
3 ms |
3164 KB |
Output is correct |
152 |
Correct |
3 ms |
2652 KB |
Output is correct |
153 |
Correct |
5 ms |
2648 KB |
Output is correct |
154 |
Correct |
23 ms |
5468 KB |
Output is correct |
155 |
Correct |
11 ms |
7492 KB |
Output is correct |
156 |
Correct |
19 ms |
13260 KB |
Output is correct |
157 |
Correct |
18 ms |
6492 KB |
Output is correct |
158 |
Correct |
22 ms |
20688 KB |
Output is correct |
159 |
Correct |
34 ms |
5872 KB |
Output is correct |
160 |
Correct |
19 ms |
5480 KB |
Output is correct |
161 |
Correct |
20 ms |
18640 KB |
Output is correct |
162 |
Correct |
14 ms |
16452 KB |
Output is correct |
163 |
Correct |
13 ms |
14232 KB |
Output is correct |
164 |
Correct |
29 ms |
29896 KB |
Output is correct |
165 |
Correct |
53 ms |
29760 KB |
Output is correct |
166 |
Correct |
33 ms |
17664 KB |
Output is correct |
167 |
Correct |
25 ms |
6492 KB |
Output is correct |
168 |
Correct |
22 ms |
6324 KB |
Output is correct |
169 |
Correct |
23 ms |
6296 KB |
Output is correct |
170 |
Correct |
18 ms |
6992 KB |
Output is correct |
171 |
Correct |
20 ms |
7104 KB |
Output is correct |
172 |
Correct |
26 ms |
6384 KB |
Output is correct |
173 |
Correct |
4 ms |
5724 KB |
Output is correct |
174 |
Correct |
11 ms |
9048 KB |
Output is correct |
175 |
Correct |
51 ms |
12592 KB |
Output is correct |
176 |
Correct |
65 ms |
66720 KB |
Output is correct |
177 |
Correct |
102 ms |
40420 KB |
Output is correct |
178 |
Correct |
32 ms |
48452 KB |
Output is correct |
179 |
Correct |
124 ms |
54740 KB |
Output is correct |
180 |
Correct |
226 ms |
53392 KB |
Output is correct |
181 |
Correct |
225 ms |
53684 KB |
Output is correct |
182 |
Correct |
243 ms |
57312 KB |
Output is correct |
183 |
Correct |
291 ms |
74032 KB |
Output is correct |
184 |
Correct |
678 ms |
98436 KB |
Output is correct |
185 |
Correct |
79 ms |
61400 KB |
Output is correct |
186 |
Correct |
249 ms |
183716 KB |
Output is correct |
187 |
Correct |
67 ms |
78796 KB |
Output is correct |
188 |
Correct |
449 ms |
340056 KB |
Output is correct |
189 |
Correct |
582 ms |
100036 KB |
Output is correct |
190 |
Correct |
226 ms |
98128 KB |
Output is correct |
191 |
Correct |
463 ms |
340028 KB |
Output is correct |
192 |
Correct |
254 ms |
241000 KB |
Output is correct |
193 |
Correct |
266 ms |
240996 KB |
Output is correct |
194 |
Correct |
571 ms |
590492 KB |
Output is correct |
195 |
Correct |
670 ms |
590244 KB |
Output is correct |
196 |
Correct |
449 ms |
106292 KB |
Output is correct |
197 |
Correct |
240 ms |
104772 KB |
Output is correct |
198 |
Correct |
251 ms |
105200 KB |
Output is correct |
199 |
Correct |
407 ms |
108940 KB |
Output is correct |
200 |
Correct |
313 ms |
109040 KB |
Output is correct |
201 |
Correct |
516 ms |
102684 KB |
Output is correct |
202 |
Correct |
610 ms |
99172 KB |
Output is correct |
203 |
Correct |
1326 ms |
195828 KB |
Output is correct |
204 |
Correct |
421 ms |
134080 KB |
Output is correct |
205 |
Correct |
664 ms |
123700 KB |
Output is correct |
206 |
Correct |
321 ms |
222892 KB |
Output is correct |
207 |
Correct |
1051 ms |
678972 KB |
Output is correct |
208 |
Correct |
1315 ms |
198084 KB |
Output is correct |
209 |
Correct |
1216 ms |
195736 KB |
Output is correct |
210 |
Correct |
983 ms |
678948 KB |
Output is correct |
211 |
Correct |
526 ms |
481396 KB |
Output is correct |
212 |
Correct |
545 ms |
481404 KB |
Output is correct |
213 |
Correct |
946 ms |
1174556 KB |
Output is correct |
214 |
Correct |
1479 ms |
1174552 KB |
Output is correct |
215 |
Correct |
839 ms |
208580 KB |
Output is correct |
216 |
Correct |
726 ms |
205336 KB |
Output is correct |
217 |
Correct |
819 ms |
206992 KB |
Output is correct |
218 |
Correct |
677 ms |
215108 KB |
Output is correct |
219 |
Correct |
959 ms |
350828 KB |
Output is correct |
220 |
Correct |
645 ms |
450064 KB |
Output is correct |
221 |
Correct |
1035 ms |
596988 KB |
Output is correct |
222 |
Correct |
1076 ms |
595200 KB |
Output is correct |
223 |
Correct |
1104 ms |
208288 KB |
Output is correct |
224 |
Correct |
1122 ms |
202460 KB |
Output is correct |
225 |
Correct |
627 ms |
196756 KB |
Output is correct |