# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
741941 |
2023-05-15T06:18:49 Z |
jamezzz |
Maze (JOI23_ho_t3) |
C++17 |
|
1420 ms |
276360 KB |
#include <bits/stdc++.h>
using namespace std;
#define sf scanf
#define pf printf
#define fi first
#define se second
#define pb push_back
#define INF 1023456789
#define all(x) x.begin(),x.end()
typedef pair<int,int> ii;
typedef long long ll;
#define maxn 120005
int r,c,n,sr,sc,gr,gc;
int dx[]={0,1,0,-1},dy[]={1,0,-1,0};
vector<vector<int>> grid,dist;
vector<vector<ii>> dist2;
inline bool bad(int x,int y){
return x<0||y<0||x>=r||y>=c;
}
int main(){
sf("%d%d%d%d%d%d%d",&r,&c,&n,&sr,&sc,&gr,&gc);
--sr;--sc;--gr;--gc;
grid.resize(r);
dist.resize(r);
dist2.resize(r);
for(int i=0;i<r;++i){
grid[i].resize(c);
dist[i].resize(c,INF);
dist2[i].resize(c,{INF,INF});
for(int j=0;j<c;++j){
char ch;sf(" %c",&ch);
grid[i][j]=(ch=='#');
}
}
queue<ii> bfs;
dist[sr][sc]=0;
bfs.push({sr,sc});
int cur=0;
while(!bfs.empty()){
vector<ii> good;
//pf("cur: %d\n",cur);
while(!bfs.empty()){
auto[x,y]=bfs.front();bfs.pop();
dist[x][y]=cur;
good.pb({x,y});
//pf("bfs1 %d %d\n",x,y);
for(int i=0;i<4;++i){
int nx=x+dx[i],ny=y+dy[i];
if(!bad(nx,ny)&&grid[nx][ny]==0&&dist[x][y]<dist[nx][ny]){
dist[nx][ny]=dist[x][y];
bfs.push({nx,ny});
}
}
}
queue<ii> bfs2;
for(auto[x,y]:good){
for(int i=0;i<4;++i){
int nx=x+dx[i],ny=y+dy[i];
if(!bad(nx,ny)&&dist[nx][ny]==INF&&dist2[nx][ny].fi==INF){
dist2[nx][ny]={abs(dx[i]),abs(dy[i])};
bfs2.push({nx,ny});
}
}
}
while(!bfs2.empty()){
auto[x,y]=bfs2.front();bfs2.pop();
//pf("bfs2 %d %d\n",x,y);
bfs.push({x,y});
for(int i=0;i<4;++i){
int nx=x+dx[i],ny=y+dy[i];
if(!bad(nx,ny)&&dist[nx][ny]==INF&&dist2[nx][ny].fi==INF){
ii tmp={dist2[x][y].fi+abs(dx[i]),dist2[x][y].se+abs(dy[i])};
if(max(tmp.fi,tmp.se)<=n&&min(tmp.fi,tmp.se)<n&&dist2[nx][ny]>tmp){
dist2[nx][ny]=tmp;
bfs2.push({nx,ny});
}
}
}
}
/*
for(int i=0;i<r;++i){
for(int j=0;j<c;++j){
if(dist[i][j]==INF){
pf("%c",grid[i][j]?'#':'.');
}
else pf("%d",dist[i][j]);
}
pf("\n");
}
*/
++cur;
}
pf("%d\n",dist[gr][gc]);
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:26:4: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | sf("%d%d%d%d%d%d%d",&r,&c,&n,&sr,&sc,&gr,&gc);
| ^
Main.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | char ch;sf(" %c",&ch);
| ^
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
304 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
304 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
10 ms |
1296 KB |
Output is correct |
20 |
Correct |
8 ms |
948 KB |
Output is correct |
21 |
Correct |
7 ms |
1872 KB |
Output is correct |
22 |
Correct |
12 ms |
1236 KB |
Output is correct |
23 |
Correct |
10 ms |
1320 KB |
Output is correct |
24 |
Correct |
6 ms |
1300 KB |
Output is correct |
25 |
Correct |
10 ms |
1208 KB |
Output is correct |
26 |
Correct |
15 ms |
1492 KB |
Output is correct |
27 |
Correct |
11 ms |
1368 KB |
Output is correct |
28 |
Correct |
9 ms |
1348 KB |
Output is correct |
29 |
Correct |
21 ms |
2736 KB |
Output is correct |
30 |
Correct |
10 ms |
1308 KB |
Output is correct |
31 |
Correct |
15 ms |
4808 KB |
Output is correct |
32 |
Correct |
26 ms |
2880 KB |
Output is correct |
33 |
Correct |
21 ms |
2856 KB |
Output is correct |
34 |
Correct |
14 ms |
2612 KB |
Output is correct |
35 |
Correct |
25 ms |
2644 KB |
Output is correct |
36 |
Correct |
25 ms |
3152 KB |
Output is correct |
37 |
Correct |
25 ms |
2896 KB |
Output is correct |
38 |
Correct |
23 ms |
2772 KB |
Output is correct |
39 |
Correct |
249 ms |
24504 KB |
Output is correct |
40 |
Correct |
31 ms |
2996 KB |
Output is correct |
41 |
Correct |
21 ms |
3156 KB |
Output is correct |
42 |
Correct |
36 ms |
3736 KB |
Output is correct |
43 |
Correct |
39 ms |
4272 KB |
Output is correct |
44 |
Correct |
115 ms |
12060 KB |
Output is correct |
45 |
Correct |
136 ms |
13652 KB |
Output is correct |
46 |
Correct |
174 ms |
41748 KB |
Output is correct |
47 |
Correct |
285 ms |
25100 KB |
Output is correct |
48 |
Correct |
257 ms |
25400 KB |
Output is correct |
49 |
Correct |
162 ms |
25224 KB |
Output is correct |
50 |
Correct |
236 ms |
25292 KB |
Output is correct |
51 |
Correct |
302 ms |
26500 KB |
Output is correct |
52 |
Correct |
298 ms |
26000 KB |
Output is correct |
53 |
Correct |
269 ms |
25464 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
296 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
300 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
300 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
316 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
304 KB |
Output is correct |
27 |
Correct |
1 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
304 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
300 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
300 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
216 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
216 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
216 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
7 ms |
944 KB |
Output is correct |
26 |
Correct |
9 ms |
1828 KB |
Output is correct |
27 |
Correct |
7 ms |
1968 KB |
Output is correct |
28 |
Correct |
7 ms |
1968 KB |
Output is correct |
29 |
Correct |
10 ms |
2860 KB |
Output is correct |
30 |
Correct |
8 ms |
2356 KB |
Output is correct |
31 |
Correct |
10 ms |
1448 KB |
Output is correct |
32 |
Correct |
10 ms |
1508 KB |
Output is correct |
33 |
Correct |
10 ms |
1364 KB |
Output is correct |
34 |
Correct |
17 ms |
3380 KB |
Output is correct |
35 |
Correct |
15 ms |
5016 KB |
Output is correct |
36 |
Correct |
16 ms |
4972 KB |
Output is correct |
37 |
Correct |
30 ms |
6184 KB |
Output is correct |
38 |
Correct |
18 ms |
6264 KB |
Output is correct |
39 |
Correct |
69 ms |
11740 KB |
Output is correct |
40 |
Correct |
210 ms |
31400 KB |
Output is correct |
41 |
Correct |
180 ms |
41896 KB |
Output is correct |
42 |
Correct |
189 ms |
41680 KB |
Output is correct |
43 |
Correct |
303 ms |
70844 KB |
Output is correct |
44 |
Correct |
221 ms |
54284 KB |
Output is correct |
45 |
Correct |
244 ms |
43524 KB |
Output is correct |
46 |
Correct |
247 ms |
43372 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
296 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
300 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
300 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
316 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
304 KB |
Output is correct |
27 |
Correct |
1 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
304 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
300 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
10 ms |
1236 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
7 ms |
852 KB |
Output is correct |
37 |
Correct |
8 ms |
1064 KB |
Output is correct |
38 |
Correct |
8 ms |
1744 KB |
Output is correct |
39 |
Correct |
7 ms |
1860 KB |
Output is correct |
40 |
Correct |
10 ms |
1352 KB |
Output is correct |
41 |
Correct |
8 ms |
1236 KB |
Output is correct |
42 |
Correct |
9 ms |
1908 KB |
Output is correct |
43 |
Correct |
11 ms |
2892 KB |
Output is correct |
44 |
Correct |
7 ms |
2384 KB |
Output is correct |
45 |
Correct |
6 ms |
1236 KB |
Output is correct |
46 |
Correct |
10 ms |
1236 KB |
Output is correct |
47 |
Correct |
11 ms |
1308 KB |
Output is correct |
48 |
Correct |
10 ms |
1264 KB |
Output is correct |
49 |
Correct |
11 ms |
1236 KB |
Output is correct |
50 |
Correct |
10 ms |
1364 KB |
Output is correct |
51 |
Correct |
11 ms |
1452 KB |
Output is correct |
52 |
Correct |
10 ms |
1552 KB |
Output is correct |
53 |
Correct |
11 ms |
1364 KB |
Output is correct |
54 |
Correct |
8 ms |
1232 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
296 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
300 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
300 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
316 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
304 KB |
Output is correct |
27 |
Correct |
1 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
304 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
300 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
10 ms |
1236 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
7 ms |
852 KB |
Output is correct |
37 |
Correct |
8 ms |
1064 KB |
Output is correct |
38 |
Correct |
8 ms |
1744 KB |
Output is correct |
39 |
Correct |
7 ms |
1860 KB |
Output is correct |
40 |
Correct |
10 ms |
1352 KB |
Output is correct |
41 |
Correct |
8 ms |
1236 KB |
Output is correct |
42 |
Correct |
9 ms |
1908 KB |
Output is correct |
43 |
Correct |
11 ms |
2892 KB |
Output is correct |
44 |
Correct |
7 ms |
2384 KB |
Output is correct |
45 |
Correct |
6 ms |
1236 KB |
Output is correct |
46 |
Correct |
10 ms |
1236 KB |
Output is correct |
47 |
Correct |
11 ms |
1308 KB |
Output is correct |
48 |
Correct |
10 ms |
1264 KB |
Output is correct |
49 |
Correct |
11 ms |
1236 KB |
Output is correct |
50 |
Correct |
10 ms |
1364 KB |
Output is correct |
51 |
Correct |
11 ms |
1452 KB |
Output is correct |
52 |
Correct |
10 ms |
1552 KB |
Output is correct |
53 |
Correct |
11 ms |
1364 KB |
Output is correct |
54 |
Correct |
8 ms |
1232 KB |
Output is correct |
55 |
Correct |
22 ms |
2836 KB |
Output is correct |
56 |
Correct |
12 ms |
1236 KB |
Output is correct |
57 |
Correct |
20 ms |
3404 KB |
Output is correct |
58 |
Correct |
24 ms |
2516 KB |
Output is correct |
59 |
Correct |
16 ms |
4972 KB |
Output is correct |
60 |
Correct |
25 ms |
2900 KB |
Output is correct |
61 |
Correct |
20 ms |
2772 KB |
Output is correct |
62 |
Correct |
17 ms |
4936 KB |
Output is correct |
63 |
Correct |
30 ms |
6216 KB |
Output is correct |
64 |
Correct |
18 ms |
6228 KB |
Output is correct |
65 |
Correct |
18 ms |
2800 KB |
Output is correct |
66 |
Correct |
35 ms |
2672 KB |
Output is correct |
67 |
Correct |
35 ms |
2800 KB |
Output is correct |
68 |
Correct |
33 ms |
2772 KB |
Output is correct |
69 |
Correct |
25 ms |
2772 KB |
Output is correct |
70 |
Correct |
23 ms |
3056 KB |
Output is correct |
71 |
Correct |
25 ms |
3348 KB |
Output is correct |
72 |
Correct |
34 ms |
3120 KB |
Output is correct |
73 |
Correct |
27 ms |
2900 KB |
Output is correct |
74 |
Correct |
21 ms |
2772 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
304 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
304 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
10 ms |
1296 KB |
Output is correct |
20 |
Correct |
8 ms |
948 KB |
Output is correct |
21 |
Correct |
7 ms |
1872 KB |
Output is correct |
22 |
Correct |
12 ms |
1236 KB |
Output is correct |
23 |
Correct |
10 ms |
1320 KB |
Output is correct |
24 |
Correct |
6 ms |
1300 KB |
Output is correct |
25 |
Correct |
10 ms |
1208 KB |
Output is correct |
26 |
Correct |
15 ms |
1492 KB |
Output is correct |
27 |
Correct |
11 ms |
1368 KB |
Output is correct |
28 |
Correct |
9 ms |
1348 KB |
Output is correct |
29 |
Correct |
21 ms |
2736 KB |
Output is correct |
30 |
Correct |
10 ms |
1308 KB |
Output is correct |
31 |
Correct |
15 ms |
4808 KB |
Output is correct |
32 |
Correct |
26 ms |
2880 KB |
Output is correct |
33 |
Correct |
21 ms |
2856 KB |
Output is correct |
34 |
Correct |
14 ms |
2612 KB |
Output is correct |
35 |
Correct |
25 ms |
2644 KB |
Output is correct |
36 |
Correct |
25 ms |
3152 KB |
Output is correct |
37 |
Correct |
25 ms |
2896 KB |
Output is correct |
38 |
Correct |
23 ms |
2772 KB |
Output is correct |
39 |
Correct |
249 ms |
24504 KB |
Output is correct |
40 |
Correct |
31 ms |
2996 KB |
Output is correct |
41 |
Correct |
21 ms |
3156 KB |
Output is correct |
42 |
Correct |
36 ms |
3736 KB |
Output is correct |
43 |
Correct |
39 ms |
4272 KB |
Output is correct |
44 |
Correct |
115 ms |
12060 KB |
Output is correct |
45 |
Correct |
136 ms |
13652 KB |
Output is correct |
46 |
Correct |
174 ms |
41748 KB |
Output is correct |
47 |
Correct |
285 ms |
25100 KB |
Output is correct |
48 |
Correct |
257 ms |
25400 KB |
Output is correct |
49 |
Correct |
162 ms |
25224 KB |
Output is correct |
50 |
Correct |
236 ms |
25292 KB |
Output is correct |
51 |
Correct |
302 ms |
26500 KB |
Output is correct |
52 |
Correct |
298 ms |
26000 KB |
Output is correct |
53 |
Correct |
269 ms |
25464 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
1 ms |
212 KB |
Output is correct |
56 |
Correct |
1 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
296 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
300 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
212 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
212 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
1 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
300 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
316 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
304 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
304 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
300 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
1 ms |
212 KB |
Output is correct |
95 |
Correct |
1 ms |
300 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
212 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
1 ms |
216 KB |
Output is correct |
103 |
Correct |
1 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
216 KB |
Output is correct |
106 |
Correct |
1 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
216 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
7 ms |
944 KB |
Output is correct |
111 |
Correct |
9 ms |
1828 KB |
Output is correct |
112 |
Correct |
7 ms |
1968 KB |
Output is correct |
113 |
Correct |
7 ms |
1968 KB |
Output is correct |
114 |
Correct |
10 ms |
2860 KB |
Output is correct |
115 |
Correct |
8 ms |
2356 KB |
Output is correct |
116 |
Correct |
10 ms |
1448 KB |
Output is correct |
117 |
Correct |
10 ms |
1508 KB |
Output is correct |
118 |
Correct |
10 ms |
1364 KB |
Output is correct |
119 |
Correct |
17 ms |
3380 KB |
Output is correct |
120 |
Correct |
15 ms |
5016 KB |
Output is correct |
121 |
Correct |
16 ms |
4972 KB |
Output is correct |
122 |
Correct |
30 ms |
6184 KB |
Output is correct |
123 |
Correct |
18 ms |
6264 KB |
Output is correct |
124 |
Correct |
69 ms |
11740 KB |
Output is correct |
125 |
Correct |
210 ms |
31400 KB |
Output is correct |
126 |
Correct |
180 ms |
41896 KB |
Output is correct |
127 |
Correct |
189 ms |
41680 KB |
Output is correct |
128 |
Correct |
303 ms |
70844 KB |
Output is correct |
129 |
Correct |
221 ms |
54284 KB |
Output is correct |
130 |
Correct |
244 ms |
43524 KB |
Output is correct |
131 |
Correct |
247 ms |
43372 KB |
Output is correct |
132 |
Correct |
10 ms |
1236 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
7 ms |
852 KB |
Output is correct |
136 |
Correct |
8 ms |
1064 KB |
Output is correct |
137 |
Correct |
8 ms |
1744 KB |
Output is correct |
138 |
Correct |
7 ms |
1860 KB |
Output is correct |
139 |
Correct |
10 ms |
1352 KB |
Output is correct |
140 |
Correct |
8 ms |
1236 KB |
Output is correct |
141 |
Correct |
9 ms |
1908 KB |
Output is correct |
142 |
Correct |
11 ms |
2892 KB |
Output is correct |
143 |
Correct |
7 ms |
2384 KB |
Output is correct |
144 |
Correct |
6 ms |
1236 KB |
Output is correct |
145 |
Correct |
10 ms |
1236 KB |
Output is correct |
146 |
Correct |
11 ms |
1308 KB |
Output is correct |
147 |
Correct |
10 ms |
1264 KB |
Output is correct |
148 |
Correct |
11 ms |
1236 KB |
Output is correct |
149 |
Correct |
10 ms |
1364 KB |
Output is correct |
150 |
Correct |
11 ms |
1452 KB |
Output is correct |
151 |
Correct |
10 ms |
1552 KB |
Output is correct |
152 |
Correct |
11 ms |
1364 KB |
Output is correct |
153 |
Correct |
8 ms |
1232 KB |
Output is correct |
154 |
Correct |
22 ms |
2836 KB |
Output is correct |
155 |
Correct |
12 ms |
1236 KB |
Output is correct |
156 |
Correct |
20 ms |
3404 KB |
Output is correct |
157 |
Correct |
24 ms |
2516 KB |
Output is correct |
158 |
Correct |
16 ms |
4972 KB |
Output is correct |
159 |
Correct |
25 ms |
2900 KB |
Output is correct |
160 |
Correct |
20 ms |
2772 KB |
Output is correct |
161 |
Correct |
17 ms |
4936 KB |
Output is correct |
162 |
Correct |
30 ms |
6216 KB |
Output is correct |
163 |
Correct |
18 ms |
6228 KB |
Output is correct |
164 |
Correct |
18 ms |
2800 KB |
Output is correct |
165 |
Correct |
35 ms |
2672 KB |
Output is correct |
166 |
Correct |
35 ms |
2800 KB |
Output is correct |
167 |
Correct |
33 ms |
2772 KB |
Output is correct |
168 |
Correct |
25 ms |
2772 KB |
Output is correct |
169 |
Correct |
23 ms |
3056 KB |
Output is correct |
170 |
Correct |
25 ms |
3348 KB |
Output is correct |
171 |
Correct |
34 ms |
3120 KB |
Output is correct |
172 |
Correct |
27 ms |
2900 KB |
Output is correct |
173 |
Correct |
21 ms |
2772 KB |
Output is correct |
174 |
Correct |
32 ms |
3540 KB |
Output is correct |
175 |
Correct |
47 ms |
5956 KB |
Output is correct |
176 |
Correct |
132 ms |
12972 KB |
Output is correct |
177 |
Correct |
155 ms |
17100 KB |
Output is correct |
178 |
Correct |
239 ms |
22304 KB |
Output is correct |
179 |
Correct |
250 ms |
25732 KB |
Output is correct |
180 |
Correct |
257 ms |
24956 KB |
Output is correct |
181 |
Correct |
253 ms |
26312 KB |
Output is correct |
182 |
Correct |
269 ms |
26992 KB |
Output is correct |
183 |
Correct |
250 ms |
28368 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
304 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
304 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
10 ms |
1296 KB |
Output is correct |
20 |
Correct |
8 ms |
948 KB |
Output is correct |
21 |
Correct |
7 ms |
1872 KB |
Output is correct |
22 |
Correct |
12 ms |
1236 KB |
Output is correct |
23 |
Correct |
10 ms |
1320 KB |
Output is correct |
24 |
Correct |
6 ms |
1300 KB |
Output is correct |
25 |
Correct |
10 ms |
1208 KB |
Output is correct |
26 |
Correct |
15 ms |
1492 KB |
Output is correct |
27 |
Correct |
11 ms |
1368 KB |
Output is correct |
28 |
Correct |
9 ms |
1348 KB |
Output is correct |
29 |
Correct |
21 ms |
2736 KB |
Output is correct |
30 |
Correct |
10 ms |
1308 KB |
Output is correct |
31 |
Correct |
15 ms |
4808 KB |
Output is correct |
32 |
Correct |
26 ms |
2880 KB |
Output is correct |
33 |
Correct |
21 ms |
2856 KB |
Output is correct |
34 |
Correct |
14 ms |
2612 KB |
Output is correct |
35 |
Correct |
25 ms |
2644 KB |
Output is correct |
36 |
Correct |
25 ms |
3152 KB |
Output is correct |
37 |
Correct |
25 ms |
2896 KB |
Output is correct |
38 |
Correct |
23 ms |
2772 KB |
Output is correct |
39 |
Correct |
249 ms |
24504 KB |
Output is correct |
40 |
Correct |
31 ms |
2996 KB |
Output is correct |
41 |
Correct |
21 ms |
3156 KB |
Output is correct |
42 |
Correct |
36 ms |
3736 KB |
Output is correct |
43 |
Correct |
39 ms |
4272 KB |
Output is correct |
44 |
Correct |
115 ms |
12060 KB |
Output is correct |
45 |
Correct |
136 ms |
13652 KB |
Output is correct |
46 |
Correct |
174 ms |
41748 KB |
Output is correct |
47 |
Correct |
285 ms |
25100 KB |
Output is correct |
48 |
Correct |
257 ms |
25400 KB |
Output is correct |
49 |
Correct |
162 ms |
25224 KB |
Output is correct |
50 |
Correct |
236 ms |
25292 KB |
Output is correct |
51 |
Correct |
302 ms |
26500 KB |
Output is correct |
52 |
Correct |
298 ms |
26000 KB |
Output is correct |
53 |
Correct |
269 ms |
25464 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
1 ms |
212 KB |
Output is correct |
56 |
Correct |
1 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
296 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
300 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
212 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
212 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
1 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
300 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
316 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
304 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
304 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
300 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
1 ms |
212 KB |
Output is correct |
95 |
Correct |
1 ms |
300 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
212 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
1 ms |
216 KB |
Output is correct |
103 |
Correct |
1 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
216 KB |
Output is correct |
106 |
Correct |
1 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
216 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
7 ms |
944 KB |
Output is correct |
111 |
Correct |
9 ms |
1828 KB |
Output is correct |
112 |
Correct |
7 ms |
1968 KB |
Output is correct |
113 |
Correct |
7 ms |
1968 KB |
Output is correct |
114 |
Correct |
10 ms |
2860 KB |
Output is correct |
115 |
Correct |
8 ms |
2356 KB |
Output is correct |
116 |
Correct |
10 ms |
1448 KB |
Output is correct |
117 |
Correct |
10 ms |
1508 KB |
Output is correct |
118 |
Correct |
10 ms |
1364 KB |
Output is correct |
119 |
Correct |
17 ms |
3380 KB |
Output is correct |
120 |
Correct |
15 ms |
5016 KB |
Output is correct |
121 |
Correct |
16 ms |
4972 KB |
Output is correct |
122 |
Correct |
30 ms |
6184 KB |
Output is correct |
123 |
Correct |
18 ms |
6264 KB |
Output is correct |
124 |
Correct |
69 ms |
11740 KB |
Output is correct |
125 |
Correct |
210 ms |
31400 KB |
Output is correct |
126 |
Correct |
180 ms |
41896 KB |
Output is correct |
127 |
Correct |
189 ms |
41680 KB |
Output is correct |
128 |
Correct |
303 ms |
70844 KB |
Output is correct |
129 |
Correct |
221 ms |
54284 KB |
Output is correct |
130 |
Correct |
244 ms |
43524 KB |
Output is correct |
131 |
Correct |
247 ms |
43372 KB |
Output is correct |
132 |
Correct |
10 ms |
1236 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
7 ms |
852 KB |
Output is correct |
136 |
Correct |
8 ms |
1064 KB |
Output is correct |
137 |
Correct |
8 ms |
1744 KB |
Output is correct |
138 |
Correct |
7 ms |
1860 KB |
Output is correct |
139 |
Correct |
10 ms |
1352 KB |
Output is correct |
140 |
Correct |
8 ms |
1236 KB |
Output is correct |
141 |
Correct |
9 ms |
1908 KB |
Output is correct |
142 |
Correct |
11 ms |
2892 KB |
Output is correct |
143 |
Correct |
7 ms |
2384 KB |
Output is correct |
144 |
Correct |
6 ms |
1236 KB |
Output is correct |
145 |
Correct |
10 ms |
1236 KB |
Output is correct |
146 |
Correct |
11 ms |
1308 KB |
Output is correct |
147 |
Correct |
10 ms |
1264 KB |
Output is correct |
148 |
Correct |
11 ms |
1236 KB |
Output is correct |
149 |
Correct |
10 ms |
1364 KB |
Output is correct |
150 |
Correct |
11 ms |
1452 KB |
Output is correct |
151 |
Correct |
10 ms |
1552 KB |
Output is correct |
152 |
Correct |
11 ms |
1364 KB |
Output is correct |
153 |
Correct |
8 ms |
1232 KB |
Output is correct |
154 |
Correct |
22 ms |
2836 KB |
Output is correct |
155 |
Correct |
12 ms |
1236 KB |
Output is correct |
156 |
Correct |
20 ms |
3404 KB |
Output is correct |
157 |
Correct |
24 ms |
2516 KB |
Output is correct |
158 |
Correct |
16 ms |
4972 KB |
Output is correct |
159 |
Correct |
25 ms |
2900 KB |
Output is correct |
160 |
Correct |
20 ms |
2772 KB |
Output is correct |
161 |
Correct |
17 ms |
4936 KB |
Output is correct |
162 |
Correct |
30 ms |
6216 KB |
Output is correct |
163 |
Correct |
18 ms |
6228 KB |
Output is correct |
164 |
Correct |
18 ms |
2800 KB |
Output is correct |
165 |
Correct |
35 ms |
2672 KB |
Output is correct |
166 |
Correct |
35 ms |
2800 KB |
Output is correct |
167 |
Correct |
33 ms |
2772 KB |
Output is correct |
168 |
Correct |
25 ms |
2772 KB |
Output is correct |
169 |
Correct |
23 ms |
3056 KB |
Output is correct |
170 |
Correct |
25 ms |
3348 KB |
Output is correct |
171 |
Correct |
34 ms |
3120 KB |
Output is correct |
172 |
Correct |
27 ms |
2900 KB |
Output is correct |
173 |
Correct |
21 ms |
2772 KB |
Output is correct |
174 |
Correct |
32 ms |
3540 KB |
Output is correct |
175 |
Correct |
47 ms |
5956 KB |
Output is correct |
176 |
Correct |
132 ms |
12972 KB |
Output is correct |
177 |
Correct |
155 ms |
17100 KB |
Output is correct |
178 |
Correct |
239 ms |
22304 KB |
Output is correct |
179 |
Correct |
250 ms |
25732 KB |
Output is correct |
180 |
Correct |
257 ms |
24956 KB |
Output is correct |
181 |
Correct |
253 ms |
26312 KB |
Output is correct |
182 |
Correct |
269 ms |
26992 KB |
Output is correct |
183 |
Correct |
250 ms |
28368 KB |
Output is correct |
184 |
Correct |
544 ms |
50388 KB |
Output is correct |
185 |
Correct |
250 ms |
27872 KB |
Output is correct |
186 |
Correct |
276 ms |
45480 KB |
Output is correct |
187 |
Correct |
283 ms |
38068 KB |
Output is correct |
188 |
Correct |
375 ms |
83020 KB |
Output is correct |
189 |
Correct |
613 ms |
50776 KB |
Output is correct |
190 |
Correct |
507 ms |
50128 KB |
Output is correct |
191 |
Correct |
339 ms |
83336 KB |
Output is correct |
192 |
Correct |
648 ms |
140964 KB |
Output is correct |
193 |
Correct |
512 ms |
108144 KB |
Output is correct |
194 |
Correct |
262 ms |
49688 KB |
Output is correct |
195 |
Correct |
461 ms |
49148 KB |
Output is correct |
196 |
Correct |
502 ms |
50596 KB |
Output is correct |
197 |
Correct |
522 ms |
51348 KB |
Output is correct |
198 |
Correct |
506 ms |
51740 KB |
Output is correct |
199 |
Correct |
456 ms |
54356 KB |
Output is correct |
200 |
Correct |
624 ms |
52132 KB |
Output is correct |
201 |
Correct |
650 ms |
51204 KB |
Output is correct |
202 |
Correct |
553 ms |
50604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
304 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
304 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
304 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
10 ms |
1296 KB |
Output is correct |
20 |
Correct |
8 ms |
948 KB |
Output is correct |
21 |
Correct |
7 ms |
1872 KB |
Output is correct |
22 |
Correct |
12 ms |
1236 KB |
Output is correct |
23 |
Correct |
10 ms |
1320 KB |
Output is correct |
24 |
Correct |
6 ms |
1300 KB |
Output is correct |
25 |
Correct |
10 ms |
1208 KB |
Output is correct |
26 |
Correct |
15 ms |
1492 KB |
Output is correct |
27 |
Correct |
11 ms |
1368 KB |
Output is correct |
28 |
Correct |
9 ms |
1348 KB |
Output is correct |
29 |
Correct |
21 ms |
2736 KB |
Output is correct |
30 |
Correct |
10 ms |
1308 KB |
Output is correct |
31 |
Correct |
15 ms |
4808 KB |
Output is correct |
32 |
Correct |
26 ms |
2880 KB |
Output is correct |
33 |
Correct |
21 ms |
2856 KB |
Output is correct |
34 |
Correct |
14 ms |
2612 KB |
Output is correct |
35 |
Correct |
25 ms |
2644 KB |
Output is correct |
36 |
Correct |
25 ms |
3152 KB |
Output is correct |
37 |
Correct |
25 ms |
2896 KB |
Output is correct |
38 |
Correct |
23 ms |
2772 KB |
Output is correct |
39 |
Correct |
249 ms |
24504 KB |
Output is correct |
40 |
Correct |
31 ms |
2996 KB |
Output is correct |
41 |
Correct |
21 ms |
3156 KB |
Output is correct |
42 |
Correct |
36 ms |
3736 KB |
Output is correct |
43 |
Correct |
39 ms |
4272 KB |
Output is correct |
44 |
Correct |
115 ms |
12060 KB |
Output is correct |
45 |
Correct |
136 ms |
13652 KB |
Output is correct |
46 |
Correct |
174 ms |
41748 KB |
Output is correct |
47 |
Correct |
285 ms |
25100 KB |
Output is correct |
48 |
Correct |
257 ms |
25400 KB |
Output is correct |
49 |
Correct |
162 ms |
25224 KB |
Output is correct |
50 |
Correct |
236 ms |
25292 KB |
Output is correct |
51 |
Correct |
302 ms |
26500 KB |
Output is correct |
52 |
Correct |
298 ms |
26000 KB |
Output is correct |
53 |
Correct |
269 ms |
25464 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
1 ms |
212 KB |
Output is correct |
56 |
Correct |
1 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
296 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
300 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
212 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
212 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
1 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
300 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
316 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
304 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
304 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
300 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
1 ms |
212 KB |
Output is correct |
95 |
Correct |
1 ms |
300 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
212 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
1 ms |
216 KB |
Output is correct |
103 |
Correct |
1 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
216 KB |
Output is correct |
106 |
Correct |
1 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
216 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
7 ms |
944 KB |
Output is correct |
111 |
Correct |
9 ms |
1828 KB |
Output is correct |
112 |
Correct |
7 ms |
1968 KB |
Output is correct |
113 |
Correct |
7 ms |
1968 KB |
Output is correct |
114 |
Correct |
10 ms |
2860 KB |
Output is correct |
115 |
Correct |
8 ms |
2356 KB |
Output is correct |
116 |
Correct |
10 ms |
1448 KB |
Output is correct |
117 |
Correct |
10 ms |
1508 KB |
Output is correct |
118 |
Correct |
10 ms |
1364 KB |
Output is correct |
119 |
Correct |
17 ms |
3380 KB |
Output is correct |
120 |
Correct |
15 ms |
5016 KB |
Output is correct |
121 |
Correct |
16 ms |
4972 KB |
Output is correct |
122 |
Correct |
30 ms |
6184 KB |
Output is correct |
123 |
Correct |
18 ms |
6264 KB |
Output is correct |
124 |
Correct |
69 ms |
11740 KB |
Output is correct |
125 |
Correct |
210 ms |
31400 KB |
Output is correct |
126 |
Correct |
180 ms |
41896 KB |
Output is correct |
127 |
Correct |
189 ms |
41680 KB |
Output is correct |
128 |
Correct |
303 ms |
70844 KB |
Output is correct |
129 |
Correct |
221 ms |
54284 KB |
Output is correct |
130 |
Correct |
244 ms |
43524 KB |
Output is correct |
131 |
Correct |
247 ms |
43372 KB |
Output is correct |
132 |
Correct |
10 ms |
1236 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
7 ms |
852 KB |
Output is correct |
136 |
Correct |
8 ms |
1064 KB |
Output is correct |
137 |
Correct |
8 ms |
1744 KB |
Output is correct |
138 |
Correct |
7 ms |
1860 KB |
Output is correct |
139 |
Correct |
10 ms |
1352 KB |
Output is correct |
140 |
Correct |
8 ms |
1236 KB |
Output is correct |
141 |
Correct |
9 ms |
1908 KB |
Output is correct |
142 |
Correct |
11 ms |
2892 KB |
Output is correct |
143 |
Correct |
7 ms |
2384 KB |
Output is correct |
144 |
Correct |
6 ms |
1236 KB |
Output is correct |
145 |
Correct |
10 ms |
1236 KB |
Output is correct |
146 |
Correct |
11 ms |
1308 KB |
Output is correct |
147 |
Correct |
10 ms |
1264 KB |
Output is correct |
148 |
Correct |
11 ms |
1236 KB |
Output is correct |
149 |
Correct |
10 ms |
1364 KB |
Output is correct |
150 |
Correct |
11 ms |
1452 KB |
Output is correct |
151 |
Correct |
10 ms |
1552 KB |
Output is correct |
152 |
Correct |
11 ms |
1364 KB |
Output is correct |
153 |
Correct |
8 ms |
1232 KB |
Output is correct |
154 |
Correct |
22 ms |
2836 KB |
Output is correct |
155 |
Correct |
12 ms |
1236 KB |
Output is correct |
156 |
Correct |
20 ms |
3404 KB |
Output is correct |
157 |
Correct |
24 ms |
2516 KB |
Output is correct |
158 |
Correct |
16 ms |
4972 KB |
Output is correct |
159 |
Correct |
25 ms |
2900 KB |
Output is correct |
160 |
Correct |
20 ms |
2772 KB |
Output is correct |
161 |
Correct |
17 ms |
4936 KB |
Output is correct |
162 |
Correct |
30 ms |
6216 KB |
Output is correct |
163 |
Correct |
18 ms |
6228 KB |
Output is correct |
164 |
Correct |
18 ms |
2800 KB |
Output is correct |
165 |
Correct |
35 ms |
2672 KB |
Output is correct |
166 |
Correct |
35 ms |
2800 KB |
Output is correct |
167 |
Correct |
33 ms |
2772 KB |
Output is correct |
168 |
Correct |
25 ms |
2772 KB |
Output is correct |
169 |
Correct |
23 ms |
3056 KB |
Output is correct |
170 |
Correct |
25 ms |
3348 KB |
Output is correct |
171 |
Correct |
34 ms |
3120 KB |
Output is correct |
172 |
Correct |
27 ms |
2900 KB |
Output is correct |
173 |
Correct |
21 ms |
2772 KB |
Output is correct |
174 |
Correct |
32 ms |
3540 KB |
Output is correct |
175 |
Correct |
47 ms |
5956 KB |
Output is correct |
176 |
Correct |
132 ms |
12972 KB |
Output is correct |
177 |
Correct |
155 ms |
17100 KB |
Output is correct |
178 |
Correct |
239 ms |
22304 KB |
Output is correct |
179 |
Correct |
250 ms |
25732 KB |
Output is correct |
180 |
Correct |
257 ms |
24956 KB |
Output is correct |
181 |
Correct |
253 ms |
26312 KB |
Output is correct |
182 |
Correct |
269 ms |
26992 KB |
Output is correct |
183 |
Correct |
250 ms |
28368 KB |
Output is correct |
184 |
Correct |
544 ms |
50388 KB |
Output is correct |
185 |
Correct |
250 ms |
27872 KB |
Output is correct |
186 |
Correct |
276 ms |
45480 KB |
Output is correct |
187 |
Correct |
283 ms |
38068 KB |
Output is correct |
188 |
Correct |
375 ms |
83020 KB |
Output is correct |
189 |
Correct |
613 ms |
50776 KB |
Output is correct |
190 |
Correct |
507 ms |
50128 KB |
Output is correct |
191 |
Correct |
339 ms |
83336 KB |
Output is correct |
192 |
Correct |
648 ms |
140964 KB |
Output is correct |
193 |
Correct |
512 ms |
108144 KB |
Output is correct |
194 |
Correct |
262 ms |
49688 KB |
Output is correct |
195 |
Correct |
461 ms |
49148 KB |
Output is correct |
196 |
Correct |
502 ms |
50596 KB |
Output is correct |
197 |
Correct |
522 ms |
51348 KB |
Output is correct |
198 |
Correct |
506 ms |
51740 KB |
Output is correct |
199 |
Correct |
456 ms |
54356 KB |
Output is correct |
200 |
Correct |
624 ms |
52132 KB |
Output is correct |
201 |
Correct |
650 ms |
51204 KB |
Output is correct |
202 |
Correct |
553 ms |
50604 KB |
Output is correct |
203 |
Correct |
1085 ms |
98412 KB |
Output is correct |
204 |
Correct |
414 ms |
61844 KB |
Output is correct |
205 |
Correct |
745 ms |
62188 KB |
Output is correct |
206 |
Correct |
992 ms |
99104 KB |
Output is correct |
207 |
Correct |
801 ms |
165036 KB |
Output is correct |
208 |
Correct |
1355 ms |
95736 KB |
Output is correct |
209 |
Correct |
1142 ms |
100240 KB |
Output is correct |
210 |
Correct |
702 ms |
166036 KB |
Output is correct |
211 |
Correct |
1369 ms |
276360 KB |
Output is correct |
212 |
Correct |
1029 ms |
214028 KB |
Output is correct |
213 |
Correct |
524 ms |
98728 KB |
Output is correct |
214 |
Correct |
815 ms |
100120 KB |
Output is correct |
215 |
Correct |
1030 ms |
99272 KB |
Output is correct |
216 |
Correct |
1071 ms |
101812 KB |
Output is correct |
217 |
Correct |
1138 ms |
98200 KB |
Output is correct |
218 |
Correct |
1087 ms |
102868 KB |
Output is correct |
219 |
Correct |
960 ms |
131448 KB |
Output is correct |
220 |
Correct |
1010 ms |
144736 KB |
Output is correct |
221 |
Correct |
981 ms |
171836 KB |
Output is correct |
222 |
Correct |
1045 ms |
168772 KB |
Output is correct |
223 |
Correct |
1295 ms |
101672 KB |
Output is correct |
224 |
Correct |
1420 ms |
96416 KB |
Output is correct |
225 |
Correct |
1296 ms |
99068 KB |
Output is correct |