# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
924573 |
2024-02-09T08:23:45 Z |
vjudge1 |
Maze (JOI23_ho_t3) |
C++17 |
|
1923 ms |
159020 KB |
#include <bits/stdc++.h>
using namespace std;
int dirI[] = {0, 0, 1, -1};
int dirJ[] = {1, -1, 0, 0};
int R, C, N;
bool isBest(int d1, int d2, pair<int, int>& p){
int mn1, mx1, mn2, mx2;
if(d1 < d2){
mn1 = d1;
mx1 = d2;
}else{
mn1 = d2;
mx1 = d1;
}
if(p.first<p.second){
mn2 = p.first;
mx2 = p.second;
}else{
mn2 = p.second;
mx2 = p.first;
}
if(!((mx1 <= N && mn1 < N) || (mx2 <= N && mn2 < N))) return false;
if(mx1 == mx2) return mn1 < mn2;
else return mx1 < mx2;
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> R >> C >> N;
int Sr, Sc, Gr, Gc; cin >> Sr >> Sc >> Gr >> Gc; Sr--; Sc--; Gr--; Gc--;
vector<string> v(R);
for(auto &i : v) cin >> i;
vector<pair<int, int>> added = {{Sr, Sc}};
vector<vector<int>> dist(R, vector<int>(C, 1e9));
vector<vector<bool>> vis(R, vector<bool>(C, false));
vector<vector<pair<int, int>>> best(R, vector<pair<int, int>>(C, {1e9, 1e9}));
dist[Sr][Sc] = 0;
for(int t = 0; t < 2*R*C; t++){
if(t==0){
//Time to freely expand;
queue<pair<int, int>> q;
for(pair<int, int>& p : added){
q.push(p);
}
while(!q.empty()){
int i = q.front().first; int j = q.front().second; q.pop();
if(i == Gr && j == Gc){
cout << dist[i][j] << "\n";
return 0;
}
// cout << "i " << i+1 << " j " << j+1 << " dist " << dist[i][j] << "\n";
for(int k = 0; k < 4; k++){
int ai = dirI[k]; int aj = dirJ[k];
if(i + ai < 0 || i + ai >= R || j + aj < 0 || j + aj >= C) continue;
int ni = i + ai; int nj = j + aj;
// cout << "ni " << ni << " nj " << nj << "\n";
if(v[ni][nj] == '.' && dist[ni][nj] > dist[i][j]){
dist[ni][nj] = dist[i][j];
added.push_back({ni, nj});
q.push({ni, nj});
}
}
}
}else{
priority_queue<pair<int, int>> q;
int d = 0;
for(pair<int, int>& p : added){
q.push({0, p.first*C+p.second});
best[p.first][p.second] = {0, 0};
d = dist[p.first][p.second];
vis[p.first][p.second] = false;
}
added.clear();
while(!q.empty()){
int val = q.top().second; q.pop();
int i = val/C; int j = val%C;
if(i == Gr && j == Gc){
cout << dist[i][j] << "\n";
return 0;
}
if(vis[i][j]) continue;
vis[i][j] = true;
if(best[i][j].first >= N || best[i][j].second >= N){
added.push_back({i, j});
}
for(int k = 0; k < 4; k++){
int ai = dirI[k]; int aj = dirJ[k];
if(i + ai < 0 || i + ai >= R || j + aj < 0 || j + aj >= C) continue;
int ni = i + ai; int nj = j + aj;
if(dist[ni][nj] > d && isBest(best[i][j].first+abs(ai), best[i][j].second+abs(aj), best[ni][nj])){
dist[ni][nj] = d+1;
best[ni][nj] = {best[i][j].first+abs(ai), best[i][j].second+abs(aj)};
q.push({-max(best[ni][nj].first, best[ni][nj].second)*(N+2)+min(best[ni][nj].first, best[ni][nj].second), ni*C+ nj});
}else if(dist[ni][nj] > d + 1 && v[ni][nj] == '.'){
dist[ni][nj] = d + 1;
q.push({2e9, ni*C+ nj});
}
}
}
}
}
cout << dist[Gr][Gc] << "\n";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
504 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
10 ms |
1116 KB |
Output is correct |
20 |
Correct |
3 ms |
1444 KB |
Output is correct |
21 |
Correct |
2 ms |
1756 KB |
Output is correct |
22 |
Correct |
12 ms |
1328 KB |
Output is correct |
23 |
Correct |
10 ms |
1280 KB |
Output is correct |
24 |
Correct |
6 ms |
1648 KB |
Output is correct |
25 |
Correct |
4 ms |
1644 KB |
Output is correct |
26 |
Correct |
2 ms |
1112 KB |
Output is correct |
27 |
Correct |
2 ms |
1112 KB |
Output is correct |
28 |
Correct |
6 ms |
1116 KB |
Output is correct |
29 |
Correct |
31 ms |
2472 KB |
Output is correct |
30 |
Correct |
6 ms |
1628 KB |
Output is correct |
31 |
Correct |
5 ms |
4564 KB |
Output is correct |
32 |
Correct |
34 ms |
2396 KB |
Output is correct |
33 |
Correct |
29 ms |
2592 KB |
Output is correct |
34 |
Correct |
16 ms |
3480 KB |
Output is correct |
35 |
Correct |
11 ms |
3484 KB |
Output is correct |
36 |
Correct |
23 ms |
2812 KB |
Output is correct |
37 |
Correct |
30 ms |
2652 KB |
Output is correct |
38 |
Correct |
3 ms |
2392 KB |
Output is correct |
39 |
Correct |
344 ms |
20096 KB |
Output is correct |
40 |
Correct |
10 ms |
2648 KB |
Output is correct |
41 |
Correct |
8 ms |
4372 KB |
Output is correct |
42 |
Correct |
49 ms |
3264 KB |
Output is correct |
43 |
Correct |
21 ms |
4480 KB |
Output is correct |
44 |
Correct |
53 ms |
11128 KB |
Output is correct |
45 |
Correct |
46 ms |
11908 KB |
Output is correct |
46 |
Correct |
21 ms |
25296 KB |
Output is correct |
47 |
Correct |
331 ms |
20304 KB |
Output is correct |
48 |
Correct |
282 ms |
20048 KB |
Output is correct |
49 |
Correct |
79 ms |
31512 KB |
Output is correct |
50 |
Correct |
64 ms |
31512 KB |
Output is correct |
51 |
Correct |
260 ms |
21440 KB |
Output is correct |
52 |
Correct |
181 ms |
20612 KB |
Output is correct |
53 |
Correct |
292 ms |
20160 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
360 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
344 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
1 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
860 KB |
Output is correct |
26 |
Correct |
2 ms |
1496 KB |
Output is correct |
27 |
Correct |
4 ms |
1756 KB |
Output is correct |
28 |
Correct |
2 ms |
1756 KB |
Output is correct |
29 |
Correct |
6 ms |
1116 KB |
Output is correct |
30 |
Correct |
4 ms |
1272 KB |
Output is correct |
31 |
Correct |
3 ms |
1116 KB |
Output is correct |
32 |
Correct |
1 ms |
1116 KB |
Output is correct |
33 |
Correct |
1 ms |
1116 KB |
Output is correct |
34 |
Correct |
4 ms |
3028 KB |
Output is correct |
35 |
Correct |
5 ms |
4568 KB |
Output is correct |
36 |
Correct |
4 ms |
3800 KB |
Output is correct |
37 |
Correct |
9 ms |
2392 KB |
Output is correct |
38 |
Correct |
14 ms |
2396 KB |
Output is correct |
39 |
Correct |
14 ms |
8148 KB |
Output is correct |
40 |
Correct |
42 ms |
25788 KB |
Output is correct |
41 |
Correct |
20 ms |
25548 KB |
Output is correct |
42 |
Correct |
43 ms |
37096 KB |
Output is correct |
43 |
Correct |
95 ms |
20032 KB |
Output is correct |
44 |
Correct |
158 ms |
20052 KB |
Output is correct |
45 |
Correct |
43 ms |
29524 KB |
Output is correct |
46 |
Correct |
41 ms |
30140 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
10 ms |
1116 KB |
Output is correct |
34 |
Correct |
0 ms |
344 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
964 KB |
Output is correct |
37 |
Correct |
3 ms |
1444 KB |
Output is correct |
38 |
Correct |
2 ms |
1496 KB |
Output is correct |
39 |
Correct |
3 ms |
1756 KB |
Output is correct |
40 |
Correct |
12 ms |
1324 KB |
Output is correct |
41 |
Correct |
11 ms |
1112 KB |
Output is correct |
42 |
Correct |
2 ms |
1756 KB |
Output is correct |
43 |
Correct |
5 ms |
1112 KB |
Output is correct |
44 |
Correct |
3 ms |
1116 KB |
Output is correct |
45 |
Correct |
6 ms |
1648 KB |
Output is correct |
46 |
Correct |
4 ms |
1648 KB |
Output is correct |
47 |
Correct |
5 ms |
1636 KB |
Output is correct |
48 |
Correct |
6 ms |
1116 KB |
Output is correct |
49 |
Correct |
4 ms |
1116 KB |
Output is correct |
50 |
Correct |
6 ms |
1256 KB |
Output is correct |
51 |
Correct |
3 ms |
1116 KB |
Output is correct |
52 |
Correct |
1 ms |
1116 KB |
Output is correct |
53 |
Correct |
1 ms |
1116 KB |
Output is correct |
54 |
Correct |
6 ms |
1116 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
10 ms |
1116 KB |
Output is correct |
34 |
Correct |
0 ms |
344 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
964 KB |
Output is correct |
37 |
Correct |
3 ms |
1444 KB |
Output is correct |
38 |
Correct |
2 ms |
1496 KB |
Output is correct |
39 |
Correct |
3 ms |
1756 KB |
Output is correct |
40 |
Correct |
12 ms |
1324 KB |
Output is correct |
41 |
Correct |
11 ms |
1112 KB |
Output is correct |
42 |
Correct |
2 ms |
1756 KB |
Output is correct |
43 |
Correct |
5 ms |
1112 KB |
Output is correct |
44 |
Correct |
3 ms |
1116 KB |
Output is correct |
45 |
Correct |
6 ms |
1648 KB |
Output is correct |
46 |
Correct |
4 ms |
1648 KB |
Output is correct |
47 |
Correct |
5 ms |
1636 KB |
Output is correct |
48 |
Correct |
6 ms |
1116 KB |
Output is correct |
49 |
Correct |
4 ms |
1116 KB |
Output is correct |
50 |
Correct |
6 ms |
1256 KB |
Output is correct |
51 |
Correct |
3 ms |
1116 KB |
Output is correct |
52 |
Correct |
1 ms |
1116 KB |
Output is correct |
53 |
Correct |
1 ms |
1116 KB |
Output is correct |
54 |
Correct |
6 ms |
1116 KB |
Output is correct |
55 |
Correct |
34 ms |
2456 KB |
Output is correct |
56 |
Correct |
6 ms |
1624 KB |
Output is correct |
57 |
Correct |
4 ms |
3032 KB |
Output is correct |
58 |
Correct |
17 ms |
2136 KB |
Output is correct |
59 |
Correct |
5 ms |
4564 KB |
Output is correct |
60 |
Correct |
35 ms |
2396 KB |
Output is correct |
61 |
Correct |
27 ms |
2396 KB |
Output is correct |
62 |
Correct |
5 ms |
3544 KB |
Output is correct |
63 |
Correct |
8 ms |
2396 KB |
Output is correct |
64 |
Correct |
15 ms |
2464 KB |
Output is correct |
65 |
Correct |
16 ms |
3484 KB |
Output is correct |
66 |
Correct |
10 ms |
3484 KB |
Output is correct |
67 |
Correct |
12 ms |
2864 KB |
Output is correct |
68 |
Correct |
15 ms |
2396 KB |
Output is correct |
69 |
Correct |
15 ms |
2396 KB |
Output is correct |
70 |
Correct |
16 ms |
2396 KB |
Output is correct |
71 |
Correct |
13 ms |
2396 KB |
Output is correct |
72 |
Correct |
19 ms |
2804 KB |
Output is correct |
73 |
Correct |
28 ms |
2652 KB |
Output is correct |
74 |
Correct |
3 ms |
2396 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
504 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
10 ms |
1116 KB |
Output is correct |
20 |
Correct |
3 ms |
1444 KB |
Output is correct |
21 |
Correct |
2 ms |
1756 KB |
Output is correct |
22 |
Correct |
12 ms |
1328 KB |
Output is correct |
23 |
Correct |
10 ms |
1280 KB |
Output is correct |
24 |
Correct |
6 ms |
1648 KB |
Output is correct |
25 |
Correct |
4 ms |
1644 KB |
Output is correct |
26 |
Correct |
2 ms |
1112 KB |
Output is correct |
27 |
Correct |
2 ms |
1112 KB |
Output is correct |
28 |
Correct |
6 ms |
1116 KB |
Output is correct |
29 |
Correct |
31 ms |
2472 KB |
Output is correct |
30 |
Correct |
6 ms |
1628 KB |
Output is correct |
31 |
Correct |
5 ms |
4564 KB |
Output is correct |
32 |
Correct |
34 ms |
2396 KB |
Output is correct |
33 |
Correct |
29 ms |
2592 KB |
Output is correct |
34 |
Correct |
16 ms |
3480 KB |
Output is correct |
35 |
Correct |
11 ms |
3484 KB |
Output is correct |
36 |
Correct |
23 ms |
2812 KB |
Output is correct |
37 |
Correct |
30 ms |
2652 KB |
Output is correct |
38 |
Correct |
3 ms |
2392 KB |
Output is correct |
39 |
Correct |
344 ms |
20096 KB |
Output is correct |
40 |
Correct |
10 ms |
2648 KB |
Output is correct |
41 |
Correct |
8 ms |
4372 KB |
Output is correct |
42 |
Correct |
49 ms |
3264 KB |
Output is correct |
43 |
Correct |
21 ms |
4480 KB |
Output is correct |
44 |
Correct |
53 ms |
11128 KB |
Output is correct |
45 |
Correct |
46 ms |
11908 KB |
Output is correct |
46 |
Correct |
21 ms |
25296 KB |
Output is correct |
47 |
Correct |
331 ms |
20304 KB |
Output is correct |
48 |
Correct |
282 ms |
20048 KB |
Output is correct |
49 |
Correct |
79 ms |
31512 KB |
Output is correct |
50 |
Correct |
64 ms |
31512 KB |
Output is correct |
51 |
Correct |
260 ms |
21440 KB |
Output is correct |
52 |
Correct |
181 ms |
20612 KB |
Output is correct |
53 |
Correct |
292 ms |
20160 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
344 KB |
Output is correct |
70 |
Correct |
1 ms |
344 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
360 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
344 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
344 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
860 KB |
Output is correct |
111 |
Correct |
2 ms |
1496 KB |
Output is correct |
112 |
Correct |
4 ms |
1756 KB |
Output is correct |
113 |
Correct |
2 ms |
1756 KB |
Output is correct |
114 |
Correct |
6 ms |
1116 KB |
Output is correct |
115 |
Correct |
4 ms |
1272 KB |
Output is correct |
116 |
Correct |
3 ms |
1116 KB |
Output is correct |
117 |
Correct |
1 ms |
1116 KB |
Output is correct |
118 |
Correct |
1 ms |
1116 KB |
Output is correct |
119 |
Correct |
4 ms |
3028 KB |
Output is correct |
120 |
Correct |
5 ms |
4568 KB |
Output is correct |
121 |
Correct |
4 ms |
3800 KB |
Output is correct |
122 |
Correct |
9 ms |
2392 KB |
Output is correct |
123 |
Correct |
14 ms |
2396 KB |
Output is correct |
124 |
Correct |
14 ms |
8148 KB |
Output is correct |
125 |
Correct |
42 ms |
25788 KB |
Output is correct |
126 |
Correct |
20 ms |
25548 KB |
Output is correct |
127 |
Correct |
43 ms |
37096 KB |
Output is correct |
128 |
Correct |
95 ms |
20032 KB |
Output is correct |
129 |
Correct |
158 ms |
20052 KB |
Output is correct |
130 |
Correct |
43 ms |
29524 KB |
Output is correct |
131 |
Correct |
41 ms |
30140 KB |
Output is correct |
132 |
Correct |
10 ms |
1116 KB |
Output is correct |
133 |
Correct |
0 ms |
344 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
2 ms |
964 KB |
Output is correct |
136 |
Correct |
3 ms |
1444 KB |
Output is correct |
137 |
Correct |
2 ms |
1496 KB |
Output is correct |
138 |
Correct |
3 ms |
1756 KB |
Output is correct |
139 |
Correct |
12 ms |
1324 KB |
Output is correct |
140 |
Correct |
11 ms |
1112 KB |
Output is correct |
141 |
Correct |
2 ms |
1756 KB |
Output is correct |
142 |
Correct |
5 ms |
1112 KB |
Output is correct |
143 |
Correct |
3 ms |
1116 KB |
Output is correct |
144 |
Correct |
6 ms |
1648 KB |
Output is correct |
145 |
Correct |
4 ms |
1648 KB |
Output is correct |
146 |
Correct |
5 ms |
1636 KB |
Output is correct |
147 |
Correct |
6 ms |
1116 KB |
Output is correct |
148 |
Correct |
4 ms |
1116 KB |
Output is correct |
149 |
Correct |
6 ms |
1256 KB |
Output is correct |
150 |
Correct |
3 ms |
1116 KB |
Output is correct |
151 |
Correct |
1 ms |
1116 KB |
Output is correct |
152 |
Correct |
1 ms |
1116 KB |
Output is correct |
153 |
Correct |
6 ms |
1116 KB |
Output is correct |
154 |
Correct |
34 ms |
2456 KB |
Output is correct |
155 |
Correct |
6 ms |
1624 KB |
Output is correct |
156 |
Correct |
4 ms |
3032 KB |
Output is correct |
157 |
Correct |
17 ms |
2136 KB |
Output is correct |
158 |
Correct |
5 ms |
4564 KB |
Output is correct |
159 |
Correct |
35 ms |
2396 KB |
Output is correct |
160 |
Correct |
27 ms |
2396 KB |
Output is correct |
161 |
Correct |
5 ms |
3544 KB |
Output is correct |
162 |
Correct |
8 ms |
2396 KB |
Output is correct |
163 |
Correct |
15 ms |
2464 KB |
Output is correct |
164 |
Correct |
16 ms |
3484 KB |
Output is correct |
165 |
Correct |
10 ms |
3484 KB |
Output is correct |
166 |
Correct |
12 ms |
2864 KB |
Output is correct |
167 |
Correct |
15 ms |
2396 KB |
Output is correct |
168 |
Correct |
15 ms |
2396 KB |
Output is correct |
169 |
Correct |
16 ms |
2396 KB |
Output is correct |
170 |
Correct |
13 ms |
2396 KB |
Output is correct |
171 |
Correct |
19 ms |
2804 KB |
Output is correct |
172 |
Correct |
28 ms |
2652 KB |
Output is correct |
173 |
Correct |
3 ms |
2396 KB |
Output is correct |
174 |
Correct |
10 ms |
3164 KB |
Output is correct |
175 |
Correct |
40 ms |
4872 KB |
Output is correct |
176 |
Correct |
32 ms |
12056 KB |
Output is correct |
177 |
Correct |
90 ms |
13736 KB |
Output is correct |
178 |
Correct |
18 ms |
18068 KB |
Output is correct |
179 |
Correct |
82 ms |
20184 KB |
Output is correct |
180 |
Correct |
158 ms |
20064 KB |
Output is correct |
181 |
Correct |
158 ms |
20056 KB |
Output is correct |
182 |
Correct |
188 ms |
20056 KB |
Output is correct |
183 |
Correct |
279 ms |
22780 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
504 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
10 ms |
1116 KB |
Output is correct |
20 |
Correct |
3 ms |
1444 KB |
Output is correct |
21 |
Correct |
2 ms |
1756 KB |
Output is correct |
22 |
Correct |
12 ms |
1328 KB |
Output is correct |
23 |
Correct |
10 ms |
1280 KB |
Output is correct |
24 |
Correct |
6 ms |
1648 KB |
Output is correct |
25 |
Correct |
4 ms |
1644 KB |
Output is correct |
26 |
Correct |
2 ms |
1112 KB |
Output is correct |
27 |
Correct |
2 ms |
1112 KB |
Output is correct |
28 |
Correct |
6 ms |
1116 KB |
Output is correct |
29 |
Correct |
31 ms |
2472 KB |
Output is correct |
30 |
Correct |
6 ms |
1628 KB |
Output is correct |
31 |
Correct |
5 ms |
4564 KB |
Output is correct |
32 |
Correct |
34 ms |
2396 KB |
Output is correct |
33 |
Correct |
29 ms |
2592 KB |
Output is correct |
34 |
Correct |
16 ms |
3480 KB |
Output is correct |
35 |
Correct |
11 ms |
3484 KB |
Output is correct |
36 |
Correct |
23 ms |
2812 KB |
Output is correct |
37 |
Correct |
30 ms |
2652 KB |
Output is correct |
38 |
Correct |
3 ms |
2392 KB |
Output is correct |
39 |
Correct |
344 ms |
20096 KB |
Output is correct |
40 |
Correct |
10 ms |
2648 KB |
Output is correct |
41 |
Correct |
8 ms |
4372 KB |
Output is correct |
42 |
Correct |
49 ms |
3264 KB |
Output is correct |
43 |
Correct |
21 ms |
4480 KB |
Output is correct |
44 |
Correct |
53 ms |
11128 KB |
Output is correct |
45 |
Correct |
46 ms |
11908 KB |
Output is correct |
46 |
Correct |
21 ms |
25296 KB |
Output is correct |
47 |
Correct |
331 ms |
20304 KB |
Output is correct |
48 |
Correct |
282 ms |
20048 KB |
Output is correct |
49 |
Correct |
79 ms |
31512 KB |
Output is correct |
50 |
Correct |
64 ms |
31512 KB |
Output is correct |
51 |
Correct |
260 ms |
21440 KB |
Output is correct |
52 |
Correct |
181 ms |
20612 KB |
Output is correct |
53 |
Correct |
292 ms |
20160 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
344 KB |
Output is correct |
70 |
Correct |
1 ms |
344 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
360 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
344 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
344 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
860 KB |
Output is correct |
111 |
Correct |
2 ms |
1496 KB |
Output is correct |
112 |
Correct |
4 ms |
1756 KB |
Output is correct |
113 |
Correct |
2 ms |
1756 KB |
Output is correct |
114 |
Correct |
6 ms |
1116 KB |
Output is correct |
115 |
Correct |
4 ms |
1272 KB |
Output is correct |
116 |
Correct |
3 ms |
1116 KB |
Output is correct |
117 |
Correct |
1 ms |
1116 KB |
Output is correct |
118 |
Correct |
1 ms |
1116 KB |
Output is correct |
119 |
Correct |
4 ms |
3028 KB |
Output is correct |
120 |
Correct |
5 ms |
4568 KB |
Output is correct |
121 |
Correct |
4 ms |
3800 KB |
Output is correct |
122 |
Correct |
9 ms |
2392 KB |
Output is correct |
123 |
Correct |
14 ms |
2396 KB |
Output is correct |
124 |
Correct |
14 ms |
8148 KB |
Output is correct |
125 |
Correct |
42 ms |
25788 KB |
Output is correct |
126 |
Correct |
20 ms |
25548 KB |
Output is correct |
127 |
Correct |
43 ms |
37096 KB |
Output is correct |
128 |
Correct |
95 ms |
20032 KB |
Output is correct |
129 |
Correct |
158 ms |
20052 KB |
Output is correct |
130 |
Correct |
43 ms |
29524 KB |
Output is correct |
131 |
Correct |
41 ms |
30140 KB |
Output is correct |
132 |
Correct |
10 ms |
1116 KB |
Output is correct |
133 |
Correct |
0 ms |
344 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
2 ms |
964 KB |
Output is correct |
136 |
Correct |
3 ms |
1444 KB |
Output is correct |
137 |
Correct |
2 ms |
1496 KB |
Output is correct |
138 |
Correct |
3 ms |
1756 KB |
Output is correct |
139 |
Correct |
12 ms |
1324 KB |
Output is correct |
140 |
Correct |
11 ms |
1112 KB |
Output is correct |
141 |
Correct |
2 ms |
1756 KB |
Output is correct |
142 |
Correct |
5 ms |
1112 KB |
Output is correct |
143 |
Correct |
3 ms |
1116 KB |
Output is correct |
144 |
Correct |
6 ms |
1648 KB |
Output is correct |
145 |
Correct |
4 ms |
1648 KB |
Output is correct |
146 |
Correct |
5 ms |
1636 KB |
Output is correct |
147 |
Correct |
6 ms |
1116 KB |
Output is correct |
148 |
Correct |
4 ms |
1116 KB |
Output is correct |
149 |
Correct |
6 ms |
1256 KB |
Output is correct |
150 |
Correct |
3 ms |
1116 KB |
Output is correct |
151 |
Correct |
1 ms |
1116 KB |
Output is correct |
152 |
Correct |
1 ms |
1116 KB |
Output is correct |
153 |
Correct |
6 ms |
1116 KB |
Output is correct |
154 |
Correct |
34 ms |
2456 KB |
Output is correct |
155 |
Correct |
6 ms |
1624 KB |
Output is correct |
156 |
Correct |
4 ms |
3032 KB |
Output is correct |
157 |
Correct |
17 ms |
2136 KB |
Output is correct |
158 |
Correct |
5 ms |
4564 KB |
Output is correct |
159 |
Correct |
35 ms |
2396 KB |
Output is correct |
160 |
Correct |
27 ms |
2396 KB |
Output is correct |
161 |
Correct |
5 ms |
3544 KB |
Output is correct |
162 |
Correct |
8 ms |
2396 KB |
Output is correct |
163 |
Correct |
15 ms |
2464 KB |
Output is correct |
164 |
Correct |
16 ms |
3484 KB |
Output is correct |
165 |
Correct |
10 ms |
3484 KB |
Output is correct |
166 |
Correct |
12 ms |
2864 KB |
Output is correct |
167 |
Correct |
15 ms |
2396 KB |
Output is correct |
168 |
Correct |
15 ms |
2396 KB |
Output is correct |
169 |
Correct |
16 ms |
2396 KB |
Output is correct |
170 |
Correct |
13 ms |
2396 KB |
Output is correct |
171 |
Correct |
19 ms |
2804 KB |
Output is correct |
172 |
Correct |
28 ms |
2652 KB |
Output is correct |
173 |
Correct |
3 ms |
2396 KB |
Output is correct |
174 |
Correct |
10 ms |
3164 KB |
Output is correct |
175 |
Correct |
40 ms |
4872 KB |
Output is correct |
176 |
Correct |
32 ms |
12056 KB |
Output is correct |
177 |
Correct |
90 ms |
13736 KB |
Output is correct |
178 |
Correct |
18 ms |
18068 KB |
Output is correct |
179 |
Correct |
82 ms |
20184 KB |
Output is correct |
180 |
Correct |
158 ms |
20064 KB |
Output is correct |
181 |
Correct |
158 ms |
20056 KB |
Output is correct |
182 |
Correct |
188 ms |
20056 KB |
Output is correct |
183 |
Correct |
279 ms |
22780 KB |
Output is correct |
184 |
Correct |
747 ms |
39504 KB |
Output is correct |
185 |
Correct |
57 ms |
22172 KB |
Output is correct |
186 |
Correct |
49 ms |
33032 KB |
Output is correct |
187 |
Correct |
48 ms |
28248 KB |
Output is correct |
188 |
Correct |
99 ms |
72788 KB |
Output is correct |
189 |
Correct |
558 ms |
40040 KB |
Output is correct |
190 |
Correct |
232 ms |
39508 KB |
Output is correct |
191 |
Correct |
94 ms |
73144 KB |
Output is correct |
192 |
Correct |
383 ms |
39584 KB |
Output is correct |
193 |
Correct |
332 ms |
39532 KB |
Output is correct |
194 |
Correct |
247 ms |
62764 KB |
Output is correct |
195 |
Correct |
131 ms |
62720 KB |
Output is correct |
196 |
Correct |
287 ms |
39820 KB |
Output is correct |
197 |
Correct |
153 ms |
40104 KB |
Output is correct |
198 |
Correct |
156 ms |
39768 KB |
Output is correct |
199 |
Correct |
308 ms |
39760 KB |
Output is correct |
200 |
Correct |
279 ms |
41728 KB |
Output is correct |
201 |
Correct |
458 ms |
40552 KB |
Output is correct |
202 |
Correct |
679 ms |
39756 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
504 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
10 ms |
1116 KB |
Output is correct |
20 |
Correct |
3 ms |
1444 KB |
Output is correct |
21 |
Correct |
2 ms |
1756 KB |
Output is correct |
22 |
Correct |
12 ms |
1328 KB |
Output is correct |
23 |
Correct |
10 ms |
1280 KB |
Output is correct |
24 |
Correct |
6 ms |
1648 KB |
Output is correct |
25 |
Correct |
4 ms |
1644 KB |
Output is correct |
26 |
Correct |
2 ms |
1112 KB |
Output is correct |
27 |
Correct |
2 ms |
1112 KB |
Output is correct |
28 |
Correct |
6 ms |
1116 KB |
Output is correct |
29 |
Correct |
31 ms |
2472 KB |
Output is correct |
30 |
Correct |
6 ms |
1628 KB |
Output is correct |
31 |
Correct |
5 ms |
4564 KB |
Output is correct |
32 |
Correct |
34 ms |
2396 KB |
Output is correct |
33 |
Correct |
29 ms |
2592 KB |
Output is correct |
34 |
Correct |
16 ms |
3480 KB |
Output is correct |
35 |
Correct |
11 ms |
3484 KB |
Output is correct |
36 |
Correct |
23 ms |
2812 KB |
Output is correct |
37 |
Correct |
30 ms |
2652 KB |
Output is correct |
38 |
Correct |
3 ms |
2392 KB |
Output is correct |
39 |
Correct |
344 ms |
20096 KB |
Output is correct |
40 |
Correct |
10 ms |
2648 KB |
Output is correct |
41 |
Correct |
8 ms |
4372 KB |
Output is correct |
42 |
Correct |
49 ms |
3264 KB |
Output is correct |
43 |
Correct |
21 ms |
4480 KB |
Output is correct |
44 |
Correct |
53 ms |
11128 KB |
Output is correct |
45 |
Correct |
46 ms |
11908 KB |
Output is correct |
46 |
Correct |
21 ms |
25296 KB |
Output is correct |
47 |
Correct |
331 ms |
20304 KB |
Output is correct |
48 |
Correct |
282 ms |
20048 KB |
Output is correct |
49 |
Correct |
79 ms |
31512 KB |
Output is correct |
50 |
Correct |
64 ms |
31512 KB |
Output is correct |
51 |
Correct |
260 ms |
21440 KB |
Output is correct |
52 |
Correct |
181 ms |
20612 KB |
Output is correct |
53 |
Correct |
292 ms |
20160 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
344 KB |
Output is correct |
70 |
Correct |
1 ms |
344 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
360 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
344 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
344 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
860 KB |
Output is correct |
111 |
Correct |
2 ms |
1496 KB |
Output is correct |
112 |
Correct |
4 ms |
1756 KB |
Output is correct |
113 |
Correct |
2 ms |
1756 KB |
Output is correct |
114 |
Correct |
6 ms |
1116 KB |
Output is correct |
115 |
Correct |
4 ms |
1272 KB |
Output is correct |
116 |
Correct |
3 ms |
1116 KB |
Output is correct |
117 |
Correct |
1 ms |
1116 KB |
Output is correct |
118 |
Correct |
1 ms |
1116 KB |
Output is correct |
119 |
Correct |
4 ms |
3028 KB |
Output is correct |
120 |
Correct |
5 ms |
4568 KB |
Output is correct |
121 |
Correct |
4 ms |
3800 KB |
Output is correct |
122 |
Correct |
9 ms |
2392 KB |
Output is correct |
123 |
Correct |
14 ms |
2396 KB |
Output is correct |
124 |
Correct |
14 ms |
8148 KB |
Output is correct |
125 |
Correct |
42 ms |
25788 KB |
Output is correct |
126 |
Correct |
20 ms |
25548 KB |
Output is correct |
127 |
Correct |
43 ms |
37096 KB |
Output is correct |
128 |
Correct |
95 ms |
20032 KB |
Output is correct |
129 |
Correct |
158 ms |
20052 KB |
Output is correct |
130 |
Correct |
43 ms |
29524 KB |
Output is correct |
131 |
Correct |
41 ms |
30140 KB |
Output is correct |
132 |
Correct |
10 ms |
1116 KB |
Output is correct |
133 |
Correct |
0 ms |
344 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
2 ms |
964 KB |
Output is correct |
136 |
Correct |
3 ms |
1444 KB |
Output is correct |
137 |
Correct |
2 ms |
1496 KB |
Output is correct |
138 |
Correct |
3 ms |
1756 KB |
Output is correct |
139 |
Correct |
12 ms |
1324 KB |
Output is correct |
140 |
Correct |
11 ms |
1112 KB |
Output is correct |
141 |
Correct |
2 ms |
1756 KB |
Output is correct |
142 |
Correct |
5 ms |
1112 KB |
Output is correct |
143 |
Correct |
3 ms |
1116 KB |
Output is correct |
144 |
Correct |
6 ms |
1648 KB |
Output is correct |
145 |
Correct |
4 ms |
1648 KB |
Output is correct |
146 |
Correct |
5 ms |
1636 KB |
Output is correct |
147 |
Correct |
6 ms |
1116 KB |
Output is correct |
148 |
Correct |
4 ms |
1116 KB |
Output is correct |
149 |
Correct |
6 ms |
1256 KB |
Output is correct |
150 |
Correct |
3 ms |
1116 KB |
Output is correct |
151 |
Correct |
1 ms |
1116 KB |
Output is correct |
152 |
Correct |
1 ms |
1116 KB |
Output is correct |
153 |
Correct |
6 ms |
1116 KB |
Output is correct |
154 |
Correct |
34 ms |
2456 KB |
Output is correct |
155 |
Correct |
6 ms |
1624 KB |
Output is correct |
156 |
Correct |
4 ms |
3032 KB |
Output is correct |
157 |
Correct |
17 ms |
2136 KB |
Output is correct |
158 |
Correct |
5 ms |
4564 KB |
Output is correct |
159 |
Correct |
35 ms |
2396 KB |
Output is correct |
160 |
Correct |
27 ms |
2396 KB |
Output is correct |
161 |
Correct |
5 ms |
3544 KB |
Output is correct |
162 |
Correct |
8 ms |
2396 KB |
Output is correct |
163 |
Correct |
15 ms |
2464 KB |
Output is correct |
164 |
Correct |
16 ms |
3484 KB |
Output is correct |
165 |
Correct |
10 ms |
3484 KB |
Output is correct |
166 |
Correct |
12 ms |
2864 KB |
Output is correct |
167 |
Correct |
15 ms |
2396 KB |
Output is correct |
168 |
Correct |
15 ms |
2396 KB |
Output is correct |
169 |
Correct |
16 ms |
2396 KB |
Output is correct |
170 |
Correct |
13 ms |
2396 KB |
Output is correct |
171 |
Correct |
19 ms |
2804 KB |
Output is correct |
172 |
Correct |
28 ms |
2652 KB |
Output is correct |
173 |
Correct |
3 ms |
2396 KB |
Output is correct |
174 |
Correct |
10 ms |
3164 KB |
Output is correct |
175 |
Correct |
40 ms |
4872 KB |
Output is correct |
176 |
Correct |
32 ms |
12056 KB |
Output is correct |
177 |
Correct |
90 ms |
13736 KB |
Output is correct |
178 |
Correct |
18 ms |
18068 KB |
Output is correct |
179 |
Correct |
82 ms |
20184 KB |
Output is correct |
180 |
Correct |
158 ms |
20064 KB |
Output is correct |
181 |
Correct |
158 ms |
20056 KB |
Output is correct |
182 |
Correct |
188 ms |
20056 KB |
Output is correct |
183 |
Correct |
279 ms |
22780 KB |
Output is correct |
184 |
Correct |
747 ms |
39504 KB |
Output is correct |
185 |
Correct |
57 ms |
22172 KB |
Output is correct |
186 |
Correct |
49 ms |
33032 KB |
Output is correct |
187 |
Correct |
48 ms |
28248 KB |
Output is correct |
188 |
Correct |
99 ms |
72788 KB |
Output is correct |
189 |
Correct |
558 ms |
40040 KB |
Output is correct |
190 |
Correct |
232 ms |
39508 KB |
Output is correct |
191 |
Correct |
94 ms |
73144 KB |
Output is correct |
192 |
Correct |
383 ms |
39584 KB |
Output is correct |
193 |
Correct |
332 ms |
39532 KB |
Output is correct |
194 |
Correct |
247 ms |
62764 KB |
Output is correct |
195 |
Correct |
131 ms |
62720 KB |
Output is correct |
196 |
Correct |
287 ms |
39820 KB |
Output is correct |
197 |
Correct |
153 ms |
40104 KB |
Output is correct |
198 |
Correct |
156 ms |
39768 KB |
Output is correct |
199 |
Correct |
308 ms |
39760 KB |
Output is correct |
200 |
Correct |
279 ms |
41728 KB |
Output is correct |
201 |
Correct |
458 ms |
40552 KB |
Output is correct |
202 |
Correct |
679 ms |
39756 KB |
Output is correct |
203 |
Correct |
1478 ms |
78692 KB |
Output is correct |
204 |
Correct |
317 ms |
40796 KB |
Output is correct |
205 |
Correct |
632 ms |
48212 KB |
Output is correct |
206 |
Correct |
266 ms |
78636 KB |
Output is correct |
207 |
Correct |
197 ms |
145048 KB |
Output is correct |
208 |
Correct |
1179 ms |
79312 KB |
Output is correct |
209 |
Correct |
1412 ms |
78640 KB |
Output is correct |
210 |
Correct |
125 ms |
113308 KB |
Output is correct |
211 |
Correct |
457 ms |
78580 KB |
Output is correct |
212 |
Correct |
822 ms |
78696 KB |
Output is correct |
213 |
Correct |
399 ms |
125832 KB |
Output is correct |
214 |
Correct |
353 ms |
125548 KB |
Output is correct |
215 |
Correct |
550 ms |
78608 KB |
Output is correct |
216 |
Correct |
492 ms |
78976 KB |
Output is correct |
217 |
Correct |
570 ms |
79056 KB |
Output is correct |
218 |
Correct |
481 ms |
78964 KB |
Output is correct |
219 |
Correct |
951 ms |
113512 KB |
Output is correct |
220 |
Correct |
100 ms |
96628 KB |
Output is correct |
221 |
Correct |
194 ms |
113328 KB |
Output is correct |
222 |
Correct |
1923 ms |
159020 KB |
Output is correct |
223 |
Correct |
1026 ms |
84356 KB |
Output is correct |
224 |
Correct |
1064 ms |
83048 KB |
Output is correct |
225 |
Correct |
617 ms |
81940 KB |
Output is correct |