# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
891621 |
2023-12-23T10:57:34 Z |
abysmal |
Maze (JOI23_ho_t3) |
C++14 |
|
469 ms |
155128 KB |
#include<iostream>
#include<stdio.h>
#include<stdint.h>
#include<vector>
#include<algorithm>
#include<utility>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<iomanip>
#include<string>
#include<math.h>
#include<assert.h>
using namespace std;
const double PI = (double) atan(1.0) * 4;
const int64_t INF = (int64_t) 1e18 + 777;
const int64_t mINF = (int64_t) 2e9 + 777;
const int64_t offset = (int64_t) 1e6 + 777;
const int64_t MOD = 1e9 + 7;
const int nbit = 11;
const int ndig = 10;
const int nchar = 26;
const int p1 = 31;
const int p2 = 53;
const int D = 4;
int dr[D] = {0, 1, 0, -1};
int dc[D] = {1, 0, -1, 0};
// 0 right // 1 down // 2 left // 3 up
int modadd(int t1, int t2)
{
int res = t1 + t2;
if(res >= MOD) res -= MOD;
return res;
}
int modmul(int t1, int t2)
{
int64_t res = 1LL * t1 * t2;
return (res % MOD);
}
struct Cell
{
int r; int c;
Cell(int r_, int c_) : r(r_), c(c_) {}
bool isWithinGrid(int nr, int nc)
{
return 0 <= r && r < nr &&
0 <= c && c < nc;
}
};
struct Node
{
int w;
int x; int y;
Node(int w_, int x_, int y_) : w(w_), x(x_), y(y_) {}
};
struct Solution
{
int n; int m; int k;
Solution() {}
void solve()
{
cin >> n >> m >> k;
k--;
Cell s(-1, -1);
Cell e(-1, -1);
cin >> s.r >> s.c >> e.r >> e.c;
s.r--; s.c--; e.r--; e.c--;
vector<string> g(n);
for(int i = 0; i < n; i++)
{
cin >> g[i];
}
vector<vector<Node> > dis(n, vector<Node>(m, Node(mINF, 0, 0)));
vector<Cell> black;
vector<Cell> white;
white.emplace_back(s);
dis[s.r][s.c] = Node(0, 0, 0);
while((int) white.size() != 0)
{
for(int i = 0; i < (int) white.size(); i++)
{
Cell u = white[i];
int w = dis[u.r][u.c].w;
int x = dis[u.r][u.c].x;
int y = dis[u.r][u.c].y;
if(x == 0) continue;
Cell v = Cell(u.r - 1, u.c);
if(v.isWithinGrid(n, m) && dis[v.r][v.c].w > w)
{
dis[v.r][v.c] = Node(w, x - 1, y);
white.emplace_back(v);
}
v = Cell(u.r + 1, u.c);
if(v.isWithinGrid(n, m) && dis[v.r][v.c].w > w)
{
dis[v.r][v.c] = Node(w, x - 1, y);
white.emplace_back(v);
}
}
for(int i = 0; i < (int) white.size(); i++)
{
Cell u = white[i];
int w = dis[u.r][u.c].w;
int x = dis[u.r][u.c].x;
int y = dis[u.r][u.c].y;
if(y == 0) continue;
Cell v = Cell(u.r, u.c - 1);
if(v.isWithinGrid(n, m) && dis[v.r][v.c].w > w)
{
dis[v.r][v.c] = Node(w, x, y - 1);
white.emplace_back(v);
}
v = Cell(u.r, u.c + 1);
if(v.isWithinGrid(n, m) && dis[v.r][v.c].w > w)
{
dis[v.r][v.c] = Node(w, x, y - 1);
white.emplace_back(v);
}
}
for(int i = 0; i < (int) white.size(); i++)
{
Cell u = white[i];
int w = dis[u.r][u.c].w;
for(int j = 0; j < D; j++)
{
Cell v = Cell(u.r + dr[j], u.c + dc[j]);
if(!v.isWithinGrid(n, m)) continue;
if(g[v.r][v.c] == '.' && dis[v.r][v.c].w > w)
{
white.emplace_back(v);
dis[v.r][v.c] = Node(w, 0, 0);
}
if(g[v.r][v.c] == '#' && dis[v.r][v.c].w > w + 1)
{
black.emplace_back(v);
dis[v.r][v.c] = Node(w + 1, k, k);
}
}
}
swap(black, white);
black.clear();
}
cout << dis[e.r][e.c].w << "\n";
}
int modsub(int t1, int t2)
{
int res = t1 - t2;
if(res < 0) res += MOD;
return res;
}
bool BIT(int& mask, int& j)
{
return (mask & MASK(j));
}
int64_t Abs(int64_t t1)
{
if(t1 < 0) return -t1;
return t1;
}
int MASK(int j)
{
return (1 << j);
}
};
void __startup()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
}
int main()
{
__startup();
int t = 1;
// cin >> t;
for(int i = 1; i <= t; i++)
{
Solution().solve();
}
return 0;
}
# |
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 |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
448 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 |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
2 ms |
1116 KB |
Output is correct |
20 |
Correct |
2 ms |
1628 KB |
Output is correct |
21 |
Correct |
2 ms |
1760 KB |
Output is correct |
22 |
Correct |
4 ms |
1348 KB |
Output is correct |
23 |
Correct |
2 ms |
1116 KB |
Output is correct |
24 |
Correct |
2 ms |
1884 KB |
Output is correct |
25 |
Correct |
2 ms |
1884 KB |
Output is correct |
26 |
Correct |
4 ms |
1436 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
2 ms |
1116 KB |
Output is correct |
29 |
Correct |
6 ms |
2556 KB |
Output is correct |
30 |
Correct |
4 ms |
1688 KB |
Output is correct |
31 |
Correct |
5 ms |
4560 KB |
Output is correct |
32 |
Correct |
11 ms |
2396 KB |
Output is correct |
33 |
Correct |
5 ms |
2396 KB |
Output is correct |
34 |
Correct |
4 ms |
4328 KB |
Output is correct |
35 |
Correct |
5 ms |
4328 KB |
Output is correct |
36 |
Correct |
9 ms |
2904 KB |
Output is correct |
37 |
Correct |
9 ms |
2652 KB |
Output is correct |
38 |
Correct |
6 ms |
2392 KB |
Output is correct |
39 |
Correct |
64 ms |
21072 KB |
Output is correct |
40 |
Correct |
10 ms |
2908 KB |
Output is correct |
41 |
Correct |
7 ms |
5104 KB |
Output is correct |
42 |
Correct |
10 ms |
3420 KB |
Output is correct |
43 |
Correct |
11 ms |
5212 KB |
Output is correct |
44 |
Correct |
36 ms |
12112 KB |
Output is correct |
45 |
Correct |
36 ms |
13300 KB |
Output is correct |
46 |
Correct |
65 ms |
39084 KB |
Output is correct |
47 |
Correct |
96 ms |
21340 KB |
Output is correct |
48 |
Correct |
64 ms |
21080 KB |
Output is correct |
49 |
Correct |
33 ms |
38776 KB |
Output is correct |
50 |
Correct |
38 ms |
38644 KB |
Output is correct |
51 |
Correct |
94 ms |
22072 KB |
Output is correct |
52 |
Correct |
91 ms |
21676 KB |
Output is correct |
53 |
Correct |
73 ms |
21368 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
344 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
600 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 |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
460 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
452 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
344 KB |
Output is correct |
8 |
Correct |
1 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 |
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 |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
352 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
352 KB |
Output is correct |
25 |
Correct |
2 ms |
864 KB |
Output is correct |
26 |
Correct |
3 ms |
1824 KB |
Output is correct |
27 |
Correct |
2 ms |
1760 KB |
Output is correct |
28 |
Correct |
2 ms |
1760 KB |
Output is correct |
29 |
Correct |
3 ms |
1888 KB |
Output is correct |
30 |
Correct |
3 ms |
1760 KB |
Output is correct |
31 |
Correct |
3 ms |
1372 KB |
Output is correct |
32 |
Correct |
4 ms |
1488 KB |
Output is correct |
33 |
Correct |
4 ms |
1372 KB |
Output is correct |
34 |
Correct |
7 ms |
3540 KB |
Output is correct |
35 |
Correct |
5 ms |
4628 KB |
Output is correct |
36 |
Correct |
5 ms |
4560 KB |
Output is correct |
37 |
Correct |
8 ms |
4560 KB |
Output is correct |
38 |
Correct |
6 ms |
4560 KB |
Output is correct |
39 |
Correct |
26 ms |
14024 KB |
Output is correct |
40 |
Correct |
82 ms |
32516 KB |
Output is correct |
41 |
Correct |
68 ms |
39580 KB |
Output is correct |
42 |
Correct |
53 ms |
39432 KB |
Output is correct |
43 |
Correct |
95 ms |
39372 KB |
Output is correct |
44 |
Correct |
67 ms |
39384 KB |
Output is correct |
45 |
Correct |
96 ms |
38696 KB |
Output is correct |
46 |
Correct |
99 ms |
37520 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
344 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
600 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 |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
460 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
33 |
Correct |
2 ms |
1112 KB |
Output is correct |
34 |
Correct |
1 ms |
344 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
3 ms |
860 KB |
Output is correct |
37 |
Correct |
2 ms |
1628 KB |
Output is correct |
38 |
Correct |
3 ms |
1820 KB |
Output is correct |
39 |
Correct |
2 ms |
1760 KB |
Output is correct |
40 |
Correct |
3 ms |
1112 KB |
Output is correct |
41 |
Correct |
2 ms |
1116 KB |
Output is correct |
42 |
Correct |
2 ms |
1760 KB |
Output is correct |
43 |
Correct |
4 ms |
1760 KB |
Output is correct |
44 |
Correct |
2 ms |
1760 KB |
Output is correct |
45 |
Correct |
2 ms |
1884 KB |
Output is correct |
46 |
Correct |
2 ms |
1880 KB |
Output is correct |
47 |
Correct |
3 ms |
1628 KB |
Output is correct |
48 |
Correct |
3 ms |
1116 KB |
Output is correct |
49 |
Correct |
3 ms |
1304 KB |
Output is correct |
50 |
Correct |
3 ms |
1116 KB |
Output is correct |
51 |
Correct |
3 ms |
1372 KB |
Output is correct |
52 |
Correct |
4 ms |
1492 KB |
Output is correct |
53 |
Correct |
4 ms |
1372 KB |
Output is correct |
54 |
Correct |
2 ms |
1236 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
344 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
600 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 |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
460 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
33 |
Correct |
2 ms |
1112 KB |
Output is correct |
34 |
Correct |
1 ms |
344 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
3 ms |
860 KB |
Output is correct |
37 |
Correct |
2 ms |
1628 KB |
Output is correct |
38 |
Correct |
3 ms |
1820 KB |
Output is correct |
39 |
Correct |
2 ms |
1760 KB |
Output is correct |
40 |
Correct |
3 ms |
1112 KB |
Output is correct |
41 |
Correct |
2 ms |
1116 KB |
Output is correct |
42 |
Correct |
2 ms |
1760 KB |
Output is correct |
43 |
Correct |
4 ms |
1760 KB |
Output is correct |
44 |
Correct |
2 ms |
1760 KB |
Output is correct |
45 |
Correct |
2 ms |
1884 KB |
Output is correct |
46 |
Correct |
2 ms |
1880 KB |
Output is correct |
47 |
Correct |
3 ms |
1628 KB |
Output is correct |
48 |
Correct |
3 ms |
1116 KB |
Output is correct |
49 |
Correct |
3 ms |
1304 KB |
Output is correct |
50 |
Correct |
3 ms |
1116 KB |
Output is correct |
51 |
Correct |
3 ms |
1372 KB |
Output is correct |
52 |
Correct |
4 ms |
1492 KB |
Output is correct |
53 |
Correct |
4 ms |
1372 KB |
Output is correct |
54 |
Correct |
2 ms |
1236 KB |
Output is correct |
55 |
Correct |
6 ms |
2396 KB |
Output is correct |
56 |
Correct |
4 ms |
1880 KB |
Output is correct |
57 |
Correct |
7 ms |
3540 KB |
Output is correct |
58 |
Correct |
7 ms |
2396 KB |
Output is correct |
59 |
Correct |
5 ms |
4560 KB |
Output is correct |
60 |
Correct |
8 ms |
2396 KB |
Output is correct |
61 |
Correct |
5 ms |
2396 KB |
Output is correct |
62 |
Correct |
5 ms |
4560 KB |
Output is correct |
63 |
Correct |
8 ms |
4556 KB |
Output is correct |
64 |
Correct |
6 ms |
4560 KB |
Output is correct |
65 |
Correct |
4 ms |
4324 KB |
Output is correct |
66 |
Correct |
5 ms |
4328 KB |
Output is correct |
67 |
Correct |
7 ms |
3416 KB |
Output is correct |
68 |
Correct |
8 ms |
2396 KB |
Output is correct |
69 |
Correct |
8 ms |
2548 KB |
Output is correct |
70 |
Correct |
7 ms |
2652 KB |
Output is correct |
71 |
Correct |
8 ms |
2924 KB |
Output is correct |
72 |
Correct |
9 ms |
2904 KB |
Output is correct |
73 |
Correct |
9 ms |
2652 KB |
Output is correct |
74 |
Correct |
5 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 |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
448 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 |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
2 ms |
1116 KB |
Output is correct |
20 |
Correct |
2 ms |
1628 KB |
Output is correct |
21 |
Correct |
2 ms |
1760 KB |
Output is correct |
22 |
Correct |
4 ms |
1348 KB |
Output is correct |
23 |
Correct |
2 ms |
1116 KB |
Output is correct |
24 |
Correct |
2 ms |
1884 KB |
Output is correct |
25 |
Correct |
2 ms |
1884 KB |
Output is correct |
26 |
Correct |
4 ms |
1436 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
2 ms |
1116 KB |
Output is correct |
29 |
Correct |
6 ms |
2556 KB |
Output is correct |
30 |
Correct |
4 ms |
1688 KB |
Output is correct |
31 |
Correct |
5 ms |
4560 KB |
Output is correct |
32 |
Correct |
11 ms |
2396 KB |
Output is correct |
33 |
Correct |
5 ms |
2396 KB |
Output is correct |
34 |
Correct |
4 ms |
4328 KB |
Output is correct |
35 |
Correct |
5 ms |
4328 KB |
Output is correct |
36 |
Correct |
9 ms |
2904 KB |
Output is correct |
37 |
Correct |
9 ms |
2652 KB |
Output is correct |
38 |
Correct |
6 ms |
2392 KB |
Output is correct |
39 |
Correct |
64 ms |
21072 KB |
Output is correct |
40 |
Correct |
10 ms |
2908 KB |
Output is correct |
41 |
Correct |
7 ms |
5104 KB |
Output is correct |
42 |
Correct |
10 ms |
3420 KB |
Output is correct |
43 |
Correct |
11 ms |
5212 KB |
Output is correct |
44 |
Correct |
36 ms |
12112 KB |
Output is correct |
45 |
Correct |
36 ms |
13300 KB |
Output is correct |
46 |
Correct |
65 ms |
39084 KB |
Output is correct |
47 |
Correct |
96 ms |
21340 KB |
Output is correct |
48 |
Correct |
64 ms |
21080 KB |
Output is correct |
49 |
Correct |
33 ms |
38776 KB |
Output is correct |
50 |
Correct |
38 ms |
38644 KB |
Output is correct |
51 |
Correct |
94 ms |
22072 KB |
Output is correct |
52 |
Correct |
91 ms |
21676 KB |
Output is correct |
53 |
Correct |
73 ms |
21368 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
344 KB |
Output is correct |
57 |
Correct |
1 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
344 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 |
0 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 |
0 ms |
600 KB |
Output is correct |
69 |
Correct |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
1 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
460 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
452 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
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 |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
352 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
0 ms |
352 KB |
Output is correct |
110 |
Correct |
2 ms |
864 KB |
Output is correct |
111 |
Correct |
3 ms |
1824 KB |
Output is correct |
112 |
Correct |
2 ms |
1760 KB |
Output is correct |
113 |
Correct |
2 ms |
1760 KB |
Output is correct |
114 |
Correct |
3 ms |
1888 KB |
Output is correct |
115 |
Correct |
3 ms |
1760 KB |
Output is correct |
116 |
Correct |
3 ms |
1372 KB |
Output is correct |
117 |
Correct |
4 ms |
1488 KB |
Output is correct |
118 |
Correct |
4 ms |
1372 KB |
Output is correct |
119 |
Correct |
7 ms |
3540 KB |
Output is correct |
120 |
Correct |
5 ms |
4628 KB |
Output is correct |
121 |
Correct |
5 ms |
4560 KB |
Output is correct |
122 |
Correct |
8 ms |
4560 KB |
Output is correct |
123 |
Correct |
6 ms |
4560 KB |
Output is correct |
124 |
Correct |
26 ms |
14024 KB |
Output is correct |
125 |
Correct |
82 ms |
32516 KB |
Output is correct |
126 |
Correct |
68 ms |
39580 KB |
Output is correct |
127 |
Correct |
53 ms |
39432 KB |
Output is correct |
128 |
Correct |
95 ms |
39372 KB |
Output is correct |
129 |
Correct |
67 ms |
39384 KB |
Output is correct |
130 |
Correct |
96 ms |
38696 KB |
Output is correct |
131 |
Correct |
99 ms |
37520 KB |
Output is correct |
132 |
Correct |
2 ms |
1112 KB |
Output is correct |
133 |
Correct |
1 ms |
344 KB |
Output is correct |
134 |
Correct |
0 ms |
348 KB |
Output is correct |
135 |
Correct |
3 ms |
860 KB |
Output is correct |
136 |
Correct |
2 ms |
1628 KB |
Output is correct |
137 |
Correct |
3 ms |
1820 KB |
Output is correct |
138 |
Correct |
2 ms |
1760 KB |
Output is correct |
139 |
Correct |
3 ms |
1112 KB |
Output is correct |
140 |
Correct |
2 ms |
1116 KB |
Output is correct |
141 |
Correct |
2 ms |
1760 KB |
Output is correct |
142 |
Correct |
4 ms |
1760 KB |
Output is correct |
143 |
Correct |
2 ms |
1760 KB |
Output is correct |
144 |
Correct |
2 ms |
1884 KB |
Output is correct |
145 |
Correct |
2 ms |
1880 KB |
Output is correct |
146 |
Correct |
3 ms |
1628 KB |
Output is correct |
147 |
Correct |
3 ms |
1116 KB |
Output is correct |
148 |
Correct |
3 ms |
1304 KB |
Output is correct |
149 |
Correct |
3 ms |
1116 KB |
Output is correct |
150 |
Correct |
3 ms |
1372 KB |
Output is correct |
151 |
Correct |
4 ms |
1492 KB |
Output is correct |
152 |
Correct |
4 ms |
1372 KB |
Output is correct |
153 |
Correct |
2 ms |
1236 KB |
Output is correct |
154 |
Correct |
6 ms |
2396 KB |
Output is correct |
155 |
Correct |
4 ms |
1880 KB |
Output is correct |
156 |
Correct |
7 ms |
3540 KB |
Output is correct |
157 |
Correct |
7 ms |
2396 KB |
Output is correct |
158 |
Correct |
5 ms |
4560 KB |
Output is correct |
159 |
Correct |
8 ms |
2396 KB |
Output is correct |
160 |
Correct |
5 ms |
2396 KB |
Output is correct |
161 |
Correct |
5 ms |
4560 KB |
Output is correct |
162 |
Correct |
8 ms |
4556 KB |
Output is correct |
163 |
Correct |
6 ms |
4560 KB |
Output is correct |
164 |
Correct |
4 ms |
4324 KB |
Output is correct |
165 |
Correct |
5 ms |
4328 KB |
Output is correct |
166 |
Correct |
7 ms |
3416 KB |
Output is correct |
167 |
Correct |
8 ms |
2396 KB |
Output is correct |
168 |
Correct |
8 ms |
2548 KB |
Output is correct |
169 |
Correct |
7 ms |
2652 KB |
Output is correct |
170 |
Correct |
8 ms |
2924 KB |
Output is correct |
171 |
Correct |
9 ms |
2904 KB |
Output is correct |
172 |
Correct |
9 ms |
2652 KB |
Output is correct |
173 |
Correct |
5 ms |
2396 KB |
Output is correct |
174 |
Correct |
11 ms |
3420 KB |
Output is correct |
175 |
Correct |
14 ms |
5212 KB |
Output is correct |
176 |
Correct |
37 ms |
13820 KB |
Output is correct |
177 |
Correct |
49 ms |
14936 KB |
Output is correct |
178 |
Correct |
74 ms |
19036 KB |
Output is correct |
179 |
Correct |
71 ms |
21596 KB |
Output is correct |
180 |
Correct |
76 ms |
21844 KB |
Output is correct |
181 |
Correct |
78 ms |
22208 KB |
Output is correct |
182 |
Correct |
82 ms |
23560 KB |
Output is correct |
183 |
Correct |
83 ms |
25280 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 |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
448 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 |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
2 ms |
1116 KB |
Output is correct |
20 |
Correct |
2 ms |
1628 KB |
Output is correct |
21 |
Correct |
2 ms |
1760 KB |
Output is correct |
22 |
Correct |
4 ms |
1348 KB |
Output is correct |
23 |
Correct |
2 ms |
1116 KB |
Output is correct |
24 |
Correct |
2 ms |
1884 KB |
Output is correct |
25 |
Correct |
2 ms |
1884 KB |
Output is correct |
26 |
Correct |
4 ms |
1436 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
2 ms |
1116 KB |
Output is correct |
29 |
Correct |
6 ms |
2556 KB |
Output is correct |
30 |
Correct |
4 ms |
1688 KB |
Output is correct |
31 |
Correct |
5 ms |
4560 KB |
Output is correct |
32 |
Correct |
11 ms |
2396 KB |
Output is correct |
33 |
Correct |
5 ms |
2396 KB |
Output is correct |
34 |
Correct |
4 ms |
4328 KB |
Output is correct |
35 |
Correct |
5 ms |
4328 KB |
Output is correct |
36 |
Correct |
9 ms |
2904 KB |
Output is correct |
37 |
Correct |
9 ms |
2652 KB |
Output is correct |
38 |
Correct |
6 ms |
2392 KB |
Output is correct |
39 |
Correct |
64 ms |
21072 KB |
Output is correct |
40 |
Correct |
10 ms |
2908 KB |
Output is correct |
41 |
Correct |
7 ms |
5104 KB |
Output is correct |
42 |
Correct |
10 ms |
3420 KB |
Output is correct |
43 |
Correct |
11 ms |
5212 KB |
Output is correct |
44 |
Correct |
36 ms |
12112 KB |
Output is correct |
45 |
Correct |
36 ms |
13300 KB |
Output is correct |
46 |
Correct |
65 ms |
39084 KB |
Output is correct |
47 |
Correct |
96 ms |
21340 KB |
Output is correct |
48 |
Correct |
64 ms |
21080 KB |
Output is correct |
49 |
Correct |
33 ms |
38776 KB |
Output is correct |
50 |
Correct |
38 ms |
38644 KB |
Output is correct |
51 |
Correct |
94 ms |
22072 KB |
Output is correct |
52 |
Correct |
91 ms |
21676 KB |
Output is correct |
53 |
Correct |
73 ms |
21368 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
344 KB |
Output is correct |
57 |
Correct |
1 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
344 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 |
0 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 |
0 ms |
600 KB |
Output is correct |
69 |
Correct |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
1 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
460 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
452 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
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 |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
352 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
0 ms |
352 KB |
Output is correct |
110 |
Correct |
2 ms |
864 KB |
Output is correct |
111 |
Correct |
3 ms |
1824 KB |
Output is correct |
112 |
Correct |
2 ms |
1760 KB |
Output is correct |
113 |
Correct |
2 ms |
1760 KB |
Output is correct |
114 |
Correct |
3 ms |
1888 KB |
Output is correct |
115 |
Correct |
3 ms |
1760 KB |
Output is correct |
116 |
Correct |
3 ms |
1372 KB |
Output is correct |
117 |
Correct |
4 ms |
1488 KB |
Output is correct |
118 |
Correct |
4 ms |
1372 KB |
Output is correct |
119 |
Correct |
7 ms |
3540 KB |
Output is correct |
120 |
Correct |
5 ms |
4628 KB |
Output is correct |
121 |
Correct |
5 ms |
4560 KB |
Output is correct |
122 |
Correct |
8 ms |
4560 KB |
Output is correct |
123 |
Correct |
6 ms |
4560 KB |
Output is correct |
124 |
Correct |
26 ms |
14024 KB |
Output is correct |
125 |
Correct |
82 ms |
32516 KB |
Output is correct |
126 |
Correct |
68 ms |
39580 KB |
Output is correct |
127 |
Correct |
53 ms |
39432 KB |
Output is correct |
128 |
Correct |
95 ms |
39372 KB |
Output is correct |
129 |
Correct |
67 ms |
39384 KB |
Output is correct |
130 |
Correct |
96 ms |
38696 KB |
Output is correct |
131 |
Correct |
99 ms |
37520 KB |
Output is correct |
132 |
Correct |
2 ms |
1112 KB |
Output is correct |
133 |
Correct |
1 ms |
344 KB |
Output is correct |
134 |
Correct |
0 ms |
348 KB |
Output is correct |
135 |
Correct |
3 ms |
860 KB |
Output is correct |
136 |
Correct |
2 ms |
1628 KB |
Output is correct |
137 |
Correct |
3 ms |
1820 KB |
Output is correct |
138 |
Correct |
2 ms |
1760 KB |
Output is correct |
139 |
Correct |
3 ms |
1112 KB |
Output is correct |
140 |
Correct |
2 ms |
1116 KB |
Output is correct |
141 |
Correct |
2 ms |
1760 KB |
Output is correct |
142 |
Correct |
4 ms |
1760 KB |
Output is correct |
143 |
Correct |
2 ms |
1760 KB |
Output is correct |
144 |
Correct |
2 ms |
1884 KB |
Output is correct |
145 |
Correct |
2 ms |
1880 KB |
Output is correct |
146 |
Correct |
3 ms |
1628 KB |
Output is correct |
147 |
Correct |
3 ms |
1116 KB |
Output is correct |
148 |
Correct |
3 ms |
1304 KB |
Output is correct |
149 |
Correct |
3 ms |
1116 KB |
Output is correct |
150 |
Correct |
3 ms |
1372 KB |
Output is correct |
151 |
Correct |
4 ms |
1492 KB |
Output is correct |
152 |
Correct |
4 ms |
1372 KB |
Output is correct |
153 |
Correct |
2 ms |
1236 KB |
Output is correct |
154 |
Correct |
6 ms |
2396 KB |
Output is correct |
155 |
Correct |
4 ms |
1880 KB |
Output is correct |
156 |
Correct |
7 ms |
3540 KB |
Output is correct |
157 |
Correct |
7 ms |
2396 KB |
Output is correct |
158 |
Correct |
5 ms |
4560 KB |
Output is correct |
159 |
Correct |
8 ms |
2396 KB |
Output is correct |
160 |
Correct |
5 ms |
2396 KB |
Output is correct |
161 |
Correct |
5 ms |
4560 KB |
Output is correct |
162 |
Correct |
8 ms |
4556 KB |
Output is correct |
163 |
Correct |
6 ms |
4560 KB |
Output is correct |
164 |
Correct |
4 ms |
4324 KB |
Output is correct |
165 |
Correct |
5 ms |
4328 KB |
Output is correct |
166 |
Correct |
7 ms |
3416 KB |
Output is correct |
167 |
Correct |
8 ms |
2396 KB |
Output is correct |
168 |
Correct |
8 ms |
2548 KB |
Output is correct |
169 |
Correct |
7 ms |
2652 KB |
Output is correct |
170 |
Correct |
8 ms |
2924 KB |
Output is correct |
171 |
Correct |
9 ms |
2904 KB |
Output is correct |
172 |
Correct |
9 ms |
2652 KB |
Output is correct |
173 |
Correct |
5 ms |
2396 KB |
Output is correct |
174 |
Correct |
11 ms |
3420 KB |
Output is correct |
175 |
Correct |
14 ms |
5212 KB |
Output is correct |
176 |
Correct |
37 ms |
13820 KB |
Output is correct |
177 |
Correct |
49 ms |
14936 KB |
Output is correct |
178 |
Correct |
74 ms |
19036 KB |
Output is correct |
179 |
Correct |
71 ms |
21596 KB |
Output is correct |
180 |
Correct |
76 ms |
21844 KB |
Output is correct |
181 |
Correct |
78 ms |
22208 KB |
Output is correct |
182 |
Correct |
82 ms |
23560 KB |
Output is correct |
183 |
Correct |
83 ms |
25280 KB |
Output is correct |
184 |
Correct |
144 ms |
41812 KB |
Output is correct |
185 |
Correct |
75 ms |
23632 KB |
Output is correct |
186 |
Correct |
110 ms |
49948 KB |
Output is correct |
187 |
Correct |
85 ms |
31656 KB |
Output is correct |
188 |
Correct |
135 ms |
75788 KB |
Output is correct |
189 |
Correct |
190 ms |
42064 KB |
Output is correct |
190 |
Correct |
129 ms |
41808 KB |
Output is correct |
191 |
Correct |
131 ms |
75284 KB |
Output is correct |
192 |
Correct |
200 ms |
75452 KB |
Output is correct |
193 |
Correct |
179 ms |
75144 KB |
Output is correct |
194 |
Correct |
63 ms |
73720 KB |
Output is correct |
195 |
Correct |
74 ms |
77560 KB |
Output is correct |
196 |
Correct |
147 ms |
42600 KB |
Output is correct |
197 |
Correct |
147 ms |
42444 KB |
Output is correct |
198 |
Correct |
151 ms |
43600 KB |
Output is correct |
199 |
Correct |
156 ms |
44864 KB |
Output is correct |
200 |
Correct |
201 ms |
43460 KB |
Output is correct |
201 |
Correct |
195 ms |
42700 KB |
Output is correct |
202 |
Correct |
166 ms |
42284 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 |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
448 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 |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
2 ms |
1116 KB |
Output is correct |
20 |
Correct |
2 ms |
1628 KB |
Output is correct |
21 |
Correct |
2 ms |
1760 KB |
Output is correct |
22 |
Correct |
4 ms |
1348 KB |
Output is correct |
23 |
Correct |
2 ms |
1116 KB |
Output is correct |
24 |
Correct |
2 ms |
1884 KB |
Output is correct |
25 |
Correct |
2 ms |
1884 KB |
Output is correct |
26 |
Correct |
4 ms |
1436 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
2 ms |
1116 KB |
Output is correct |
29 |
Correct |
6 ms |
2556 KB |
Output is correct |
30 |
Correct |
4 ms |
1688 KB |
Output is correct |
31 |
Correct |
5 ms |
4560 KB |
Output is correct |
32 |
Correct |
11 ms |
2396 KB |
Output is correct |
33 |
Correct |
5 ms |
2396 KB |
Output is correct |
34 |
Correct |
4 ms |
4328 KB |
Output is correct |
35 |
Correct |
5 ms |
4328 KB |
Output is correct |
36 |
Correct |
9 ms |
2904 KB |
Output is correct |
37 |
Correct |
9 ms |
2652 KB |
Output is correct |
38 |
Correct |
6 ms |
2392 KB |
Output is correct |
39 |
Correct |
64 ms |
21072 KB |
Output is correct |
40 |
Correct |
10 ms |
2908 KB |
Output is correct |
41 |
Correct |
7 ms |
5104 KB |
Output is correct |
42 |
Correct |
10 ms |
3420 KB |
Output is correct |
43 |
Correct |
11 ms |
5212 KB |
Output is correct |
44 |
Correct |
36 ms |
12112 KB |
Output is correct |
45 |
Correct |
36 ms |
13300 KB |
Output is correct |
46 |
Correct |
65 ms |
39084 KB |
Output is correct |
47 |
Correct |
96 ms |
21340 KB |
Output is correct |
48 |
Correct |
64 ms |
21080 KB |
Output is correct |
49 |
Correct |
33 ms |
38776 KB |
Output is correct |
50 |
Correct |
38 ms |
38644 KB |
Output is correct |
51 |
Correct |
94 ms |
22072 KB |
Output is correct |
52 |
Correct |
91 ms |
21676 KB |
Output is correct |
53 |
Correct |
73 ms |
21368 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
344 KB |
Output is correct |
57 |
Correct |
1 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
344 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 |
0 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 |
0 ms |
600 KB |
Output is correct |
69 |
Correct |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
1 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
460 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
452 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
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 |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
352 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
0 ms |
352 KB |
Output is correct |
110 |
Correct |
2 ms |
864 KB |
Output is correct |
111 |
Correct |
3 ms |
1824 KB |
Output is correct |
112 |
Correct |
2 ms |
1760 KB |
Output is correct |
113 |
Correct |
2 ms |
1760 KB |
Output is correct |
114 |
Correct |
3 ms |
1888 KB |
Output is correct |
115 |
Correct |
3 ms |
1760 KB |
Output is correct |
116 |
Correct |
3 ms |
1372 KB |
Output is correct |
117 |
Correct |
4 ms |
1488 KB |
Output is correct |
118 |
Correct |
4 ms |
1372 KB |
Output is correct |
119 |
Correct |
7 ms |
3540 KB |
Output is correct |
120 |
Correct |
5 ms |
4628 KB |
Output is correct |
121 |
Correct |
5 ms |
4560 KB |
Output is correct |
122 |
Correct |
8 ms |
4560 KB |
Output is correct |
123 |
Correct |
6 ms |
4560 KB |
Output is correct |
124 |
Correct |
26 ms |
14024 KB |
Output is correct |
125 |
Correct |
82 ms |
32516 KB |
Output is correct |
126 |
Correct |
68 ms |
39580 KB |
Output is correct |
127 |
Correct |
53 ms |
39432 KB |
Output is correct |
128 |
Correct |
95 ms |
39372 KB |
Output is correct |
129 |
Correct |
67 ms |
39384 KB |
Output is correct |
130 |
Correct |
96 ms |
38696 KB |
Output is correct |
131 |
Correct |
99 ms |
37520 KB |
Output is correct |
132 |
Correct |
2 ms |
1112 KB |
Output is correct |
133 |
Correct |
1 ms |
344 KB |
Output is correct |
134 |
Correct |
0 ms |
348 KB |
Output is correct |
135 |
Correct |
3 ms |
860 KB |
Output is correct |
136 |
Correct |
2 ms |
1628 KB |
Output is correct |
137 |
Correct |
3 ms |
1820 KB |
Output is correct |
138 |
Correct |
2 ms |
1760 KB |
Output is correct |
139 |
Correct |
3 ms |
1112 KB |
Output is correct |
140 |
Correct |
2 ms |
1116 KB |
Output is correct |
141 |
Correct |
2 ms |
1760 KB |
Output is correct |
142 |
Correct |
4 ms |
1760 KB |
Output is correct |
143 |
Correct |
2 ms |
1760 KB |
Output is correct |
144 |
Correct |
2 ms |
1884 KB |
Output is correct |
145 |
Correct |
2 ms |
1880 KB |
Output is correct |
146 |
Correct |
3 ms |
1628 KB |
Output is correct |
147 |
Correct |
3 ms |
1116 KB |
Output is correct |
148 |
Correct |
3 ms |
1304 KB |
Output is correct |
149 |
Correct |
3 ms |
1116 KB |
Output is correct |
150 |
Correct |
3 ms |
1372 KB |
Output is correct |
151 |
Correct |
4 ms |
1492 KB |
Output is correct |
152 |
Correct |
4 ms |
1372 KB |
Output is correct |
153 |
Correct |
2 ms |
1236 KB |
Output is correct |
154 |
Correct |
6 ms |
2396 KB |
Output is correct |
155 |
Correct |
4 ms |
1880 KB |
Output is correct |
156 |
Correct |
7 ms |
3540 KB |
Output is correct |
157 |
Correct |
7 ms |
2396 KB |
Output is correct |
158 |
Correct |
5 ms |
4560 KB |
Output is correct |
159 |
Correct |
8 ms |
2396 KB |
Output is correct |
160 |
Correct |
5 ms |
2396 KB |
Output is correct |
161 |
Correct |
5 ms |
4560 KB |
Output is correct |
162 |
Correct |
8 ms |
4556 KB |
Output is correct |
163 |
Correct |
6 ms |
4560 KB |
Output is correct |
164 |
Correct |
4 ms |
4324 KB |
Output is correct |
165 |
Correct |
5 ms |
4328 KB |
Output is correct |
166 |
Correct |
7 ms |
3416 KB |
Output is correct |
167 |
Correct |
8 ms |
2396 KB |
Output is correct |
168 |
Correct |
8 ms |
2548 KB |
Output is correct |
169 |
Correct |
7 ms |
2652 KB |
Output is correct |
170 |
Correct |
8 ms |
2924 KB |
Output is correct |
171 |
Correct |
9 ms |
2904 KB |
Output is correct |
172 |
Correct |
9 ms |
2652 KB |
Output is correct |
173 |
Correct |
5 ms |
2396 KB |
Output is correct |
174 |
Correct |
11 ms |
3420 KB |
Output is correct |
175 |
Correct |
14 ms |
5212 KB |
Output is correct |
176 |
Correct |
37 ms |
13820 KB |
Output is correct |
177 |
Correct |
49 ms |
14936 KB |
Output is correct |
178 |
Correct |
74 ms |
19036 KB |
Output is correct |
179 |
Correct |
71 ms |
21596 KB |
Output is correct |
180 |
Correct |
76 ms |
21844 KB |
Output is correct |
181 |
Correct |
78 ms |
22208 KB |
Output is correct |
182 |
Correct |
82 ms |
23560 KB |
Output is correct |
183 |
Correct |
83 ms |
25280 KB |
Output is correct |
184 |
Correct |
144 ms |
41812 KB |
Output is correct |
185 |
Correct |
75 ms |
23632 KB |
Output is correct |
186 |
Correct |
110 ms |
49948 KB |
Output is correct |
187 |
Correct |
85 ms |
31656 KB |
Output is correct |
188 |
Correct |
135 ms |
75788 KB |
Output is correct |
189 |
Correct |
190 ms |
42064 KB |
Output is correct |
190 |
Correct |
129 ms |
41808 KB |
Output is correct |
191 |
Correct |
131 ms |
75284 KB |
Output is correct |
192 |
Correct |
200 ms |
75452 KB |
Output is correct |
193 |
Correct |
179 ms |
75144 KB |
Output is correct |
194 |
Correct |
63 ms |
73720 KB |
Output is correct |
195 |
Correct |
74 ms |
77560 KB |
Output is correct |
196 |
Correct |
147 ms |
42600 KB |
Output is correct |
197 |
Correct |
147 ms |
42444 KB |
Output is correct |
198 |
Correct |
151 ms |
43600 KB |
Output is correct |
199 |
Correct |
156 ms |
44864 KB |
Output is correct |
200 |
Correct |
201 ms |
43460 KB |
Output is correct |
201 |
Correct |
195 ms |
42700 KB |
Output is correct |
202 |
Correct |
166 ms |
42284 KB |
Output is correct |
203 |
Correct |
330 ms |
83280 KB |
Output is correct |
204 |
Correct |
120 ms |
54784 KB |
Output is correct |
205 |
Correct |
230 ms |
51916 KB |
Output is correct |
206 |
Correct |
264 ms |
84752 KB |
Output is correct |
207 |
Correct |
350 ms |
149772 KB |
Output is correct |
208 |
Correct |
422 ms |
83792 KB |
Output is correct |
209 |
Correct |
330 ms |
83416 KB |
Output is correct |
210 |
Correct |
263 ms |
150220 KB |
Output is correct |
211 |
Correct |
450 ms |
149952 KB |
Output is correct |
212 |
Correct |
353 ms |
149296 KB |
Output is correct |
213 |
Correct |
129 ms |
155128 KB |
Output is correct |
214 |
Correct |
140 ms |
153588 KB |
Output is correct |
215 |
Correct |
305 ms |
84320 KB |
Output is correct |
216 |
Correct |
294 ms |
84212 KB |
Output is correct |
217 |
Correct |
315 ms |
85960 KB |
Output is correct |
218 |
Correct |
336 ms |
89160 KB |
Output is correct |
219 |
Correct |
346 ms |
111448 KB |
Output is correct |
220 |
Correct |
390 ms |
128188 KB |
Output is correct |
221 |
Correct |
409 ms |
148836 KB |
Output is correct |
222 |
Correct |
440 ms |
150032 KB |
Output is correct |
223 |
Correct |
433 ms |
85112 KB |
Output is correct |
224 |
Correct |
469 ms |
84596 KB |
Output is correct |
225 |
Correct |
425 ms |
83612 KB |
Output is correct |