# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
888229 |
2023-12-16T14:48:46 Z |
ace5 |
Maze (JOI23_ho_t3) |
C++17 |
|
2000 ms |
582944 KB |
#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int maxr = 3001;
const int maxc = 6000001;
set<int> r[maxr];
set<int> c[maxc];
vector<short> vis[maxr];
vector<int> d[maxr];
vector<bool> a[maxr];
deque<pair<int,int>> f;
int R,C,n;
int bfs(int si,int sj,int fi,int fj)
{
for(int i = 0;i < R;++i)
{
d[i].resize(C);
vis[i].resize(C);
for(int j = 0;j < C;++j)
{
d[i][j] = INF;
vis[i][j] = 0;
if(i != si || j != sj)
{
r[i].insert(j);
c[j].insert(i);
}
}
}
d[si][sj] = 0;
vis[si][sj] = 2;
f.push_back({si,sj});
while(f.size())
{
int i = f[0].first;
int j = f[0].second;
f.pop_front();
// cout << i << ' ' << j << ' ' << d[fi][fj] << ' ' << vis[5][0] << "\n";
if(vis[i][j] == 3)
continue;
vis[i][j] = 3;
if(i == fi && j == fj)
break;
if(i > 0 && a[i-1][j] == 0 && vis[i-1][j] < 2)
{
if(!vis[i-1][j])
{
r[i-1].erase(j);
c[j].erase(i-1);
}
vis[i-1][j] = 2;
d[i-1][j] = d[i][j];
f.push_front({i-1,j});
}
if(j > 0 && a[i][j-1] == 0 && vis[i][j-1] < 2)
{
if(!vis[i][j-1])
{
r[i].erase(j-1);
c[j-1].erase(i);
}
// if(i == 5 && j == 1)
// {
// cout << d[i][j] << ' ' << d[i][j-1] << "\n";
// }
vis[i][j-1] = 2;
d[i][j-1] = d[i][j];
f.push_front({i,j-1});
}
if(i < R-1 && a[i+1][j] == 0 && vis[i+1][j] < 2)
{
if(!vis[i+1][j])
{
r[i+1].erase(j);
c[j].erase(i+1);
}
vis[i+1][j] = 2;
d[i+1][j] = d[i][j];
f.push_front({i+1,j});
}
if(j < C-1 && a[i][j+1] == 0 && vis[i][j+1] < 2)
{
if(!vis[i][j+1])
{
r[i].erase(j+1);
c[j+1].erase(i);
}
vis[i][j+1] = 2;
d[i][j+1] = d[i][j];
f.push_front({i,j+1});
}
if(abs(i-fi) <= n && abs(j-fj) <= n && !vis[fi][fj])
{
r[fi].erase(fj);
c[fj].erase(fi);
//cout << i << ' ' << j << ' ' << d[i][j] << "!\n";
vis[fi][fj] = 1;
d[fi][fj] = d[i][j]+1;
f.push_back({fi,fj});
}
int indd = min(R-1,i+n);
int indu = max(0,i-n);
int indl = max(0,j-n);
int indr = min(C-1,j+n);
int indd2 = i+n-1;
int indu2 = i-n+1;
int indr2 = j+n-1;
int indl2 = j-n+1;
for(;;)
{
auto it = r[indd].lower_bound(indl2);
if(it != r[indd].end() && (*it) <= indr2)
{
int k = (*it);
vis[indd][k] = 1;
//cout << indd << ' ' << k << ' ' << d[i][j] << "!\n";
d[indd][k] = d[i][j]+1;
//cout << d[1][0] << ' ';
f.push_back({indd,k});
r[indd].erase(it);
c[(*it)].erase(indd);
}
else
break;
}
for(;;)
{
auto it = r[indu].lower_bound(indl2);
if(it != r[indu].end() && (*it) <= indr2)
{
int k = (*it);
vis[indu][k] = 1;
d[indu][k] = d[i][j]+1;
//cout << indu << ' ' << k << "!!\n";
f.push_back({indu,k});
r[indu].erase(it);
c[(*it)].erase(indu);
}
else
break;
}
for(;;)
{
auto it = c[indl].lower_bound(indu2);
if(it != c[indl].end() && (*it) <= indd2)
{
int k = (*it);
vis[k][indl] = 1;
d[k][indl] = d[i][j]+1;
//cout << k << ' ' << indl << "!!!\n";
f.push_back({k,indl});
c[indl].erase(it);
r[(*it)].erase(indl);
}
else
break;
}
for(;;)
{
auto it = c[indr].lower_bound(indu2);
if(it != c[indr].end() && (*it) <= indd2)
{
int k = (*it);
vis[k][indr] = 1;
d[k][indr] = d[i][j]+1;
//cout << k << ' ' << indr << "!!!!\n";
f.push_back({k,indr});
c[indr].erase(it);
r[(*it)].erase(indr);
}
else
break;
}
}
return d[fi][fj];
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> R >> C >> n;
int si,sj,fi,fj;
cin >> si >> sj >> fi >> fj;
si--;
sj--;
fi--;
fj--;
for(int i = 0;i < R;++i)
{
string s;
cin >> s;
a[i].resize(C);
for(int j =0;j < C;++j)
{
a[i][j] = (s[j] == '.' ? 0 : 1);
}
}
cout << bfs(si,sj,fi,fj);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
282640 KB |
Output is correct |
2 |
Correct |
54 ms |
282556 KB |
Output is correct |
3 |
Correct |
60 ms |
282728 KB |
Output is correct |
4 |
Correct |
54 ms |
282728 KB |
Output is correct |
5 |
Correct |
63 ms |
282708 KB |
Output is correct |
6 |
Correct |
55 ms |
282712 KB |
Output is correct |
7 |
Correct |
58 ms |
282700 KB |
Output is correct |
8 |
Correct |
54 ms |
282704 KB |
Output is correct |
9 |
Correct |
58 ms |
282388 KB |
Output is correct |
10 |
Correct |
55 ms |
282628 KB |
Output is correct |
11 |
Correct |
53 ms |
282412 KB |
Output is correct |
12 |
Correct |
55 ms |
282448 KB |
Output is correct |
13 |
Correct |
54 ms |
282448 KB |
Output is correct |
14 |
Correct |
55 ms |
282644 KB |
Output is correct |
15 |
Correct |
55 ms |
282640 KB |
Output is correct |
16 |
Correct |
54 ms |
282708 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
57 ms |
283152 KB |
Output is correct |
19 |
Correct |
77 ms |
288548 KB |
Output is correct |
20 |
Correct |
75 ms |
287184 KB |
Output is correct |
21 |
Correct |
79 ms |
288596 KB |
Output is correct |
22 |
Correct |
79 ms |
288596 KB |
Output is correct |
23 |
Correct |
75 ms |
288848 KB |
Output is correct |
24 |
Correct |
74 ms |
288592 KB |
Output is correct |
25 |
Correct |
75 ms |
288596 KB |
Output is correct |
26 |
Correct |
75 ms |
288644 KB |
Output is correct |
27 |
Correct |
73 ms |
288624 KB |
Output is correct |
28 |
Correct |
76 ms |
288596 KB |
Output is correct |
29 |
Correct |
115 ms |
297628 KB |
Output is correct |
30 |
Correct |
74 ms |
288592 KB |
Output is correct |
31 |
Correct |
102 ms |
297552 KB |
Output is correct |
32 |
Correct |
130 ms |
297808 KB |
Output is correct |
33 |
Correct |
128 ms |
297556 KB |
Output is correct |
34 |
Correct |
116 ms |
297636 KB |
Output is correct |
35 |
Correct |
112 ms |
297596 KB |
Output is correct |
36 |
Correct |
116 ms |
297552 KB |
Output is correct |
37 |
Correct |
123 ms |
297552 KB |
Output is correct |
38 |
Correct |
100 ms |
297556 KB |
Output is correct |
39 |
Correct |
879 ms |
432720 KB |
Output is correct |
40 |
Correct |
105 ms |
299508 KB |
Output is correct |
41 |
Correct |
139 ms |
300964 KB |
Output is correct |
42 |
Correct |
162 ms |
303956 KB |
Output is correct |
43 |
Correct |
143 ms |
306780 KB |
Output is correct |
44 |
Correct |
328 ms |
357036 KB |
Output is correct |
45 |
Correct |
347 ms |
362540 KB |
Output is correct |
46 |
Correct |
741 ms |
432584 KB |
Output is correct |
47 |
Correct |
967 ms |
432576 KB |
Output is correct |
48 |
Correct |
919 ms |
432764 KB |
Output is correct |
49 |
Correct |
683 ms |
432600 KB |
Output is correct |
50 |
Correct |
724 ms |
432420 KB |
Output is correct |
51 |
Correct |
888 ms |
432796 KB |
Output is correct |
52 |
Correct |
851 ms |
432576 KB |
Output is correct |
53 |
Correct |
1000 ms |
432780 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
282448 KB |
Output is correct |
2 |
Correct |
56 ms |
282448 KB |
Output is correct |
3 |
Correct |
55 ms |
282452 KB |
Output is correct |
4 |
Correct |
54 ms |
282632 KB |
Output is correct |
5 |
Correct |
55 ms |
282584 KB |
Output is correct |
6 |
Correct |
60 ms |
282548 KB |
Output is correct |
7 |
Correct |
54 ms |
282448 KB |
Output is correct |
8 |
Correct |
57 ms |
282652 KB |
Output is correct |
9 |
Correct |
55 ms |
282704 KB |
Output is correct |
10 |
Correct |
55 ms |
282708 KB |
Output is correct |
11 |
Correct |
56 ms |
282596 KB |
Output is correct |
12 |
Correct |
55 ms |
282708 KB |
Output is correct |
13 |
Correct |
54 ms |
282512 KB |
Output is correct |
14 |
Correct |
56 ms |
282728 KB |
Output is correct |
15 |
Correct |
57 ms |
282728 KB |
Output is correct |
16 |
Correct |
54 ms |
282704 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
54 ms |
282400 KB |
Output is correct |
19 |
Correct |
55 ms |
282576 KB |
Output is correct |
20 |
Correct |
55 ms |
282656 KB |
Output is correct |
21 |
Correct |
58 ms |
282460 KB |
Output is correct |
22 |
Correct |
55 ms |
282452 KB |
Output is correct |
23 |
Correct |
54 ms |
282448 KB |
Output is correct |
24 |
Correct |
57 ms |
282632 KB |
Output is correct |
25 |
Correct |
55 ms |
282596 KB |
Output is correct |
26 |
Correct |
55 ms |
282528 KB |
Output is correct |
27 |
Correct |
54 ms |
282448 KB |
Output is correct |
28 |
Correct |
54 ms |
282648 KB |
Output is correct |
29 |
Correct |
59 ms |
282636 KB |
Output is correct |
30 |
Correct |
57 ms |
282728 KB |
Output is correct |
31 |
Correct |
54 ms |
282708 KB |
Output is correct |
32 |
Correct |
55 ms |
282736 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
282452 KB |
Output is correct |
2 |
Correct |
59 ms |
282632 KB |
Output is correct |
3 |
Correct |
55 ms |
282632 KB |
Output is correct |
4 |
Correct |
57 ms |
282708 KB |
Output is correct |
5 |
Correct |
54 ms |
282476 KB |
Output is correct |
6 |
Correct |
53 ms |
282644 KB |
Output is correct |
7 |
Correct |
55 ms |
282700 KB |
Output is correct |
8 |
Correct |
55 ms |
282728 KB |
Output is correct |
9 |
Correct |
57 ms |
282512 KB |
Output is correct |
10 |
Correct |
56 ms |
282708 KB |
Output is correct |
11 |
Correct |
54 ms |
282708 KB |
Output is correct |
12 |
Correct |
53 ms |
282500 KB |
Output is correct |
13 |
Correct |
54 ms |
282448 KB |
Output is correct |
14 |
Correct |
54 ms |
282452 KB |
Output is correct |
15 |
Correct |
55 ms |
282452 KB |
Output is correct |
16 |
Correct |
54 ms |
282448 KB |
Output is correct |
17 |
Correct |
55 ms |
282448 KB |
Output is correct |
18 |
Correct |
56 ms |
282452 KB |
Output is correct |
19 |
Correct |
54 ms |
282452 KB |
Output is correct |
20 |
Correct |
54 ms |
282448 KB |
Output is correct |
21 |
Correct |
55 ms |
282704 KB |
Output is correct |
22 |
Correct |
54 ms |
282704 KB |
Output is correct |
23 |
Correct |
54 ms |
282708 KB |
Output is correct |
24 |
Correct |
54 ms |
282848 KB |
Output is correct |
25 |
Correct |
65 ms |
286432 KB |
Output is correct |
26 |
Correct |
71 ms |
287828 KB |
Output is correct |
27 |
Correct |
73 ms |
288592 KB |
Output is correct |
28 |
Correct |
74 ms |
288648 KB |
Output is correct |
29 |
Correct |
74 ms |
288596 KB |
Output is correct |
30 |
Correct |
71 ms |
288756 KB |
Output is correct |
31 |
Correct |
75 ms |
288688 KB |
Output is correct |
32 |
Correct |
73 ms |
288592 KB |
Output is correct |
33 |
Correct |
73 ms |
288628 KB |
Output is correct |
34 |
Correct |
96 ms |
294596 KB |
Output is correct |
35 |
Correct |
105 ms |
297552 KB |
Output is correct |
36 |
Correct |
110 ms |
297652 KB |
Output is correct |
37 |
Correct |
103 ms |
297632 KB |
Output is correct |
38 |
Correct |
102 ms |
297636 KB |
Output is correct |
39 |
Correct |
241 ms |
326156 KB |
Output is correct |
40 |
Correct |
628 ms |
409428 KB |
Output is correct |
41 |
Correct |
673 ms |
432684 KB |
Output is correct |
42 |
Correct |
660 ms |
432468 KB |
Output is correct |
43 |
Correct |
564 ms |
432464 KB |
Output is correct |
44 |
Correct |
581 ms |
432580 KB |
Output is correct |
45 |
Correct |
873 ms |
432448 KB |
Output is correct |
46 |
Correct |
768 ms |
432464 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
282448 KB |
Output is correct |
2 |
Correct |
56 ms |
282448 KB |
Output is correct |
3 |
Correct |
55 ms |
282452 KB |
Output is correct |
4 |
Correct |
54 ms |
282632 KB |
Output is correct |
5 |
Correct |
55 ms |
282584 KB |
Output is correct |
6 |
Correct |
60 ms |
282548 KB |
Output is correct |
7 |
Correct |
54 ms |
282448 KB |
Output is correct |
8 |
Correct |
57 ms |
282652 KB |
Output is correct |
9 |
Correct |
55 ms |
282704 KB |
Output is correct |
10 |
Correct |
55 ms |
282708 KB |
Output is correct |
11 |
Correct |
56 ms |
282596 KB |
Output is correct |
12 |
Correct |
55 ms |
282708 KB |
Output is correct |
13 |
Correct |
54 ms |
282512 KB |
Output is correct |
14 |
Correct |
56 ms |
282728 KB |
Output is correct |
15 |
Correct |
57 ms |
282728 KB |
Output is correct |
16 |
Correct |
54 ms |
282704 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
54 ms |
282400 KB |
Output is correct |
19 |
Correct |
55 ms |
282576 KB |
Output is correct |
20 |
Correct |
55 ms |
282656 KB |
Output is correct |
21 |
Correct |
58 ms |
282460 KB |
Output is correct |
22 |
Correct |
55 ms |
282452 KB |
Output is correct |
23 |
Correct |
54 ms |
282448 KB |
Output is correct |
24 |
Correct |
57 ms |
282632 KB |
Output is correct |
25 |
Correct |
55 ms |
282596 KB |
Output is correct |
26 |
Correct |
55 ms |
282528 KB |
Output is correct |
27 |
Correct |
54 ms |
282448 KB |
Output is correct |
28 |
Correct |
54 ms |
282648 KB |
Output is correct |
29 |
Correct |
59 ms |
282636 KB |
Output is correct |
30 |
Correct |
57 ms |
282728 KB |
Output is correct |
31 |
Correct |
54 ms |
282708 KB |
Output is correct |
32 |
Correct |
55 ms |
282736 KB |
Output is correct |
33 |
Correct |
82 ms |
288848 KB |
Output is correct |
34 |
Correct |
55 ms |
282772 KB |
Output is correct |
35 |
Correct |
55 ms |
283076 KB |
Output is correct |
36 |
Correct |
66 ms |
286292 KB |
Output is correct |
37 |
Correct |
69 ms |
287056 KB |
Output is correct |
38 |
Correct |
74 ms |
288012 KB |
Output is correct |
39 |
Correct |
75 ms |
288592 KB |
Output is correct |
40 |
Correct |
85 ms |
288628 KB |
Output is correct |
41 |
Correct |
75 ms |
288596 KB |
Output is correct |
42 |
Correct |
74 ms |
288536 KB |
Output is correct |
43 |
Correct |
72 ms |
288588 KB |
Output is correct |
44 |
Correct |
73 ms |
288628 KB |
Output is correct |
45 |
Correct |
76 ms |
288580 KB |
Output is correct |
46 |
Correct |
74 ms |
288596 KB |
Output is correct |
47 |
Correct |
74 ms |
288592 KB |
Output is correct |
48 |
Correct |
74 ms |
288596 KB |
Output is correct |
49 |
Correct |
71 ms |
288536 KB |
Output is correct |
50 |
Correct |
72 ms |
288596 KB |
Output is correct |
51 |
Correct |
80 ms |
288664 KB |
Output is correct |
52 |
Correct |
74 ms |
288488 KB |
Output is correct |
53 |
Correct |
75 ms |
288592 KB |
Output is correct |
54 |
Correct |
76 ms |
288580 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
282448 KB |
Output is correct |
2 |
Correct |
56 ms |
282448 KB |
Output is correct |
3 |
Correct |
55 ms |
282452 KB |
Output is correct |
4 |
Correct |
54 ms |
282632 KB |
Output is correct |
5 |
Correct |
55 ms |
282584 KB |
Output is correct |
6 |
Correct |
60 ms |
282548 KB |
Output is correct |
7 |
Correct |
54 ms |
282448 KB |
Output is correct |
8 |
Correct |
57 ms |
282652 KB |
Output is correct |
9 |
Correct |
55 ms |
282704 KB |
Output is correct |
10 |
Correct |
55 ms |
282708 KB |
Output is correct |
11 |
Correct |
56 ms |
282596 KB |
Output is correct |
12 |
Correct |
55 ms |
282708 KB |
Output is correct |
13 |
Correct |
54 ms |
282512 KB |
Output is correct |
14 |
Correct |
56 ms |
282728 KB |
Output is correct |
15 |
Correct |
57 ms |
282728 KB |
Output is correct |
16 |
Correct |
54 ms |
282704 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
54 ms |
282400 KB |
Output is correct |
19 |
Correct |
55 ms |
282576 KB |
Output is correct |
20 |
Correct |
55 ms |
282656 KB |
Output is correct |
21 |
Correct |
58 ms |
282460 KB |
Output is correct |
22 |
Correct |
55 ms |
282452 KB |
Output is correct |
23 |
Correct |
54 ms |
282448 KB |
Output is correct |
24 |
Correct |
57 ms |
282632 KB |
Output is correct |
25 |
Correct |
55 ms |
282596 KB |
Output is correct |
26 |
Correct |
55 ms |
282528 KB |
Output is correct |
27 |
Correct |
54 ms |
282448 KB |
Output is correct |
28 |
Correct |
54 ms |
282648 KB |
Output is correct |
29 |
Correct |
59 ms |
282636 KB |
Output is correct |
30 |
Correct |
57 ms |
282728 KB |
Output is correct |
31 |
Correct |
54 ms |
282708 KB |
Output is correct |
32 |
Correct |
55 ms |
282736 KB |
Output is correct |
33 |
Correct |
82 ms |
288848 KB |
Output is correct |
34 |
Correct |
55 ms |
282772 KB |
Output is correct |
35 |
Correct |
55 ms |
283076 KB |
Output is correct |
36 |
Correct |
66 ms |
286292 KB |
Output is correct |
37 |
Correct |
69 ms |
287056 KB |
Output is correct |
38 |
Correct |
74 ms |
288012 KB |
Output is correct |
39 |
Correct |
75 ms |
288592 KB |
Output is correct |
40 |
Correct |
85 ms |
288628 KB |
Output is correct |
41 |
Correct |
75 ms |
288596 KB |
Output is correct |
42 |
Correct |
74 ms |
288536 KB |
Output is correct |
43 |
Correct |
72 ms |
288588 KB |
Output is correct |
44 |
Correct |
73 ms |
288628 KB |
Output is correct |
45 |
Correct |
76 ms |
288580 KB |
Output is correct |
46 |
Correct |
74 ms |
288596 KB |
Output is correct |
47 |
Correct |
74 ms |
288592 KB |
Output is correct |
48 |
Correct |
74 ms |
288596 KB |
Output is correct |
49 |
Correct |
71 ms |
288536 KB |
Output is correct |
50 |
Correct |
72 ms |
288596 KB |
Output is correct |
51 |
Correct |
80 ms |
288664 KB |
Output is correct |
52 |
Correct |
74 ms |
288488 KB |
Output is correct |
53 |
Correct |
75 ms |
288592 KB |
Output is correct |
54 |
Correct |
76 ms |
288580 KB |
Output is correct |
55 |
Correct |
117 ms |
297628 KB |
Output is correct |
56 |
Correct |
85 ms |
288764 KB |
Output is correct |
57 |
Correct |
100 ms |
294684 KB |
Output is correct |
58 |
Correct |
115 ms |
296272 KB |
Output is correct |
59 |
Correct |
108 ms |
297648 KB |
Output is correct |
60 |
Correct |
124 ms |
297404 KB |
Output is correct |
61 |
Correct |
121 ms |
297552 KB |
Output is correct |
62 |
Correct |
107 ms |
297504 KB |
Output is correct |
63 |
Correct |
108 ms |
297552 KB |
Output is correct |
64 |
Correct |
103 ms |
297592 KB |
Output is correct |
65 |
Correct |
117 ms |
297544 KB |
Output is correct |
66 |
Correct |
112 ms |
297428 KB |
Output is correct |
67 |
Correct |
114 ms |
297420 KB |
Output is correct |
68 |
Correct |
102 ms |
297556 KB |
Output is correct |
69 |
Correct |
107 ms |
297656 KB |
Output is correct |
70 |
Correct |
108 ms |
297556 KB |
Output is correct |
71 |
Correct |
104 ms |
297560 KB |
Output is correct |
72 |
Correct |
116 ms |
297556 KB |
Output is correct |
73 |
Correct |
120 ms |
297652 KB |
Output is correct |
74 |
Correct |
102 ms |
297396 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
282640 KB |
Output is correct |
2 |
Correct |
54 ms |
282556 KB |
Output is correct |
3 |
Correct |
60 ms |
282728 KB |
Output is correct |
4 |
Correct |
54 ms |
282728 KB |
Output is correct |
5 |
Correct |
63 ms |
282708 KB |
Output is correct |
6 |
Correct |
55 ms |
282712 KB |
Output is correct |
7 |
Correct |
58 ms |
282700 KB |
Output is correct |
8 |
Correct |
54 ms |
282704 KB |
Output is correct |
9 |
Correct |
58 ms |
282388 KB |
Output is correct |
10 |
Correct |
55 ms |
282628 KB |
Output is correct |
11 |
Correct |
53 ms |
282412 KB |
Output is correct |
12 |
Correct |
55 ms |
282448 KB |
Output is correct |
13 |
Correct |
54 ms |
282448 KB |
Output is correct |
14 |
Correct |
55 ms |
282644 KB |
Output is correct |
15 |
Correct |
55 ms |
282640 KB |
Output is correct |
16 |
Correct |
54 ms |
282708 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
57 ms |
283152 KB |
Output is correct |
19 |
Correct |
77 ms |
288548 KB |
Output is correct |
20 |
Correct |
75 ms |
287184 KB |
Output is correct |
21 |
Correct |
79 ms |
288596 KB |
Output is correct |
22 |
Correct |
79 ms |
288596 KB |
Output is correct |
23 |
Correct |
75 ms |
288848 KB |
Output is correct |
24 |
Correct |
74 ms |
288592 KB |
Output is correct |
25 |
Correct |
75 ms |
288596 KB |
Output is correct |
26 |
Correct |
75 ms |
288644 KB |
Output is correct |
27 |
Correct |
73 ms |
288624 KB |
Output is correct |
28 |
Correct |
76 ms |
288596 KB |
Output is correct |
29 |
Correct |
115 ms |
297628 KB |
Output is correct |
30 |
Correct |
74 ms |
288592 KB |
Output is correct |
31 |
Correct |
102 ms |
297552 KB |
Output is correct |
32 |
Correct |
130 ms |
297808 KB |
Output is correct |
33 |
Correct |
128 ms |
297556 KB |
Output is correct |
34 |
Correct |
116 ms |
297636 KB |
Output is correct |
35 |
Correct |
112 ms |
297596 KB |
Output is correct |
36 |
Correct |
116 ms |
297552 KB |
Output is correct |
37 |
Correct |
123 ms |
297552 KB |
Output is correct |
38 |
Correct |
100 ms |
297556 KB |
Output is correct |
39 |
Correct |
879 ms |
432720 KB |
Output is correct |
40 |
Correct |
105 ms |
299508 KB |
Output is correct |
41 |
Correct |
139 ms |
300964 KB |
Output is correct |
42 |
Correct |
162 ms |
303956 KB |
Output is correct |
43 |
Correct |
143 ms |
306780 KB |
Output is correct |
44 |
Correct |
328 ms |
357036 KB |
Output is correct |
45 |
Correct |
347 ms |
362540 KB |
Output is correct |
46 |
Correct |
741 ms |
432584 KB |
Output is correct |
47 |
Correct |
967 ms |
432576 KB |
Output is correct |
48 |
Correct |
919 ms |
432764 KB |
Output is correct |
49 |
Correct |
683 ms |
432600 KB |
Output is correct |
50 |
Correct |
724 ms |
432420 KB |
Output is correct |
51 |
Correct |
888 ms |
432796 KB |
Output is correct |
52 |
Correct |
851 ms |
432576 KB |
Output is correct |
53 |
Correct |
1000 ms |
432780 KB |
Output is correct |
54 |
Correct |
56 ms |
282448 KB |
Output is correct |
55 |
Correct |
56 ms |
282448 KB |
Output is correct |
56 |
Correct |
55 ms |
282452 KB |
Output is correct |
57 |
Correct |
54 ms |
282632 KB |
Output is correct |
58 |
Correct |
55 ms |
282584 KB |
Output is correct |
59 |
Correct |
60 ms |
282548 KB |
Output is correct |
60 |
Correct |
54 ms |
282448 KB |
Output is correct |
61 |
Correct |
57 ms |
282652 KB |
Output is correct |
62 |
Correct |
55 ms |
282704 KB |
Output is correct |
63 |
Correct |
55 ms |
282708 KB |
Output is correct |
64 |
Correct |
56 ms |
282596 KB |
Output is correct |
65 |
Correct |
55 ms |
282708 KB |
Output is correct |
66 |
Correct |
54 ms |
282512 KB |
Output is correct |
67 |
Correct |
56 ms |
282728 KB |
Output is correct |
68 |
Correct |
57 ms |
282728 KB |
Output is correct |
69 |
Correct |
54 ms |
282704 KB |
Output is correct |
70 |
Correct |
55 ms |
282708 KB |
Output is correct |
71 |
Correct |
54 ms |
282400 KB |
Output is correct |
72 |
Correct |
55 ms |
282576 KB |
Output is correct |
73 |
Correct |
55 ms |
282656 KB |
Output is correct |
74 |
Correct |
58 ms |
282460 KB |
Output is correct |
75 |
Correct |
55 ms |
282452 KB |
Output is correct |
76 |
Correct |
54 ms |
282448 KB |
Output is correct |
77 |
Correct |
57 ms |
282632 KB |
Output is correct |
78 |
Correct |
55 ms |
282596 KB |
Output is correct |
79 |
Correct |
55 ms |
282528 KB |
Output is correct |
80 |
Correct |
54 ms |
282448 KB |
Output is correct |
81 |
Correct |
54 ms |
282648 KB |
Output is correct |
82 |
Correct |
59 ms |
282636 KB |
Output is correct |
83 |
Correct |
57 ms |
282728 KB |
Output is correct |
84 |
Correct |
54 ms |
282708 KB |
Output is correct |
85 |
Correct |
55 ms |
282736 KB |
Output is correct |
86 |
Correct |
54 ms |
282452 KB |
Output is correct |
87 |
Correct |
59 ms |
282632 KB |
Output is correct |
88 |
Correct |
55 ms |
282632 KB |
Output is correct |
89 |
Correct |
57 ms |
282708 KB |
Output is correct |
90 |
Correct |
54 ms |
282476 KB |
Output is correct |
91 |
Correct |
53 ms |
282644 KB |
Output is correct |
92 |
Correct |
55 ms |
282700 KB |
Output is correct |
93 |
Correct |
55 ms |
282728 KB |
Output is correct |
94 |
Correct |
57 ms |
282512 KB |
Output is correct |
95 |
Correct |
56 ms |
282708 KB |
Output is correct |
96 |
Correct |
54 ms |
282708 KB |
Output is correct |
97 |
Correct |
53 ms |
282500 KB |
Output is correct |
98 |
Correct |
54 ms |
282448 KB |
Output is correct |
99 |
Correct |
54 ms |
282452 KB |
Output is correct |
100 |
Correct |
55 ms |
282452 KB |
Output is correct |
101 |
Correct |
54 ms |
282448 KB |
Output is correct |
102 |
Correct |
55 ms |
282448 KB |
Output is correct |
103 |
Correct |
56 ms |
282452 KB |
Output is correct |
104 |
Correct |
54 ms |
282452 KB |
Output is correct |
105 |
Correct |
54 ms |
282448 KB |
Output is correct |
106 |
Correct |
55 ms |
282704 KB |
Output is correct |
107 |
Correct |
54 ms |
282704 KB |
Output is correct |
108 |
Correct |
54 ms |
282708 KB |
Output is correct |
109 |
Correct |
54 ms |
282848 KB |
Output is correct |
110 |
Correct |
65 ms |
286432 KB |
Output is correct |
111 |
Correct |
71 ms |
287828 KB |
Output is correct |
112 |
Correct |
73 ms |
288592 KB |
Output is correct |
113 |
Correct |
74 ms |
288648 KB |
Output is correct |
114 |
Correct |
74 ms |
288596 KB |
Output is correct |
115 |
Correct |
71 ms |
288756 KB |
Output is correct |
116 |
Correct |
75 ms |
288688 KB |
Output is correct |
117 |
Correct |
73 ms |
288592 KB |
Output is correct |
118 |
Correct |
73 ms |
288628 KB |
Output is correct |
119 |
Correct |
96 ms |
294596 KB |
Output is correct |
120 |
Correct |
105 ms |
297552 KB |
Output is correct |
121 |
Correct |
110 ms |
297652 KB |
Output is correct |
122 |
Correct |
103 ms |
297632 KB |
Output is correct |
123 |
Correct |
102 ms |
297636 KB |
Output is correct |
124 |
Correct |
241 ms |
326156 KB |
Output is correct |
125 |
Correct |
628 ms |
409428 KB |
Output is correct |
126 |
Correct |
673 ms |
432684 KB |
Output is correct |
127 |
Correct |
660 ms |
432468 KB |
Output is correct |
128 |
Correct |
564 ms |
432464 KB |
Output is correct |
129 |
Correct |
581 ms |
432580 KB |
Output is correct |
130 |
Correct |
873 ms |
432448 KB |
Output is correct |
131 |
Correct |
768 ms |
432464 KB |
Output is correct |
132 |
Correct |
82 ms |
288848 KB |
Output is correct |
133 |
Correct |
55 ms |
282772 KB |
Output is correct |
134 |
Correct |
55 ms |
283076 KB |
Output is correct |
135 |
Correct |
66 ms |
286292 KB |
Output is correct |
136 |
Correct |
69 ms |
287056 KB |
Output is correct |
137 |
Correct |
74 ms |
288012 KB |
Output is correct |
138 |
Correct |
75 ms |
288592 KB |
Output is correct |
139 |
Correct |
85 ms |
288628 KB |
Output is correct |
140 |
Correct |
75 ms |
288596 KB |
Output is correct |
141 |
Correct |
74 ms |
288536 KB |
Output is correct |
142 |
Correct |
72 ms |
288588 KB |
Output is correct |
143 |
Correct |
73 ms |
288628 KB |
Output is correct |
144 |
Correct |
76 ms |
288580 KB |
Output is correct |
145 |
Correct |
74 ms |
288596 KB |
Output is correct |
146 |
Correct |
74 ms |
288592 KB |
Output is correct |
147 |
Correct |
74 ms |
288596 KB |
Output is correct |
148 |
Correct |
71 ms |
288536 KB |
Output is correct |
149 |
Correct |
72 ms |
288596 KB |
Output is correct |
150 |
Correct |
80 ms |
288664 KB |
Output is correct |
151 |
Correct |
74 ms |
288488 KB |
Output is correct |
152 |
Correct |
75 ms |
288592 KB |
Output is correct |
153 |
Correct |
76 ms |
288580 KB |
Output is correct |
154 |
Correct |
117 ms |
297628 KB |
Output is correct |
155 |
Correct |
85 ms |
288764 KB |
Output is correct |
156 |
Correct |
100 ms |
294684 KB |
Output is correct |
157 |
Correct |
115 ms |
296272 KB |
Output is correct |
158 |
Correct |
108 ms |
297648 KB |
Output is correct |
159 |
Correct |
124 ms |
297404 KB |
Output is correct |
160 |
Correct |
121 ms |
297552 KB |
Output is correct |
161 |
Correct |
107 ms |
297504 KB |
Output is correct |
162 |
Correct |
108 ms |
297552 KB |
Output is correct |
163 |
Correct |
103 ms |
297592 KB |
Output is correct |
164 |
Correct |
117 ms |
297544 KB |
Output is correct |
165 |
Correct |
112 ms |
297428 KB |
Output is correct |
166 |
Correct |
114 ms |
297420 KB |
Output is correct |
167 |
Correct |
102 ms |
297556 KB |
Output is correct |
168 |
Correct |
107 ms |
297656 KB |
Output is correct |
169 |
Correct |
108 ms |
297556 KB |
Output is correct |
170 |
Correct |
104 ms |
297560 KB |
Output is correct |
171 |
Correct |
116 ms |
297556 KB |
Output is correct |
172 |
Correct |
120 ms |
297652 KB |
Output is correct |
173 |
Correct |
102 ms |
297396 KB |
Output is correct |
174 |
Correct |
109 ms |
302008 KB |
Output is correct |
175 |
Correct |
201 ms |
316156 KB |
Output is correct |
176 |
Correct |
316 ms |
358700 KB |
Output is correct |
177 |
Correct |
514 ms |
382780 KB |
Output is correct |
178 |
Correct |
499 ms |
413288 KB |
Output is correct |
179 |
Correct |
748 ms |
432724 KB |
Output is correct |
180 |
Correct |
896 ms |
432552 KB |
Output is correct |
181 |
Correct |
956 ms |
432724 KB |
Output is correct |
182 |
Correct |
983 ms |
432464 KB |
Output is correct |
183 |
Correct |
779 ms |
432752 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
282640 KB |
Output is correct |
2 |
Correct |
54 ms |
282556 KB |
Output is correct |
3 |
Correct |
60 ms |
282728 KB |
Output is correct |
4 |
Correct |
54 ms |
282728 KB |
Output is correct |
5 |
Correct |
63 ms |
282708 KB |
Output is correct |
6 |
Correct |
55 ms |
282712 KB |
Output is correct |
7 |
Correct |
58 ms |
282700 KB |
Output is correct |
8 |
Correct |
54 ms |
282704 KB |
Output is correct |
9 |
Correct |
58 ms |
282388 KB |
Output is correct |
10 |
Correct |
55 ms |
282628 KB |
Output is correct |
11 |
Correct |
53 ms |
282412 KB |
Output is correct |
12 |
Correct |
55 ms |
282448 KB |
Output is correct |
13 |
Correct |
54 ms |
282448 KB |
Output is correct |
14 |
Correct |
55 ms |
282644 KB |
Output is correct |
15 |
Correct |
55 ms |
282640 KB |
Output is correct |
16 |
Correct |
54 ms |
282708 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
57 ms |
283152 KB |
Output is correct |
19 |
Correct |
77 ms |
288548 KB |
Output is correct |
20 |
Correct |
75 ms |
287184 KB |
Output is correct |
21 |
Correct |
79 ms |
288596 KB |
Output is correct |
22 |
Correct |
79 ms |
288596 KB |
Output is correct |
23 |
Correct |
75 ms |
288848 KB |
Output is correct |
24 |
Correct |
74 ms |
288592 KB |
Output is correct |
25 |
Correct |
75 ms |
288596 KB |
Output is correct |
26 |
Correct |
75 ms |
288644 KB |
Output is correct |
27 |
Correct |
73 ms |
288624 KB |
Output is correct |
28 |
Correct |
76 ms |
288596 KB |
Output is correct |
29 |
Correct |
115 ms |
297628 KB |
Output is correct |
30 |
Correct |
74 ms |
288592 KB |
Output is correct |
31 |
Correct |
102 ms |
297552 KB |
Output is correct |
32 |
Correct |
130 ms |
297808 KB |
Output is correct |
33 |
Correct |
128 ms |
297556 KB |
Output is correct |
34 |
Correct |
116 ms |
297636 KB |
Output is correct |
35 |
Correct |
112 ms |
297596 KB |
Output is correct |
36 |
Correct |
116 ms |
297552 KB |
Output is correct |
37 |
Correct |
123 ms |
297552 KB |
Output is correct |
38 |
Correct |
100 ms |
297556 KB |
Output is correct |
39 |
Correct |
879 ms |
432720 KB |
Output is correct |
40 |
Correct |
105 ms |
299508 KB |
Output is correct |
41 |
Correct |
139 ms |
300964 KB |
Output is correct |
42 |
Correct |
162 ms |
303956 KB |
Output is correct |
43 |
Correct |
143 ms |
306780 KB |
Output is correct |
44 |
Correct |
328 ms |
357036 KB |
Output is correct |
45 |
Correct |
347 ms |
362540 KB |
Output is correct |
46 |
Correct |
741 ms |
432584 KB |
Output is correct |
47 |
Correct |
967 ms |
432576 KB |
Output is correct |
48 |
Correct |
919 ms |
432764 KB |
Output is correct |
49 |
Correct |
683 ms |
432600 KB |
Output is correct |
50 |
Correct |
724 ms |
432420 KB |
Output is correct |
51 |
Correct |
888 ms |
432796 KB |
Output is correct |
52 |
Correct |
851 ms |
432576 KB |
Output is correct |
53 |
Correct |
1000 ms |
432780 KB |
Output is correct |
54 |
Correct |
56 ms |
282448 KB |
Output is correct |
55 |
Correct |
56 ms |
282448 KB |
Output is correct |
56 |
Correct |
55 ms |
282452 KB |
Output is correct |
57 |
Correct |
54 ms |
282632 KB |
Output is correct |
58 |
Correct |
55 ms |
282584 KB |
Output is correct |
59 |
Correct |
60 ms |
282548 KB |
Output is correct |
60 |
Correct |
54 ms |
282448 KB |
Output is correct |
61 |
Correct |
57 ms |
282652 KB |
Output is correct |
62 |
Correct |
55 ms |
282704 KB |
Output is correct |
63 |
Correct |
55 ms |
282708 KB |
Output is correct |
64 |
Correct |
56 ms |
282596 KB |
Output is correct |
65 |
Correct |
55 ms |
282708 KB |
Output is correct |
66 |
Correct |
54 ms |
282512 KB |
Output is correct |
67 |
Correct |
56 ms |
282728 KB |
Output is correct |
68 |
Correct |
57 ms |
282728 KB |
Output is correct |
69 |
Correct |
54 ms |
282704 KB |
Output is correct |
70 |
Correct |
55 ms |
282708 KB |
Output is correct |
71 |
Correct |
54 ms |
282400 KB |
Output is correct |
72 |
Correct |
55 ms |
282576 KB |
Output is correct |
73 |
Correct |
55 ms |
282656 KB |
Output is correct |
74 |
Correct |
58 ms |
282460 KB |
Output is correct |
75 |
Correct |
55 ms |
282452 KB |
Output is correct |
76 |
Correct |
54 ms |
282448 KB |
Output is correct |
77 |
Correct |
57 ms |
282632 KB |
Output is correct |
78 |
Correct |
55 ms |
282596 KB |
Output is correct |
79 |
Correct |
55 ms |
282528 KB |
Output is correct |
80 |
Correct |
54 ms |
282448 KB |
Output is correct |
81 |
Correct |
54 ms |
282648 KB |
Output is correct |
82 |
Correct |
59 ms |
282636 KB |
Output is correct |
83 |
Correct |
57 ms |
282728 KB |
Output is correct |
84 |
Correct |
54 ms |
282708 KB |
Output is correct |
85 |
Correct |
55 ms |
282736 KB |
Output is correct |
86 |
Correct |
54 ms |
282452 KB |
Output is correct |
87 |
Correct |
59 ms |
282632 KB |
Output is correct |
88 |
Correct |
55 ms |
282632 KB |
Output is correct |
89 |
Correct |
57 ms |
282708 KB |
Output is correct |
90 |
Correct |
54 ms |
282476 KB |
Output is correct |
91 |
Correct |
53 ms |
282644 KB |
Output is correct |
92 |
Correct |
55 ms |
282700 KB |
Output is correct |
93 |
Correct |
55 ms |
282728 KB |
Output is correct |
94 |
Correct |
57 ms |
282512 KB |
Output is correct |
95 |
Correct |
56 ms |
282708 KB |
Output is correct |
96 |
Correct |
54 ms |
282708 KB |
Output is correct |
97 |
Correct |
53 ms |
282500 KB |
Output is correct |
98 |
Correct |
54 ms |
282448 KB |
Output is correct |
99 |
Correct |
54 ms |
282452 KB |
Output is correct |
100 |
Correct |
55 ms |
282452 KB |
Output is correct |
101 |
Correct |
54 ms |
282448 KB |
Output is correct |
102 |
Correct |
55 ms |
282448 KB |
Output is correct |
103 |
Correct |
56 ms |
282452 KB |
Output is correct |
104 |
Correct |
54 ms |
282452 KB |
Output is correct |
105 |
Correct |
54 ms |
282448 KB |
Output is correct |
106 |
Correct |
55 ms |
282704 KB |
Output is correct |
107 |
Correct |
54 ms |
282704 KB |
Output is correct |
108 |
Correct |
54 ms |
282708 KB |
Output is correct |
109 |
Correct |
54 ms |
282848 KB |
Output is correct |
110 |
Correct |
65 ms |
286432 KB |
Output is correct |
111 |
Correct |
71 ms |
287828 KB |
Output is correct |
112 |
Correct |
73 ms |
288592 KB |
Output is correct |
113 |
Correct |
74 ms |
288648 KB |
Output is correct |
114 |
Correct |
74 ms |
288596 KB |
Output is correct |
115 |
Correct |
71 ms |
288756 KB |
Output is correct |
116 |
Correct |
75 ms |
288688 KB |
Output is correct |
117 |
Correct |
73 ms |
288592 KB |
Output is correct |
118 |
Correct |
73 ms |
288628 KB |
Output is correct |
119 |
Correct |
96 ms |
294596 KB |
Output is correct |
120 |
Correct |
105 ms |
297552 KB |
Output is correct |
121 |
Correct |
110 ms |
297652 KB |
Output is correct |
122 |
Correct |
103 ms |
297632 KB |
Output is correct |
123 |
Correct |
102 ms |
297636 KB |
Output is correct |
124 |
Correct |
241 ms |
326156 KB |
Output is correct |
125 |
Correct |
628 ms |
409428 KB |
Output is correct |
126 |
Correct |
673 ms |
432684 KB |
Output is correct |
127 |
Correct |
660 ms |
432468 KB |
Output is correct |
128 |
Correct |
564 ms |
432464 KB |
Output is correct |
129 |
Correct |
581 ms |
432580 KB |
Output is correct |
130 |
Correct |
873 ms |
432448 KB |
Output is correct |
131 |
Correct |
768 ms |
432464 KB |
Output is correct |
132 |
Correct |
82 ms |
288848 KB |
Output is correct |
133 |
Correct |
55 ms |
282772 KB |
Output is correct |
134 |
Correct |
55 ms |
283076 KB |
Output is correct |
135 |
Correct |
66 ms |
286292 KB |
Output is correct |
136 |
Correct |
69 ms |
287056 KB |
Output is correct |
137 |
Correct |
74 ms |
288012 KB |
Output is correct |
138 |
Correct |
75 ms |
288592 KB |
Output is correct |
139 |
Correct |
85 ms |
288628 KB |
Output is correct |
140 |
Correct |
75 ms |
288596 KB |
Output is correct |
141 |
Correct |
74 ms |
288536 KB |
Output is correct |
142 |
Correct |
72 ms |
288588 KB |
Output is correct |
143 |
Correct |
73 ms |
288628 KB |
Output is correct |
144 |
Correct |
76 ms |
288580 KB |
Output is correct |
145 |
Correct |
74 ms |
288596 KB |
Output is correct |
146 |
Correct |
74 ms |
288592 KB |
Output is correct |
147 |
Correct |
74 ms |
288596 KB |
Output is correct |
148 |
Correct |
71 ms |
288536 KB |
Output is correct |
149 |
Correct |
72 ms |
288596 KB |
Output is correct |
150 |
Correct |
80 ms |
288664 KB |
Output is correct |
151 |
Correct |
74 ms |
288488 KB |
Output is correct |
152 |
Correct |
75 ms |
288592 KB |
Output is correct |
153 |
Correct |
76 ms |
288580 KB |
Output is correct |
154 |
Correct |
117 ms |
297628 KB |
Output is correct |
155 |
Correct |
85 ms |
288764 KB |
Output is correct |
156 |
Correct |
100 ms |
294684 KB |
Output is correct |
157 |
Correct |
115 ms |
296272 KB |
Output is correct |
158 |
Correct |
108 ms |
297648 KB |
Output is correct |
159 |
Correct |
124 ms |
297404 KB |
Output is correct |
160 |
Correct |
121 ms |
297552 KB |
Output is correct |
161 |
Correct |
107 ms |
297504 KB |
Output is correct |
162 |
Correct |
108 ms |
297552 KB |
Output is correct |
163 |
Correct |
103 ms |
297592 KB |
Output is correct |
164 |
Correct |
117 ms |
297544 KB |
Output is correct |
165 |
Correct |
112 ms |
297428 KB |
Output is correct |
166 |
Correct |
114 ms |
297420 KB |
Output is correct |
167 |
Correct |
102 ms |
297556 KB |
Output is correct |
168 |
Correct |
107 ms |
297656 KB |
Output is correct |
169 |
Correct |
108 ms |
297556 KB |
Output is correct |
170 |
Correct |
104 ms |
297560 KB |
Output is correct |
171 |
Correct |
116 ms |
297556 KB |
Output is correct |
172 |
Correct |
120 ms |
297652 KB |
Output is correct |
173 |
Correct |
102 ms |
297396 KB |
Output is correct |
174 |
Correct |
109 ms |
302008 KB |
Output is correct |
175 |
Correct |
201 ms |
316156 KB |
Output is correct |
176 |
Correct |
316 ms |
358700 KB |
Output is correct |
177 |
Correct |
514 ms |
382780 KB |
Output is correct |
178 |
Correct |
499 ms |
413288 KB |
Output is correct |
179 |
Correct |
748 ms |
432724 KB |
Output is correct |
180 |
Correct |
896 ms |
432552 KB |
Output is correct |
181 |
Correct |
956 ms |
432724 KB |
Output is correct |
182 |
Correct |
983 ms |
432464 KB |
Output is correct |
183 |
Correct |
779 ms |
432752 KB |
Output is correct |
184 |
Correct |
1961 ms |
582820 KB |
Output is correct |
185 |
Correct |
694 ms |
447156 KB |
Output is correct |
186 |
Correct |
878 ms |
455444 KB |
Output is correct |
187 |
Correct |
888 ms |
496060 KB |
Output is correct |
188 |
Correct |
1281 ms |
582484 KB |
Output is correct |
189 |
Correct |
1724 ms |
582740 KB |
Output is correct |
190 |
Correct |
1450 ms |
582624 KB |
Output is correct |
191 |
Correct |
1340 ms |
582944 KB |
Output is correct |
192 |
Correct |
1143 ms |
582656 KB |
Output is correct |
193 |
Correct |
1099 ms |
582744 KB |
Output is correct |
194 |
Correct |
1571 ms |
582704 KB |
Output is correct |
195 |
Correct |
1314 ms |
582512 KB |
Output is correct |
196 |
Correct |
1888 ms |
582596 KB |
Output is correct |
197 |
Correct |
1882 ms |
582636 KB |
Output is correct |
198 |
Correct |
1720 ms |
582448 KB |
Output is correct |
199 |
Execution timed out |
2074 ms |
582688 KB |
Time limit exceeded |
200 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
282640 KB |
Output is correct |
2 |
Correct |
54 ms |
282556 KB |
Output is correct |
3 |
Correct |
60 ms |
282728 KB |
Output is correct |
4 |
Correct |
54 ms |
282728 KB |
Output is correct |
5 |
Correct |
63 ms |
282708 KB |
Output is correct |
6 |
Correct |
55 ms |
282712 KB |
Output is correct |
7 |
Correct |
58 ms |
282700 KB |
Output is correct |
8 |
Correct |
54 ms |
282704 KB |
Output is correct |
9 |
Correct |
58 ms |
282388 KB |
Output is correct |
10 |
Correct |
55 ms |
282628 KB |
Output is correct |
11 |
Correct |
53 ms |
282412 KB |
Output is correct |
12 |
Correct |
55 ms |
282448 KB |
Output is correct |
13 |
Correct |
54 ms |
282448 KB |
Output is correct |
14 |
Correct |
55 ms |
282644 KB |
Output is correct |
15 |
Correct |
55 ms |
282640 KB |
Output is correct |
16 |
Correct |
54 ms |
282708 KB |
Output is correct |
17 |
Correct |
55 ms |
282708 KB |
Output is correct |
18 |
Correct |
57 ms |
283152 KB |
Output is correct |
19 |
Correct |
77 ms |
288548 KB |
Output is correct |
20 |
Correct |
75 ms |
287184 KB |
Output is correct |
21 |
Correct |
79 ms |
288596 KB |
Output is correct |
22 |
Correct |
79 ms |
288596 KB |
Output is correct |
23 |
Correct |
75 ms |
288848 KB |
Output is correct |
24 |
Correct |
74 ms |
288592 KB |
Output is correct |
25 |
Correct |
75 ms |
288596 KB |
Output is correct |
26 |
Correct |
75 ms |
288644 KB |
Output is correct |
27 |
Correct |
73 ms |
288624 KB |
Output is correct |
28 |
Correct |
76 ms |
288596 KB |
Output is correct |
29 |
Correct |
115 ms |
297628 KB |
Output is correct |
30 |
Correct |
74 ms |
288592 KB |
Output is correct |
31 |
Correct |
102 ms |
297552 KB |
Output is correct |
32 |
Correct |
130 ms |
297808 KB |
Output is correct |
33 |
Correct |
128 ms |
297556 KB |
Output is correct |
34 |
Correct |
116 ms |
297636 KB |
Output is correct |
35 |
Correct |
112 ms |
297596 KB |
Output is correct |
36 |
Correct |
116 ms |
297552 KB |
Output is correct |
37 |
Correct |
123 ms |
297552 KB |
Output is correct |
38 |
Correct |
100 ms |
297556 KB |
Output is correct |
39 |
Correct |
879 ms |
432720 KB |
Output is correct |
40 |
Correct |
105 ms |
299508 KB |
Output is correct |
41 |
Correct |
139 ms |
300964 KB |
Output is correct |
42 |
Correct |
162 ms |
303956 KB |
Output is correct |
43 |
Correct |
143 ms |
306780 KB |
Output is correct |
44 |
Correct |
328 ms |
357036 KB |
Output is correct |
45 |
Correct |
347 ms |
362540 KB |
Output is correct |
46 |
Correct |
741 ms |
432584 KB |
Output is correct |
47 |
Correct |
967 ms |
432576 KB |
Output is correct |
48 |
Correct |
919 ms |
432764 KB |
Output is correct |
49 |
Correct |
683 ms |
432600 KB |
Output is correct |
50 |
Correct |
724 ms |
432420 KB |
Output is correct |
51 |
Correct |
888 ms |
432796 KB |
Output is correct |
52 |
Correct |
851 ms |
432576 KB |
Output is correct |
53 |
Correct |
1000 ms |
432780 KB |
Output is correct |
54 |
Correct |
56 ms |
282448 KB |
Output is correct |
55 |
Correct |
56 ms |
282448 KB |
Output is correct |
56 |
Correct |
55 ms |
282452 KB |
Output is correct |
57 |
Correct |
54 ms |
282632 KB |
Output is correct |
58 |
Correct |
55 ms |
282584 KB |
Output is correct |
59 |
Correct |
60 ms |
282548 KB |
Output is correct |
60 |
Correct |
54 ms |
282448 KB |
Output is correct |
61 |
Correct |
57 ms |
282652 KB |
Output is correct |
62 |
Correct |
55 ms |
282704 KB |
Output is correct |
63 |
Correct |
55 ms |
282708 KB |
Output is correct |
64 |
Correct |
56 ms |
282596 KB |
Output is correct |
65 |
Correct |
55 ms |
282708 KB |
Output is correct |
66 |
Correct |
54 ms |
282512 KB |
Output is correct |
67 |
Correct |
56 ms |
282728 KB |
Output is correct |
68 |
Correct |
57 ms |
282728 KB |
Output is correct |
69 |
Correct |
54 ms |
282704 KB |
Output is correct |
70 |
Correct |
55 ms |
282708 KB |
Output is correct |
71 |
Correct |
54 ms |
282400 KB |
Output is correct |
72 |
Correct |
55 ms |
282576 KB |
Output is correct |
73 |
Correct |
55 ms |
282656 KB |
Output is correct |
74 |
Correct |
58 ms |
282460 KB |
Output is correct |
75 |
Correct |
55 ms |
282452 KB |
Output is correct |
76 |
Correct |
54 ms |
282448 KB |
Output is correct |
77 |
Correct |
57 ms |
282632 KB |
Output is correct |
78 |
Correct |
55 ms |
282596 KB |
Output is correct |
79 |
Correct |
55 ms |
282528 KB |
Output is correct |
80 |
Correct |
54 ms |
282448 KB |
Output is correct |
81 |
Correct |
54 ms |
282648 KB |
Output is correct |
82 |
Correct |
59 ms |
282636 KB |
Output is correct |
83 |
Correct |
57 ms |
282728 KB |
Output is correct |
84 |
Correct |
54 ms |
282708 KB |
Output is correct |
85 |
Correct |
55 ms |
282736 KB |
Output is correct |
86 |
Correct |
54 ms |
282452 KB |
Output is correct |
87 |
Correct |
59 ms |
282632 KB |
Output is correct |
88 |
Correct |
55 ms |
282632 KB |
Output is correct |
89 |
Correct |
57 ms |
282708 KB |
Output is correct |
90 |
Correct |
54 ms |
282476 KB |
Output is correct |
91 |
Correct |
53 ms |
282644 KB |
Output is correct |
92 |
Correct |
55 ms |
282700 KB |
Output is correct |
93 |
Correct |
55 ms |
282728 KB |
Output is correct |
94 |
Correct |
57 ms |
282512 KB |
Output is correct |
95 |
Correct |
56 ms |
282708 KB |
Output is correct |
96 |
Correct |
54 ms |
282708 KB |
Output is correct |
97 |
Correct |
53 ms |
282500 KB |
Output is correct |
98 |
Correct |
54 ms |
282448 KB |
Output is correct |
99 |
Correct |
54 ms |
282452 KB |
Output is correct |
100 |
Correct |
55 ms |
282452 KB |
Output is correct |
101 |
Correct |
54 ms |
282448 KB |
Output is correct |
102 |
Correct |
55 ms |
282448 KB |
Output is correct |
103 |
Correct |
56 ms |
282452 KB |
Output is correct |
104 |
Correct |
54 ms |
282452 KB |
Output is correct |
105 |
Correct |
54 ms |
282448 KB |
Output is correct |
106 |
Correct |
55 ms |
282704 KB |
Output is correct |
107 |
Correct |
54 ms |
282704 KB |
Output is correct |
108 |
Correct |
54 ms |
282708 KB |
Output is correct |
109 |
Correct |
54 ms |
282848 KB |
Output is correct |
110 |
Correct |
65 ms |
286432 KB |
Output is correct |
111 |
Correct |
71 ms |
287828 KB |
Output is correct |
112 |
Correct |
73 ms |
288592 KB |
Output is correct |
113 |
Correct |
74 ms |
288648 KB |
Output is correct |
114 |
Correct |
74 ms |
288596 KB |
Output is correct |
115 |
Correct |
71 ms |
288756 KB |
Output is correct |
116 |
Correct |
75 ms |
288688 KB |
Output is correct |
117 |
Correct |
73 ms |
288592 KB |
Output is correct |
118 |
Correct |
73 ms |
288628 KB |
Output is correct |
119 |
Correct |
96 ms |
294596 KB |
Output is correct |
120 |
Correct |
105 ms |
297552 KB |
Output is correct |
121 |
Correct |
110 ms |
297652 KB |
Output is correct |
122 |
Correct |
103 ms |
297632 KB |
Output is correct |
123 |
Correct |
102 ms |
297636 KB |
Output is correct |
124 |
Correct |
241 ms |
326156 KB |
Output is correct |
125 |
Correct |
628 ms |
409428 KB |
Output is correct |
126 |
Correct |
673 ms |
432684 KB |
Output is correct |
127 |
Correct |
660 ms |
432468 KB |
Output is correct |
128 |
Correct |
564 ms |
432464 KB |
Output is correct |
129 |
Correct |
581 ms |
432580 KB |
Output is correct |
130 |
Correct |
873 ms |
432448 KB |
Output is correct |
131 |
Correct |
768 ms |
432464 KB |
Output is correct |
132 |
Correct |
82 ms |
288848 KB |
Output is correct |
133 |
Correct |
55 ms |
282772 KB |
Output is correct |
134 |
Correct |
55 ms |
283076 KB |
Output is correct |
135 |
Correct |
66 ms |
286292 KB |
Output is correct |
136 |
Correct |
69 ms |
287056 KB |
Output is correct |
137 |
Correct |
74 ms |
288012 KB |
Output is correct |
138 |
Correct |
75 ms |
288592 KB |
Output is correct |
139 |
Correct |
85 ms |
288628 KB |
Output is correct |
140 |
Correct |
75 ms |
288596 KB |
Output is correct |
141 |
Correct |
74 ms |
288536 KB |
Output is correct |
142 |
Correct |
72 ms |
288588 KB |
Output is correct |
143 |
Correct |
73 ms |
288628 KB |
Output is correct |
144 |
Correct |
76 ms |
288580 KB |
Output is correct |
145 |
Correct |
74 ms |
288596 KB |
Output is correct |
146 |
Correct |
74 ms |
288592 KB |
Output is correct |
147 |
Correct |
74 ms |
288596 KB |
Output is correct |
148 |
Correct |
71 ms |
288536 KB |
Output is correct |
149 |
Correct |
72 ms |
288596 KB |
Output is correct |
150 |
Correct |
80 ms |
288664 KB |
Output is correct |
151 |
Correct |
74 ms |
288488 KB |
Output is correct |
152 |
Correct |
75 ms |
288592 KB |
Output is correct |
153 |
Correct |
76 ms |
288580 KB |
Output is correct |
154 |
Correct |
117 ms |
297628 KB |
Output is correct |
155 |
Correct |
85 ms |
288764 KB |
Output is correct |
156 |
Correct |
100 ms |
294684 KB |
Output is correct |
157 |
Correct |
115 ms |
296272 KB |
Output is correct |
158 |
Correct |
108 ms |
297648 KB |
Output is correct |
159 |
Correct |
124 ms |
297404 KB |
Output is correct |
160 |
Correct |
121 ms |
297552 KB |
Output is correct |
161 |
Correct |
107 ms |
297504 KB |
Output is correct |
162 |
Correct |
108 ms |
297552 KB |
Output is correct |
163 |
Correct |
103 ms |
297592 KB |
Output is correct |
164 |
Correct |
117 ms |
297544 KB |
Output is correct |
165 |
Correct |
112 ms |
297428 KB |
Output is correct |
166 |
Correct |
114 ms |
297420 KB |
Output is correct |
167 |
Correct |
102 ms |
297556 KB |
Output is correct |
168 |
Correct |
107 ms |
297656 KB |
Output is correct |
169 |
Correct |
108 ms |
297556 KB |
Output is correct |
170 |
Correct |
104 ms |
297560 KB |
Output is correct |
171 |
Correct |
116 ms |
297556 KB |
Output is correct |
172 |
Correct |
120 ms |
297652 KB |
Output is correct |
173 |
Correct |
102 ms |
297396 KB |
Output is correct |
174 |
Correct |
109 ms |
302008 KB |
Output is correct |
175 |
Correct |
201 ms |
316156 KB |
Output is correct |
176 |
Correct |
316 ms |
358700 KB |
Output is correct |
177 |
Correct |
514 ms |
382780 KB |
Output is correct |
178 |
Correct |
499 ms |
413288 KB |
Output is correct |
179 |
Correct |
748 ms |
432724 KB |
Output is correct |
180 |
Correct |
896 ms |
432552 KB |
Output is correct |
181 |
Correct |
956 ms |
432724 KB |
Output is correct |
182 |
Correct |
983 ms |
432464 KB |
Output is correct |
183 |
Correct |
779 ms |
432752 KB |
Output is correct |
184 |
Correct |
1961 ms |
582820 KB |
Output is correct |
185 |
Correct |
694 ms |
447156 KB |
Output is correct |
186 |
Correct |
878 ms |
455444 KB |
Output is correct |
187 |
Correct |
888 ms |
496060 KB |
Output is correct |
188 |
Correct |
1281 ms |
582484 KB |
Output is correct |
189 |
Correct |
1724 ms |
582740 KB |
Output is correct |
190 |
Correct |
1450 ms |
582624 KB |
Output is correct |
191 |
Correct |
1340 ms |
582944 KB |
Output is correct |
192 |
Correct |
1143 ms |
582656 KB |
Output is correct |
193 |
Correct |
1099 ms |
582744 KB |
Output is correct |
194 |
Correct |
1571 ms |
582704 KB |
Output is correct |
195 |
Correct |
1314 ms |
582512 KB |
Output is correct |
196 |
Correct |
1888 ms |
582596 KB |
Output is correct |
197 |
Correct |
1882 ms |
582636 KB |
Output is correct |
198 |
Correct |
1720 ms |
582448 KB |
Output is correct |
199 |
Execution timed out |
2074 ms |
582688 KB |
Time limit exceeded |
200 |
Halted |
0 ms |
0 KB |
- |