#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1'000'000'000;
template<typename T>
bool assign_min(T& a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template<typename T>
bool assign_max(T& a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
struct segment_tree {
vector<bool> tree;
ll size;
segment_tree(ll n) {
size = 1;
while (size < n) {
size *= 2;
}
tree.resize(size * 2, false);
}
vector<ll> set(ll l, ll r) {
vector<ll> ans;
set(1, 0, size, l, r, ans);
return ans;
}
void set(ll v, ll l, ll r, ll ql, ll qr, vector<ll>& ans) {
if (tree[v]) {
return;
}
if (r <= ql || qr <= l) {
return;
}
if (r - l == 1) {
ans.push_back(l);
tree[v] = true;
return;
}
ll mid = (l + r) / 2;
set(v * 2, l, mid, ql, qr, ans);
set(v * 2 + 1, mid, r, ql, qr, ans);
tree[v] = tree[v * 2] && tree[v * 2 + 1];
}
};
struct segment_tree_am {
vector<ll> m, tree;
ll size;
segment_tree_am(ll n) {
size = 1;
while (size < n) {
size *= 2;
}
m.resize(size * 2, 0);
tree.resize(size * 2, 0);
}
bool get(ll l, ll r) {
return get(1, 0, size, l, r);
}
bool get(ll v, ll l, ll r, ll ql, ll qr) {
if (tree[v] != 0) {
return false;
}
if (ql <= l && r <= qr) {
return true;
}
if (qr <= l || r <= ql) {
return false;
}
ll mid = (l + r) / 2;
return get(v * 2, l, mid, ql, qr) || get(v * 2 + 1, mid, r, ql, qr);
}
void add(ll l, ll r, ll x) {
add(1, 0, size, l, r, x);
}
void add(ll v, ll l, ll r, ll ql, ll qr, ll x) {
if (ql <= l && r <= qr) {
tree[v] += x;
m[v] += x;
return;
}
if (qr <= l || r <= ql) {
return;
}
ll mid = (l + r) / 2;
add(v * 2, l, mid, ql, qr, x);
add(v * 2 + 1, mid, r, ql, qr, x);
tree[v] = min(tree[v * 2], tree[v * 2 + 1]) + m[v];
}
ll find_first(ll l, ll r) {
if (!get(l, r)) {
return r;
}
return find_first(1, 0, size, l, r);
}
ll find_first(ll v, ll l, ll r, ll ql, ll qr) {
if (r - l == 1) {
return l;
}
ll mid = (l + r) / 2;
if (get(v * 2, l, mid, ql, qr)) {
return find_first(v * 2, l, mid, ql, qr);
} else {
return find_first(v * 2 + 1, mid, r, ql, qr);
}
}
};
void solve() {
ll n, r, c;
cin >> r >> c >> n;
ll sx, sy, gx, gy;
cin >> sx >> sy >> gx >> gy;
sx--;
sy--;
gx--;
gy--;
vector<vector<bool>> arr(r, vector<bool>(c, false));
vector<vector<bool>> used(r, vector<bool>(c, false));
vector<segment_tree> dist(r, segment_tree(c));
for (ll i = 0; i < r; i++) {
string s;
cin >> s;
for (ll j = 0; j < c; j++) {
if (s[j] == '.') {
arr[i][j] = true;
}
}
}
vector<pair<ll, ll>> now;
now.emplace_back(sx, sy);
used[sx][sy] = true;
ll na = 0;
segment_tree_am sta(c), sta2(c);
vector<ll> col(c, 0);
for (ll i = 0; i < c; i++) {
sta2.add(i, i + 1, 1);
}
while (true) {
vector<pair<ll, ll>> nu;
vector<vector<pair<ll, ll>>> all(r * 2);
while (!now.empty()) {
auto[x, y] = now.back();
nu.emplace_back(x, y);
if (x == gx && y == gy) {
cout << na << '\n';
return;
}
now.pop_back();
if (x > 0 && arr[x - 1][y]) {
if (!used[x - 1][y]) {
used[x - 1][y] = true;
now.emplace_back(x - 1, y);
}
}
if (x + 1 < r && arr[x + 1][y]) {
if (!used[x + 1][y]) {
used[x + 1][y] = true;
now.emplace_back(x + 1, y);
}
}
if (y > 0 && arr[x][y - 1]) {
if (!used[x][y - 1]) {
used[x][y - 1] = true;
now.emplace_back(x, y - 1);
}
}
if (y + 1 < c && arr[x][y + 1]) {
if (!used[x][y + 1]) {
used[x][y + 1] = true;
now.emplace_back(x, y + 1);
}
}
all[max(x - n + 1, 0ll) * 2].emplace_back(max(y - n, 0ll), min(y + n + 1, c));
all[(min(x + n, r) - 1) * 2 + 1].emplace_back(max(y - n, 0ll), min(y + n + 1, c));
}
na++;
for (auto[x, y] : nu) {
if (x - n >= 0) {
ll i = x - n;
for (auto j : dist[i].set(max(y - n + 1, 0ll), min(y + n, c))) {
if (!used[i][j]) {
used[i][j] = true;
now.emplace_back(i, j);
}
}
}
if (x + n < r) {
ll i = x + n;
for (auto j : dist[i].set(max(y - n + 1, 0ll), min(y + n, c))) {
if (!used[i][j]) {
used[i][j] = true;
now.emplace_back(i, j);
}
}
}
}
for (ll i = 0; i < r; i++) {
for (auto[l, r] : all[i * 2]) {
sta.add(l, r, 1);
if (!col[l]) {
sta2.add(l, l + 1, -1);
}
col[l]++;
}
ll nn = 0;
while (nn < c) {
nn = sta2.find_first(nn, c);
ll en = sta.find_first(nn, c);
for (auto j : dist[i].set(nn, en)) {
if (!used[i][j]) {
used[i][j] = true;
now.emplace_back(i, j);
}
}
nn = en;
}
for (auto[l, r] : all[i * 2 + 1]) {
sta.add(l, r, -1);
col[l]--;
if (!col[l]) {
sta2.add(l, l + 1, 1);
}
}
}
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
solve();
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 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 |
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 |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
42 ms |
448 KB |
Output is correct |
20 |
Correct |
61 ms |
4948 KB |
Output is correct |
21 |
Correct |
3 ms |
3336 KB |
Output is correct |
22 |
Correct |
33 ms |
468 KB |
Output is correct |
23 |
Correct |
56 ms |
452 KB |
Output is correct |
24 |
Correct |
35 ms |
5076 KB |
Output is correct |
25 |
Correct |
69 ms |
5076 KB |
Output is correct |
26 |
Correct |
1 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
18 ms |
528 KB |
Output is correct |
29 |
Correct |
153 ms |
568 KB |
Output is correct |
30 |
Correct |
46 ms |
2644 KB |
Output is correct |
31 |
Correct |
6 ms |
4924 KB |
Output is correct |
32 |
Correct |
100 ms |
784 KB |
Output is correct |
33 |
Correct |
142 ms |
560 KB |
Output is correct |
34 |
Correct |
109 ms |
18224 KB |
Output is correct |
35 |
Correct |
301 ms |
18228 KB |
Output is correct |
36 |
Correct |
55 ms |
1540 KB |
Output is correct |
37 |
Correct |
78 ms |
1156 KB |
Output is correct |
38 |
Correct |
7 ms |
596 KB |
Output is correct |
39 |
Correct |
1784 ms |
2096 KB |
Output is correct |
40 |
Correct |
48 ms |
1640 KB |
Output is correct |
41 |
Correct |
90 ms |
18512 KB |
Output is correct |
42 |
Correct |
214 ms |
708 KB |
Output is correct |
43 |
Correct |
217 ms |
9804 KB |
Output is correct |
44 |
Correct |
248 ms |
10056 KB |
Output is correct |
45 |
Correct |
477 ms |
18948 KB |
Output is correct |
46 |
Correct |
83 ms |
86972 KB |
Output is correct |
47 |
Correct |
1124 ms |
2652 KB |
Output is correct |
48 |
Correct |
1537 ms |
1916 KB |
Output is correct |
49 |
Correct |
888 ms |
145376 KB |
Output is correct |
50 |
Correct |
1895 ms |
145348 KB |
Output is correct |
51 |
Correct |
730 ms |
6044 KB |
Output is correct |
52 |
Correct |
558 ms |
3300 KB |
Output is correct |
53 |
Correct |
1249 ms |
2296 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 |
1 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
212 KB |
Output is correct |
28 |
Correct |
0 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 |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
252 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 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 |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
0 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
3 ms |
540 KB |
Output is correct |
26 |
Correct |
3 ms |
3148 KB |
Output is correct |
27 |
Correct |
3 ms |
3216 KB |
Output is correct |
28 |
Correct |
2 ms |
1556 KB |
Output is correct |
29 |
Correct |
5 ms |
4452 KB |
Output is correct |
30 |
Correct |
4 ms |
4428 KB |
Output is correct |
31 |
Correct |
9 ms |
876 KB |
Output is correct |
32 |
Correct |
1 ms |
468 KB |
Output is correct |
33 |
Correct |
2 ms |
468 KB |
Output is correct |
34 |
Correct |
1 ms |
468 KB |
Output is correct |
35 |
Correct |
4 ms |
4924 KB |
Output is correct |
36 |
Correct |
2 ms |
2180 KB |
Output is correct |
37 |
Correct |
6 ms |
4676 KB |
Output is correct |
38 |
Correct |
7 ms |
6728 KB |
Output is correct |
39 |
Correct |
18 ms |
16648 KB |
Output is correct |
40 |
Correct |
39 ms |
30488 KB |
Output is correct |
41 |
Correct |
80 ms |
86988 KB |
Output is correct |
42 |
Correct |
54 ms |
46224 KB |
Output is correct |
43 |
Correct |
104 ms |
88268 KB |
Output is correct |
44 |
Correct |
73 ms |
75900 KB |
Output is correct |
45 |
Correct |
34 ms |
21492 KB |
Output is correct |
46 |
Correct |
27 ms |
14720 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 |
1 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
212 KB |
Output is correct |
28 |
Correct |
0 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 |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
41 ms |
440 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
2 ms |
596 KB |
Output is correct |
36 |
Correct |
3 ms |
468 KB |
Output is correct |
37 |
Correct |
61 ms |
4948 KB |
Output is correct |
38 |
Correct |
3 ms |
3148 KB |
Output is correct |
39 |
Correct |
3 ms |
3272 KB |
Output is correct |
40 |
Correct |
33 ms |
468 KB |
Output is correct |
41 |
Correct |
56 ms |
448 KB |
Output is correct |
42 |
Correct |
2 ms |
1556 KB |
Output is correct |
43 |
Correct |
5 ms |
4428 KB |
Output is correct |
44 |
Correct |
4 ms |
4428 KB |
Output is correct |
45 |
Correct |
34 ms |
5076 KB |
Output is correct |
46 |
Correct |
72 ms |
5076 KB |
Output is correct |
47 |
Correct |
38 ms |
2644 KB |
Output is correct |
48 |
Correct |
13 ms |
720 KB |
Output is correct |
49 |
Correct |
10 ms |
724 KB |
Output is correct |
50 |
Correct |
14 ms |
680 KB |
Output is correct |
51 |
Correct |
6 ms |
876 KB |
Output is correct |
52 |
Correct |
1 ms |
468 KB |
Output is correct |
53 |
Correct |
2 ms |
468 KB |
Output is correct |
54 |
Correct |
18 ms |
528 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 |
1 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
212 KB |
Output is correct |
28 |
Correct |
0 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 |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
41 ms |
440 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
2 ms |
596 KB |
Output is correct |
36 |
Correct |
3 ms |
468 KB |
Output is correct |
37 |
Correct |
61 ms |
4948 KB |
Output is correct |
38 |
Correct |
3 ms |
3148 KB |
Output is correct |
39 |
Correct |
3 ms |
3272 KB |
Output is correct |
40 |
Correct |
33 ms |
468 KB |
Output is correct |
41 |
Correct |
56 ms |
448 KB |
Output is correct |
42 |
Correct |
2 ms |
1556 KB |
Output is correct |
43 |
Correct |
5 ms |
4428 KB |
Output is correct |
44 |
Correct |
4 ms |
4428 KB |
Output is correct |
45 |
Correct |
34 ms |
5076 KB |
Output is correct |
46 |
Correct |
72 ms |
5076 KB |
Output is correct |
47 |
Correct |
38 ms |
2644 KB |
Output is correct |
48 |
Correct |
13 ms |
720 KB |
Output is correct |
49 |
Correct |
10 ms |
724 KB |
Output is correct |
50 |
Correct |
14 ms |
680 KB |
Output is correct |
51 |
Correct |
6 ms |
876 KB |
Output is correct |
52 |
Correct |
1 ms |
468 KB |
Output is correct |
53 |
Correct |
2 ms |
468 KB |
Output is correct |
54 |
Correct |
18 ms |
528 KB |
Output is correct |
55 |
Correct |
149 ms |
564 KB |
Output is correct |
56 |
Correct |
45 ms |
2728 KB |
Output is correct |
57 |
Correct |
1 ms |
468 KB |
Output is correct |
58 |
Correct |
68 ms |
1568 KB |
Output is correct |
59 |
Correct |
4 ms |
4924 KB |
Output is correct |
60 |
Correct |
100 ms |
740 KB |
Output is correct |
61 |
Correct |
141 ms |
572 KB |
Output is correct |
62 |
Correct |
3 ms |
2064 KB |
Output is correct |
63 |
Correct |
6 ms |
4688 KB |
Output is correct |
64 |
Correct |
7 ms |
6720 KB |
Output is correct |
65 |
Correct |
115 ms |
18228 KB |
Output is correct |
66 |
Correct |
252 ms |
18180 KB |
Output is correct |
67 |
Correct |
129 ms |
9348 KB |
Output is correct |
68 |
Correct |
38 ms |
1148 KB |
Output is correct |
69 |
Correct |
43 ms |
1300 KB |
Output is correct |
70 |
Correct |
49 ms |
1364 KB |
Output is correct |
71 |
Correct |
30 ms |
1812 KB |
Output is correct |
72 |
Correct |
46 ms |
1484 KB |
Output is correct |
73 |
Correct |
77 ms |
1160 KB |
Output is correct |
74 |
Correct |
7 ms |
596 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 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 |
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 |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
42 ms |
448 KB |
Output is correct |
20 |
Correct |
61 ms |
4948 KB |
Output is correct |
21 |
Correct |
3 ms |
3336 KB |
Output is correct |
22 |
Correct |
33 ms |
468 KB |
Output is correct |
23 |
Correct |
56 ms |
452 KB |
Output is correct |
24 |
Correct |
35 ms |
5076 KB |
Output is correct |
25 |
Correct |
69 ms |
5076 KB |
Output is correct |
26 |
Correct |
1 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
18 ms |
528 KB |
Output is correct |
29 |
Correct |
153 ms |
568 KB |
Output is correct |
30 |
Correct |
46 ms |
2644 KB |
Output is correct |
31 |
Correct |
6 ms |
4924 KB |
Output is correct |
32 |
Correct |
100 ms |
784 KB |
Output is correct |
33 |
Correct |
142 ms |
560 KB |
Output is correct |
34 |
Correct |
109 ms |
18224 KB |
Output is correct |
35 |
Correct |
301 ms |
18228 KB |
Output is correct |
36 |
Correct |
55 ms |
1540 KB |
Output is correct |
37 |
Correct |
78 ms |
1156 KB |
Output is correct |
38 |
Correct |
7 ms |
596 KB |
Output is correct |
39 |
Correct |
1784 ms |
2096 KB |
Output is correct |
40 |
Correct |
48 ms |
1640 KB |
Output is correct |
41 |
Correct |
90 ms |
18512 KB |
Output is correct |
42 |
Correct |
214 ms |
708 KB |
Output is correct |
43 |
Correct |
217 ms |
9804 KB |
Output is correct |
44 |
Correct |
248 ms |
10056 KB |
Output is correct |
45 |
Correct |
477 ms |
18948 KB |
Output is correct |
46 |
Correct |
83 ms |
86972 KB |
Output is correct |
47 |
Correct |
1124 ms |
2652 KB |
Output is correct |
48 |
Correct |
1537 ms |
1916 KB |
Output is correct |
49 |
Correct |
888 ms |
145376 KB |
Output is correct |
50 |
Correct |
1895 ms |
145348 KB |
Output is correct |
51 |
Correct |
730 ms |
6044 KB |
Output is correct |
52 |
Correct |
558 ms |
3300 KB |
Output is correct |
53 |
Correct |
1249 ms |
2296 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
1 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 |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
0 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
0 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
0 ms |
340 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
340 KB |
Output is correct |
76 |
Correct |
0 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
212 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
0 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 |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 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 |
0 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
252 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
0 ms |
340 KB |
Output is correct |
102 |
Correct |
0 ms |
340 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
212 KB |
Output is correct |
107 |
Correct |
0 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
3 ms |
540 KB |
Output is correct |
111 |
Correct |
3 ms |
3148 KB |
Output is correct |
112 |
Correct |
3 ms |
3216 KB |
Output is correct |
113 |
Correct |
2 ms |
1556 KB |
Output is correct |
114 |
Correct |
5 ms |
4452 KB |
Output is correct |
115 |
Correct |
4 ms |
4428 KB |
Output is correct |
116 |
Correct |
9 ms |
876 KB |
Output is correct |
117 |
Correct |
1 ms |
468 KB |
Output is correct |
118 |
Correct |
2 ms |
468 KB |
Output is correct |
119 |
Correct |
1 ms |
468 KB |
Output is correct |
120 |
Correct |
4 ms |
4924 KB |
Output is correct |
121 |
Correct |
2 ms |
2180 KB |
Output is correct |
122 |
Correct |
6 ms |
4676 KB |
Output is correct |
123 |
Correct |
7 ms |
6728 KB |
Output is correct |
124 |
Correct |
18 ms |
16648 KB |
Output is correct |
125 |
Correct |
39 ms |
30488 KB |
Output is correct |
126 |
Correct |
80 ms |
86988 KB |
Output is correct |
127 |
Correct |
54 ms |
46224 KB |
Output is correct |
128 |
Correct |
104 ms |
88268 KB |
Output is correct |
129 |
Correct |
73 ms |
75900 KB |
Output is correct |
130 |
Correct |
34 ms |
21492 KB |
Output is correct |
131 |
Correct |
27 ms |
14720 KB |
Output is correct |
132 |
Correct |
41 ms |
440 KB |
Output is correct |
133 |
Correct |
0 ms |
340 KB |
Output is correct |
134 |
Correct |
2 ms |
596 KB |
Output is correct |
135 |
Correct |
3 ms |
468 KB |
Output is correct |
136 |
Correct |
61 ms |
4948 KB |
Output is correct |
137 |
Correct |
3 ms |
3148 KB |
Output is correct |
138 |
Correct |
3 ms |
3272 KB |
Output is correct |
139 |
Correct |
33 ms |
468 KB |
Output is correct |
140 |
Correct |
56 ms |
448 KB |
Output is correct |
141 |
Correct |
2 ms |
1556 KB |
Output is correct |
142 |
Correct |
5 ms |
4428 KB |
Output is correct |
143 |
Correct |
4 ms |
4428 KB |
Output is correct |
144 |
Correct |
34 ms |
5076 KB |
Output is correct |
145 |
Correct |
72 ms |
5076 KB |
Output is correct |
146 |
Correct |
38 ms |
2644 KB |
Output is correct |
147 |
Correct |
13 ms |
720 KB |
Output is correct |
148 |
Correct |
10 ms |
724 KB |
Output is correct |
149 |
Correct |
14 ms |
680 KB |
Output is correct |
150 |
Correct |
6 ms |
876 KB |
Output is correct |
151 |
Correct |
1 ms |
468 KB |
Output is correct |
152 |
Correct |
2 ms |
468 KB |
Output is correct |
153 |
Correct |
18 ms |
528 KB |
Output is correct |
154 |
Correct |
149 ms |
564 KB |
Output is correct |
155 |
Correct |
45 ms |
2728 KB |
Output is correct |
156 |
Correct |
1 ms |
468 KB |
Output is correct |
157 |
Correct |
68 ms |
1568 KB |
Output is correct |
158 |
Correct |
4 ms |
4924 KB |
Output is correct |
159 |
Correct |
100 ms |
740 KB |
Output is correct |
160 |
Correct |
141 ms |
572 KB |
Output is correct |
161 |
Correct |
3 ms |
2064 KB |
Output is correct |
162 |
Correct |
6 ms |
4688 KB |
Output is correct |
163 |
Correct |
7 ms |
6720 KB |
Output is correct |
164 |
Correct |
115 ms |
18228 KB |
Output is correct |
165 |
Correct |
252 ms |
18180 KB |
Output is correct |
166 |
Correct |
129 ms |
9348 KB |
Output is correct |
167 |
Correct |
38 ms |
1148 KB |
Output is correct |
168 |
Correct |
43 ms |
1300 KB |
Output is correct |
169 |
Correct |
49 ms |
1364 KB |
Output is correct |
170 |
Correct |
30 ms |
1812 KB |
Output is correct |
171 |
Correct |
46 ms |
1484 KB |
Output is correct |
172 |
Correct |
77 ms |
1160 KB |
Output is correct |
173 |
Correct |
7 ms |
596 KB |
Output is correct |
174 |
Correct |
37 ms |
1644 KB |
Output is correct |
175 |
Correct |
139 ms |
1364 KB |
Output is correct |
176 |
Correct |
263 ms |
19348 KB |
Output is correct |
177 |
Correct |
344 ms |
5436 KB |
Output is correct |
178 |
Correct |
43 ms |
5836 KB |
Output is correct |
179 |
Correct |
270 ms |
6300 KB |
Output is correct |
180 |
Correct |
462 ms |
4596 KB |
Output is correct |
181 |
Correct |
476 ms |
4816 KB |
Output is correct |
182 |
Correct |
514 ms |
9952 KB |
Output is correct |
183 |
Correct |
490 ms |
19816 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 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 |
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 |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
42 ms |
448 KB |
Output is correct |
20 |
Correct |
61 ms |
4948 KB |
Output is correct |
21 |
Correct |
3 ms |
3336 KB |
Output is correct |
22 |
Correct |
33 ms |
468 KB |
Output is correct |
23 |
Correct |
56 ms |
452 KB |
Output is correct |
24 |
Correct |
35 ms |
5076 KB |
Output is correct |
25 |
Correct |
69 ms |
5076 KB |
Output is correct |
26 |
Correct |
1 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
18 ms |
528 KB |
Output is correct |
29 |
Correct |
153 ms |
568 KB |
Output is correct |
30 |
Correct |
46 ms |
2644 KB |
Output is correct |
31 |
Correct |
6 ms |
4924 KB |
Output is correct |
32 |
Correct |
100 ms |
784 KB |
Output is correct |
33 |
Correct |
142 ms |
560 KB |
Output is correct |
34 |
Correct |
109 ms |
18224 KB |
Output is correct |
35 |
Correct |
301 ms |
18228 KB |
Output is correct |
36 |
Correct |
55 ms |
1540 KB |
Output is correct |
37 |
Correct |
78 ms |
1156 KB |
Output is correct |
38 |
Correct |
7 ms |
596 KB |
Output is correct |
39 |
Correct |
1784 ms |
2096 KB |
Output is correct |
40 |
Correct |
48 ms |
1640 KB |
Output is correct |
41 |
Correct |
90 ms |
18512 KB |
Output is correct |
42 |
Correct |
214 ms |
708 KB |
Output is correct |
43 |
Correct |
217 ms |
9804 KB |
Output is correct |
44 |
Correct |
248 ms |
10056 KB |
Output is correct |
45 |
Correct |
477 ms |
18948 KB |
Output is correct |
46 |
Correct |
83 ms |
86972 KB |
Output is correct |
47 |
Correct |
1124 ms |
2652 KB |
Output is correct |
48 |
Correct |
1537 ms |
1916 KB |
Output is correct |
49 |
Correct |
888 ms |
145376 KB |
Output is correct |
50 |
Correct |
1895 ms |
145348 KB |
Output is correct |
51 |
Correct |
730 ms |
6044 KB |
Output is correct |
52 |
Correct |
558 ms |
3300 KB |
Output is correct |
53 |
Correct |
1249 ms |
2296 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
1 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 |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
0 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
0 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
0 ms |
340 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
340 KB |
Output is correct |
76 |
Correct |
0 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
212 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
0 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 |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 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 |
0 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
252 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
0 ms |
340 KB |
Output is correct |
102 |
Correct |
0 ms |
340 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
212 KB |
Output is correct |
107 |
Correct |
0 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
3 ms |
540 KB |
Output is correct |
111 |
Correct |
3 ms |
3148 KB |
Output is correct |
112 |
Correct |
3 ms |
3216 KB |
Output is correct |
113 |
Correct |
2 ms |
1556 KB |
Output is correct |
114 |
Correct |
5 ms |
4452 KB |
Output is correct |
115 |
Correct |
4 ms |
4428 KB |
Output is correct |
116 |
Correct |
9 ms |
876 KB |
Output is correct |
117 |
Correct |
1 ms |
468 KB |
Output is correct |
118 |
Correct |
2 ms |
468 KB |
Output is correct |
119 |
Correct |
1 ms |
468 KB |
Output is correct |
120 |
Correct |
4 ms |
4924 KB |
Output is correct |
121 |
Correct |
2 ms |
2180 KB |
Output is correct |
122 |
Correct |
6 ms |
4676 KB |
Output is correct |
123 |
Correct |
7 ms |
6728 KB |
Output is correct |
124 |
Correct |
18 ms |
16648 KB |
Output is correct |
125 |
Correct |
39 ms |
30488 KB |
Output is correct |
126 |
Correct |
80 ms |
86988 KB |
Output is correct |
127 |
Correct |
54 ms |
46224 KB |
Output is correct |
128 |
Correct |
104 ms |
88268 KB |
Output is correct |
129 |
Correct |
73 ms |
75900 KB |
Output is correct |
130 |
Correct |
34 ms |
21492 KB |
Output is correct |
131 |
Correct |
27 ms |
14720 KB |
Output is correct |
132 |
Correct |
41 ms |
440 KB |
Output is correct |
133 |
Correct |
0 ms |
340 KB |
Output is correct |
134 |
Correct |
2 ms |
596 KB |
Output is correct |
135 |
Correct |
3 ms |
468 KB |
Output is correct |
136 |
Correct |
61 ms |
4948 KB |
Output is correct |
137 |
Correct |
3 ms |
3148 KB |
Output is correct |
138 |
Correct |
3 ms |
3272 KB |
Output is correct |
139 |
Correct |
33 ms |
468 KB |
Output is correct |
140 |
Correct |
56 ms |
448 KB |
Output is correct |
141 |
Correct |
2 ms |
1556 KB |
Output is correct |
142 |
Correct |
5 ms |
4428 KB |
Output is correct |
143 |
Correct |
4 ms |
4428 KB |
Output is correct |
144 |
Correct |
34 ms |
5076 KB |
Output is correct |
145 |
Correct |
72 ms |
5076 KB |
Output is correct |
146 |
Correct |
38 ms |
2644 KB |
Output is correct |
147 |
Correct |
13 ms |
720 KB |
Output is correct |
148 |
Correct |
10 ms |
724 KB |
Output is correct |
149 |
Correct |
14 ms |
680 KB |
Output is correct |
150 |
Correct |
6 ms |
876 KB |
Output is correct |
151 |
Correct |
1 ms |
468 KB |
Output is correct |
152 |
Correct |
2 ms |
468 KB |
Output is correct |
153 |
Correct |
18 ms |
528 KB |
Output is correct |
154 |
Correct |
149 ms |
564 KB |
Output is correct |
155 |
Correct |
45 ms |
2728 KB |
Output is correct |
156 |
Correct |
1 ms |
468 KB |
Output is correct |
157 |
Correct |
68 ms |
1568 KB |
Output is correct |
158 |
Correct |
4 ms |
4924 KB |
Output is correct |
159 |
Correct |
100 ms |
740 KB |
Output is correct |
160 |
Correct |
141 ms |
572 KB |
Output is correct |
161 |
Correct |
3 ms |
2064 KB |
Output is correct |
162 |
Correct |
6 ms |
4688 KB |
Output is correct |
163 |
Correct |
7 ms |
6720 KB |
Output is correct |
164 |
Correct |
115 ms |
18228 KB |
Output is correct |
165 |
Correct |
252 ms |
18180 KB |
Output is correct |
166 |
Correct |
129 ms |
9348 KB |
Output is correct |
167 |
Correct |
38 ms |
1148 KB |
Output is correct |
168 |
Correct |
43 ms |
1300 KB |
Output is correct |
169 |
Correct |
49 ms |
1364 KB |
Output is correct |
170 |
Correct |
30 ms |
1812 KB |
Output is correct |
171 |
Correct |
46 ms |
1484 KB |
Output is correct |
172 |
Correct |
77 ms |
1160 KB |
Output is correct |
173 |
Correct |
7 ms |
596 KB |
Output is correct |
174 |
Correct |
37 ms |
1644 KB |
Output is correct |
175 |
Correct |
139 ms |
1364 KB |
Output is correct |
176 |
Correct |
263 ms |
19348 KB |
Output is correct |
177 |
Correct |
344 ms |
5436 KB |
Output is correct |
178 |
Correct |
43 ms |
5836 KB |
Output is correct |
179 |
Correct |
270 ms |
6300 KB |
Output is correct |
180 |
Correct |
462 ms |
4596 KB |
Output is correct |
181 |
Correct |
476 ms |
4816 KB |
Output is correct |
182 |
Correct |
514 ms |
9952 KB |
Output is correct |
183 |
Correct |
490 ms |
19816 KB |
Output is correct |
184 |
Execution timed out |
2080 ms |
2840 KB |
Time limit exceeded |
185 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 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 |
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 |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
42 ms |
448 KB |
Output is correct |
20 |
Correct |
61 ms |
4948 KB |
Output is correct |
21 |
Correct |
3 ms |
3336 KB |
Output is correct |
22 |
Correct |
33 ms |
468 KB |
Output is correct |
23 |
Correct |
56 ms |
452 KB |
Output is correct |
24 |
Correct |
35 ms |
5076 KB |
Output is correct |
25 |
Correct |
69 ms |
5076 KB |
Output is correct |
26 |
Correct |
1 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
18 ms |
528 KB |
Output is correct |
29 |
Correct |
153 ms |
568 KB |
Output is correct |
30 |
Correct |
46 ms |
2644 KB |
Output is correct |
31 |
Correct |
6 ms |
4924 KB |
Output is correct |
32 |
Correct |
100 ms |
784 KB |
Output is correct |
33 |
Correct |
142 ms |
560 KB |
Output is correct |
34 |
Correct |
109 ms |
18224 KB |
Output is correct |
35 |
Correct |
301 ms |
18228 KB |
Output is correct |
36 |
Correct |
55 ms |
1540 KB |
Output is correct |
37 |
Correct |
78 ms |
1156 KB |
Output is correct |
38 |
Correct |
7 ms |
596 KB |
Output is correct |
39 |
Correct |
1784 ms |
2096 KB |
Output is correct |
40 |
Correct |
48 ms |
1640 KB |
Output is correct |
41 |
Correct |
90 ms |
18512 KB |
Output is correct |
42 |
Correct |
214 ms |
708 KB |
Output is correct |
43 |
Correct |
217 ms |
9804 KB |
Output is correct |
44 |
Correct |
248 ms |
10056 KB |
Output is correct |
45 |
Correct |
477 ms |
18948 KB |
Output is correct |
46 |
Correct |
83 ms |
86972 KB |
Output is correct |
47 |
Correct |
1124 ms |
2652 KB |
Output is correct |
48 |
Correct |
1537 ms |
1916 KB |
Output is correct |
49 |
Correct |
888 ms |
145376 KB |
Output is correct |
50 |
Correct |
1895 ms |
145348 KB |
Output is correct |
51 |
Correct |
730 ms |
6044 KB |
Output is correct |
52 |
Correct |
558 ms |
3300 KB |
Output is correct |
53 |
Correct |
1249 ms |
2296 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
1 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 |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
0 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
0 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
0 ms |
340 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
340 KB |
Output is correct |
76 |
Correct |
0 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
212 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
0 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 |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 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 |
0 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
252 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
0 ms |
340 KB |
Output is correct |
102 |
Correct |
0 ms |
340 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
212 KB |
Output is correct |
107 |
Correct |
0 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
3 ms |
540 KB |
Output is correct |
111 |
Correct |
3 ms |
3148 KB |
Output is correct |
112 |
Correct |
3 ms |
3216 KB |
Output is correct |
113 |
Correct |
2 ms |
1556 KB |
Output is correct |
114 |
Correct |
5 ms |
4452 KB |
Output is correct |
115 |
Correct |
4 ms |
4428 KB |
Output is correct |
116 |
Correct |
9 ms |
876 KB |
Output is correct |
117 |
Correct |
1 ms |
468 KB |
Output is correct |
118 |
Correct |
2 ms |
468 KB |
Output is correct |
119 |
Correct |
1 ms |
468 KB |
Output is correct |
120 |
Correct |
4 ms |
4924 KB |
Output is correct |
121 |
Correct |
2 ms |
2180 KB |
Output is correct |
122 |
Correct |
6 ms |
4676 KB |
Output is correct |
123 |
Correct |
7 ms |
6728 KB |
Output is correct |
124 |
Correct |
18 ms |
16648 KB |
Output is correct |
125 |
Correct |
39 ms |
30488 KB |
Output is correct |
126 |
Correct |
80 ms |
86988 KB |
Output is correct |
127 |
Correct |
54 ms |
46224 KB |
Output is correct |
128 |
Correct |
104 ms |
88268 KB |
Output is correct |
129 |
Correct |
73 ms |
75900 KB |
Output is correct |
130 |
Correct |
34 ms |
21492 KB |
Output is correct |
131 |
Correct |
27 ms |
14720 KB |
Output is correct |
132 |
Correct |
41 ms |
440 KB |
Output is correct |
133 |
Correct |
0 ms |
340 KB |
Output is correct |
134 |
Correct |
2 ms |
596 KB |
Output is correct |
135 |
Correct |
3 ms |
468 KB |
Output is correct |
136 |
Correct |
61 ms |
4948 KB |
Output is correct |
137 |
Correct |
3 ms |
3148 KB |
Output is correct |
138 |
Correct |
3 ms |
3272 KB |
Output is correct |
139 |
Correct |
33 ms |
468 KB |
Output is correct |
140 |
Correct |
56 ms |
448 KB |
Output is correct |
141 |
Correct |
2 ms |
1556 KB |
Output is correct |
142 |
Correct |
5 ms |
4428 KB |
Output is correct |
143 |
Correct |
4 ms |
4428 KB |
Output is correct |
144 |
Correct |
34 ms |
5076 KB |
Output is correct |
145 |
Correct |
72 ms |
5076 KB |
Output is correct |
146 |
Correct |
38 ms |
2644 KB |
Output is correct |
147 |
Correct |
13 ms |
720 KB |
Output is correct |
148 |
Correct |
10 ms |
724 KB |
Output is correct |
149 |
Correct |
14 ms |
680 KB |
Output is correct |
150 |
Correct |
6 ms |
876 KB |
Output is correct |
151 |
Correct |
1 ms |
468 KB |
Output is correct |
152 |
Correct |
2 ms |
468 KB |
Output is correct |
153 |
Correct |
18 ms |
528 KB |
Output is correct |
154 |
Correct |
149 ms |
564 KB |
Output is correct |
155 |
Correct |
45 ms |
2728 KB |
Output is correct |
156 |
Correct |
1 ms |
468 KB |
Output is correct |
157 |
Correct |
68 ms |
1568 KB |
Output is correct |
158 |
Correct |
4 ms |
4924 KB |
Output is correct |
159 |
Correct |
100 ms |
740 KB |
Output is correct |
160 |
Correct |
141 ms |
572 KB |
Output is correct |
161 |
Correct |
3 ms |
2064 KB |
Output is correct |
162 |
Correct |
6 ms |
4688 KB |
Output is correct |
163 |
Correct |
7 ms |
6720 KB |
Output is correct |
164 |
Correct |
115 ms |
18228 KB |
Output is correct |
165 |
Correct |
252 ms |
18180 KB |
Output is correct |
166 |
Correct |
129 ms |
9348 KB |
Output is correct |
167 |
Correct |
38 ms |
1148 KB |
Output is correct |
168 |
Correct |
43 ms |
1300 KB |
Output is correct |
169 |
Correct |
49 ms |
1364 KB |
Output is correct |
170 |
Correct |
30 ms |
1812 KB |
Output is correct |
171 |
Correct |
46 ms |
1484 KB |
Output is correct |
172 |
Correct |
77 ms |
1160 KB |
Output is correct |
173 |
Correct |
7 ms |
596 KB |
Output is correct |
174 |
Correct |
37 ms |
1644 KB |
Output is correct |
175 |
Correct |
139 ms |
1364 KB |
Output is correct |
176 |
Correct |
263 ms |
19348 KB |
Output is correct |
177 |
Correct |
344 ms |
5436 KB |
Output is correct |
178 |
Correct |
43 ms |
5836 KB |
Output is correct |
179 |
Correct |
270 ms |
6300 KB |
Output is correct |
180 |
Correct |
462 ms |
4596 KB |
Output is correct |
181 |
Correct |
476 ms |
4816 KB |
Output is correct |
182 |
Correct |
514 ms |
9952 KB |
Output is correct |
183 |
Correct |
490 ms |
19816 KB |
Output is correct |
184 |
Execution timed out |
2080 ms |
2840 KB |
Time limit exceeded |
185 |
Halted |
0 ms |
0 KB |
- |