# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1040487 |
2024-08-01T05:57:06 Z |
isaachew |
Toy (CEOI24_toy) |
C++17 |
|
258 ms |
207140 KB |
#include <bits/stdc++.h>
/*
*/
int main(){
std::ios::sync_with_stdio(0);
std::cin.tie(0);
int w,h,k,l;
std::cin>>w>>h>>k>>l;
std::vector<std::string> board;
int x,y,z;
int dx,dy;
std::cin>>z>>y>>x>>z;//z does nothing
std::vector<std::vector<int>> edges(w*h);
for(int i=0;i<h;i++){
std::string s;
std::cin>>s;
board.push_back(s);
}
std::vector<std::vector<int>> ledges(h,std::vector<int>(w));
std::vector<std::vector<int>> redges(h,std::vector<int>(w));
std::vector<std::vector<int>> uedges(h,std::vector<int>(w));
std::vector<std::vector<int>> dedges(h,std::vector<int>(w));
std::vector<int> visited(w*h);
for(int i=0;i<h;i++){
int mre=0;
for(int j=0;j<w;j++){
if(board[i][j]=='*'){
dy=i,dx=j;
}
if(board[i][j]=='X'){
for(;mre<j;mre++){
redges[i][mre]=j;
}
mre=j+1;
}
ledges[i][j]=mre;
}
for(;mre<w;mre++){
redges[i][mre]=w;
}
}
for(int i=0;i<w;i++){
int mre=0;
for(int j=0;j<h;j++){
if(board[j][i]=='X'){
for(;mre<j;mre++){
dedges[mre][i]=j;
}
mre=j+1;
}
uedges[j][i]=mre;
}
for(;mre<h;mre++){
dedges[mre][i]=h;
}
}
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
if(i+1<h){//down/up
int leftx=std::max(ledges[i][j],ledges[i+1][j]);
int rightx=std::min(redges[i][j],redges[i+1][j]);
if(leftx+k<=rightx){
edges[i*w+j].push_back((i+1)*w+j);
edges[(i+1)*w+j].push_back(i*w+j);
}
}
if(j+1<w){
int upy=std::max(uedges[i][j],uedges[i][j+1]);
int downy=std::min(dedges[i][j],dedges[i][j+1]);
if(upy+l<=downy){
edges[i*w+j].push_back(i*w+(j+1));
edges[i*w+(j+1)].push_back(i*w+j);
}
}
}
}
std::vector<int> tovisit;
tovisit.push_back(y*w+x);
while(!tovisit.empty()){
int cur=tovisit.back();
tovisit.pop_back();
if(visited[cur])continue;
visited[cur]=1;
for(int i:edges[cur]){
tovisit.push_back(i);
}
}
std::cout<<(visited[dy*w+dx]?"YES\n":"NO\n");
return 0;
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:90:29: warning: 'dx' may be used uninitialized in this function [-Wmaybe-uninitialized]
90 | std::cout<<(visited[dy*w+dx]?"YES\n":"NO\n");
| ~~~~^~~
Main.cpp:90:27: warning: 'dy' may be used uninitialized in this function [-Wmaybe-uninitialized]
90 | std::cout<<(visited[dy*w+dx]?"YES\n":"NO\n");
| ~~^~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
604 KB |
Output is correct |
5 |
Correct |
0 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 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 |
604 KB |
Output is correct |
16 |
Correct |
0 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
604 KB |
Output is correct |
19 |
Correct |
1 ms |
604 KB |
Output is correct |
20 |
Correct |
1 ms |
604 KB |
Output is correct |
21 |
Correct |
0 ms |
604 KB |
Output is correct |
22 |
Correct |
0 ms |
604 KB |
Output is correct |
23 |
Correct |
0 ms |
604 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
1 ms |
604 KB |
Output is correct |
26 |
Correct |
0 ms |
456 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
0 ms |
604 KB |
Output is correct |
29 |
Correct |
0 ms |
604 KB |
Output is correct |
30 |
Correct |
0 ms |
604 KB |
Output is correct |
31 |
Correct |
0 ms |
604 KB |
Output is correct |
32 |
Correct |
0 ms |
604 KB |
Output is correct |
33 |
Correct |
1 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
456 KB |
Output is correct |
35 |
Correct |
0 ms |
604 KB |
Output is correct |
36 |
Correct |
0 ms |
600 KB |
Output is correct |
37 |
Correct |
1 ms |
604 KB |
Output is correct |
38 |
Correct |
1 ms |
604 KB |
Output is correct |
39 |
Correct |
0 ms |
604 KB |
Output is correct |
40 |
Correct |
0 ms |
604 KB |
Output is correct |
41 |
Correct |
0 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
0 ms |
604 KB |
Output is correct |
44 |
Correct |
1 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
604 KB |
Output is correct |
5 |
Correct |
0 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 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 |
604 KB |
Output is correct |
16 |
Correct |
0 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
604 KB |
Output is correct |
19 |
Correct |
1 ms |
604 KB |
Output is correct |
20 |
Correct |
1 ms |
604 KB |
Output is correct |
21 |
Correct |
0 ms |
604 KB |
Output is correct |
22 |
Correct |
0 ms |
604 KB |
Output is correct |
23 |
Correct |
0 ms |
604 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
1 ms |
604 KB |
Output is correct |
26 |
Correct |
0 ms |
456 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
0 ms |
604 KB |
Output is correct |
29 |
Correct |
0 ms |
604 KB |
Output is correct |
30 |
Correct |
0 ms |
604 KB |
Output is correct |
31 |
Correct |
0 ms |
604 KB |
Output is correct |
32 |
Correct |
0 ms |
604 KB |
Output is correct |
33 |
Correct |
1 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
456 KB |
Output is correct |
35 |
Correct |
0 ms |
604 KB |
Output is correct |
36 |
Correct |
0 ms |
600 KB |
Output is correct |
37 |
Correct |
1 ms |
604 KB |
Output is correct |
38 |
Correct |
1 ms |
604 KB |
Output is correct |
39 |
Correct |
0 ms |
604 KB |
Output is correct |
40 |
Correct |
0 ms |
604 KB |
Output is correct |
41 |
Correct |
0 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
0 ms |
604 KB |
Output is correct |
44 |
Correct |
1 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
0 ms |
348 KB |
Output is correct |
47 |
Correct |
1 ms |
604 KB |
Output is correct |
48 |
Correct |
1 ms |
860 KB |
Output is correct |
49 |
Correct |
1 ms |
936 KB |
Output is correct |
50 |
Correct |
1 ms |
712 KB |
Output is correct |
51 |
Correct |
1 ms |
860 KB |
Output is correct |
52 |
Correct |
0 ms |
860 KB |
Output is correct |
53 |
Correct |
0 ms |
604 KB |
Output is correct |
54 |
Correct |
0 ms |
668 KB |
Output is correct |
55 |
Correct |
0 ms |
860 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
860 KB |
Output is correct |
58 |
Correct |
0 ms |
668 KB |
Output is correct |
59 |
Correct |
1 ms |
1116 KB |
Output is correct |
60 |
Correct |
1 ms |
1120 KB |
Output is correct |
61 |
Correct |
1 ms |
1128 KB |
Output is correct |
62 |
Correct |
1 ms |
1128 KB |
Output is correct |
63 |
Correct |
1 ms |
1128 KB |
Output is correct |
64 |
Correct |
1 ms |
1120 KB |
Output is correct |
65 |
Correct |
1 ms |
1120 KB |
Output is correct |
66 |
Correct |
1 ms |
1128 KB |
Output is correct |
67 |
Correct |
1 ms |
1032 KB |
Output is correct |
68 |
Correct |
2 ms |
1196 KB |
Output is correct |
69 |
Correct |
1 ms |
1128 KB |
Output is correct |
70 |
Correct |
1 ms |
1120 KB |
Output is correct |
71 |
Correct |
1 ms |
1116 KB |
Output is correct |
72 |
Correct |
1 ms |
1116 KB |
Output is correct |
73 |
Correct |
1 ms |
1116 KB |
Output is correct |
74 |
Correct |
1 ms |
1116 KB |
Output is correct |
75 |
Correct |
1 ms |
1116 KB |
Output is correct |
76 |
Correct |
1 ms |
1116 KB |
Output is correct |
77 |
Correct |
1 ms |
1116 KB |
Output is correct |
78 |
Correct |
1 ms |
1116 KB |
Output is correct |
79 |
Correct |
1 ms |
1116 KB |
Output is correct |
80 |
Correct |
1 ms |
860 KB |
Output is correct |
81 |
Correct |
1 ms |
860 KB |
Output is correct |
82 |
Correct |
1 ms |
860 KB |
Output is correct |
83 |
Correct |
1 ms |
860 KB |
Output is correct |
84 |
Correct |
1 ms |
856 KB |
Output is correct |
85 |
Correct |
1 ms |
972 KB |
Output is correct |
86 |
Correct |
1 ms |
1116 KB |
Output is correct |
87 |
Correct |
1 ms |
1116 KB |
Output is correct |
88 |
Correct |
1 ms |
1232 KB |
Output is correct |
89 |
Correct |
1 ms |
1116 KB |
Output is correct |
90 |
Correct |
0 ms |
680 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
856 KB |
Output is correct |
4 |
Correct |
10 ms |
8412 KB |
Output is correct |
5 |
Correct |
9 ms |
8412 KB |
Output is correct |
6 |
Correct |
1 ms |
1372 KB |
Output is correct |
7 |
Correct |
10 ms |
7780 KB |
Output is correct |
8 |
Correct |
10 ms |
7976 KB |
Output is correct |
9 |
Correct |
2 ms |
2396 KB |
Output is correct |
10 |
Correct |
7 ms |
6748 KB |
Output is correct |
11 |
Correct |
6 ms |
6480 KB |
Output is correct |
12 |
Correct |
1 ms |
1884 KB |
Output is correct |
13 |
Correct |
3 ms |
4584 KB |
Output is correct |
14 |
Correct |
3 ms |
4444 KB |
Output is correct |
15 |
Correct |
9 ms |
8156 KB |
Output is correct |
16 |
Correct |
9 ms |
7644 KB |
Output is correct |
17 |
Correct |
9 ms |
7636 KB |
Output is correct |
18 |
Correct |
9 ms |
8408 KB |
Output is correct |
19 |
Correct |
11 ms |
8356 KB |
Output is correct |
20 |
Correct |
9 ms |
8404 KB |
Output is correct |
21 |
Correct |
9 ms |
8416 KB |
Output is correct |
22 |
Correct |
10 ms |
8408 KB |
Output is correct |
23 |
Correct |
9 ms |
8512 KB |
Output is correct |
24 |
Correct |
9 ms |
8448 KB |
Output is correct |
25 |
Correct |
10 ms |
8332 KB |
Output is correct |
26 |
Correct |
9 ms |
7828 KB |
Output is correct |
27 |
Correct |
9 ms |
7820 KB |
Output is correct |
28 |
Correct |
11 ms |
7896 KB |
Output is correct |
29 |
Correct |
9 ms |
7940 KB |
Output is correct |
30 |
Correct |
9 ms |
8152 KB |
Output is correct |
31 |
Correct |
10 ms |
7892 KB |
Output is correct |
32 |
Correct |
9 ms |
8404 KB |
Output is correct |
33 |
Correct |
8 ms |
7896 KB |
Output is correct |
34 |
Correct |
15 ms |
7640 KB |
Output is correct |
35 |
Correct |
8 ms |
7900 KB |
Output is correct |
36 |
Correct |
4 ms |
5980 KB |
Output is correct |
37 |
Correct |
8 ms |
7420 KB |
Output is correct |
38 |
Correct |
7 ms |
7004 KB |
Output is correct |
39 |
Correct |
8 ms |
7132 KB |
Output is correct |
40 |
Correct |
9 ms |
7516 KB |
Output is correct |
41 |
Correct |
8 ms |
7000 KB |
Output is correct |
42 |
Correct |
11 ms |
8540 KB |
Output is correct |
43 |
Correct |
9 ms |
8408 KB |
Output is correct |
44 |
Correct |
9 ms |
8408 KB |
Output is correct |
45 |
Correct |
10 ms |
8448 KB |
Output is correct |
46 |
Correct |
2 ms |
4188 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
604 KB |
Output is correct |
5 |
Correct |
0 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 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 |
604 KB |
Output is correct |
16 |
Correct |
0 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
604 KB |
Output is correct |
19 |
Correct |
1 ms |
604 KB |
Output is correct |
20 |
Correct |
1 ms |
604 KB |
Output is correct |
21 |
Correct |
0 ms |
604 KB |
Output is correct |
22 |
Correct |
0 ms |
604 KB |
Output is correct |
23 |
Correct |
0 ms |
604 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
1 ms |
604 KB |
Output is correct |
26 |
Correct |
0 ms |
456 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
0 ms |
604 KB |
Output is correct |
29 |
Correct |
0 ms |
604 KB |
Output is correct |
30 |
Correct |
0 ms |
604 KB |
Output is correct |
31 |
Correct |
0 ms |
604 KB |
Output is correct |
32 |
Correct |
0 ms |
604 KB |
Output is correct |
33 |
Correct |
1 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
456 KB |
Output is correct |
35 |
Correct |
0 ms |
604 KB |
Output is correct |
36 |
Correct |
0 ms |
600 KB |
Output is correct |
37 |
Correct |
1 ms |
604 KB |
Output is correct |
38 |
Correct |
1 ms |
604 KB |
Output is correct |
39 |
Correct |
0 ms |
604 KB |
Output is correct |
40 |
Correct |
0 ms |
604 KB |
Output is correct |
41 |
Correct |
0 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
0 ms |
604 KB |
Output is correct |
44 |
Correct |
1 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
0 ms |
348 KB |
Output is correct |
47 |
Correct |
1 ms |
604 KB |
Output is correct |
48 |
Correct |
1 ms |
860 KB |
Output is correct |
49 |
Correct |
1 ms |
936 KB |
Output is correct |
50 |
Correct |
1 ms |
712 KB |
Output is correct |
51 |
Correct |
1 ms |
860 KB |
Output is correct |
52 |
Correct |
0 ms |
860 KB |
Output is correct |
53 |
Correct |
0 ms |
604 KB |
Output is correct |
54 |
Correct |
0 ms |
668 KB |
Output is correct |
55 |
Correct |
0 ms |
860 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
860 KB |
Output is correct |
58 |
Correct |
0 ms |
668 KB |
Output is correct |
59 |
Correct |
1 ms |
1116 KB |
Output is correct |
60 |
Correct |
1 ms |
1120 KB |
Output is correct |
61 |
Correct |
1 ms |
1128 KB |
Output is correct |
62 |
Correct |
1 ms |
1128 KB |
Output is correct |
63 |
Correct |
1 ms |
1128 KB |
Output is correct |
64 |
Correct |
1 ms |
1120 KB |
Output is correct |
65 |
Correct |
1 ms |
1120 KB |
Output is correct |
66 |
Correct |
1 ms |
1128 KB |
Output is correct |
67 |
Correct |
1 ms |
1032 KB |
Output is correct |
68 |
Correct |
2 ms |
1196 KB |
Output is correct |
69 |
Correct |
1 ms |
1128 KB |
Output is correct |
70 |
Correct |
1 ms |
1120 KB |
Output is correct |
71 |
Correct |
1 ms |
1116 KB |
Output is correct |
72 |
Correct |
1 ms |
1116 KB |
Output is correct |
73 |
Correct |
1 ms |
1116 KB |
Output is correct |
74 |
Correct |
1 ms |
1116 KB |
Output is correct |
75 |
Correct |
1 ms |
1116 KB |
Output is correct |
76 |
Correct |
1 ms |
1116 KB |
Output is correct |
77 |
Correct |
1 ms |
1116 KB |
Output is correct |
78 |
Correct |
1 ms |
1116 KB |
Output is correct |
79 |
Correct |
1 ms |
1116 KB |
Output is correct |
80 |
Correct |
1 ms |
860 KB |
Output is correct |
81 |
Correct |
1 ms |
860 KB |
Output is correct |
82 |
Correct |
1 ms |
860 KB |
Output is correct |
83 |
Correct |
1 ms |
860 KB |
Output is correct |
84 |
Correct |
1 ms |
856 KB |
Output is correct |
85 |
Correct |
1 ms |
972 KB |
Output is correct |
86 |
Correct |
1 ms |
1116 KB |
Output is correct |
87 |
Correct |
1 ms |
1116 KB |
Output is correct |
88 |
Correct |
1 ms |
1232 KB |
Output is correct |
89 |
Correct |
1 ms |
1116 KB |
Output is correct |
90 |
Correct |
0 ms |
680 KB |
Output is correct |
91 |
Correct |
1 ms |
856 KB |
Output is correct |
92 |
Correct |
10 ms |
8412 KB |
Output is correct |
93 |
Correct |
9 ms |
8412 KB |
Output is correct |
94 |
Correct |
1 ms |
1372 KB |
Output is correct |
95 |
Correct |
10 ms |
7780 KB |
Output is correct |
96 |
Correct |
10 ms |
7976 KB |
Output is correct |
97 |
Correct |
2 ms |
2396 KB |
Output is correct |
98 |
Correct |
7 ms |
6748 KB |
Output is correct |
99 |
Correct |
6 ms |
6480 KB |
Output is correct |
100 |
Correct |
1 ms |
1884 KB |
Output is correct |
101 |
Correct |
3 ms |
4584 KB |
Output is correct |
102 |
Correct |
3 ms |
4444 KB |
Output is correct |
103 |
Correct |
9 ms |
8156 KB |
Output is correct |
104 |
Correct |
9 ms |
7644 KB |
Output is correct |
105 |
Correct |
9 ms |
7636 KB |
Output is correct |
106 |
Correct |
9 ms |
8408 KB |
Output is correct |
107 |
Correct |
11 ms |
8356 KB |
Output is correct |
108 |
Correct |
9 ms |
8404 KB |
Output is correct |
109 |
Correct |
9 ms |
8416 KB |
Output is correct |
110 |
Correct |
10 ms |
8408 KB |
Output is correct |
111 |
Correct |
9 ms |
8512 KB |
Output is correct |
112 |
Correct |
9 ms |
8448 KB |
Output is correct |
113 |
Correct |
10 ms |
8332 KB |
Output is correct |
114 |
Correct |
9 ms |
7828 KB |
Output is correct |
115 |
Correct |
9 ms |
7820 KB |
Output is correct |
116 |
Correct |
11 ms |
7896 KB |
Output is correct |
117 |
Correct |
9 ms |
7940 KB |
Output is correct |
118 |
Correct |
9 ms |
8152 KB |
Output is correct |
119 |
Correct |
10 ms |
7892 KB |
Output is correct |
120 |
Correct |
9 ms |
8404 KB |
Output is correct |
121 |
Correct |
8 ms |
7896 KB |
Output is correct |
122 |
Correct |
15 ms |
7640 KB |
Output is correct |
123 |
Correct |
8 ms |
7900 KB |
Output is correct |
124 |
Correct |
4 ms |
5980 KB |
Output is correct |
125 |
Correct |
8 ms |
7420 KB |
Output is correct |
126 |
Correct |
7 ms |
7004 KB |
Output is correct |
127 |
Correct |
8 ms |
7132 KB |
Output is correct |
128 |
Correct |
9 ms |
7516 KB |
Output is correct |
129 |
Correct |
8 ms |
7000 KB |
Output is correct |
130 |
Correct |
11 ms |
8540 KB |
Output is correct |
131 |
Correct |
9 ms |
8408 KB |
Output is correct |
132 |
Correct |
9 ms |
8408 KB |
Output is correct |
133 |
Correct |
10 ms |
8448 KB |
Output is correct |
134 |
Correct |
2 ms |
4188 KB |
Output is correct |
135 |
Correct |
6 ms |
3432 KB |
Output is correct |
136 |
Correct |
10 ms |
10228 KB |
Output is correct |
137 |
Correct |
9 ms |
9980 KB |
Output is correct |
138 |
Correct |
3 ms |
3676 KB |
Output is correct |
139 |
Correct |
6 ms |
8912 KB |
Output is correct |
140 |
Correct |
3 ms |
6236 KB |
Output is correct |
141 |
Correct |
2 ms |
2652 KB |
Output is correct |
142 |
Correct |
3 ms |
6220 KB |
Output is correct |
143 |
Correct |
3 ms |
6240 KB |
Output is correct |
144 |
Correct |
0 ms |
604 KB |
Output is correct |
145 |
Correct |
4 ms |
6240 KB |
Output is correct |
146 |
Correct |
3 ms |
6244 KB |
Output is correct |
147 |
Correct |
11 ms |
10456 KB |
Output is correct |
148 |
Correct |
13 ms |
10816 KB |
Output is correct |
149 |
Correct |
12 ms |
10208 KB |
Output is correct |
150 |
Correct |
13 ms |
11604 KB |
Output is correct |
151 |
Correct |
13 ms |
11488 KB |
Output is correct |
152 |
Correct |
12 ms |
11488 KB |
Output is correct |
153 |
Correct |
13 ms |
11480 KB |
Output is correct |
154 |
Correct |
12 ms |
11608 KB |
Output is correct |
155 |
Correct |
14 ms |
11528 KB |
Output is correct |
156 |
Correct |
13 ms |
11408 KB |
Output is correct |
157 |
Correct |
13 ms |
11464 KB |
Output is correct |
158 |
Correct |
14 ms |
11484 KB |
Output is correct |
159 |
Correct |
12 ms |
11560 KB |
Output is correct |
160 |
Correct |
14 ms |
11476 KB |
Output is correct |
161 |
Correct |
13 ms |
11476 KB |
Output is correct |
162 |
Correct |
12 ms |
10708 KB |
Output is correct |
163 |
Correct |
11 ms |
10340 KB |
Output is correct |
164 |
Correct |
13 ms |
11184 KB |
Output is correct |
165 |
Correct |
11 ms |
10324 KB |
Output is correct |
166 |
Correct |
15 ms |
10964 KB |
Output is correct |
167 |
Correct |
14 ms |
10584 KB |
Output is correct |
168 |
Correct |
6 ms |
8540 KB |
Output is correct |
169 |
Correct |
11 ms |
10196 KB |
Output is correct |
170 |
Correct |
13 ms |
10456 KB |
Output is correct |
171 |
Correct |
11 ms |
9952 KB |
Output is correct |
172 |
Correct |
10 ms |
9404 KB |
Output is correct |
173 |
Correct |
11 ms |
10244 KB |
Output is correct |
174 |
Correct |
17 ms |
11476 KB |
Output is correct |
175 |
Correct |
13 ms |
11388 KB |
Output is correct |
176 |
Correct |
13 ms |
11476 KB |
Output is correct |
177 |
Correct |
13 ms |
11472 KB |
Output is correct |
178 |
Correct |
3 ms |
5724 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
604 KB |
Output is correct |
5 |
Correct |
0 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
604 KB |
Output is correct |
8 |
Correct |
0 ms |
604 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 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 |
604 KB |
Output is correct |
16 |
Correct |
0 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
604 KB |
Output is correct |
19 |
Correct |
1 ms |
604 KB |
Output is correct |
20 |
Correct |
1 ms |
604 KB |
Output is correct |
21 |
Correct |
0 ms |
604 KB |
Output is correct |
22 |
Correct |
0 ms |
604 KB |
Output is correct |
23 |
Correct |
0 ms |
604 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
1 ms |
604 KB |
Output is correct |
26 |
Correct |
0 ms |
456 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
0 ms |
604 KB |
Output is correct |
29 |
Correct |
0 ms |
604 KB |
Output is correct |
30 |
Correct |
0 ms |
604 KB |
Output is correct |
31 |
Correct |
0 ms |
604 KB |
Output is correct |
32 |
Correct |
0 ms |
604 KB |
Output is correct |
33 |
Correct |
1 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
456 KB |
Output is correct |
35 |
Correct |
0 ms |
604 KB |
Output is correct |
36 |
Correct |
0 ms |
600 KB |
Output is correct |
37 |
Correct |
1 ms |
604 KB |
Output is correct |
38 |
Correct |
1 ms |
604 KB |
Output is correct |
39 |
Correct |
0 ms |
604 KB |
Output is correct |
40 |
Correct |
0 ms |
604 KB |
Output is correct |
41 |
Correct |
0 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
0 ms |
604 KB |
Output is correct |
44 |
Correct |
1 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
0 ms |
348 KB |
Output is correct |
47 |
Correct |
1 ms |
604 KB |
Output is correct |
48 |
Correct |
1 ms |
860 KB |
Output is correct |
49 |
Correct |
1 ms |
936 KB |
Output is correct |
50 |
Correct |
1 ms |
712 KB |
Output is correct |
51 |
Correct |
1 ms |
860 KB |
Output is correct |
52 |
Correct |
0 ms |
860 KB |
Output is correct |
53 |
Correct |
0 ms |
604 KB |
Output is correct |
54 |
Correct |
0 ms |
668 KB |
Output is correct |
55 |
Correct |
0 ms |
860 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
860 KB |
Output is correct |
58 |
Correct |
0 ms |
668 KB |
Output is correct |
59 |
Correct |
1 ms |
1116 KB |
Output is correct |
60 |
Correct |
1 ms |
1120 KB |
Output is correct |
61 |
Correct |
1 ms |
1128 KB |
Output is correct |
62 |
Correct |
1 ms |
1128 KB |
Output is correct |
63 |
Correct |
1 ms |
1128 KB |
Output is correct |
64 |
Correct |
1 ms |
1120 KB |
Output is correct |
65 |
Correct |
1 ms |
1120 KB |
Output is correct |
66 |
Correct |
1 ms |
1128 KB |
Output is correct |
67 |
Correct |
1 ms |
1032 KB |
Output is correct |
68 |
Correct |
2 ms |
1196 KB |
Output is correct |
69 |
Correct |
1 ms |
1128 KB |
Output is correct |
70 |
Correct |
1 ms |
1120 KB |
Output is correct |
71 |
Correct |
1 ms |
1116 KB |
Output is correct |
72 |
Correct |
1 ms |
1116 KB |
Output is correct |
73 |
Correct |
1 ms |
1116 KB |
Output is correct |
74 |
Correct |
1 ms |
1116 KB |
Output is correct |
75 |
Correct |
1 ms |
1116 KB |
Output is correct |
76 |
Correct |
1 ms |
1116 KB |
Output is correct |
77 |
Correct |
1 ms |
1116 KB |
Output is correct |
78 |
Correct |
1 ms |
1116 KB |
Output is correct |
79 |
Correct |
1 ms |
1116 KB |
Output is correct |
80 |
Correct |
1 ms |
860 KB |
Output is correct |
81 |
Correct |
1 ms |
860 KB |
Output is correct |
82 |
Correct |
1 ms |
860 KB |
Output is correct |
83 |
Correct |
1 ms |
860 KB |
Output is correct |
84 |
Correct |
1 ms |
856 KB |
Output is correct |
85 |
Correct |
1 ms |
972 KB |
Output is correct |
86 |
Correct |
1 ms |
1116 KB |
Output is correct |
87 |
Correct |
1 ms |
1116 KB |
Output is correct |
88 |
Correct |
1 ms |
1232 KB |
Output is correct |
89 |
Correct |
1 ms |
1116 KB |
Output is correct |
90 |
Correct |
0 ms |
680 KB |
Output is correct |
91 |
Correct |
1 ms |
856 KB |
Output is correct |
92 |
Correct |
10 ms |
8412 KB |
Output is correct |
93 |
Correct |
9 ms |
8412 KB |
Output is correct |
94 |
Correct |
1 ms |
1372 KB |
Output is correct |
95 |
Correct |
10 ms |
7780 KB |
Output is correct |
96 |
Correct |
10 ms |
7976 KB |
Output is correct |
97 |
Correct |
2 ms |
2396 KB |
Output is correct |
98 |
Correct |
7 ms |
6748 KB |
Output is correct |
99 |
Correct |
6 ms |
6480 KB |
Output is correct |
100 |
Correct |
1 ms |
1884 KB |
Output is correct |
101 |
Correct |
3 ms |
4584 KB |
Output is correct |
102 |
Correct |
3 ms |
4444 KB |
Output is correct |
103 |
Correct |
9 ms |
8156 KB |
Output is correct |
104 |
Correct |
9 ms |
7644 KB |
Output is correct |
105 |
Correct |
9 ms |
7636 KB |
Output is correct |
106 |
Correct |
9 ms |
8408 KB |
Output is correct |
107 |
Correct |
11 ms |
8356 KB |
Output is correct |
108 |
Correct |
9 ms |
8404 KB |
Output is correct |
109 |
Correct |
9 ms |
8416 KB |
Output is correct |
110 |
Correct |
10 ms |
8408 KB |
Output is correct |
111 |
Correct |
9 ms |
8512 KB |
Output is correct |
112 |
Correct |
9 ms |
8448 KB |
Output is correct |
113 |
Correct |
10 ms |
8332 KB |
Output is correct |
114 |
Correct |
9 ms |
7828 KB |
Output is correct |
115 |
Correct |
9 ms |
7820 KB |
Output is correct |
116 |
Correct |
11 ms |
7896 KB |
Output is correct |
117 |
Correct |
9 ms |
7940 KB |
Output is correct |
118 |
Correct |
9 ms |
8152 KB |
Output is correct |
119 |
Correct |
10 ms |
7892 KB |
Output is correct |
120 |
Correct |
9 ms |
8404 KB |
Output is correct |
121 |
Correct |
8 ms |
7896 KB |
Output is correct |
122 |
Correct |
15 ms |
7640 KB |
Output is correct |
123 |
Correct |
8 ms |
7900 KB |
Output is correct |
124 |
Correct |
4 ms |
5980 KB |
Output is correct |
125 |
Correct |
8 ms |
7420 KB |
Output is correct |
126 |
Correct |
7 ms |
7004 KB |
Output is correct |
127 |
Correct |
8 ms |
7132 KB |
Output is correct |
128 |
Correct |
9 ms |
7516 KB |
Output is correct |
129 |
Correct |
8 ms |
7000 KB |
Output is correct |
130 |
Correct |
11 ms |
8540 KB |
Output is correct |
131 |
Correct |
9 ms |
8408 KB |
Output is correct |
132 |
Correct |
9 ms |
8408 KB |
Output is correct |
133 |
Correct |
10 ms |
8448 KB |
Output is correct |
134 |
Correct |
2 ms |
4188 KB |
Output is correct |
135 |
Correct |
6 ms |
3432 KB |
Output is correct |
136 |
Correct |
10 ms |
10228 KB |
Output is correct |
137 |
Correct |
9 ms |
9980 KB |
Output is correct |
138 |
Correct |
3 ms |
3676 KB |
Output is correct |
139 |
Correct |
6 ms |
8912 KB |
Output is correct |
140 |
Correct |
3 ms |
6236 KB |
Output is correct |
141 |
Correct |
2 ms |
2652 KB |
Output is correct |
142 |
Correct |
3 ms |
6220 KB |
Output is correct |
143 |
Correct |
3 ms |
6240 KB |
Output is correct |
144 |
Correct |
0 ms |
604 KB |
Output is correct |
145 |
Correct |
4 ms |
6240 KB |
Output is correct |
146 |
Correct |
3 ms |
6244 KB |
Output is correct |
147 |
Correct |
11 ms |
10456 KB |
Output is correct |
148 |
Correct |
13 ms |
10816 KB |
Output is correct |
149 |
Correct |
12 ms |
10208 KB |
Output is correct |
150 |
Correct |
13 ms |
11604 KB |
Output is correct |
151 |
Correct |
13 ms |
11488 KB |
Output is correct |
152 |
Correct |
12 ms |
11488 KB |
Output is correct |
153 |
Correct |
13 ms |
11480 KB |
Output is correct |
154 |
Correct |
12 ms |
11608 KB |
Output is correct |
155 |
Correct |
14 ms |
11528 KB |
Output is correct |
156 |
Correct |
13 ms |
11408 KB |
Output is correct |
157 |
Correct |
13 ms |
11464 KB |
Output is correct |
158 |
Correct |
14 ms |
11484 KB |
Output is correct |
159 |
Correct |
12 ms |
11560 KB |
Output is correct |
160 |
Correct |
14 ms |
11476 KB |
Output is correct |
161 |
Correct |
13 ms |
11476 KB |
Output is correct |
162 |
Correct |
12 ms |
10708 KB |
Output is correct |
163 |
Correct |
11 ms |
10340 KB |
Output is correct |
164 |
Correct |
13 ms |
11184 KB |
Output is correct |
165 |
Correct |
11 ms |
10324 KB |
Output is correct |
166 |
Correct |
15 ms |
10964 KB |
Output is correct |
167 |
Correct |
14 ms |
10584 KB |
Output is correct |
168 |
Correct |
6 ms |
8540 KB |
Output is correct |
169 |
Correct |
11 ms |
10196 KB |
Output is correct |
170 |
Correct |
13 ms |
10456 KB |
Output is correct |
171 |
Correct |
11 ms |
9952 KB |
Output is correct |
172 |
Correct |
10 ms |
9404 KB |
Output is correct |
173 |
Correct |
11 ms |
10244 KB |
Output is correct |
174 |
Correct |
17 ms |
11476 KB |
Output is correct |
175 |
Correct |
13 ms |
11388 KB |
Output is correct |
176 |
Correct |
13 ms |
11476 KB |
Output is correct |
177 |
Correct |
13 ms |
11472 KB |
Output is correct |
178 |
Correct |
3 ms |
5724 KB |
Output is correct |
179 |
Correct |
50 ms |
44636 KB |
Output is correct |
180 |
Correct |
156 ms |
160452 KB |
Output is correct |
181 |
Correct |
76 ms |
115900 KB |
Output is correct |
182 |
Correct |
12 ms |
26972 KB |
Output is correct |
183 |
Correct |
68 ms |
117464 KB |
Output is correct |
184 |
Correct |
47 ms |
101968 KB |
Output is correct |
185 |
Correct |
42 ms |
74832 KB |
Output is correct |
186 |
Correct |
50 ms |
102068 KB |
Output is correct |
187 |
Correct |
50 ms |
101968 KB |
Output is correct |
188 |
Correct |
30 ms |
53340 KB |
Output is correct |
189 |
Correct |
55 ms |
101976 KB |
Output is correct |
190 |
Correct |
56 ms |
101972 KB |
Output is correct |
191 |
Correct |
215 ms |
164104 KB |
Output is correct |
192 |
Correct |
217 ms |
174196 KB |
Output is correct |
193 |
Correct |
208 ms |
172484 KB |
Output is correct |
194 |
Correct |
255 ms |
206520 KB |
Output is correct |
195 |
Correct |
234 ms |
206808 KB |
Output is correct |
196 |
Correct |
241 ms |
206004 KB |
Output is correct |
197 |
Correct |
236 ms |
206264 KB |
Output is correct |
198 |
Correct |
258 ms |
206144 KB |
Output is correct |
199 |
Correct |
230 ms |
205604 KB |
Output is correct |
200 |
Correct |
236 ms |
190676 KB |
Output is correct |
201 |
Correct |
228 ms |
189728 KB |
Output is correct |
202 |
Correct |
234 ms |
190464 KB |
Output is correct |
203 |
Correct |
233 ms |
189116 KB |
Output is correct |
204 |
Correct |
232 ms |
190140 KB |
Output is correct |
205 |
Correct |
234 ms |
189616 KB |
Output is correct |
206 |
Correct |
213 ms |
168384 KB |
Output is correct |
207 |
Correct |
204 ms |
168628 KB |
Output is correct |
208 |
Correct |
194 ms |
161988 KB |
Output is correct |
209 |
Correct |
217 ms |
172480 KB |
Output is correct |
210 |
Correct |
217 ms |
171108 KB |
Output is correct |
211 |
Correct |
221 ms |
197504 KB |
Output is correct |
212 |
Correct |
108 ms |
133460 KB |
Output is correct |
213 |
Correct |
202 ms |
164808 KB |
Output is correct |
214 |
Correct |
191 ms |
156460 KB |
Output is correct |
215 |
Correct |
203 ms |
167104 KB |
Output is correct |
216 |
Correct |
184 ms |
153964 KB |
Output is correct |
217 |
Correct |
182 ms |
156048 KB |
Output is correct |
218 |
Correct |
233 ms |
206000 KB |
Output is correct |
219 |
Correct |
233 ms |
207140 KB |
Output is correct |
220 |
Correct |
252 ms |
205752 KB |
Output is correct |
221 |
Correct |
246 ms |
206832 KB |
Output is correct |
222 |
Correct |
35 ms |
85588 KB |
Output is correct |