# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
834980 |
2023-08-23T04:15:39 Z |
sentheta |
Maze (JOI23_ho_t3) |
C++17 |
|
762 ms |
205776 KB |
// #include "maze.h"
#include<bits/stdc++.h>
using namespace std;
#define V vector
#define rep(i,a,b) for(int i=(int)(a); i<(int)(b); i++)
#define Int long long
#define all(x) (x).begin(), (x).end()
#define pii pair<int,int>
#define ff first
#define ss second
#if VANWIJ
#define DBG 1
#else
#define DBG 0
#endif
#define cerr if(DBG) cout
#define dbg(x) cerr << "?" << #x << " : " << x << endl;
#define _ << " " <<
const int INF = 1e9;
int r, c, n;
// start and goal
int sx, sy, gx, gy;
V<V<char>> a;
V<V<int>> nxth, nxtv;
int findH(int i,int j){
if(nxth[i][j]==j) return j;
return nxth[i][j] = findH(i, nxth[i][j]);
}
int findV(int i,int j){
if(nxtv[i][j]==i) return i;
return nxtv[i][j] = findV(nxtv[i][j], j);
}
V<V<int>> dist;
V<V<bool>> vis;
int minimum_stamps(int _r,int _c,int _n,int _sx,int _sy,int _gx,int _gy,V<V<char>>_a){
r = _r; c = _c; n = _n;
sx = _sx-1; sy = _sy-1; gx = _gx-1; gy = _gy-1;
a.swap(_a);
nxth = V<V<int>>(r+2, V<int>(c+2));
nxtv = V<V<int>>(r+2, V<int>(c+2));
rep(i,0,r+2) rep(j,0,c+2){
nxth[i][j] = j;
nxtv[i][j] = i;
}
dist = V<V<int>>(r, V<int>(c,INF));
vis = V<V<bool>>(r, V<bool>(c));
int ans = INF;
V<pii> que[2];
que[0].push_back({sx, sy});
for(int d=0; ; d++){
if(ans<=d) break;
dbg(d);
while(!que[d&1].empty()){
auto[x,y] = que[d&1].back(); que[d&1].pop_back();
if(vis[x][y]) continue;
vis[x][y] = 1;
cerr << x _ y << endl;
if(x==gx && y==gy){
ans = min(ans, d); break;
}
// go to neighbour
for(int dir : {1,3,5,7}){
int i = x+dir%3-1, j = y+dir/3-1;
if(0<=i && i<r && 0<=j && j<c && a[i][j]=='.' && d<dist[i][j]){
que[d&1].push_back({i, j});
}
}
// goal is in stamp proximity
bool nearGoal = 0;
nearGoal |= abs(gx-x)<=n && abs(gy-y)<n;
nearGoal |= abs(gx-x)<n && abs(gy-y)<=n;
if(nearGoal){
dbg(x); dbg(y);
ans = min(ans, d+1);
}
// go to stamp
// for(int i=x-n; i<=x+n; i++) if(0<=i && i<r)
// for(int j=y-n; j<=y+n; j++) if(0<=j && j<c)
// if(!(abs(i-x)==n && abs(j-y)==n))
// {
// que[~d&1].push({i,j});
// }
// (x+n, ..)
{
int i=min(x+n,r-1), j=max(y-(n-1),0);
j = findH(i,j);
while(j <= min(y+(n-1),c-1)){
if(d+1 < dist[i][j]){
que[~d&1].push_back({i, j}); dist[i][j] = d+1;
}
nxth[i][j] = j+1;
j = findH(i,j);
}
}
// (x-n, ..)
{
int i=max(x-n,0), j=max(y-(n-1),0);
j = findH(i,j);
while(j <= min(y+(n-1),c-1)){
if(d+1 < dist[i][j]){
que[~d&1].push_back({i, j}); dist[i][j] = d+1;
}
nxth[i][j] = j+1;
j = findH(i,j);
}
}
// (.., y+n)
{
int i=max(x-(n-1),0), j=min(y+n,c-1);
i = findV(i,j);
while(i <= min(x+(n-1),r-1)){
if(d+1 < dist[i][j]){
que[~d&1].push_back({i, j}); dist[i][j] = d+1;
}
nxtv[i][j] = i+1;
i = findV(i,j);
}
}
// (.., y-n)
{
int i=max(x-(n-1),0), j=max(y-n,0);
i = findV(i,j);
while(i <= min(x+(n-1),r-1)){
if(d+1 < dist[i][j]){
que[~d&1].push_back({i, j}); dist[i][j] = d+1;
}
nxtv[i][j] = i+1;
i = findV(i,j);
}
}
}
}
return ans;
}
int main() {
int R, C, N, Sr, Sc, Gr, Gc;
assert(3 == scanf("%d %d %d", &R, &C, &N));
assert(2 == scanf("%d %d", &Sr, &Sc));
assert(2 == scanf("%d %d", &Gr, &Gc));
std::vector<std::vector<char>> A(R, std::vector<char>(C));
for (int i = 0; i < R; ++i) {
getchar(); // Read endline
for (int j = 0; j < C; ++j) {
scanf("%c", &A[i][j]);
}
}
printf("%d\n", minimum_stamps(R, C, N, Sr, Sc, Gr, Gc, A));
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:179:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
179 | scanf("%c", &A[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
6 ms |
1236 KB |
Output is correct |
20 |
Correct |
4 ms |
1820 KB |
Output is correct |
21 |
Correct |
7 ms |
2760 KB |
Output is correct |
22 |
Correct |
10 ms |
1488 KB |
Output is correct |
23 |
Correct |
5 ms |
1236 KB |
Output is correct |
24 |
Correct |
5 ms |
2408 KB |
Output is correct |
25 |
Correct |
4 ms |
2408 KB |
Output is correct |
26 |
Correct |
2 ms |
1236 KB |
Output is correct |
27 |
Correct |
3 ms |
1236 KB |
Output is correct |
28 |
Correct |
4 ms |
1236 KB |
Output is correct |
29 |
Correct |
15 ms |
2644 KB |
Output is correct |
30 |
Correct |
7 ms |
1748 KB |
Output is correct |
31 |
Correct |
15 ms |
5516 KB |
Output is correct |
32 |
Correct |
21 ms |
2644 KB |
Output is correct |
33 |
Correct |
15 ms |
2644 KB |
Output is correct |
34 |
Correct |
13 ms |
5364 KB |
Output is correct |
35 |
Correct |
11 ms |
5364 KB |
Output is correct |
36 |
Correct |
15 ms |
2900 KB |
Output is correct |
37 |
Correct |
18 ms |
2772 KB |
Output is correct |
38 |
Correct |
5 ms |
2644 KB |
Output is correct |
39 |
Correct |
168 ms |
22860 KB |
Output is correct |
40 |
Correct |
15 ms |
3028 KB |
Output is correct |
41 |
Correct |
13 ms |
6596 KB |
Output is correct |
42 |
Correct |
26 ms |
3540 KB |
Output is correct |
43 |
Correct |
19 ms |
6264 KB |
Output is correct |
44 |
Correct |
47 ms |
13724 KB |
Output is correct |
45 |
Correct |
48 ms |
15160 KB |
Output is correct |
46 |
Correct |
100 ms |
37148 KB |
Output is correct |
47 |
Correct |
204 ms |
23132 KB |
Output is correct |
48 |
Correct |
158 ms |
22860 KB |
Output is correct |
49 |
Correct |
102 ms |
51628 KB |
Output is correct |
50 |
Correct |
97 ms |
51624 KB |
Output is correct |
51 |
Correct |
165 ms |
24004 KB |
Output is correct |
52 |
Correct |
137 ms |
23336 KB |
Output is correct |
53 |
Correct |
141 ms |
23100 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
0 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
212 KB |
Output is correct |
31 |
Correct |
0 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
300 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
0 ms |
340 KB |
Output is correct |
25 |
Correct |
2 ms |
852 KB |
Output is correct |
26 |
Correct |
6 ms |
2128 KB |
Output is correct |
27 |
Correct |
7 ms |
2760 KB |
Output is correct |
28 |
Correct |
3 ms |
1364 KB |
Output is correct |
29 |
Correct |
3 ms |
1236 KB |
Output is correct |
30 |
Correct |
2 ms |
1236 KB |
Output is correct |
31 |
Correct |
4 ms |
1364 KB |
Output is correct |
32 |
Correct |
3 ms |
1236 KB |
Output is correct |
33 |
Correct |
3 ms |
1236 KB |
Output is correct |
34 |
Correct |
5 ms |
2768 KB |
Output is correct |
35 |
Correct |
15 ms |
5516 KB |
Output is correct |
36 |
Correct |
9 ms |
3300 KB |
Output is correct |
37 |
Correct |
5 ms |
2644 KB |
Output is correct |
38 |
Correct |
5 ms |
2644 KB |
Output is correct |
39 |
Correct |
37 ms |
12880 KB |
Output is correct |
40 |
Correct |
139 ms |
40200 KB |
Output is correct |
41 |
Correct |
101 ms |
37276 KB |
Output is correct |
42 |
Correct |
100 ms |
39468 KB |
Output is correct |
43 |
Correct |
45 ms |
22904 KB |
Output is correct |
44 |
Correct |
44 ms |
22860 KB |
Output is correct |
45 |
Correct |
95 ms |
40160 KB |
Output is correct |
46 |
Correct |
101 ms |
39872 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
0 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
212 KB |
Output is correct |
31 |
Correct |
0 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
7 ms |
1236 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
2 ms |
852 KB |
Output is correct |
37 |
Correct |
4 ms |
1820 KB |
Output is correct |
38 |
Correct |
6 ms |
2128 KB |
Output is correct |
39 |
Correct |
7 ms |
2760 KB |
Output is correct |
40 |
Correct |
8 ms |
1236 KB |
Output is correct |
41 |
Correct |
5 ms |
1236 KB |
Output is correct |
42 |
Correct |
3 ms |
1364 KB |
Output is correct |
43 |
Correct |
3 ms |
1188 KB |
Output is correct |
44 |
Correct |
2 ms |
1236 KB |
Output is correct |
45 |
Correct |
5 ms |
2408 KB |
Output is correct |
46 |
Correct |
4 ms |
2408 KB |
Output is correct |
47 |
Correct |
5 ms |
1748 KB |
Output is correct |
48 |
Correct |
5 ms |
1236 KB |
Output is correct |
49 |
Correct |
4 ms |
1236 KB |
Output is correct |
50 |
Correct |
6 ms |
1236 KB |
Output is correct |
51 |
Correct |
4 ms |
1364 KB |
Output is correct |
52 |
Correct |
3 ms |
1236 KB |
Output is correct |
53 |
Correct |
2 ms |
1236 KB |
Output is correct |
54 |
Correct |
4 ms |
1236 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
0 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
212 KB |
Output is correct |
31 |
Correct |
0 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
7 ms |
1236 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
2 ms |
852 KB |
Output is correct |
37 |
Correct |
4 ms |
1820 KB |
Output is correct |
38 |
Correct |
6 ms |
2128 KB |
Output is correct |
39 |
Correct |
7 ms |
2760 KB |
Output is correct |
40 |
Correct |
8 ms |
1236 KB |
Output is correct |
41 |
Correct |
5 ms |
1236 KB |
Output is correct |
42 |
Correct |
3 ms |
1364 KB |
Output is correct |
43 |
Correct |
3 ms |
1188 KB |
Output is correct |
44 |
Correct |
2 ms |
1236 KB |
Output is correct |
45 |
Correct |
5 ms |
2408 KB |
Output is correct |
46 |
Correct |
4 ms |
2408 KB |
Output is correct |
47 |
Correct |
5 ms |
1748 KB |
Output is correct |
48 |
Correct |
5 ms |
1236 KB |
Output is correct |
49 |
Correct |
4 ms |
1236 KB |
Output is correct |
50 |
Correct |
6 ms |
1236 KB |
Output is correct |
51 |
Correct |
4 ms |
1364 KB |
Output is correct |
52 |
Correct |
3 ms |
1236 KB |
Output is correct |
53 |
Correct |
2 ms |
1236 KB |
Output is correct |
54 |
Correct |
4 ms |
1236 KB |
Output is correct |
55 |
Correct |
15 ms |
2612 KB |
Output is correct |
56 |
Correct |
5 ms |
1748 KB |
Output is correct |
57 |
Correct |
6 ms |
2768 KB |
Output is correct |
58 |
Correct |
16 ms |
2388 KB |
Output is correct |
59 |
Correct |
15 ms |
5488 KB |
Output is correct |
60 |
Correct |
26 ms |
2644 KB |
Output is correct |
61 |
Correct |
13 ms |
2644 KB |
Output is correct |
62 |
Correct |
8 ms |
3300 KB |
Output is correct |
63 |
Correct |
5 ms |
2644 KB |
Output is correct |
64 |
Correct |
5 ms |
2644 KB |
Output is correct |
65 |
Correct |
14 ms |
5364 KB |
Output is correct |
66 |
Correct |
10 ms |
5364 KB |
Output is correct |
67 |
Correct |
15 ms |
4012 KB |
Output is correct |
68 |
Correct |
14 ms |
2644 KB |
Output is correct |
69 |
Correct |
15 ms |
2644 KB |
Output is correct |
70 |
Correct |
14 ms |
2772 KB |
Output is correct |
71 |
Correct |
13 ms |
3024 KB |
Output is correct |
72 |
Correct |
14 ms |
2900 KB |
Output is correct |
73 |
Correct |
18 ms |
2796 KB |
Output is correct |
74 |
Correct |
5 ms |
2644 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
6 ms |
1236 KB |
Output is correct |
20 |
Correct |
4 ms |
1820 KB |
Output is correct |
21 |
Correct |
7 ms |
2760 KB |
Output is correct |
22 |
Correct |
10 ms |
1488 KB |
Output is correct |
23 |
Correct |
5 ms |
1236 KB |
Output is correct |
24 |
Correct |
5 ms |
2408 KB |
Output is correct |
25 |
Correct |
4 ms |
2408 KB |
Output is correct |
26 |
Correct |
2 ms |
1236 KB |
Output is correct |
27 |
Correct |
3 ms |
1236 KB |
Output is correct |
28 |
Correct |
4 ms |
1236 KB |
Output is correct |
29 |
Correct |
15 ms |
2644 KB |
Output is correct |
30 |
Correct |
7 ms |
1748 KB |
Output is correct |
31 |
Correct |
15 ms |
5516 KB |
Output is correct |
32 |
Correct |
21 ms |
2644 KB |
Output is correct |
33 |
Correct |
15 ms |
2644 KB |
Output is correct |
34 |
Correct |
13 ms |
5364 KB |
Output is correct |
35 |
Correct |
11 ms |
5364 KB |
Output is correct |
36 |
Correct |
15 ms |
2900 KB |
Output is correct |
37 |
Correct |
18 ms |
2772 KB |
Output is correct |
38 |
Correct |
5 ms |
2644 KB |
Output is correct |
39 |
Correct |
168 ms |
22860 KB |
Output is correct |
40 |
Correct |
15 ms |
3028 KB |
Output is correct |
41 |
Correct |
13 ms |
6596 KB |
Output is correct |
42 |
Correct |
26 ms |
3540 KB |
Output is correct |
43 |
Correct |
19 ms |
6264 KB |
Output is correct |
44 |
Correct |
47 ms |
13724 KB |
Output is correct |
45 |
Correct |
48 ms |
15160 KB |
Output is correct |
46 |
Correct |
100 ms |
37148 KB |
Output is correct |
47 |
Correct |
204 ms |
23132 KB |
Output is correct |
48 |
Correct |
158 ms |
22860 KB |
Output is correct |
49 |
Correct |
102 ms |
51628 KB |
Output is correct |
50 |
Correct |
97 ms |
51624 KB |
Output is correct |
51 |
Correct |
165 ms |
24004 KB |
Output is correct |
52 |
Correct |
137 ms |
23336 KB |
Output is correct |
53 |
Correct |
141 ms |
23100 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
212 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
0 ms |
212 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
212 KB |
Output is correct |
66 |
Correct |
0 ms |
212 KB |
Output is correct |
67 |
Correct |
1 ms |
212 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
212 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
0 ms |
212 KB |
Output is correct |
83 |
Correct |
0 ms |
212 KB |
Output is correct |
84 |
Correct |
0 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
300 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
212 KB |
Output is correct |
91 |
Correct |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
0 ms |
212 KB |
Output is correct |
95 |
Correct |
0 ms |
212 KB |
Output is correct |
96 |
Correct |
0 ms |
212 KB |
Output is correct |
97 |
Correct |
0 ms |
340 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
212 KB |
Output is correct |
106 |
Correct |
1 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
0 ms |
340 KB |
Output is correct |
110 |
Correct |
2 ms |
852 KB |
Output is correct |
111 |
Correct |
6 ms |
2128 KB |
Output is correct |
112 |
Correct |
7 ms |
2760 KB |
Output is correct |
113 |
Correct |
3 ms |
1364 KB |
Output is correct |
114 |
Correct |
3 ms |
1236 KB |
Output is correct |
115 |
Correct |
2 ms |
1236 KB |
Output is correct |
116 |
Correct |
4 ms |
1364 KB |
Output is correct |
117 |
Correct |
3 ms |
1236 KB |
Output is correct |
118 |
Correct |
3 ms |
1236 KB |
Output is correct |
119 |
Correct |
5 ms |
2768 KB |
Output is correct |
120 |
Correct |
15 ms |
5516 KB |
Output is correct |
121 |
Correct |
9 ms |
3300 KB |
Output is correct |
122 |
Correct |
5 ms |
2644 KB |
Output is correct |
123 |
Correct |
5 ms |
2644 KB |
Output is correct |
124 |
Correct |
37 ms |
12880 KB |
Output is correct |
125 |
Correct |
139 ms |
40200 KB |
Output is correct |
126 |
Correct |
101 ms |
37276 KB |
Output is correct |
127 |
Correct |
100 ms |
39468 KB |
Output is correct |
128 |
Correct |
45 ms |
22904 KB |
Output is correct |
129 |
Correct |
44 ms |
22860 KB |
Output is correct |
130 |
Correct |
95 ms |
40160 KB |
Output is correct |
131 |
Correct |
101 ms |
39872 KB |
Output is correct |
132 |
Correct |
7 ms |
1236 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
2 ms |
852 KB |
Output is correct |
136 |
Correct |
4 ms |
1820 KB |
Output is correct |
137 |
Correct |
6 ms |
2128 KB |
Output is correct |
138 |
Correct |
7 ms |
2760 KB |
Output is correct |
139 |
Correct |
8 ms |
1236 KB |
Output is correct |
140 |
Correct |
5 ms |
1236 KB |
Output is correct |
141 |
Correct |
3 ms |
1364 KB |
Output is correct |
142 |
Correct |
3 ms |
1188 KB |
Output is correct |
143 |
Correct |
2 ms |
1236 KB |
Output is correct |
144 |
Correct |
5 ms |
2408 KB |
Output is correct |
145 |
Correct |
4 ms |
2408 KB |
Output is correct |
146 |
Correct |
5 ms |
1748 KB |
Output is correct |
147 |
Correct |
5 ms |
1236 KB |
Output is correct |
148 |
Correct |
4 ms |
1236 KB |
Output is correct |
149 |
Correct |
6 ms |
1236 KB |
Output is correct |
150 |
Correct |
4 ms |
1364 KB |
Output is correct |
151 |
Correct |
3 ms |
1236 KB |
Output is correct |
152 |
Correct |
2 ms |
1236 KB |
Output is correct |
153 |
Correct |
4 ms |
1236 KB |
Output is correct |
154 |
Correct |
15 ms |
2612 KB |
Output is correct |
155 |
Correct |
5 ms |
1748 KB |
Output is correct |
156 |
Correct |
6 ms |
2768 KB |
Output is correct |
157 |
Correct |
16 ms |
2388 KB |
Output is correct |
158 |
Correct |
15 ms |
5488 KB |
Output is correct |
159 |
Correct |
26 ms |
2644 KB |
Output is correct |
160 |
Correct |
13 ms |
2644 KB |
Output is correct |
161 |
Correct |
8 ms |
3300 KB |
Output is correct |
162 |
Correct |
5 ms |
2644 KB |
Output is correct |
163 |
Correct |
5 ms |
2644 KB |
Output is correct |
164 |
Correct |
14 ms |
5364 KB |
Output is correct |
165 |
Correct |
10 ms |
5364 KB |
Output is correct |
166 |
Correct |
15 ms |
4012 KB |
Output is correct |
167 |
Correct |
14 ms |
2644 KB |
Output is correct |
168 |
Correct |
15 ms |
2644 KB |
Output is correct |
169 |
Correct |
14 ms |
2772 KB |
Output is correct |
170 |
Correct |
13 ms |
3024 KB |
Output is correct |
171 |
Correct |
14 ms |
2900 KB |
Output is correct |
172 |
Correct |
18 ms |
2796 KB |
Output is correct |
173 |
Correct |
5 ms |
2644 KB |
Output is correct |
174 |
Correct |
13 ms |
3356 KB |
Output is correct |
175 |
Correct |
39 ms |
5460 KB |
Output is correct |
176 |
Correct |
41 ms |
16364 KB |
Output is correct |
177 |
Correct |
91 ms |
15896 KB |
Output is correct |
178 |
Correct |
45 ms |
20288 KB |
Output is correct |
179 |
Correct |
95 ms |
23264 KB |
Output is correct |
180 |
Correct |
147 ms |
23236 KB |
Output is correct |
181 |
Correct |
148 ms |
23648 KB |
Output is correct |
182 |
Correct |
156 ms |
25284 KB |
Output is correct |
183 |
Correct |
156 ms |
26812 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
6 ms |
1236 KB |
Output is correct |
20 |
Correct |
4 ms |
1820 KB |
Output is correct |
21 |
Correct |
7 ms |
2760 KB |
Output is correct |
22 |
Correct |
10 ms |
1488 KB |
Output is correct |
23 |
Correct |
5 ms |
1236 KB |
Output is correct |
24 |
Correct |
5 ms |
2408 KB |
Output is correct |
25 |
Correct |
4 ms |
2408 KB |
Output is correct |
26 |
Correct |
2 ms |
1236 KB |
Output is correct |
27 |
Correct |
3 ms |
1236 KB |
Output is correct |
28 |
Correct |
4 ms |
1236 KB |
Output is correct |
29 |
Correct |
15 ms |
2644 KB |
Output is correct |
30 |
Correct |
7 ms |
1748 KB |
Output is correct |
31 |
Correct |
15 ms |
5516 KB |
Output is correct |
32 |
Correct |
21 ms |
2644 KB |
Output is correct |
33 |
Correct |
15 ms |
2644 KB |
Output is correct |
34 |
Correct |
13 ms |
5364 KB |
Output is correct |
35 |
Correct |
11 ms |
5364 KB |
Output is correct |
36 |
Correct |
15 ms |
2900 KB |
Output is correct |
37 |
Correct |
18 ms |
2772 KB |
Output is correct |
38 |
Correct |
5 ms |
2644 KB |
Output is correct |
39 |
Correct |
168 ms |
22860 KB |
Output is correct |
40 |
Correct |
15 ms |
3028 KB |
Output is correct |
41 |
Correct |
13 ms |
6596 KB |
Output is correct |
42 |
Correct |
26 ms |
3540 KB |
Output is correct |
43 |
Correct |
19 ms |
6264 KB |
Output is correct |
44 |
Correct |
47 ms |
13724 KB |
Output is correct |
45 |
Correct |
48 ms |
15160 KB |
Output is correct |
46 |
Correct |
100 ms |
37148 KB |
Output is correct |
47 |
Correct |
204 ms |
23132 KB |
Output is correct |
48 |
Correct |
158 ms |
22860 KB |
Output is correct |
49 |
Correct |
102 ms |
51628 KB |
Output is correct |
50 |
Correct |
97 ms |
51624 KB |
Output is correct |
51 |
Correct |
165 ms |
24004 KB |
Output is correct |
52 |
Correct |
137 ms |
23336 KB |
Output is correct |
53 |
Correct |
141 ms |
23100 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
212 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
0 ms |
212 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
212 KB |
Output is correct |
66 |
Correct |
0 ms |
212 KB |
Output is correct |
67 |
Correct |
1 ms |
212 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
212 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
0 ms |
212 KB |
Output is correct |
83 |
Correct |
0 ms |
212 KB |
Output is correct |
84 |
Correct |
0 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
300 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
212 KB |
Output is correct |
91 |
Correct |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
0 ms |
212 KB |
Output is correct |
95 |
Correct |
0 ms |
212 KB |
Output is correct |
96 |
Correct |
0 ms |
212 KB |
Output is correct |
97 |
Correct |
0 ms |
340 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
212 KB |
Output is correct |
106 |
Correct |
1 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
0 ms |
340 KB |
Output is correct |
110 |
Correct |
2 ms |
852 KB |
Output is correct |
111 |
Correct |
6 ms |
2128 KB |
Output is correct |
112 |
Correct |
7 ms |
2760 KB |
Output is correct |
113 |
Correct |
3 ms |
1364 KB |
Output is correct |
114 |
Correct |
3 ms |
1236 KB |
Output is correct |
115 |
Correct |
2 ms |
1236 KB |
Output is correct |
116 |
Correct |
4 ms |
1364 KB |
Output is correct |
117 |
Correct |
3 ms |
1236 KB |
Output is correct |
118 |
Correct |
3 ms |
1236 KB |
Output is correct |
119 |
Correct |
5 ms |
2768 KB |
Output is correct |
120 |
Correct |
15 ms |
5516 KB |
Output is correct |
121 |
Correct |
9 ms |
3300 KB |
Output is correct |
122 |
Correct |
5 ms |
2644 KB |
Output is correct |
123 |
Correct |
5 ms |
2644 KB |
Output is correct |
124 |
Correct |
37 ms |
12880 KB |
Output is correct |
125 |
Correct |
139 ms |
40200 KB |
Output is correct |
126 |
Correct |
101 ms |
37276 KB |
Output is correct |
127 |
Correct |
100 ms |
39468 KB |
Output is correct |
128 |
Correct |
45 ms |
22904 KB |
Output is correct |
129 |
Correct |
44 ms |
22860 KB |
Output is correct |
130 |
Correct |
95 ms |
40160 KB |
Output is correct |
131 |
Correct |
101 ms |
39872 KB |
Output is correct |
132 |
Correct |
7 ms |
1236 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
2 ms |
852 KB |
Output is correct |
136 |
Correct |
4 ms |
1820 KB |
Output is correct |
137 |
Correct |
6 ms |
2128 KB |
Output is correct |
138 |
Correct |
7 ms |
2760 KB |
Output is correct |
139 |
Correct |
8 ms |
1236 KB |
Output is correct |
140 |
Correct |
5 ms |
1236 KB |
Output is correct |
141 |
Correct |
3 ms |
1364 KB |
Output is correct |
142 |
Correct |
3 ms |
1188 KB |
Output is correct |
143 |
Correct |
2 ms |
1236 KB |
Output is correct |
144 |
Correct |
5 ms |
2408 KB |
Output is correct |
145 |
Correct |
4 ms |
2408 KB |
Output is correct |
146 |
Correct |
5 ms |
1748 KB |
Output is correct |
147 |
Correct |
5 ms |
1236 KB |
Output is correct |
148 |
Correct |
4 ms |
1236 KB |
Output is correct |
149 |
Correct |
6 ms |
1236 KB |
Output is correct |
150 |
Correct |
4 ms |
1364 KB |
Output is correct |
151 |
Correct |
3 ms |
1236 KB |
Output is correct |
152 |
Correct |
2 ms |
1236 KB |
Output is correct |
153 |
Correct |
4 ms |
1236 KB |
Output is correct |
154 |
Correct |
15 ms |
2612 KB |
Output is correct |
155 |
Correct |
5 ms |
1748 KB |
Output is correct |
156 |
Correct |
6 ms |
2768 KB |
Output is correct |
157 |
Correct |
16 ms |
2388 KB |
Output is correct |
158 |
Correct |
15 ms |
5488 KB |
Output is correct |
159 |
Correct |
26 ms |
2644 KB |
Output is correct |
160 |
Correct |
13 ms |
2644 KB |
Output is correct |
161 |
Correct |
8 ms |
3300 KB |
Output is correct |
162 |
Correct |
5 ms |
2644 KB |
Output is correct |
163 |
Correct |
5 ms |
2644 KB |
Output is correct |
164 |
Correct |
14 ms |
5364 KB |
Output is correct |
165 |
Correct |
10 ms |
5364 KB |
Output is correct |
166 |
Correct |
15 ms |
4012 KB |
Output is correct |
167 |
Correct |
14 ms |
2644 KB |
Output is correct |
168 |
Correct |
15 ms |
2644 KB |
Output is correct |
169 |
Correct |
14 ms |
2772 KB |
Output is correct |
170 |
Correct |
13 ms |
3024 KB |
Output is correct |
171 |
Correct |
14 ms |
2900 KB |
Output is correct |
172 |
Correct |
18 ms |
2796 KB |
Output is correct |
173 |
Correct |
5 ms |
2644 KB |
Output is correct |
174 |
Correct |
13 ms |
3356 KB |
Output is correct |
175 |
Correct |
39 ms |
5460 KB |
Output is correct |
176 |
Correct |
41 ms |
16364 KB |
Output is correct |
177 |
Correct |
91 ms |
15896 KB |
Output is correct |
178 |
Correct |
45 ms |
20288 KB |
Output is correct |
179 |
Correct |
95 ms |
23264 KB |
Output is correct |
180 |
Correct |
147 ms |
23236 KB |
Output is correct |
181 |
Correct |
148 ms |
23648 KB |
Output is correct |
182 |
Correct |
156 ms |
25284 KB |
Output is correct |
183 |
Correct |
156 ms |
26812 KB |
Output is correct |
184 |
Correct |
366 ms |
45224 KB |
Output is correct |
185 |
Correct |
85 ms |
25484 KB |
Output is correct |
186 |
Correct |
177 ms |
47388 KB |
Output is correct |
187 |
Correct |
81 ms |
33856 KB |
Output is correct |
188 |
Correct |
251 ms |
89332 KB |
Output is correct |
189 |
Correct |
345 ms |
45504 KB |
Output is correct |
190 |
Correct |
155 ms |
45132 KB |
Output is correct |
191 |
Correct |
97 ms |
47368 KB |
Output is correct |
192 |
Correct |
97 ms |
45244 KB |
Output is correct |
193 |
Correct |
88 ms |
45252 KB |
Output is correct |
194 |
Correct |
254 ms |
103048 KB |
Output is correct |
195 |
Correct |
191 ms |
102964 KB |
Output is correct |
196 |
Correct |
317 ms |
45820 KB |
Output is correct |
197 |
Correct |
207 ms |
46032 KB |
Output is correct |
198 |
Correct |
192 ms |
46596 KB |
Output is correct |
199 |
Correct |
315 ms |
48268 KB |
Output is correct |
200 |
Correct |
220 ms |
47060 KB |
Output is correct |
201 |
Correct |
311 ms |
45964 KB |
Output is correct |
202 |
Correct |
311 ms |
45512 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
6 ms |
1236 KB |
Output is correct |
20 |
Correct |
4 ms |
1820 KB |
Output is correct |
21 |
Correct |
7 ms |
2760 KB |
Output is correct |
22 |
Correct |
10 ms |
1488 KB |
Output is correct |
23 |
Correct |
5 ms |
1236 KB |
Output is correct |
24 |
Correct |
5 ms |
2408 KB |
Output is correct |
25 |
Correct |
4 ms |
2408 KB |
Output is correct |
26 |
Correct |
2 ms |
1236 KB |
Output is correct |
27 |
Correct |
3 ms |
1236 KB |
Output is correct |
28 |
Correct |
4 ms |
1236 KB |
Output is correct |
29 |
Correct |
15 ms |
2644 KB |
Output is correct |
30 |
Correct |
7 ms |
1748 KB |
Output is correct |
31 |
Correct |
15 ms |
5516 KB |
Output is correct |
32 |
Correct |
21 ms |
2644 KB |
Output is correct |
33 |
Correct |
15 ms |
2644 KB |
Output is correct |
34 |
Correct |
13 ms |
5364 KB |
Output is correct |
35 |
Correct |
11 ms |
5364 KB |
Output is correct |
36 |
Correct |
15 ms |
2900 KB |
Output is correct |
37 |
Correct |
18 ms |
2772 KB |
Output is correct |
38 |
Correct |
5 ms |
2644 KB |
Output is correct |
39 |
Correct |
168 ms |
22860 KB |
Output is correct |
40 |
Correct |
15 ms |
3028 KB |
Output is correct |
41 |
Correct |
13 ms |
6596 KB |
Output is correct |
42 |
Correct |
26 ms |
3540 KB |
Output is correct |
43 |
Correct |
19 ms |
6264 KB |
Output is correct |
44 |
Correct |
47 ms |
13724 KB |
Output is correct |
45 |
Correct |
48 ms |
15160 KB |
Output is correct |
46 |
Correct |
100 ms |
37148 KB |
Output is correct |
47 |
Correct |
204 ms |
23132 KB |
Output is correct |
48 |
Correct |
158 ms |
22860 KB |
Output is correct |
49 |
Correct |
102 ms |
51628 KB |
Output is correct |
50 |
Correct |
97 ms |
51624 KB |
Output is correct |
51 |
Correct |
165 ms |
24004 KB |
Output is correct |
52 |
Correct |
137 ms |
23336 KB |
Output is correct |
53 |
Correct |
141 ms |
23100 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
212 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
0 ms |
212 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
212 KB |
Output is correct |
66 |
Correct |
0 ms |
212 KB |
Output is correct |
67 |
Correct |
1 ms |
212 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
212 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
0 ms |
212 KB |
Output is correct |
83 |
Correct |
0 ms |
212 KB |
Output is correct |
84 |
Correct |
0 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
300 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
212 KB |
Output is correct |
91 |
Correct |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
0 ms |
212 KB |
Output is correct |
95 |
Correct |
0 ms |
212 KB |
Output is correct |
96 |
Correct |
0 ms |
212 KB |
Output is correct |
97 |
Correct |
0 ms |
340 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
212 KB |
Output is correct |
106 |
Correct |
1 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
0 ms |
340 KB |
Output is correct |
110 |
Correct |
2 ms |
852 KB |
Output is correct |
111 |
Correct |
6 ms |
2128 KB |
Output is correct |
112 |
Correct |
7 ms |
2760 KB |
Output is correct |
113 |
Correct |
3 ms |
1364 KB |
Output is correct |
114 |
Correct |
3 ms |
1236 KB |
Output is correct |
115 |
Correct |
2 ms |
1236 KB |
Output is correct |
116 |
Correct |
4 ms |
1364 KB |
Output is correct |
117 |
Correct |
3 ms |
1236 KB |
Output is correct |
118 |
Correct |
3 ms |
1236 KB |
Output is correct |
119 |
Correct |
5 ms |
2768 KB |
Output is correct |
120 |
Correct |
15 ms |
5516 KB |
Output is correct |
121 |
Correct |
9 ms |
3300 KB |
Output is correct |
122 |
Correct |
5 ms |
2644 KB |
Output is correct |
123 |
Correct |
5 ms |
2644 KB |
Output is correct |
124 |
Correct |
37 ms |
12880 KB |
Output is correct |
125 |
Correct |
139 ms |
40200 KB |
Output is correct |
126 |
Correct |
101 ms |
37276 KB |
Output is correct |
127 |
Correct |
100 ms |
39468 KB |
Output is correct |
128 |
Correct |
45 ms |
22904 KB |
Output is correct |
129 |
Correct |
44 ms |
22860 KB |
Output is correct |
130 |
Correct |
95 ms |
40160 KB |
Output is correct |
131 |
Correct |
101 ms |
39872 KB |
Output is correct |
132 |
Correct |
7 ms |
1236 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
2 ms |
852 KB |
Output is correct |
136 |
Correct |
4 ms |
1820 KB |
Output is correct |
137 |
Correct |
6 ms |
2128 KB |
Output is correct |
138 |
Correct |
7 ms |
2760 KB |
Output is correct |
139 |
Correct |
8 ms |
1236 KB |
Output is correct |
140 |
Correct |
5 ms |
1236 KB |
Output is correct |
141 |
Correct |
3 ms |
1364 KB |
Output is correct |
142 |
Correct |
3 ms |
1188 KB |
Output is correct |
143 |
Correct |
2 ms |
1236 KB |
Output is correct |
144 |
Correct |
5 ms |
2408 KB |
Output is correct |
145 |
Correct |
4 ms |
2408 KB |
Output is correct |
146 |
Correct |
5 ms |
1748 KB |
Output is correct |
147 |
Correct |
5 ms |
1236 KB |
Output is correct |
148 |
Correct |
4 ms |
1236 KB |
Output is correct |
149 |
Correct |
6 ms |
1236 KB |
Output is correct |
150 |
Correct |
4 ms |
1364 KB |
Output is correct |
151 |
Correct |
3 ms |
1236 KB |
Output is correct |
152 |
Correct |
2 ms |
1236 KB |
Output is correct |
153 |
Correct |
4 ms |
1236 KB |
Output is correct |
154 |
Correct |
15 ms |
2612 KB |
Output is correct |
155 |
Correct |
5 ms |
1748 KB |
Output is correct |
156 |
Correct |
6 ms |
2768 KB |
Output is correct |
157 |
Correct |
16 ms |
2388 KB |
Output is correct |
158 |
Correct |
15 ms |
5488 KB |
Output is correct |
159 |
Correct |
26 ms |
2644 KB |
Output is correct |
160 |
Correct |
13 ms |
2644 KB |
Output is correct |
161 |
Correct |
8 ms |
3300 KB |
Output is correct |
162 |
Correct |
5 ms |
2644 KB |
Output is correct |
163 |
Correct |
5 ms |
2644 KB |
Output is correct |
164 |
Correct |
14 ms |
5364 KB |
Output is correct |
165 |
Correct |
10 ms |
5364 KB |
Output is correct |
166 |
Correct |
15 ms |
4012 KB |
Output is correct |
167 |
Correct |
14 ms |
2644 KB |
Output is correct |
168 |
Correct |
15 ms |
2644 KB |
Output is correct |
169 |
Correct |
14 ms |
2772 KB |
Output is correct |
170 |
Correct |
13 ms |
3024 KB |
Output is correct |
171 |
Correct |
14 ms |
2900 KB |
Output is correct |
172 |
Correct |
18 ms |
2796 KB |
Output is correct |
173 |
Correct |
5 ms |
2644 KB |
Output is correct |
174 |
Correct |
13 ms |
3356 KB |
Output is correct |
175 |
Correct |
39 ms |
5460 KB |
Output is correct |
176 |
Correct |
41 ms |
16364 KB |
Output is correct |
177 |
Correct |
91 ms |
15896 KB |
Output is correct |
178 |
Correct |
45 ms |
20288 KB |
Output is correct |
179 |
Correct |
95 ms |
23264 KB |
Output is correct |
180 |
Correct |
147 ms |
23236 KB |
Output is correct |
181 |
Correct |
148 ms |
23648 KB |
Output is correct |
182 |
Correct |
156 ms |
25284 KB |
Output is correct |
183 |
Correct |
156 ms |
26812 KB |
Output is correct |
184 |
Correct |
366 ms |
45224 KB |
Output is correct |
185 |
Correct |
85 ms |
25484 KB |
Output is correct |
186 |
Correct |
177 ms |
47388 KB |
Output is correct |
187 |
Correct |
81 ms |
33856 KB |
Output is correct |
188 |
Correct |
251 ms |
89332 KB |
Output is correct |
189 |
Correct |
345 ms |
45504 KB |
Output is correct |
190 |
Correct |
155 ms |
45132 KB |
Output is correct |
191 |
Correct |
97 ms |
47368 KB |
Output is correct |
192 |
Correct |
97 ms |
45244 KB |
Output is correct |
193 |
Correct |
88 ms |
45252 KB |
Output is correct |
194 |
Correct |
254 ms |
103048 KB |
Output is correct |
195 |
Correct |
191 ms |
102964 KB |
Output is correct |
196 |
Correct |
317 ms |
45820 KB |
Output is correct |
197 |
Correct |
207 ms |
46032 KB |
Output is correct |
198 |
Correct |
192 ms |
46596 KB |
Output is correct |
199 |
Correct |
315 ms |
48268 KB |
Output is correct |
200 |
Correct |
220 ms |
47060 KB |
Output is correct |
201 |
Correct |
311 ms |
45964 KB |
Output is correct |
202 |
Correct |
311 ms |
45512 KB |
Output is correct |
203 |
Correct |
709 ms |
89844 KB |
Output is correct |
204 |
Correct |
274 ms |
58676 KB |
Output is correct |
205 |
Correct |
461 ms |
55504 KB |
Output is correct |
206 |
Correct |
294 ms |
91608 KB |
Output is correct |
207 |
Correct |
522 ms |
177912 KB |
Output is correct |
208 |
Correct |
702 ms |
90148 KB |
Output is correct |
209 |
Correct |
673 ms |
89932 KB |
Output is correct |
210 |
Correct |
342 ms |
122776 KB |
Output is correct |
211 |
Correct |
182 ms |
89940 KB |
Output is correct |
212 |
Correct |
178 ms |
89932 KB |
Output is correct |
213 |
Correct |
418 ms |
205728 KB |
Output is correct |
214 |
Correct |
432 ms |
205776 KB |
Output is correct |
215 |
Correct |
610 ms |
91024 KB |
Output is correct |
216 |
Correct |
523 ms |
91116 KB |
Output is correct |
217 |
Correct |
710 ms |
93628 KB |
Output is correct |
218 |
Correct |
505 ms |
95540 KB |
Output is correct |
219 |
Correct |
508 ms |
120268 KB |
Output is correct |
220 |
Correct |
351 ms |
125300 KB |
Output is correct |
221 |
Correct |
545 ms |
170036 KB |
Output is correct |
222 |
Correct |
762 ms |
171976 KB |
Output is correct |
223 |
Correct |
647 ms |
91724 KB |
Output is correct |
224 |
Correct |
630 ms |
90768 KB |
Output is correct |
225 |
Correct |
378 ms |
90208 KB |
Output is correct |