# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
885534 |
2023-12-10T02:30:59 Z |
huutuan |
Maze (JOI23_ho_t3) |
C++14 |
|
530 ms |
340948 KB |
#include<bits/stdc++.h>
using namespace std;
// #define int long long
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define isz(x) ((int)(x).size())
#define sumof(x) accumulate(all(x), 0ll)
const int dx[]={1, -1, 0, 0, 1, 1, -1, -1}, dy[]={0, 0, 1, -1, 0, 1, -1, 1, -1};
int n, r, c;
int sr, sc, gr, gc;
template<class T>
struct Vec{
int size;
T data[6000001];
void clear(){
size=0;
}
void push_back(const T &x){
data[size++]=x;
}
auto & operator[](int x){
return data[x];
}
const auto & operator[](int x) const {
return data[x];
}
};
template<class T>
struct Queue{
int bq, eq;
T data[6000001];
int size() const {
return eq-bq+1;
}
void clear(){
bq=1; eq=0;
}
T & front(){
return data[bq];
}
void push(const T &x){
data[++eq]=x;
}
void pop(){
++bq;
}
};
void solve(){
cin >> r >> c >> n;
cin >> sr >> sc >> gr >> gc;
vector<vector<char>> a(r+1, vector<char>(c+1));
vector<vector<int>> dist(r+1, vector<int>(c+1, 1e9));
vector<vector<pair<int, int>>> dist2(r+1, vector<pair<int, int>>(c+1));
for (int i=1; i<=r; ++i) for (int j=1; j<=c; ++j) cin >> a[i][j];
Vec<pair<int, int>> roots;
roots.push_back({sr, sc});
Queue<pair<int, int>> q;
auto bfs_white=[&](int distance){
q.clear();
for (int i=0; i<roots.size; ++i) q.push({roots[i].first, roots[i].second}), dist[roots[i].first][roots[i].second]=distance;
roots.clear();
while (q.size()){
int u=q.front().first, v=q.front().second;
q.pop();
for (int i=0; i<4; ++i){
int x=u+dx[i], y=v+dy[i];
if (x<1 || y<1 || x>r || y>c || dist[x][y]<1e9) continue;
if (a[x][y]=='.'){
dist[x][y]=distance;
q.push({x, y});
}else{
roots.push_back({x, y}), dist[x][y]=distance+1;
}
}
}
};
Queue<pair<int, int>> qq;
auto bfs_black=[&](int distance){
qq.clear();
for (int i=0; i<roots.size; ++i) qq.push(roots[i]);
roots.clear();
while (qq.size()){
int u=qq.front().first, v=qq.front().second;
roots.push_back({u, v});
qq.pop();
for (int i=0; i<4; ++i){
int x=u+dx[i], y=v+dy[i];
if (x<1 || y<1 || x>r || y>c || dist[x][y]<1e9) continue;
int d2x=dist2[u][v].first, d2y=dist2[u][v].second;
d2x+=!!dx[i], d2y+=!!dy[i];
if (d2x>=n || d2y>=n) continue;
dist[x][y]=distance;
dist2[x][y]={d2x, d2y};
qq.push({x, y});
}
}
};
int cur=0;
while (dist[gr][gc]>=1e9){
bfs_white(cur);
bfs_black(++cur);
}
cout << dist[gr][gc];
}
int32_t main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int ntests=1;
// cin >> ntests;
for (int i=1; i<=ntests; ++i) solve();
return 0;
}
Compilation message
Main.cpp: In function 'void solve()':
Main.cpp:23:11: warning: 'roots.Vec<std::pair<int, int> >::size' may be used uninitialized in this function [-Wmaybe-uninitialized]
23 | data[size++]=x;
| ~~~~^
Main.cpp:61:24: note: 'roots.Vec<std::pair<int, int> >::size' was declared here
61 | Vec<pair<int, int>> roots;
| ^~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
141140 KB |
Output is correct |
2 |
Correct |
80 ms |
141136 KB |
Output is correct |
3 |
Correct |
80 ms |
141392 KB |
Output is correct |
4 |
Correct |
80 ms |
141136 KB |
Output is correct |
5 |
Correct |
79 ms |
141140 KB |
Output is correct |
6 |
Correct |
84 ms |
141164 KB |
Output is correct |
7 |
Correct |
78 ms |
141312 KB |
Output is correct |
8 |
Correct |
79 ms |
141248 KB |
Output is correct |
9 |
Correct |
79 ms |
141140 KB |
Output is correct |
10 |
Correct |
81 ms |
141332 KB |
Output is correct |
11 |
Correct |
81 ms |
141272 KB |
Output is correct |
12 |
Correct |
79 ms |
141356 KB |
Output is correct |
13 |
Correct |
78 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141136 KB |
Output is correct |
15 |
Correct |
87 ms |
141136 KB |
Output is correct |
16 |
Correct |
81 ms |
141136 KB |
Output is correct |
17 |
Correct |
81 ms |
141132 KB |
Output is correct |
18 |
Correct |
91 ms |
141344 KB |
Output is correct |
19 |
Correct |
83 ms |
141980 KB |
Output is correct |
20 |
Correct |
81 ms |
142748 KB |
Output is correct |
21 |
Correct |
81 ms |
142048 KB |
Output is correct |
22 |
Correct |
87 ms |
142116 KB |
Output is correct |
23 |
Correct |
82 ms |
141904 KB |
Output is correct |
24 |
Correct |
81 ms |
143208 KB |
Output is correct |
25 |
Correct |
81 ms |
143204 KB |
Output is correct |
26 |
Correct |
81 ms |
142060 KB |
Output is correct |
27 |
Correct |
80 ms |
142076 KB |
Output is correct |
28 |
Correct |
84 ms |
142124 KB |
Output is correct |
29 |
Correct |
87 ms |
143188 KB |
Output is correct |
30 |
Correct |
80 ms |
142896 KB |
Output is correct |
31 |
Correct |
84 ms |
143276 KB |
Output is correct |
32 |
Correct |
87 ms |
143104 KB |
Output is correct |
33 |
Correct |
89 ms |
143188 KB |
Output is correct |
34 |
Correct |
87 ms |
146120 KB |
Output is correct |
35 |
Correct |
85 ms |
146292 KB |
Output is correct |
36 |
Correct |
92 ms |
143224 KB |
Output is correct |
37 |
Correct |
90 ms |
143108 KB |
Output is correct |
38 |
Correct |
87 ms |
143056 KB |
Output is correct |
39 |
Correct |
178 ms |
160356 KB |
Output is correct |
40 |
Correct |
83 ms |
143696 KB |
Output is correct |
41 |
Correct |
83 ms |
147340 KB |
Output is correct |
42 |
Correct |
102 ms |
143956 KB |
Output is correct |
43 |
Correct |
88 ms |
146904 KB |
Output is correct |
44 |
Correct |
98 ms |
153356 KB |
Output is correct |
45 |
Correct |
102 ms |
154636 KB |
Output is correct |
46 |
Correct |
122 ms |
160592 KB |
Output is correct |
47 |
Correct |
168 ms |
160460 KB |
Output is correct |
48 |
Correct |
163 ms |
160336 KB |
Output is correct |
49 |
Correct |
118 ms |
191100 KB |
Output is correct |
50 |
Correct |
123 ms |
191024 KB |
Output is correct |
51 |
Correct |
149 ms |
160588 KB |
Output is correct |
52 |
Correct |
136 ms |
160332 KB |
Output is correct |
53 |
Correct |
166 ms |
160340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
141136 KB |
Output is correct |
2 |
Correct |
82 ms |
141188 KB |
Output is correct |
3 |
Correct |
80 ms |
141312 KB |
Output is correct |
4 |
Correct |
79 ms |
141076 KB |
Output is correct |
5 |
Correct |
80 ms |
141436 KB |
Output is correct |
6 |
Correct |
78 ms |
141136 KB |
Output is correct |
7 |
Correct |
79 ms |
141136 KB |
Output is correct |
8 |
Correct |
83 ms |
141316 KB |
Output is correct |
9 |
Correct |
90 ms |
141188 KB |
Output is correct |
10 |
Correct |
80 ms |
141312 KB |
Output is correct |
11 |
Correct |
80 ms |
141208 KB |
Output is correct |
12 |
Correct |
78 ms |
141136 KB |
Output is correct |
13 |
Correct |
79 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141148 KB |
Output is correct |
15 |
Correct |
80 ms |
141276 KB |
Output is correct |
16 |
Correct |
79 ms |
141376 KB |
Output is correct |
17 |
Correct |
80 ms |
141276 KB |
Output is correct |
18 |
Correct |
81 ms |
141072 KB |
Output is correct |
19 |
Correct |
86 ms |
141168 KB |
Output is correct |
20 |
Correct |
78 ms |
141136 KB |
Output is correct |
21 |
Correct |
79 ms |
141132 KB |
Output is correct |
22 |
Correct |
79 ms |
141136 KB |
Output is correct |
23 |
Correct |
78 ms |
141136 KB |
Output is correct |
24 |
Correct |
85 ms |
141304 KB |
Output is correct |
25 |
Correct |
79 ms |
141140 KB |
Output is correct |
26 |
Correct |
82 ms |
141128 KB |
Output is correct |
27 |
Correct |
79 ms |
141140 KB |
Output is correct |
28 |
Correct |
79 ms |
141240 KB |
Output is correct |
29 |
Correct |
82 ms |
141136 KB |
Output is correct |
30 |
Correct |
90 ms |
141224 KB |
Output is correct |
31 |
Correct |
81 ms |
141336 KB |
Output is correct |
32 |
Correct |
81 ms |
141136 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
80 ms |
141232 KB |
Output is correct |
2 |
Correct |
80 ms |
141136 KB |
Output is correct |
3 |
Correct |
80 ms |
141304 KB |
Output is correct |
4 |
Correct |
91 ms |
141272 KB |
Output is correct |
5 |
Correct |
84 ms |
141100 KB |
Output is correct |
6 |
Correct |
79 ms |
141196 KB |
Output is correct |
7 |
Correct |
80 ms |
141140 KB |
Output is correct |
8 |
Correct |
82 ms |
141140 KB |
Output is correct |
9 |
Correct |
78 ms |
141140 KB |
Output is correct |
10 |
Correct |
79 ms |
141184 KB |
Output is correct |
11 |
Correct |
84 ms |
141272 KB |
Output is correct |
12 |
Correct |
80 ms |
141136 KB |
Output is correct |
13 |
Correct |
79 ms |
141144 KB |
Output is correct |
14 |
Correct |
79 ms |
141244 KB |
Output is correct |
15 |
Correct |
82 ms |
141256 KB |
Output is correct |
16 |
Correct |
82 ms |
141488 KB |
Output is correct |
17 |
Correct |
78 ms |
141340 KB |
Output is correct |
18 |
Correct |
82 ms |
141260 KB |
Output is correct |
19 |
Correct |
79 ms |
141308 KB |
Output is correct |
20 |
Correct |
78 ms |
141228 KB |
Output is correct |
21 |
Correct |
87 ms |
141312 KB |
Output is correct |
22 |
Correct |
79 ms |
141340 KB |
Output is correct |
23 |
Correct |
91 ms |
141160 KB |
Output is correct |
24 |
Correct |
79 ms |
141136 KB |
Output is correct |
25 |
Correct |
79 ms |
141796 KB |
Output is correct |
26 |
Correct |
84 ms |
141904 KB |
Output is correct |
27 |
Correct |
80 ms |
142100 KB |
Output is correct |
28 |
Correct |
80 ms |
141884 KB |
Output is correct |
29 |
Correct |
80 ms |
141904 KB |
Output is correct |
30 |
Correct |
95 ms |
142264 KB |
Output is correct |
31 |
Correct |
85 ms |
141960 KB |
Output is correct |
32 |
Correct |
81 ms |
142008 KB |
Output is correct |
33 |
Correct |
80 ms |
141876 KB |
Output is correct |
34 |
Correct |
83 ms |
142896 KB |
Output is correct |
35 |
Correct |
86 ms |
143440 KB |
Output is correct |
36 |
Correct |
86 ms |
143292 KB |
Output is correct |
37 |
Correct |
84 ms |
143124 KB |
Output is correct |
38 |
Correct |
86 ms |
143184 KB |
Output is correct |
39 |
Correct |
96 ms |
146948 KB |
Output is correct |
40 |
Correct |
131 ms |
157784 KB |
Output is correct |
41 |
Correct |
121 ms |
160340 KB |
Output is correct |
42 |
Correct |
117 ms |
160384 KB |
Output is correct |
43 |
Correct |
129 ms |
160588 KB |
Output is correct |
44 |
Correct |
131 ms |
160420 KB |
Output is correct |
45 |
Correct |
144 ms |
160892 KB |
Output is correct |
46 |
Correct |
146 ms |
160752 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
141136 KB |
Output is correct |
2 |
Correct |
82 ms |
141188 KB |
Output is correct |
3 |
Correct |
80 ms |
141312 KB |
Output is correct |
4 |
Correct |
79 ms |
141076 KB |
Output is correct |
5 |
Correct |
80 ms |
141436 KB |
Output is correct |
6 |
Correct |
78 ms |
141136 KB |
Output is correct |
7 |
Correct |
79 ms |
141136 KB |
Output is correct |
8 |
Correct |
83 ms |
141316 KB |
Output is correct |
9 |
Correct |
90 ms |
141188 KB |
Output is correct |
10 |
Correct |
80 ms |
141312 KB |
Output is correct |
11 |
Correct |
80 ms |
141208 KB |
Output is correct |
12 |
Correct |
78 ms |
141136 KB |
Output is correct |
13 |
Correct |
79 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141148 KB |
Output is correct |
15 |
Correct |
80 ms |
141276 KB |
Output is correct |
16 |
Correct |
79 ms |
141376 KB |
Output is correct |
17 |
Correct |
80 ms |
141276 KB |
Output is correct |
18 |
Correct |
81 ms |
141072 KB |
Output is correct |
19 |
Correct |
86 ms |
141168 KB |
Output is correct |
20 |
Correct |
78 ms |
141136 KB |
Output is correct |
21 |
Correct |
79 ms |
141132 KB |
Output is correct |
22 |
Correct |
79 ms |
141136 KB |
Output is correct |
23 |
Correct |
78 ms |
141136 KB |
Output is correct |
24 |
Correct |
85 ms |
141304 KB |
Output is correct |
25 |
Correct |
79 ms |
141140 KB |
Output is correct |
26 |
Correct |
82 ms |
141128 KB |
Output is correct |
27 |
Correct |
79 ms |
141140 KB |
Output is correct |
28 |
Correct |
79 ms |
141240 KB |
Output is correct |
29 |
Correct |
82 ms |
141136 KB |
Output is correct |
30 |
Correct |
90 ms |
141224 KB |
Output is correct |
31 |
Correct |
81 ms |
141336 KB |
Output is correct |
32 |
Correct |
81 ms |
141136 KB |
Output is correct |
33 |
Correct |
82 ms |
141928 KB |
Output is correct |
34 |
Correct |
82 ms |
141196 KB |
Output is correct |
35 |
Correct |
80 ms |
141396 KB |
Output is correct |
36 |
Correct |
80 ms |
141652 KB |
Output is correct |
37 |
Correct |
85 ms |
142924 KB |
Output is correct |
38 |
Correct |
80 ms |
141908 KB |
Output is correct |
39 |
Correct |
81 ms |
141908 KB |
Output is correct |
40 |
Correct |
84 ms |
141912 KB |
Output is correct |
41 |
Correct |
86 ms |
141908 KB |
Output is correct |
42 |
Correct |
86 ms |
141964 KB |
Output is correct |
43 |
Correct |
85 ms |
141892 KB |
Output is correct |
44 |
Correct |
81 ms |
141956 KB |
Output is correct |
45 |
Correct |
82 ms |
143216 KB |
Output is correct |
46 |
Correct |
82 ms |
143320 KB |
Output is correct |
47 |
Correct |
82 ms |
142628 KB |
Output is correct |
48 |
Correct |
84 ms |
142160 KB |
Output is correct |
49 |
Correct |
84 ms |
142108 KB |
Output is correct |
50 |
Correct |
82 ms |
141932 KB |
Output is correct |
51 |
Correct |
81 ms |
141904 KB |
Output is correct |
52 |
Correct |
85 ms |
141880 KB |
Output is correct |
53 |
Correct |
85 ms |
142096 KB |
Output is correct |
54 |
Correct |
82 ms |
141908 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
141136 KB |
Output is correct |
2 |
Correct |
82 ms |
141188 KB |
Output is correct |
3 |
Correct |
80 ms |
141312 KB |
Output is correct |
4 |
Correct |
79 ms |
141076 KB |
Output is correct |
5 |
Correct |
80 ms |
141436 KB |
Output is correct |
6 |
Correct |
78 ms |
141136 KB |
Output is correct |
7 |
Correct |
79 ms |
141136 KB |
Output is correct |
8 |
Correct |
83 ms |
141316 KB |
Output is correct |
9 |
Correct |
90 ms |
141188 KB |
Output is correct |
10 |
Correct |
80 ms |
141312 KB |
Output is correct |
11 |
Correct |
80 ms |
141208 KB |
Output is correct |
12 |
Correct |
78 ms |
141136 KB |
Output is correct |
13 |
Correct |
79 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141148 KB |
Output is correct |
15 |
Correct |
80 ms |
141276 KB |
Output is correct |
16 |
Correct |
79 ms |
141376 KB |
Output is correct |
17 |
Correct |
80 ms |
141276 KB |
Output is correct |
18 |
Correct |
81 ms |
141072 KB |
Output is correct |
19 |
Correct |
86 ms |
141168 KB |
Output is correct |
20 |
Correct |
78 ms |
141136 KB |
Output is correct |
21 |
Correct |
79 ms |
141132 KB |
Output is correct |
22 |
Correct |
79 ms |
141136 KB |
Output is correct |
23 |
Correct |
78 ms |
141136 KB |
Output is correct |
24 |
Correct |
85 ms |
141304 KB |
Output is correct |
25 |
Correct |
79 ms |
141140 KB |
Output is correct |
26 |
Correct |
82 ms |
141128 KB |
Output is correct |
27 |
Correct |
79 ms |
141140 KB |
Output is correct |
28 |
Correct |
79 ms |
141240 KB |
Output is correct |
29 |
Correct |
82 ms |
141136 KB |
Output is correct |
30 |
Correct |
90 ms |
141224 KB |
Output is correct |
31 |
Correct |
81 ms |
141336 KB |
Output is correct |
32 |
Correct |
81 ms |
141136 KB |
Output is correct |
33 |
Correct |
82 ms |
141928 KB |
Output is correct |
34 |
Correct |
82 ms |
141196 KB |
Output is correct |
35 |
Correct |
80 ms |
141396 KB |
Output is correct |
36 |
Correct |
80 ms |
141652 KB |
Output is correct |
37 |
Correct |
85 ms |
142924 KB |
Output is correct |
38 |
Correct |
80 ms |
141908 KB |
Output is correct |
39 |
Correct |
81 ms |
141908 KB |
Output is correct |
40 |
Correct |
84 ms |
141912 KB |
Output is correct |
41 |
Correct |
86 ms |
141908 KB |
Output is correct |
42 |
Correct |
86 ms |
141964 KB |
Output is correct |
43 |
Correct |
85 ms |
141892 KB |
Output is correct |
44 |
Correct |
81 ms |
141956 KB |
Output is correct |
45 |
Correct |
82 ms |
143216 KB |
Output is correct |
46 |
Correct |
82 ms |
143320 KB |
Output is correct |
47 |
Correct |
82 ms |
142628 KB |
Output is correct |
48 |
Correct |
84 ms |
142160 KB |
Output is correct |
49 |
Correct |
84 ms |
142108 KB |
Output is correct |
50 |
Correct |
82 ms |
141932 KB |
Output is correct |
51 |
Correct |
81 ms |
141904 KB |
Output is correct |
52 |
Correct |
85 ms |
141880 KB |
Output is correct |
53 |
Correct |
85 ms |
142096 KB |
Output is correct |
54 |
Correct |
82 ms |
141908 KB |
Output is correct |
55 |
Correct |
88 ms |
143288 KB |
Output is correct |
56 |
Correct |
81 ms |
142888 KB |
Output is correct |
57 |
Correct |
83 ms |
142676 KB |
Output is correct |
58 |
Correct |
86 ms |
143116 KB |
Output is correct |
59 |
Correct |
86 ms |
143184 KB |
Output is correct |
60 |
Correct |
88 ms |
143068 KB |
Output is correct |
61 |
Correct |
89 ms |
143292 KB |
Output is correct |
62 |
Correct |
83 ms |
143164 KB |
Output is correct |
63 |
Correct |
83 ms |
143108 KB |
Output is correct |
64 |
Correct |
87 ms |
143220 KB |
Output is correct |
65 |
Correct |
85 ms |
146292 KB |
Output is correct |
66 |
Correct |
89 ms |
146416 KB |
Output is correct |
67 |
Correct |
85 ms |
144680 KB |
Output is correct |
68 |
Correct |
94 ms |
143216 KB |
Output is correct |
69 |
Correct |
86 ms |
143140 KB |
Output is correct |
70 |
Correct |
85 ms |
143312 KB |
Output is correct |
71 |
Correct |
84 ms |
143052 KB |
Output is correct |
72 |
Correct |
87 ms |
143096 KB |
Output is correct |
73 |
Correct |
86 ms |
143184 KB |
Output is correct |
74 |
Correct |
84 ms |
143140 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
141140 KB |
Output is correct |
2 |
Correct |
80 ms |
141136 KB |
Output is correct |
3 |
Correct |
80 ms |
141392 KB |
Output is correct |
4 |
Correct |
80 ms |
141136 KB |
Output is correct |
5 |
Correct |
79 ms |
141140 KB |
Output is correct |
6 |
Correct |
84 ms |
141164 KB |
Output is correct |
7 |
Correct |
78 ms |
141312 KB |
Output is correct |
8 |
Correct |
79 ms |
141248 KB |
Output is correct |
9 |
Correct |
79 ms |
141140 KB |
Output is correct |
10 |
Correct |
81 ms |
141332 KB |
Output is correct |
11 |
Correct |
81 ms |
141272 KB |
Output is correct |
12 |
Correct |
79 ms |
141356 KB |
Output is correct |
13 |
Correct |
78 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141136 KB |
Output is correct |
15 |
Correct |
87 ms |
141136 KB |
Output is correct |
16 |
Correct |
81 ms |
141136 KB |
Output is correct |
17 |
Correct |
81 ms |
141132 KB |
Output is correct |
18 |
Correct |
91 ms |
141344 KB |
Output is correct |
19 |
Correct |
83 ms |
141980 KB |
Output is correct |
20 |
Correct |
81 ms |
142748 KB |
Output is correct |
21 |
Correct |
81 ms |
142048 KB |
Output is correct |
22 |
Correct |
87 ms |
142116 KB |
Output is correct |
23 |
Correct |
82 ms |
141904 KB |
Output is correct |
24 |
Correct |
81 ms |
143208 KB |
Output is correct |
25 |
Correct |
81 ms |
143204 KB |
Output is correct |
26 |
Correct |
81 ms |
142060 KB |
Output is correct |
27 |
Correct |
80 ms |
142076 KB |
Output is correct |
28 |
Correct |
84 ms |
142124 KB |
Output is correct |
29 |
Correct |
87 ms |
143188 KB |
Output is correct |
30 |
Correct |
80 ms |
142896 KB |
Output is correct |
31 |
Correct |
84 ms |
143276 KB |
Output is correct |
32 |
Correct |
87 ms |
143104 KB |
Output is correct |
33 |
Correct |
89 ms |
143188 KB |
Output is correct |
34 |
Correct |
87 ms |
146120 KB |
Output is correct |
35 |
Correct |
85 ms |
146292 KB |
Output is correct |
36 |
Correct |
92 ms |
143224 KB |
Output is correct |
37 |
Correct |
90 ms |
143108 KB |
Output is correct |
38 |
Correct |
87 ms |
143056 KB |
Output is correct |
39 |
Correct |
178 ms |
160356 KB |
Output is correct |
40 |
Correct |
83 ms |
143696 KB |
Output is correct |
41 |
Correct |
83 ms |
147340 KB |
Output is correct |
42 |
Correct |
102 ms |
143956 KB |
Output is correct |
43 |
Correct |
88 ms |
146904 KB |
Output is correct |
44 |
Correct |
98 ms |
153356 KB |
Output is correct |
45 |
Correct |
102 ms |
154636 KB |
Output is correct |
46 |
Correct |
122 ms |
160592 KB |
Output is correct |
47 |
Correct |
168 ms |
160460 KB |
Output is correct |
48 |
Correct |
163 ms |
160336 KB |
Output is correct |
49 |
Correct |
118 ms |
191100 KB |
Output is correct |
50 |
Correct |
123 ms |
191024 KB |
Output is correct |
51 |
Correct |
149 ms |
160588 KB |
Output is correct |
52 |
Correct |
136 ms |
160332 KB |
Output is correct |
53 |
Correct |
166 ms |
160340 KB |
Output is correct |
54 |
Correct |
79 ms |
141136 KB |
Output is correct |
55 |
Correct |
82 ms |
141188 KB |
Output is correct |
56 |
Correct |
80 ms |
141312 KB |
Output is correct |
57 |
Correct |
79 ms |
141076 KB |
Output is correct |
58 |
Correct |
80 ms |
141436 KB |
Output is correct |
59 |
Correct |
78 ms |
141136 KB |
Output is correct |
60 |
Correct |
79 ms |
141136 KB |
Output is correct |
61 |
Correct |
83 ms |
141316 KB |
Output is correct |
62 |
Correct |
90 ms |
141188 KB |
Output is correct |
63 |
Correct |
80 ms |
141312 KB |
Output is correct |
64 |
Correct |
80 ms |
141208 KB |
Output is correct |
65 |
Correct |
78 ms |
141136 KB |
Output is correct |
66 |
Correct |
79 ms |
141136 KB |
Output is correct |
67 |
Correct |
81 ms |
141148 KB |
Output is correct |
68 |
Correct |
80 ms |
141276 KB |
Output is correct |
69 |
Correct |
79 ms |
141376 KB |
Output is correct |
70 |
Correct |
80 ms |
141276 KB |
Output is correct |
71 |
Correct |
81 ms |
141072 KB |
Output is correct |
72 |
Correct |
86 ms |
141168 KB |
Output is correct |
73 |
Correct |
78 ms |
141136 KB |
Output is correct |
74 |
Correct |
79 ms |
141132 KB |
Output is correct |
75 |
Correct |
79 ms |
141136 KB |
Output is correct |
76 |
Correct |
78 ms |
141136 KB |
Output is correct |
77 |
Correct |
85 ms |
141304 KB |
Output is correct |
78 |
Correct |
79 ms |
141140 KB |
Output is correct |
79 |
Correct |
82 ms |
141128 KB |
Output is correct |
80 |
Correct |
79 ms |
141140 KB |
Output is correct |
81 |
Correct |
79 ms |
141240 KB |
Output is correct |
82 |
Correct |
82 ms |
141136 KB |
Output is correct |
83 |
Correct |
90 ms |
141224 KB |
Output is correct |
84 |
Correct |
81 ms |
141336 KB |
Output is correct |
85 |
Correct |
81 ms |
141136 KB |
Output is correct |
86 |
Correct |
80 ms |
141232 KB |
Output is correct |
87 |
Correct |
80 ms |
141136 KB |
Output is correct |
88 |
Correct |
80 ms |
141304 KB |
Output is correct |
89 |
Correct |
91 ms |
141272 KB |
Output is correct |
90 |
Correct |
84 ms |
141100 KB |
Output is correct |
91 |
Correct |
79 ms |
141196 KB |
Output is correct |
92 |
Correct |
80 ms |
141140 KB |
Output is correct |
93 |
Correct |
82 ms |
141140 KB |
Output is correct |
94 |
Correct |
78 ms |
141140 KB |
Output is correct |
95 |
Correct |
79 ms |
141184 KB |
Output is correct |
96 |
Correct |
84 ms |
141272 KB |
Output is correct |
97 |
Correct |
80 ms |
141136 KB |
Output is correct |
98 |
Correct |
79 ms |
141144 KB |
Output is correct |
99 |
Correct |
79 ms |
141244 KB |
Output is correct |
100 |
Correct |
82 ms |
141256 KB |
Output is correct |
101 |
Correct |
82 ms |
141488 KB |
Output is correct |
102 |
Correct |
78 ms |
141340 KB |
Output is correct |
103 |
Correct |
82 ms |
141260 KB |
Output is correct |
104 |
Correct |
79 ms |
141308 KB |
Output is correct |
105 |
Correct |
78 ms |
141228 KB |
Output is correct |
106 |
Correct |
87 ms |
141312 KB |
Output is correct |
107 |
Correct |
79 ms |
141340 KB |
Output is correct |
108 |
Correct |
91 ms |
141160 KB |
Output is correct |
109 |
Correct |
79 ms |
141136 KB |
Output is correct |
110 |
Correct |
79 ms |
141796 KB |
Output is correct |
111 |
Correct |
84 ms |
141904 KB |
Output is correct |
112 |
Correct |
80 ms |
142100 KB |
Output is correct |
113 |
Correct |
80 ms |
141884 KB |
Output is correct |
114 |
Correct |
80 ms |
141904 KB |
Output is correct |
115 |
Correct |
95 ms |
142264 KB |
Output is correct |
116 |
Correct |
85 ms |
141960 KB |
Output is correct |
117 |
Correct |
81 ms |
142008 KB |
Output is correct |
118 |
Correct |
80 ms |
141876 KB |
Output is correct |
119 |
Correct |
83 ms |
142896 KB |
Output is correct |
120 |
Correct |
86 ms |
143440 KB |
Output is correct |
121 |
Correct |
86 ms |
143292 KB |
Output is correct |
122 |
Correct |
84 ms |
143124 KB |
Output is correct |
123 |
Correct |
86 ms |
143184 KB |
Output is correct |
124 |
Correct |
96 ms |
146948 KB |
Output is correct |
125 |
Correct |
131 ms |
157784 KB |
Output is correct |
126 |
Correct |
121 ms |
160340 KB |
Output is correct |
127 |
Correct |
117 ms |
160384 KB |
Output is correct |
128 |
Correct |
129 ms |
160588 KB |
Output is correct |
129 |
Correct |
131 ms |
160420 KB |
Output is correct |
130 |
Correct |
144 ms |
160892 KB |
Output is correct |
131 |
Correct |
146 ms |
160752 KB |
Output is correct |
132 |
Correct |
82 ms |
141928 KB |
Output is correct |
133 |
Correct |
82 ms |
141196 KB |
Output is correct |
134 |
Correct |
80 ms |
141396 KB |
Output is correct |
135 |
Correct |
80 ms |
141652 KB |
Output is correct |
136 |
Correct |
85 ms |
142924 KB |
Output is correct |
137 |
Correct |
80 ms |
141908 KB |
Output is correct |
138 |
Correct |
81 ms |
141908 KB |
Output is correct |
139 |
Correct |
84 ms |
141912 KB |
Output is correct |
140 |
Correct |
86 ms |
141908 KB |
Output is correct |
141 |
Correct |
86 ms |
141964 KB |
Output is correct |
142 |
Correct |
85 ms |
141892 KB |
Output is correct |
143 |
Correct |
81 ms |
141956 KB |
Output is correct |
144 |
Correct |
82 ms |
143216 KB |
Output is correct |
145 |
Correct |
82 ms |
143320 KB |
Output is correct |
146 |
Correct |
82 ms |
142628 KB |
Output is correct |
147 |
Correct |
84 ms |
142160 KB |
Output is correct |
148 |
Correct |
84 ms |
142108 KB |
Output is correct |
149 |
Correct |
82 ms |
141932 KB |
Output is correct |
150 |
Correct |
81 ms |
141904 KB |
Output is correct |
151 |
Correct |
85 ms |
141880 KB |
Output is correct |
152 |
Correct |
85 ms |
142096 KB |
Output is correct |
153 |
Correct |
82 ms |
141908 KB |
Output is correct |
154 |
Correct |
88 ms |
143288 KB |
Output is correct |
155 |
Correct |
81 ms |
142888 KB |
Output is correct |
156 |
Correct |
83 ms |
142676 KB |
Output is correct |
157 |
Correct |
86 ms |
143116 KB |
Output is correct |
158 |
Correct |
86 ms |
143184 KB |
Output is correct |
159 |
Correct |
88 ms |
143068 KB |
Output is correct |
160 |
Correct |
89 ms |
143292 KB |
Output is correct |
161 |
Correct |
83 ms |
143164 KB |
Output is correct |
162 |
Correct |
83 ms |
143108 KB |
Output is correct |
163 |
Correct |
87 ms |
143220 KB |
Output is correct |
164 |
Correct |
85 ms |
146292 KB |
Output is correct |
165 |
Correct |
89 ms |
146416 KB |
Output is correct |
166 |
Correct |
85 ms |
144680 KB |
Output is correct |
167 |
Correct |
94 ms |
143216 KB |
Output is correct |
168 |
Correct |
86 ms |
143140 KB |
Output is correct |
169 |
Correct |
85 ms |
143312 KB |
Output is correct |
170 |
Correct |
84 ms |
143052 KB |
Output is correct |
171 |
Correct |
87 ms |
143096 KB |
Output is correct |
172 |
Correct |
86 ms |
143184 KB |
Output is correct |
173 |
Correct |
84 ms |
143140 KB |
Output is correct |
174 |
Correct |
84 ms |
144004 KB |
Output is correct |
175 |
Correct |
95 ms |
145644 KB |
Output is correct |
176 |
Correct |
101 ms |
156272 KB |
Output is correct |
177 |
Correct |
115 ms |
155088 KB |
Output is correct |
178 |
Correct |
99 ms |
158916 KB |
Output is correct |
179 |
Correct |
119 ms |
161228 KB |
Output is correct |
180 |
Correct |
136 ms |
160932 KB |
Output is correct |
181 |
Correct |
141 ms |
160612 KB |
Output is correct |
182 |
Correct |
136 ms |
160596 KB |
Output is correct |
183 |
Correct |
144 ms |
161176 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
141140 KB |
Output is correct |
2 |
Correct |
80 ms |
141136 KB |
Output is correct |
3 |
Correct |
80 ms |
141392 KB |
Output is correct |
4 |
Correct |
80 ms |
141136 KB |
Output is correct |
5 |
Correct |
79 ms |
141140 KB |
Output is correct |
6 |
Correct |
84 ms |
141164 KB |
Output is correct |
7 |
Correct |
78 ms |
141312 KB |
Output is correct |
8 |
Correct |
79 ms |
141248 KB |
Output is correct |
9 |
Correct |
79 ms |
141140 KB |
Output is correct |
10 |
Correct |
81 ms |
141332 KB |
Output is correct |
11 |
Correct |
81 ms |
141272 KB |
Output is correct |
12 |
Correct |
79 ms |
141356 KB |
Output is correct |
13 |
Correct |
78 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141136 KB |
Output is correct |
15 |
Correct |
87 ms |
141136 KB |
Output is correct |
16 |
Correct |
81 ms |
141136 KB |
Output is correct |
17 |
Correct |
81 ms |
141132 KB |
Output is correct |
18 |
Correct |
91 ms |
141344 KB |
Output is correct |
19 |
Correct |
83 ms |
141980 KB |
Output is correct |
20 |
Correct |
81 ms |
142748 KB |
Output is correct |
21 |
Correct |
81 ms |
142048 KB |
Output is correct |
22 |
Correct |
87 ms |
142116 KB |
Output is correct |
23 |
Correct |
82 ms |
141904 KB |
Output is correct |
24 |
Correct |
81 ms |
143208 KB |
Output is correct |
25 |
Correct |
81 ms |
143204 KB |
Output is correct |
26 |
Correct |
81 ms |
142060 KB |
Output is correct |
27 |
Correct |
80 ms |
142076 KB |
Output is correct |
28 |
Correct |
84 ms |
142124 KB |
Output is correct |
29 |
Correct |
87 ms |
143188 KB |
Output is correct |
30 |
Correct |
80 ms |
142896 KB |
Output is correct |
31 |
Correct |
84 ms |
143276 KB |
Output is correct |
32 |
Correct |
87 ms |
143104 KB |
Output is correct |
33 |
Correct |
89 ms |
143188 KB |
Output is correct |
34 |
Correct |
87 ms |
146120 KB |
Output is correct |
35 |
Correct |
85 ms |
146292 KB |
Output is correct |
36 |
Correct |
92 ms |
143224 KB |
Output is correct |
37 |
Correct |
90 ms |
143108 KB |
Output is correct |
38 |
Correct |
87 ms |
143056 KB |
Output is correct |
39 |
Correct |
178 ms |
160356 KB |
Output is correct |
40 |
Correct |
83 ms |
143696 KB |
Output is correct |
41 |
Correct |
83 ms |
147340 KB |
Output is correct |
42 |
Correct |
102 ms |
143956 KB |
Output is correct |
43 |
Correct |
88 ms |
146904 KB |
Output is correct |
44 |
Correct |
98 ms |
153356 KB |
Output is correct |
45 |
Correct |
102 ms |
154636 KB |
Output is correct |
46 |
Correct |
122 ms |
160592 KB |
Output is correct |
47 |
Correct |
168 ms |
160460 KB |
Output is correct |
48 |
Correct |
163 ms |
160336 KB |
Output is correct |
49 |
Correct |
118 ms |
191100 KB |
Output is correct |
50 |
Correct |
123 ms |
191024 KB |
Output is correct |
51 |
Correct |
149 ms |
160588 KB |
Output is correct |
52 |
Correct |
136 ms |
160332 KB |
Output is correct |
53 |
Correct |
166 ms |
160340 KB |
Output is correct |
54 |
Correct |
79 ms |
141136 KB |
Output is correct |
55 |
Correct |
82 ms |
141188 KB |
Output is correct |
56 |
Correct |
80 ms |
141312 KB |
Output is correct |
57 |
Correct |
79 ms |
141076 KB |
Output is correct |
58 |
Correct |
80 ms |
141436 KB |
Output is correct |
59 |
Correct |
78 ms |
141136 KB |
Output is correct |
60 |
Correct |
79 ms |
141136 KB |
Output is correct |
61 |
Correct |
83 ms |
141316 KB |
Output is correct |
62 |
Correct |
90 ms |
141188 KB |
Output is correct |
63 |
Correct |
80 ms |
141312 KB |
Output is correct |
64 |
Correct |
80 ms |
141208 KB |
Output is correct |
65 |
Correct |
78 ms |
141136 KB |
Output is correct |
66 |
Correct |
79 ms |
141136 KB |
Output is correct |
67 |
Correct |
81 ms |
141148 KB |
Output is correct |
68 |
Correct |
80 ms |
141276 KB |
Output is correct |
69 |
Correct |
79 ms |
141376 KB |
Output is correct |
70 |
Correct |
80 ms |
141276 KB |
Output is correct |
71 |
Correct |
81 ms |
141072 KB |
Output is correct |
72 |
Correct |
86 ms |
141168 KB |
Output is correct |
73 |
Correct |
78 ms |
141136 KB |
Output is correct |
74 |
Correct |
79 ms |
141132 KB |
Output is correct |
75 |
Correct |
79 ms |
141136 KB |
Output is correct |
76 |
Correct |
78 ms |
141136 KB |
Output is correct |
77 |
Correct |
85 ms |
141304 KB |
Output is correct |
78 |
Correct |
79 ms |
141140 KB |
Output is correct |
79 |
Correct |
82 ms |
141128 KB |
Output is correct |
80 |
Correct |
79 ms |
141140 KB |
Output is correct |
81 |
Correct |
79 ms |
141240 KB |
Output is correct |
82 |
Correct |
82 ms |
141136 KB |
Output is correct |
83 |
Correct |
90 ms |
141224 KB |
Output is correct |
84 |
Correct |
81 ms |
141336 KB |
Output is correct |
85 |
Correct |
81 ms |
141136 KB |
Output is correct |
86 |
Correct |
80 ms |
141232 KB |
Output is correct |
87 |
Correct |
80 ms |
141136 KB |
Output is correct |
88 |
Correct |
80 ms |
141304 KB |
Output is correct |
89 |
Correct |
91 ms |
141272 KB |
Output is correct |
90 |
Correct |
84 ms |
141100 KB |
Output is correct |
91 |
Correct |
79 ms |
141196 KB |
Output is correct |
92 |
Correct |
80 ms |
141140 KB |
Output is correct |
93 |
Correct |
82 ms |
141140 KB |
Output is correct |
94 |
Correct |
78 ms |
141140 KB |
Output is correct |
95 |
Correct |
79 ms |
141184 KB |
Output is correct |
96 |
Correct |
84 ms |
141272 KB |
Output is correct |
97 |
Correct |
80 ms |
141136 KB |
Output is correct |
98 |
Correct |
79 ms |
141144 KB |
Output is correct |
99 |
Correct |
79 ms |
141244 KB |
Output is correct |
100 |
Correct |
82 ms |
141256 KB |
Output is correct |
101 |
Correct |
82 ms |
141488 KB |
Output is correct |
102 |
Correct |
78 ms |
141340 KB |
Output is correct |
103 |
Correct |
82 ms |
141260 KB |
Output is correct |
104 |
Correct |
79 ms |
141308 KB |
Output is correct |
105 |
Correct |
78 ms |
141228 KB |
Output is correct |
106 |
Correct |
87 ms |
141312 KB |
Output is correct |
107 |
Correct |
79 ms |
141340 KB |
Output is correct |
108 |
Correct |
91 ms |
141160 KB |
Output is correct |
109 |
Correct |
79 ms |
141136 KB |
Output is correct |
110 |
Correct |
79 ms |
141796 KB |
Output is correct |
111 |
Correct |
84 ms |
141904 KB |
Output is correct |
112 |
Correct |
80 ms |
142100 KB |
Output is correct |
113 |
Correct |
80 ms |
141884 KB |
Output is correct |
114 |
Correct |
80 ms |
141904 KB |
Output is correct |
115 |
Correct |
95 ms |
142264 KB |
Output is correct |
116 |
Correct |
85 ms |
141960 KB |
Output is correct |
117 |
Correct |
81 ms |
142008 KB |
Output is correct |
118 |
Correct |
80 ms |
141876 KB |
Output is correct |
119 |
Correct |
83 ms |
142896 KB |
Output is correct |
120 |
Correct |
86 ms |
143440 KB |
Output is correct |
121 |
Correct |
86 ms |
143292 KB |
Output is correct |
122 |
Correct |
84 ms |
143124 KB |
Output is correct |
123 |
Correct |
86 ms |
143184 KB |
Output is correct |
124 |
Correct |
96 ms |
146948 KB |
Output is correct |
125 |
Correct |
131 ms |
157784 KB |
Output is correct |
126 |
Correct |
121 ms |
160340 KB |
Output is correct |
127 |
Correct |
117 ms |
160384 KB |
Output is correct |
128 |
Correct |
129 ms |
160588 KB |
Output is correct |
129 |
Correct |
131 ms |
160420 KB |
Output is correct |
130 |
Correct |
144 ms |
160892 KB |
Output is correct |
131 |
Correct |
146 ms |
160752 KB |
Output is correct |
132 |
Correct |
82 ms |
141928 KB |
Output is correct |
133 |
Correct |
82 ms |
141196 KB |
Output is correct |
134 |
Correct |
80 ms |
141396 KB |
Output is correct |
135 |
Correct |
80 ms |
141652 KB |
Output is correct |
136 |
Correct |
85 ms |
142924 KB |
Output is correct |
137 |
Correct |
80 ms |
141908 KB |
Output is correct |
138 |
Correct |
81 ms |
141908 KB |
Output is correct |
139 |
Correct |
84 ms |
141912 KB |
Output is correct |
140 |
Correct |
86 ms |
141908 KB |
Output is correct |
141 |
Correct |
86 ms |
141964 KB |
Output is correct |
142 |
Correct |
85 ms |
141892 KB |
Output is correct |
143 |
Correct |
81 ms |
141956 KB |
Output is correct |
144 |
Correct |
82 ms |
143216 KB |
Output is correct |
145 |
Correct |
82 ms |
143320 KB |
Output is correct |
146 |
Correct |
82 ms |
142628 KB |
Output is correct |
147 |
Correct |
84 ms |
142160 KB |
Output is correct |
148 |
Correct |
84 ms |
142108 KB |
Output is correct |
149 |
Correct |
82 ms |
141932 KB |
Output is correct |
150 |
Correct |
81 ms |
141904 KB |
Output is correct |
151 |
Correct |
85 ms |
141880 KB |
Output is correct |
152 |
Correct |
85 ms |
142096 KB |
Output is correct |
153 |
Correct |
82 ms |
141908 KB |
Output is correct |
154 |
Correct |
88 ms |
143288 KB |
Output is correct |
155 |
Correct |
81 ms |
142888 KB |
Output is correct |
156 |
Correct |
83 ms |
142676 KB |
Output is correct |
157 |
Correct |
86 ms |
143116 KB |
Output is correct |
158 |
Correct |
86 ms |
143184 KB |
Output is correct |
159 |
Correct |
88 ms |
143068 KB |
Output is correct |
160 |
Correct |
89 ms |
143292 KB |
Output is correct |
161 |
Correct |
83 ms |
143164 KB |
Output is correct |
162 |
Correct |
83 ms |
143108 KB |
Output is correct |
163 |
Correct |
87 ms |
143220 KB |
Output is correct |
164 |
Correct |
85 ms |
146292 KB |
Output is correct |
165 |
Correct |
89 ms |
146416 KB |
Output is correct |
166 |
Correct |
85 ms |
144680 KB |
Output is correct |
167 |
Correct |
94 ms |
143216 KB |
Output is correct |
168 |
Correct |
86 ms |
143140 KB |
Output is correct |
169 |
Correct |
85 ms |
143312 KB |
Output is correct |
170 |
Correct |
84 ms |
143052 KB |
Output is correct |
171 |
Correct |
87 ms |
143096 KB |
Output is correct |
172 |
Correct |
86 ms |
143184 KB |
Output is correct |
173 |
Correct |
84 ms |
143140 KB |
Output is correct |
174 |
Correct |
84 ms |
144004 KB |
Output is correct |
175 |
Correct |
95 ms |
145644 KB |
Output is correct |
176 |
Correct |
101 ms |
156272 KB |
Output is correct |
177 |
Correct |
115 ms |
155088 KB |
Output is correct |
178 |
Correct |
99 ms |
158916 KB |
Output is correct |
179 |
Correct |
119 ms |
161228 KB |
Output is correct |
180 |
Correct |
136 ms |
160932 KB |
Output is correct |
181 |
Correct |
141 ms |
160612 KB |
Output is correct |
182 |
Correct |
136 ms |
160596 KB |
Output is correct |
183 |
Correct |
144 ms |
161176 KB |
Output is correct |
184 |
Correct |
320 ms |
179724 KB |
Output is correct |
185 |
Correct |
114 ms |
163480 KB |
Output is correct |
186 |
Correct |
139 ms |
163348 KB |
Output is correct |
187 |
Correct |
115 ms |
168668 KB |
Output is correct |
188 |
Correct |
175 ms |
179860 KB |
Output is correct |
189 |
Correct |
240 ms |
179728 KB |
Output is correct |
190 |
Correct |
174 ms |
179732 KB |
Output is correct |
191 |
Correct |
162 ms |
179612 KB |
Output is correct |
192 |
Correct |
200 ms |
179540 KB |
Output is correct |
193 |
Correct |
192 ms |
179508 KB |
Output is correct |
194 |
Correct |
164 ms |
240980 KB |
Output is correct |
195 |
Correct |
164 ms |
241148 KB |
Output is correct |
196 |
Correct |
218 ms |
180612 KB |
Output is correct |
197 |
Correct |
159 ms |
180684 KB |
Output is correct |
198 |
Correct |
162 ms |
180100 KB |
Output is correct |
199 |
Correct |
187 ms |
179840 KB |
Output is correct |
200 |
Correct |
183 ms |
179528 KB |
Output is correct |
201 |
Correct |
226 ms |
179728 KB |
Output is correct |
202 |
Correct |
298 ms |
179732 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
141140 KB |
Output is correct |
2 |
Correct |
80 ms |
141136 KB |
Output is correct |
3 |
Correct |
80 ms |
141392 KB |
Output is correct |
4 |
Correct |
80 ms |
141136 KB |
Output is correct |
5 |
Correct |
79 ms |
141140 KB |
Output is correct |
6 |
Correct |
84 ms |
141164 KB |
Output is correct |
7 |
Correct |
78 ms |
141312 KB |
Output is correct |
8 |
Correct |
79 ms |
141248 KB |
Output is correct |
9 |
Correct |
79 ms |
141140 KB |
Output is correct |
10 |
Correct |
81 ms |
141332 KB |
Output is correct |
11 |
Correct |
81 ms |
141272 KB |
Output is correct |
12 |
Correct |
79 ms |
141356 KB |
Output is correct |
13 |
Correct |
78 ms |
141136 KB |
Output is correct |
14 |
Correct |
81 ms |
141136 KB |
Output is correct |
15 |
Correct |
87 ms |
141136 KB |
Output is correct |
16 |
Correct |
81 ms |
141136 KB |
Output is correct |
17 |
Correct |
81 ms |
141132 KB |
Output is correct |
18 |
Correct |
91 ms |
141344 KB |
Output is correct |
19 |
Correct |
83 ms |
141980 KB |
Output is correct |
20 |
Correct |
81 ms |
142748 KB |
Output is correct |
21 |
Correct |
81 ms |
142048 KB |
Output is correct |
22 |
Correct |
87 ms |
142116 KB |
Output is correct |
23 |
Correct |
82 ms |
141904 KB |
Output is correct |
24 |
Correct |
81 ms |
143208 KB |
Output is correct |
25 |
Correct |
81 ms |
143204 KB |
Output is correct |
26 |
Correct |
81 ms |
142060 KB |
Output is correct |
27 |
Correct |
80 ms |
142076 KB |
Output is correct |
28 |
Correct |
84 ms |
142124 KB |
Output is correct |
29 |
Correct |
87 ms |
143188 KB |
Output is correct |
30 |
Correct |
80 ms |
142896 KB |
Output is correct |
31 |
Correct |
84 ms |
143276 KB |
Output is correct |
32 |
Correct |
87 ms |
143104 KB |
Output is correct |
33 |
Correct |
89 ms |
143188 KB |
Output is correct |
34 |
Correct |
87 ms |
146120 KB |
Output is correct |
35 |
Correct |
85 ms |
146292 KB |
Output is correct |
36 |
Correct |
92 ms |
143224 KB |
Output is correct |
37 |
Correct |
90 ms |
143108 KB |
Output is correct |
38 |
Correct |
87 ms |
143056 KB |
Output is correct |
39 |
Correct |
178 ms |
160356 KB |
Output is correct |
40 |
Correct |
83 ms |
143696 KB |
Output is correct |
41 |
Correct |
83 ms |
147340 KB |
Output is correct |
42 |
Correct |
102 ms |
143956 KB |
Output is correct |
43 |
Correct |
88 ms |
146904 KB |
Output is correct |
44 |
Correct |
98 ms |
153356 KB |
Output is correct |
45 |
Correct |
102 ms |
154636 KB |
Output is correct |
46 |
Correct |
122 ms |
160592 KB |
Output is correct |
47 |
Correct |
168 ms |
160460 KB |
Output is correct |
48 |
Correct |
163 ms |
160336 KB |
Output is correct |
49 |
Correct |
118 ms |
191100 KB |
Output is correct |
50 |
Correct |
123 ms |
191024 KB |
Output is correct |
51 |
Correct |
149 ms |
160588 KB |
Output is correct |
52 |
Correct |
136 ms |
160332 KB |
Output is correct |
53 |
Correct |
166 ms |
160340 KB |
Output is correct |
54 |
Correct |
79 ms |
141136 KB |
Output is correct |
55 |
Correct |
82 ms |
141188 KB |
Output is correct |
56 |
Correct |
80 ms |
141312 KB |
Output is correct |
57 |
Correct |
79 ms |
141076 KB |
Output is correct |
58 |
Correct |
80 ms |
141436 KB |
Output is correct |
59 |
Correct |
78 ms |
141136 KB |
Output is correct |
60 |
Correct |
79 ms |
141136 KB |
Output is correct |
61 |
Correct |
83 ms |
141316 KB |
Output is correct |
62 |
Correct |
90 ms |
141188 KB |
Output is correct |
63 |
Correct |
80 ms |
141312 KB |
Output is correct |
64 |
Correct |
80 ms |
141208 KB |
Output is correct |
65 |
Correct |
78 ms |
141136 KB |
Output is correct |
66 |
Correct |
79 ms |
141136 KB |
Output is correct |
67 |
Correct |
81 ms |
141148 KB |
Output is correct |
68 |
Correct |
80 ms |
141276 KB |
Output is correct |
69 |
Correct |
79 ms |
141376 KB |
Output is correct |
70 |
Correct |
80 ms |
141276 KB |
Output is correct |
71 |
Correct |
81 ms |
141072 KB |
Output is correct |
72 |
Correct |
86 ms |
141168 KB |
Output is correct |
73 |
Correct |
78 ms |
141136 KB |
Output is correct |
74 |
Correct |
79 ms |
141132 KB |
Output is correct |
75 |
Correct |
79 ms |
141136 KB |
Output is correct |
76 |
Correct |
78 ms |
141136 KB |
Output is correct |
77 |
Correct |
85 ms |
141304 KB |
Output is correct |
78 |
Correct |
79 ms |
141140 KB |
Output is correct |
79 |
Correct |
82 ms |
141128 KB |
Output is correct |
80 |
Correct |
79 ms |
141140 KB |
Output is correct |
81 |
Correct |
79 ms |
141240 KB |
Output is correct |
82 |
Correct |
82 ms |
141136 KB |
Output is correct |
83 |
Correct |
90 ms |
141224 KB |
Output is correct |
84 |
Correct |
81 ms |
141336 KB |
Output is correct |
85 |
Correct |
81 ms |
141136 KB |
Output is correct |
86 |
Correct |
80 ms |
141232 KB |
Output is correct |
87 |
Correct |
80 ms |
141136 KB |
Output is correct |
88 |
Correct |
80 ms |
141304 KB |
Output is correct |
89 |
Correct |
91 ms |
141272 KB |
Output is correct |
90 |
Correct |
84 ms |
141100 KB |
Output is correct |
91 |
Correct |
79 ms |
141196 KB |
Output is correct |
92 |
Correct |
80 ms |
141140 KB |
Output is correct |
93 |
Correct |
82 ms |
141140 KB |
Output is correct |
94 |
Correct |
78 ms |
141140 KB |
Output is correct |
95 |
Correct |
79 ms |
141184 KB |
Output is correct |
96 |
Correct |
84 ms |
141272 KB |
Output is correct |
97 |
Correct |
80 ms |
141136 KB |
Output is correct |
98 |
Correct |
79 ms |
141144 KB |
Output is correct |
99 |
Correct |
79 ms |
141244 KB |
Output is correct |
100 |
Correct |
82 ms |
141256 KB |
Output is correct |
101 |
Correct |
82 ms |
141488 KB |
Output is correct |
102 |
Correct |
78 ms |
141340 KB |
Output is correct |
103 |
Correct |
82 ms |
141260 KB |
Output is correct |
104 |
Correct |
79 ms |
141308 KB |
Output is correct |
105 |
Correct |
78 ms |
141228 KB |
Output is correct |
106 |
Correct |
87 ms |
141312 KB |
Output is correct |
107 |
Correct |
79 ms |
141340 KB |
Output is correct |
108 |
Correct |
91 ms |
141160 KB |
Output is correct |
109 |
Correct |
79 ms |
141136 KB |
Output is correct |
110 |
Correct |
79 ms |
141796 KB |
Output is correct |
111 |
Correct |
84 ms |
141904 KB |
Output is correct |
112 |
Correct |
80 ms |
142100 KB |
Output is correct |
113 |
Correct |
80 ms |
141884 KB |
Output is correct |
114 |
Correct |
80 ms |
141904 KB |
Output is correct |
115 |
Correct |
95 ms |
142264 KB |
Output is correct |
116 |
Correct |
85 ms |
141960 KB |
Output is correct |
117 |
Correct |
81 ms |
142008 KB |
Output is correct |
118 |
Correct |
80 ms |
141876 KB |
Output is correct |
119 |
Correct |
83 ms |
142896 KB |
Output is correct |
120 |
Correct |
86 ms |
143440 KB |
Output is correct |
121 |
Correct |
86 ms |
143292 KB |
Output is correct |
122 |
Correct |
84 ms |
143124 KB |
Output is correct |
123 |
Correct |
86 ms |
143184 KB |
Output is correct |
124 |
Correct |
96 ms |
146948 KB |
Output is correct |
125 |
Correct |
131 ms |
157784 KB |
Output is correct |
126 |
Correct |
121 ms |
160340 KB |
Output is correct |
127 |
Correct |
117 ms |
160384 KB |
Output is correct |
128 |
Correct |
129 ms |
160588 KB |
Output is correct |
129 |
Correct |
131 ms |
160420 KB |
Output is correct |
130 |
Correct |
144 ms |
160892 KB |
Output is correct |
131 |
Correct |
146 ms |
160752 KB |
Output is correct |
132 |
Correct |
82 ms |
141928 KB |
Output is correct |
133 |
Correct |
82 ms |
141196 KB |
Output is correct |
134 |
Correct |
80 ms |
141396 KB |
Output is correct |
135 |
Correct |
80 ms |
141652 KB |
Output is correct |
136 |
Correct |
85 ms |
142924 KB |
Output is correct |
137 |
Correct |
80 ms |
141908 KB |
Output is correct |
138 |
Correct |
81 ms |
141908 KB |
Output is correct |
139 |
Correct |
84 ms |
141912 KB |
Output is correct |
140 |
Correct |
86 ms |
141908 KB |
Output is correct |
141 |
Correct |
86 ms |
141964 KB |
Output is correct |
142 |
Correct |
85 ms |
141892 KB |
Output is correct |
143 |
Correct |
81 ms |
141956 KB |
Output is correct |
144 |
Correct |
82 ms |
143216 KB |
Output is correct |
145 |
Correct |
82 ms |
143320 KB |
Output is correct |
146 |
Correct |
82 ms |
142628 KB |
Output is correct |
147 |
Correct |
84 ms |
142160 KB |
Output is correct |
148 |
Correct |
84 ms |
142108 KB |
Output is correct |
149 |
Correct |
82 ms |
141932 KB |
Output is correct |
150 |
Correct |
81 ms |
141904 KB |
Output is correct |
151 |
Correct |
85 ms |
141880 KB |
Output is correct |
152 |
Correct |
85 ms |
142096 KB |
Output is correct |
153 |
Correct |
82 ms |
141908 KB |
Output is correct |
154 |
Correct |
88 ms |
143288 KB |
Output is correct |
155 |
Correct |
81 ms |
142888 KB |
Output is correct |
156 |
Correct |
83 ms |
142676 KB |
Output is correct |
157 |
Correct |
86 ms |
143116 KB |
Output is correct |
158 |
Correct |
86 ms |
143184 KB |
Output is correct |
159 |
Correct |
88 ms |
143068 KB |
Output is correct |
160 |
Correct |
89 ms |
143292 KB |
Output is correct |
161 |
Correct |
83 ms |
143164 KB |
Output is correct |
162 |
Correct |
83 ms |
143108 KB |
Output is correct |
163 |
Correct |
87 ms |
143220 KB |
Output is correct |
164 |
Correct |
85 ms |
146292 KB |
Output is correct |
165 |
Correct |
89 ms |
146416 KB |
Output is correct |
166 |
Correct |
85 ms |
144680 KB |
Output is correct |
167 |
Correct |
94 ms |
143216 KB |
Output is correct |
168 |
Correct |
86 ms |
143140 KB |
Output is correct |
169 |
Correct |
85 ms |
143312 KB |
Output is correct |
170 |
Correct |
84 ms |
143052 KB |
Output is correct |
171 |
Correct |
87 ms |
143096 KB |
Output is correct |
172 |
Correct |
86 ms |
143184 KB |
Output is correct |
173 |
Correct |
84 ms |
143140 KB |
Output is correct |
174 |
Correct |
84 ms |
144004 KB |
Output is correct |
175 |
Correct |
95 ms |
145644 KB |
Output is correct |
176 |
Correct |
101 ms |
156272 KB |
Output is correct |
177 |
Correct |
115 ms |
155088 KB |
Output is correct |
178 |
Correct |
99 ms |
158916 KB |
Output is correct |
179 |
Correct |
119 ms |
161228 KB |
Output is correct |
180 |
Correct |
136 ms |
160932 KB |
Output is correct |
181 |
Correct |
141 ms |
160612 KB |
Output is correct |
182 |
Correct |
136 ms |
160596 KB |
Output is correct |
183 |
Correct |
144 ms |
161176 KB |
Output is correct |
184 |
Correct |
320 ms |
179724 KB |
Output is correct |
185 |
Correct |
114 ms |
163480 KB |
Output is correct |
186 |
Correct |
139 ms |
163348 KB |
Output is correct |
187 |
Correct |
115 ms |
168668 KB |
Output is correct |
188 |
Correct |
175 ms |
179860 KB |
Output is correct |
189 |
Correct |
240 ms |
179728 KB |
Output is correct |
190 |
Correct |
174 ms |
179732 KB |
Output is correct |
191 |
Correct |
162 ms |
179612 KB |
Output is correct |
192 |
Correct |
200 ms |
179540 KB |
Output is correct |
193 |
Correct |
192 ms |
179508 KB |
Output is correct |
194 |
Correct |
164 ms |
240980 KB |
Output is correct |
195 |
Correct |
164 ms |
241148 KB |
Output is correct |
196 |
Correct |
218 ms |
180612 KB |
Output is correct |
197 |
Correct |
159 ms |
180684 KB |
Output is correct |
198 |
Correct |
162 ms |
180100 KB |
Output is correct |
199 |
Correct |
187 ms |
179840 KB |
Output is correct |
200 |
Correct |
183 ms |
179528 KB |
Output is correct |
201 |
Correct |
226 ms |
179728 KB |
Output is correct |
202 |
Correct |
298 ms |
179732 KB |
Output is correct |
203 |
Correct |
530 ms |
217980 KB |
Output is correct |
204 |
Correct |
202 ms |
181048 KB |
Output is correct |
205 |
Correct |
257 ms |
191568 KB |
Output is correct |
206 |
Correct |
213 ms |
225616 KB |
Output is correct |
207 |
Correct |
275 ms |
223840 KB |
Output is correct |
208 |
Correct |
426 ms |
223596 KB |
Output is correct |
209 |
Correct |
515 ms |
223760 KB |
Output is correct |
210 |
Correct |
272 ms |
223840 KB |
Output is correct |
211 |
Correct |
322 ms |
223596 KB |
Output is correct |
212 |
Correct |
329 ms |
223796 KB |
Output is correct |
213 |
Correct |
217 ms |
340852 KB |
Output is correct |
214 |
Correct |
282 ms |
340948 KB |
Output is correct |
215 |
Correct |
317 ms |
224844 KB |
Output is correct |
216 |
Correct |
330 ms |
224740 KB |
Output is correct |
217 |
Correct |
331 ms |
224460 KB |
Output is correct |
218 |
Correct |
287 ms |
224260 KB |
Output is correct |
219 |
Correct |
278 ms |
224996 KB |
Output is correct |
220 |
Correct |
263 ms |
224672 KB |
Output is correct |
221 |
Correct |
358 ms |
224368 KB |
Output is correct |
222 |
Correct |
339 ms |
224420 KB |
Output is correct |
223 |
Correct |
380 ms |
223804 KB |
Output is correct |
224 |
Correct |
416 ms |
223656 KB |
Output is correct |
225 |
Correct |
329 ms |
223828 KB |
Output is correct |