# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
933336 |
2024-02-25T13:59:10 Z |
pcc |
Maze (JOI23_ho_t3) |
C++14 |
|
444 ms |
130984 KB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pll pair<ll,ll>
#define pii pair<int,int>
#define fs first
#define sc second
#define tlll tuple<ll,ll,ll>
/*
#define push_back push
#define pop_front pop
#define push_front push
#define front top
priority_queue<node,vector<node>,greater<node>> dq;
void add(int lvl ,int r,int c,int d){
if(lvl>4||r<0||c<0||r>=R||c>=C)return;
//cout<<lvl<<','<<r<<' '<<c<<' '<<d<<endl;
if(dist[lvl][r][c] != -1&&dist[lvl][r][c]<=d)return;
dist[lvl][r][c] = d;
dq.push(node(lvl,r,c,d));
return;
}
*/
struct node{
int lvl,r,c,d;
node(){lvl = r = c = d = 0;}
node(int lv,int rr,int cc,int dd):lvl(lv),r(rr),c(cc),d(dd){}
bool operator<(node b)const{
return d<b.d;
}
bool operator>(node b)const{
return d>b.d;
}
};
int R,C,N;
vector<string> arr;
vector<vector<int>> dist[5];
pii s,e;
deque<node> dq;
pii dir[] = {{0,1},{0,-1},{1,0},{-1,0}};
pii dir2[] = {{1,1},{1,-1},{-1,-1},{-1,1}};
inline void add(int lvl,int r,int c,int d){
if(lvl>4||r<0||c<0||r>=R||c>=C)return;
//cout<<lvl<<','<<r<<' '<<c<<' '<<d<<endl;
if(dist[lvl][r][c] != -1&&dist[lvl][r][c]<=d)return;
dist[lvl][r][c] = d;
if(dq.empty()||dq.back().d<=d)dq.push_back(node(lvl,r,c,d));
else dq.push_front(node(lvl,r,c,d));
}
void add_center(int r,int c,int d){//extend radius of N square
for(int i = 0;i<4;i++){
int nr = r-dir2[i].fs*(N-1),nc = c-dir2[i].sc*(N-1);
nr = min(nr,R-1),nr = max(nr,0),nc = min(nc,C-1),nc = max(nc,0);
add(i,nr,nc,d);
}
return;
}
void BFS(pii s){
add(4,s.fs,s.sc,0);
dist[4][s.fs][s.sc] = 0;
while(!dq.empty()){
auto now = dq.front();
dq.pop_front();
if(dist[now.lvl][now.r][now.c] != now.d)continue;
//cout<<now.lvl<<','<<now.r<<' '<<now.c<<':'<<now.d<<endl;
if(now.lvl == 4){
add_center(now.r,now.c,now.d+1);
for(auto &d:dir){
int nr = d.fs+now.r,nc = d.sc+now.c;
//cout<<nr<<','<<nc<<endl;
if(nr>=0&&nc>=0&&nr<R&&nc<C){
add_center(nr,nc,now.d+1);
add(4,nr,nc,now.d+(arr[nr][nc] == '#'));
}
}
}
else{
add(4,now.r,now.c,now.d);
int nr = now.r+dir2[now.lvl].fs,nc = now.c+dir2[now.lvl].sc;
if(nr>=0&&nr<R&&now.r%(N*2-1) != 0)add(now.lvl,nr,now.c,now.d);
if(nc>=0&&nc<C&&now.c%(N*2-1) != 0)add(now.lvl,now.r,nc,now.d);
}
}
return;
}
main(){
ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
cin>>R>>C>>N;
arr = vector<string>(R);
dist[0] = dist[1] = dist[2] = dist[3] = dist[4] = vector<vector<int>>(R,vector<int>(C,-1));
cin>>s.fs>>s.sc>>e.fs>>e.sc;
s.fs--,s.sc--,e.fs--,e.sc--;
for(auto &i:arr)cin>>i;
BFS(s);
cout<<dist[4][e.fs][e.sc];
}
Compilation message
Main.cpp:98:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
98 | main(){
| ^~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 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 |
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 |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
12 ms |
1624 KB |
Output is correct |
20 |
Correct |
6 ms |
1488 KB |
Output is correct |
21 |
Correct |
14 ms |
6152 KB |
Output is correct |
22 |
Correct |
13 ms |
1884 KB |
Output is correct |
23 |
Correct |
12 ms |
1628 KB |
Output is correct |
24 |
Correct |
9 ms |
1884 KB |
Output is correct |
25 |
Correct |
9 ms |
1884 KB |
Output is correct |
26 |
Correct |
13 ms |
2396 KB |
Output is correct |
27 |
Correct |
13 ms |
1884 KB |
Output is correct |
28 |
Correct |
12 ms |
1884 KB |
Output is correct |
29 |
Correct |
32 ms |
3688 KB |
Output is correct |
30 |
Correct |
11 ms |
1624 KB |
Output is correct |
31 |
Correct |
35 ms |
13520 KB |
Output is correct |
32 |
Correct |
33 ms |
3676 KB |
Output is correct |
33 |
Correct |
30 ms |
3696 KB |
Output is correct |
34 |
Correct |
20 ms |
3932 KB |
Output is correct |
35 |
Correct |
23 ms |
3816 KB |
Output is correct |
36 |
Correct |
32 ms |
4700 KB |
Output is correct |
37 |
Correct |
32 ms |
4188 KB |
Output is correct |
38 |
Correct |
30 ms |
3672 KB |
Output is correct |
39 |
Correct |
345 ms |
31580 KB |
Output is correct |
40 |
Correct |
41 ms |
4180 KB |
Output is correct |
41 |
Correct |
25 ms |
4700 KB |
Output is correct |
42 |
Correct |
43 ms |
4956 KB |
Output is correct |
43 |
Correct |
42 ms |
5500 KB |
Output is correct |
44 |
Correct |
152 ms |
15988 KB |
Output is correct |
45 |
Correct |
166 ms |
17220 KB |
Output is correct |
46 |
Correct |
417 ms |
130984 KB |
Output is correct |
47 |
Correct |
345 ms |
32340 KB |
Output is correct |
48 |
Correct |
376 ms |
31736 KB |
Output is correct |
49 |
Correct |
202 ms |
35672 KB |
Output is correct |
50 |
Correct |
192 ms |
35676 KB |
Output is correct |
51 |
Correct |
344 ms |
35828 KB |
Output is correct |
52 |
Correct |
368 ms |
33228 KB |
Output is correct |
53 |
Correct |
351 ms |
32348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
1 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 |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 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 |
0 ms |
348 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 |
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 |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
360 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
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 |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
600 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 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 |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
476 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
1 ms |
348 KB |
Output is correct |
25 |
Correct |
10 ms |
1332 KB |
Output is correct |
26 |
Correct |
16 ms |
4956 KB |
Output is correct |
27 |
Correct |
14 ms |
5724 KB |
Output is correct |
28 |
Correct |
10 ms |
1884 KB |
Output is correct |
29 |
Correct |
12 ms |
2260 KB |
Output is correct |
30 |
Correct |
10 ms |
2652 KB |
Output is correct |
31 |
Correct |
11 ms |
1628 KB |
Output is correct |
32 |
Correct |
15 ms |
2396 KB |
Output is correct |
33 |
Correct |
14 ms |
1884 KB |
Output is correct |
34 |
Correct |
28 ms |
8412 KB |
Output is correct |
35 |
Correct |
34 ms |
13684 KB |
Output is correct |
36 |
Correct |
21 ms |
4188 KB |
Output is correct |
37 |
Correct |
24 ms |
4956 KB |
Output is correct |
38 |
Correct |
28 ms |
6072 KB |
Output is correct |
39 |
Correct |
120 ms |
37544 KB |
Output is correct |
40 |
Correct |
303 ms |
61736 KB |
Output is correct |
41 |
Correct |
444 ms |
130488 KB |
Output is correct |
42 |
Correct |
268 ms |
43496 KB |
Output is correct |
43 |
Correct |
335 ms |
46336 KB |
Output is correct |
44 |
Correct |
308 ms |
55804 KB |
Output is correct |
45 |
Correct |
258 ms |
40660 KB |
Output is correct |
46 |
Correct |
273 ms |
40400 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
1 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 |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 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 |
0 ms |
348 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 |
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 |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
360 KB |
Output is correct |
33 |
Correct |
12 ms |
1628 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
11 ms |
1116 KB |
Output is correct |
37 |
Correct |
6 ms |
1444 KB |
Output is correct |
38 |
Correct |
13 ms |
4780 KB |
Output is correct |
39 |
Correct |
16 ms |
5724 KB |
Output is correct |
40 |
Correct |
13 ms |
1884 KB |
Output is correct |
41 |
Correct |
14 ms |
1884 KB |
Output is correct |
42 |
Correct |
10 ms |
1880 KB |
Output is correct |
43 |
Correct |
11 ms |
2332 KB |
Output is correct |
44 |
Correct |
10 ms |
2652 KB |
Output is correct |
45 |
Correct |
8 ms |
1648 KB |
Output is correct |
46 |
Correct |
8 ms |
1884 KB |
Output is correct |
47 |
Correct |
10 ms |
1624 KB |
Output is correct |
48 |
Correct |
11 ms |
1712 KB |
Output is correct |
49 |
Correct |
10 ms |
1628 KB |
Output is correct |
50 |
Correct |
11 ms |
1628 KB |
Output is correct |
51 |
Correct |
10 ms |
1728 KB |
Output is correct |
52 |
Correct |
14 ms |
2396 KB |
Output is correct |
53 |
Correct |
13 ms |
2056 KB |
Output is correct |
54 |
Correct |
12 ms |
1884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
1 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 |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 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 |
0 ms |
348 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 |
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 |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
360 KB |
Output is correct |
33 |
Correct |
12 ms |
1628 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
11 ms |
1116 KB |
Output is correct |
37 |
Correct |
6 ms |
1444 KB |
Output is correct |
38 |
Correct |
13 ms |
4780 KB |
Output is correct |
39 |
Correct |
16 ms |
5724 KB |
Output is correct |
40 |
Correct |
13 ms |
1884 KB |
Output is correct |
41 |
Correct |
14 ms |
1884 KB |
Output is correct |
42 |
Correct |
10 ms |
1880 KB |
Output is correct |
43 |
Correct |
11 ms |
2332 KB |
Output is correct |
44 |
Correct |
10 ms |
2652 KB |
Output is correct |
45 |
Correct |
8 ms |
1648 KB |
Output is correct |
46 |
Correct |
8 ms |
1884 KB |
Output is correct |
47 |
Correct |
10 ms |
1624 KB |
Output is correct |
48 |
Correct |
11 ms |
1712 KB |
Output is correct |
49 |
Correct |
10 ms |
1628 KB |
Output is correct |
50 |
Correct |
11 ms |
1628 KB |
Output is correct |
51 |
Correct |
10 ms |
1728 KB |
Output is correct |
52 |
Correct |
14 ms |
2396 KB |
Output is correct |
53 |
Correct |
13 ms |
2056 KB |
Output is correct |
54 |
Correct |
12 ms |
1884 KB |
Output is correct |
55 |
Correct |
30 ms |
3672 KB |
Output is correct |
56 |
Correct |
11 ms |
1628 KB |
Output is correct |
57 |
Correct |
29 ms |
8372 KB |
Output is correct |
58 |
Correct |
36 ms |
3160 KB |
Output is correct |
59 |
Correct |
36 ms |
13540 KB |
Output is correct |
60 |
Correct |
34 ms |
3828 KB |
Output is correct |
61 |
Correct |
30 ms |
3676 KB |
Output is correct |
62 |
Correct |
30 ms |
4360 KB |
Output is correct |
63 |
Correct |
25 ms |
4956 KB |
Output is correct |
64 |
Correct |
23 ms |
5920 KB |
Output is correct |
65 |
Correct |
20 ms |
3928 KB |
Output is correct |
66 |
Correct |
20 ms |
3932 KB |
Output is correct |
67 |
Correct |
25 ms |
3700 KB |
Output is correct |
68 |
Correct |
26 ms |
3420 KB |
Output is correct |
69 |
Correct |
26 ms |
3416 KB |
Output is correct |
70 |
Correct |
27 ms |
3416 KB |
Output is correct |
71 |
Correct |
32 ms |
3924 KB |
Output is correct |
72 |
Correct |
33 ms |
4700 KB |
Output is correct |
73 |
Correct |
32 ms |
4184 KB |
Output is correct |
74 |
Correct |
31 ms |
3928 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 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 |
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 |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
12 ms |
1624 KB |
Output is correct |
20 |
Correct |
6 ms |
1488 KB |
Output is correct |
21 |
Correct |
14 ms |
6152 KB |
Output is correct |
22 |
Correct |
13 ms |
1884 KB |
Output is correct |
23 |
Correct |
12 ms |
1628 KB |
Output is correct |
24 |
Correct |
9 ms |
1884 KB |
Output is correct |
25 |
Correct |
9 ms |
1884 KB |
Output is correct |
26 |
Correct |
13 ms |
2396 KB |
Output is correct |
27 |
Correct |
13 ms |
1884 KB |
Output is correct |
28 |
Correct |
12 ms |
1884 KB |
Output is correct |
29 |
Correct |
32 ms |
3688 KB |
Output is correct |
30 |
Correct |
11 ms |
1624 KB |
Output is correct |
31 |
Correct |
35 ms |
13520 KB |
Output is correct |
32 |
Correct |
33 ms |
3676 KB |
Output is correct |
33 |
Correct |
30 ms |
3696 KB |
Output is correct |
34 |
Correct |
20 ms |
3932 KB |
Output is correct |
35 |
Correct |
23 ms |
3816 KB |
Output is correct |
36 |
Correct |
32 ms |
4700 KB |
Output is correct |
37 |
Correct |
32 ms |
4188 KB |
Output is correct |
38 |
Correct |
30 ms |
3672 KB |
Output is correct |
39 |
Correct |
345 ms |
31580 KB |
Output is correct |
40 |
Correct |
41 ms |
4180 KB |
Output is correct |
41 |
Correct |
25 ms |
4700 KB |
Output is correct |
42 |
Correct |
43 ms |
4956 KB |
Output is correct |
43 |
Correct |
42 ms |
5500 KB |
Output is correct |
44 |
Correct |
152 ms |
15988 KB |
Output is correct |
45 |
Correct |
166 ms |
17220 KB |
Output is correct |
46 |
Correct |
417 ms |
130984 KB |
Output is correct |
47 |
Correct |
345 ms |
32340 KB |
Output is correct |
48 |
Correct |
376 ms |
31736 KB |
Output is correct |
49 |
Correct |
202 ms |
35672 KB |
Output is correct |
50 |
Correct |
192 ms |
35676 KB |
Output is correct |
51 |
Correct |
344 ms |
35828 KB |
Output is correct |
52 |
Correct |
368 ms |
33228 KB |
Output is correct |
53 |
Correct |
351 ms |
32348 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 |
344 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 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 |
0 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 |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
360 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 |
344 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
600 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 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 |
1 ms |
476 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
348 KB |
Output is correct |
107 |
Correct |
1 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
348 KB |
Output is correct |
110 |
Correct |
10 ms |
1332 KB |
Output is correct |
111 |
Correct |
16 ms |
4956 KB |
Output is correct |
112 |
Correct |
14 ms |
5724 KB |
Output is correct |
113 |
Correct |
10 ms |
1884 KB |
Output is correct |
114 |
Correct |
12 ms |
2260 KB |
Output is correct |
115 |
Correct |
10 ms |
2652 KB |
Output is correct |
116 |
Correct |
11 ms |
1628 KB |
Output is correct |
117 |
Correct |
15 ms |
2396 KB |
Output is correct |
118 |
Correct |
14 ms |
1884 KB |
Output is correct |
119 |
Correct |
28 ms |
8412 KB |
Output is correct |
120 |
Correct |
34 ms |
13684 KB |
Output is correct |
121 |
Correct |
21 ms |
4188 KB |
Output is correct |
122 |
Correct |
24 ms |
4956 KB |
Output is correct |
123 |
Correct |
28 ms |
6072 KB |
Output is correct |
124 |
Correct |
120 ms |
37544 KB |
Output is correct |
125 |
Correct |
303 ms |
61736 KB |
Output is correct |
126 |
Correct |
444 ms |
130488 KB |
Output is correct |
127 |
Correct |
268 ms |
43496 KB |
Output is correct |
128 |
Correct |
335 ms |
46336 KB |
Output is correct |
129 |
Correct |
308 ms |
55804 KB |
Output is correct |
130 |
Correct |
258 ms |
40660 KB |
Output is correct |
131 |
Correct |
273 ms |
40400 KB |
Output is correct |
132 |
Correct |
12 ms |
1628 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
11 ms |
1116 KB |
Output is correct |
136 |
Correct |
6 ms |
1444 KB |
Output is correct |
137 |
Correct |
13 ms |
4780 KB |
Output is correct |
138 |
Correct |
16 ms |
5724 KB |
Output is correct |
139 |
Correct |
13 ms |
1884 KB |
Output is correct |
140 |
Correct |
14 ms |
1884 KB |
Output is correct |
141 |
Correct |
10 ms |
1880 KB |
Output is correct |
142 |
Correct |
11 ms |
2332 KB |
Output is correct |
143 |
Correct |
10 ms |
2652 KB |
Output is correct |
144 |
Correct |
8 ms |
1648 KB |
Output is correct |
145 |
Correct |
8 ms |
1884 KB |
Output is correct |
146 |
Correct |
10 ms |
1624 KB |
Output is correct |
147 |
Correct |
11 ms |
1712 KB |
Output is correct |
148 |
Correct |
10 ms |
1628 KB |
Output is correct |
149 |
Correct |
11 ms |
1628 KB |
Output is correct |
150 |
Correct |
10 ms |
1728 KB |
Output is correct |
151 |
Correct |
14 ms |
2396 KB |
Output is correct |
152 |
Correct |
13 ms |
2056 KB |
Output is correct |
153 |
Correct |
12 ms |
1884 KB |
Output is correct |
154 |
Correct |
30 ms |
3672 KB |
Output is correct |
155 |
Correct |
11 ms |
1628 KB |
Output is correct |
156 |
Correct |
29 ms |
8372 KB |
Output is correct |
157 |
Correct |
36 ms |
3160 KB |
Output is correct |
158 |
Correct |
36 ms |
13540 KB |
Output is correct |
159 |
Correct |
34 ms |
3828 KB |
Output is correct |
160 |
Correct |
30 ms |
3676 KB |
Output is correct |
161 |
Correct |
30 ms |
4360 KB |
Output is correct |
162 |
Correct |
25 ms |
4956 KB |
Output is correct |
163 |
Correct |
23 ms |
5920 KB |
Output is correct |
164 |
Correct |
20 ms |
3928 KB |
Output is correct |
165 |
Correct |
20 ms |
3932 KB |
Output is correct |
166 |
Correct |
25 ms |
3700 KB |
Output is correct |
167 |
Correct |
26 ms |
3420 KB |
Output is correct |
168 |
Correct |
26 ms |
3416 KB |
Output is correct |
169 |
Correct |
27 ms |
3416 KB |
Output is correct |
170 |
Correct |
32 ms |
3924 KB |
Output is correct |
171 |
Correct |
33 ms |
4700 KB |
Output is correct |
172 |
Correct |
32 ms |
4184 KB |
Output is correct |
173 |
Correct |
31 ms |
3928 KB |
Output is correct |
174 |
Correct |
48 ms |
4440 KB |
Output is correct |
175 |
Correct |
79 ms |
7512 KB |
Output is correct |
176 |
Incorrect |
182 ms |
16400 KB |
Output isn't correct |
177 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 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 |
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 |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
12 ms |
1624 KB |
Output is correct |
20 |
Correct |
6 ms |
1488 KB |
Output is correct |
21 |
Correct |
14 ms |
6152 KB |
Output is correct |
22 |
Correct |
13 ms |
1884 KB |
Output is correct |
23 |
Correct |
12 ms |
1628 KB |
Output is correct |
24 |
Correct |
9 ms |
1884 KB |
Output is correct |
25 |
Correct |
9 ms |
1884 KB |
Output is correct |
26 |
Correct |
13 ms |
2396 KB |
Output is correct |
27 |
Correct |
13 ms |
1884 KB |
Output is correct |
28 |
Correct |
12 ms |
1884 KB |
Output is correct |
29 |
Correct |
32 ms |
3688 KB |
Output is correct |
30 |
Correct |
11 ms |
1624 KB |
Output is correct |
31 |
Correct |
35 ms |
13520 KB |
Output is correct |
32 |
Correct |
33 ms |
3676 KB |
Output is correct |
33 |
Correct |
30 ms |
3696 KB |
Output is correct |
34 |
Correct |
20 ms |
3932 KB |
Output is correct |
35 |
Correct |
23 ms |
3816 KB |
Output is correct |
36 |
Correct |
32 ms |
4700 KB |
Output is correct |
37 |
Correct |
32 ms |
4188 KB |
Output is correct |
38 |
Correct |
30 ms |
3672 KB |
Output is correct |
39 |
Correct |
345 ms |
31580 KB |
Output is correct |
40 |
Correct |
41 ms |
4180 KB |
Output is correct |
41 |
Correct |
25 ms |
4700 KB |
Output is correct |
42 |
Correct |
43 ms |
4956 KB |
Output is correct |
43 |
Correct |
42 ms |
5500 KB |
Output is correct |
44 |
Correct |
152 ms |
15988 KB |
Output is correct |
45 |
Correct |
166 ms |
17220 KB |
Output is correct |
46 |
Correct |
417 ms |
130984 KB |
Output is correct |
47 |
Correct |
345 ms |
32340 KB |
Output is correct |
48 |
Correct |
376 ms |
31736 KB |
Output is correct |
49 |
Correct |
202 ms |
35672 KB |
Output is correct |
50 |
Correct |
192 ms |
35676 KB |
Output is correct |
51 |
Correct |
344 ms |
35828 KB |
Output is correct |
52 |
Correct |
368 ms |
33228 KB |
Output is correct |
53 |
Correct |
351 ms |
32348 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 |
344 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 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 |
0 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 |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
360 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 |
344 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
600 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 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 |
1 ms |
476 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
348 KB |
Output is correct |
107 |
Correct |
1 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
348 KB |
Output is correct |
110 |
Correct |
10 ms |
1332 KB |
Output is correct |
111 |
Correct |
16 ms |
4956 KB |
Output is correct |
112 |
Correct |
14 ms |
5724 KB |
Output is correct |
113 |
Correct |
10 ms |
1884 KB |
Output is correct |
114 |
Correct |
12 ms |
2260 KB |
Output is correct |
115 |
Correct |
10 ms |
2652 KB |
Output is correct |
116 |
Correct |
11 ms |
1628 KB |
Output is correct |
117 |
Correct |
15 ms |
2396 KB |
Output is correct |
118 |
Correct |
14 ms |
1884 KB |
Output is correct |
119 |
Correct |
28 ms |
8412 KB |
Output is correct |
120 |
Correct |
34 ms |
13684 KB |
Output is correct |
121 |
Correct |
21 ms |
4188 KB |
Output is correct |
122 |
Correct |
24 ms |
4956 KB |
Output is correct |
123 |
Correct |
28 ms |
6072 KB |
Output is correct |
124 |
Correct |
120 ms |
37544 KB |
Output is correct |
125 |
Correct |
303 ms |
61736 KB |
Output is correct |
126 |
Correct |
444 ms |
130488 KB |
Output is correct |
127 |
Correct |
268 ms |
43496 KB |
Output is correct |
128 |
Correct |
335 ms |
46336 KB |
Output is correct |
129 |
Correct |
308 ms |
55804 KB |
Output is correct |
130 |
Correct |
258 ms |
40660 KB |
Output is correct |
131 |
Correct |
273 ms |
40400 KB |
Output is correct |
132 |
Correct |
12 ms |
1628 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
11 ms |
1116 KB |
Output is correct |
136 |
Correct |
6 ms |
1444 KB |
Output is correct |
137 |
Correct |
13 ms |
4780 KB |
Output is correct |
138 |
Correct |
16 ms |
5724 KB |
Output is correct |
139 |
Correct |
13 ms |
1884 KB |
Output is correct |
140 |
Correct |
14 ms |
1884 KB |
Output is correct |
141 |
Correct |
10 ms |
1880 KB |
Output is correct |
142 |
Correct |
11 ms |
2332 KB |
Output is correct |
143 |
Correct |
10 ms |
2652 KB |
Output is correct |
144 |
Correct |
8 ms |
1648 KB |
Output is correct |
145 |
Correct |
8 ms |
1884 KB |
Output is correct |
146 |
Correct |
10 ms |
1624 KB |
Output is correct |
147 |
Correct |
11 ms |
1712 KB |
Output is correct |
148 |
Correct |
10 ms |
1628 KB |
Output is correct |
149 |
Correct |
11 ms |
1628 KB |
Output is correct |
150 |
Correct |
10 ms |
1728 KB |
Output is correct |
151 |
Correct |
14 ms |
2396 KB |
Output is correct |
152 |
Correct |
13 ms |
2056 KB |
Output is correct |
153 |
Correct |
12 ms |
1884 KB |
Output is correct |
154 |
Correct |
30 ms |
3672 KB |
Output is correct |
155 |
Correct |
11 ms |
1628 KB |
Output is correct |
156 |
Correct |
29 ms |
8372 KB |
Output is correct |
157 |
Correct |
36 ms |
3160 KB |
Output is correct |
158 |
Correct |
36 ms |
13540 KB |
Output is correct |
159 |
Correct |
34 ms |
3828 KB |
Output is correct |
160 |
Correct |
30 ms |
3676 KB |
Output is correct |
161 |
Correct |
30 ms |
4360 KB |
Output is correct |
162 |
Correct |
25 ms |
4956 KB |
Output is correct |
163 |
Correct |
23 ms |
5920 KB |
Output is correct |
164 |
Correct |
20 ms |
3928 KB |
Output is correct |
165 |
Correct |
20 ms |
3932 KB |
Output is correct |
166 |
Correct |
25 ms |
3700 KB |
Output is correct |
167 |
Correct |
26 ms |
3420 KB |
Output is correct |
168 |
Correct |
26 ms |
3416 KB |
Output is correct |
169 |
Correct |
27 ms |
3416 KB |
Output is correct |
170 |
Correct |
32 ms |
3924 KB |
Output is correct |
171 |
Correct |
33 ms |
4700 KB |
Output is correct |
172 |
Correct |
32 ms |
4184 KB |
Output is correct |
173 |
Correct |
31 ms |
3928 KB |
Output is correct |
174 |
Correct |
48 ms |
4440 KB |
Output is correct |
175 |
Correct |
79 ms |
7512 KB |
Output is correct |
176 |
Incorrect |
182 ms |
16400 KB |
Output isn't correct |
177 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 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 |
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 |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
12 ms |
1624 KB |
Output is correct |
20 |
Correct |
6 ms |
1488 KB |
Output is correct |
21 |
Correct |
14 ms |
6152 KB |
Output is correct |
22 |
Correct |
13 ms |
1884 KB |
Output is correct |
23 |
Correct |
12 ms |
1628 KB |
Output is correct |
24 |
Correct |
9 ms |
1884 KB |
Output is correct |
25 |
Correct |
9 ms |
1884 KB |
Output is correct |
26 |
Correct |
13 ms |
2396 KB |
Output is correct |
27 |
Correct |
13 ms |
1884 KB |
Output is correct |
28 |
Correct |
12 ms |
1884 KB |
Output is correct |
29 |
Correct |
32 ms |
3688 KB |
Output is correct |
30 |
Correct |
11 ms |
1624 KB |
Output is correct |
31 |
Correct |
35 ms |
13520 KB |
Output is correct |
32 |
Correct |
33 ms |
3676 KB |
Output is correct |
33 |
Correct |
30 ms |
3696 KB |
Output is correct |
34 |
Correct |
20 ms |
3932 KB |
Output is correct |
35 |
Correct |
23 ms |
3816 KB |
Output is correct |
36 |
Correct |
32 ms |
4700 KB |
Output is correct |
37 |
Correct |
32 ms |
4188 KB |
Output is correct |
38 |
Correct |
30 ms |
3672 KB |
Output is correct |
39 |
Correct |
345 ms |
31580 KB |
Output is correct |
40 |
Correct |
41 ms |
4180 KB |
Output is correct |
41 |
Correct |
25 ms |
4700 KB |
Output is correct |
42 |
Correct |
43 ms |
4956 KB |
Output is correct |
43 |
Correct |
42 ms |
5500 KB |
Output is correct |
44 |
Correct |
152 ms |
15988 KB |
Output is correct |
45 |
Correct |
166 ms |
17220 KB |
Output is correct |
46 |
Correct |
417 ms |
130984 KB |
Output is correct |
47 |
Correct |
345 ms |
32340 KB |
Output is correct |
48 |
Correct |
376 ms |
31736 KB |
Output is correct |
49 |
Correct |
202 ms |
35672 KB |
Output is correct |
50 |
Correct |
192 ms |
35676 KB |
Output is correct |
51 |
Correct |
344 ms |
35828 KB |
Output is correct |
52 |
Correct |
368 ms |
33228 KB |
Output is correct |
53 |
Correct |
351 ms |
32348 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 |
344 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 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 |
0 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 |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
360 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 |
344 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
600 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 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 |
1 ms |
476 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
348 KB |
Output is correct |
107 |
Correct |
1 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
348 KB |
Output is correct |
110 |
Correct |
10 ms |
1332 KB |
Output is correct |
111 |
Correct |
16 ms |
4956 KB |
Output is correct |
112 |
Correct |
14 ms |
5724 KB |
Output is correct |
113 |
Correct |
10 ms |
1884 KB |
Output is correct |
114 |
Correct |
12 ms |
2260 KB |
Output is correct |
115 |
Correct |
10 ms |
2652 KB |
Output is correct |
116 |
Correct |
11 ms |
1628 KB |
Output is correct |
117 |
Correct |
15 ms |
2396 KB |
Output is correct |
118 |
Correct |
14 ms |
1884 KB |
Output is correct |
119 |
Correct |
28 ms |
8412 KB |
Output is correct |
120 |
Correct |
34 ms |
13684 KB |
Output is correct |
121 |
Correct |
21 ms |
4188 KB |
Output is correct |
122 |
Correct |
24 ms |
4956 KB |
Output is correct |
123 |
Correct |
28 ms |
6072 KB |
Output is correct |
124 |
Correct |
120 ms |
37544 KB |
Output is correct |
125 |
Correct |
303 ms |
61736 KB |
Output is correct |
126 |
Correct |
444 ms |
130488 KB |
Output is correct |
127 |
Correct |
268 ms |
43496 KB |
Output is correct |
128 |
Correct |
335 ms |
46336 KB |
Output is correct |
129 |
Correct |
308 ms |
55804 KB |
Output is correct |
130 |
Correct |
258 ms |
40660 KB |
Output is correct |
131 |
Correct |
273 ms |
40400 KB |
Output is correct |
132 |
Correct |
12 ms |
1628 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
11 ms |
1116 KB |
Output is correct |
136 |
Correct |
6 ms |
1444 KB |
Output is correct |
137 |
Correct |
13 ms |
4780 KB |
Output is correct |
138 |
Correct |
16 ms |
5724 KB |
Output is correct |
139 |
Correct |
13 ms |
1884 KB |
Output is correct |
140 |
Correct |
14 ms |
1884 KB |
Output is correct |
141 |
Correct |
10 ms |
1880 KB |
Output is correct |
142 |
Correct |
11 ms |
2332 KB |
Output is correct |
143 |
Correct |
10 ms |
2652 KB |
Output is correct |
144 |
Correct |
8 ms |
1648 KB |
Output is correct |
145 |
Correct |
8 ms |
1884 KB |
Output is correct |
146 |
Correct |
10 ms |
1624 KB |
Output is correct |
147 |
Correct |
11 ms |
1712 KB |
Output is correct |
148 |
Correct |
10 ms |
1628 KB |
Output is correct |
149 |
Correct |
11 ms |
1628 KB |
Output is correct |
150 |
Correct |
10 ms |
1728 KB |
Output is correct |
151 |
Correct |
14 ms |
2396 KB |
Output is correct |
152 |
Correct |
13 ms |
2056 KB |
Output is correct |
153 |
Correct |
12 ms |
1884 KB |
Output is correct |
154 |
Correct |
30 ms |
3672 KB |
Output is correct |
155 |
Correct |
11 ms |
1628 KB |
Output is correct |
156 |
Correct |
29 ms |
8372 KB |
Output is correct |
157 |
Correct |
36 ms |
3160 KB |
Output is correct |
158 |
Correct |
36 ms |
13540 KB |
Output is correct |
159 |
Correct |
34 ms |
3828 KB |
Output is correct |
160 |
Correct |
30 ms |
3676 KB |
Output is correct |
161 |
Correct |
30 ms |
4360 KB |
Output is correct |
162 |
Correct |
25 ms |
4956 KB |
Output is correct |
163 |
Correct |
23 ms |
5920 KB |
Output is correct |
164 |
Correct |
20 ms |
3928 KB |
Output is correct |
165 |
Correct |
20 ms |
3932 KB |
Output is correct |
166 |
Correct |
25 ms |
3700 KB |
Output is correct |
167 |
Correct |
26 ms |
3420 KB |
Output is correct |
168 |
Correct |
26 ms |
3416 KB |
Output is correct |
169 |
Correct |
27 ms |
3416 KB |
Output is correct |
170 |
Correct |
32 ms |
3924 KB |
Output is correct |
171 |
Correct |
33 ms |
4700 KB |
Output is correct |
172 |
Correct |
32 ms |
4184 KB |
Output is correct |
173 |
Correct |
31 ms |
3928 KB |
Output is correct |
174 |
Correct |
48 ms |
4440 KB |
Output is correct |
175 |
Correct |
79 ms |
7512 KB |
Output is correct |
176 |
Incorrect |
182 ms |
16400 KB |
Output isn't correct |
177 |
Halted |
0 ms |
0 KB |
- |