#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];
}
};
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<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;
}
}
}
dist[sx].set(sy, sy + 1);
queue<pair<ll, ll>> now;
now.emplace(sx, sy);
ll na = 0;
while (true) {
vector<pair<ll, ll>> nu;
while (!now.empty()) {
auto[x, y] = now.front();
nu.emplace_back(x, y);
if (x == gx && y == gy) {
cout << na << '\n';
return;
}
now.pop();
if (x > 0 && arr[x - 1][y]) {
if (!dist[x - 1].set(y, y + 1).empty()) {
now.emplace(x - 1, y);
}
}
if (x + 1 < r && arr[x + 1][y]) {
if (!dist[x + 1].set(y, y + 1).empty()) {
now.emplace(x + 1, y);
}
}
if (y > 0 && arr[x][y - 1]) {
if (!dist[x].set(y - 1, y).empty()) {
now.emplace(x, y - 1);
}
}
if (y + 1 < c && arr[x][y + 1]) {
if (!dist[x].set(y + 1, y + 2).empty()) {
now.emplace(x, y + 1);
}
}
}
na++;
for (auto[x, y] : nu) {
for (ll i = -n; i <= n; i++) {
if (x + i >= 0 && x + i < r) {
if (abs(i) == n) {
for (auto j : dist[x + i].set(max(y - n + 1, 0ll), min(y + n, c))) {
now.emplace(x + i, j);
}
} else {
for (auto j : dist[x + i].set(max(y - n, 0ll), min(y + n + 1, c))) {
now.emplace(x + i, j);
}
}
}
}
}
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
solve();
}
# |
결과 |
실행 시간 |
메모리 |
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 |
1 ms |
360 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
316 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
316 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
320 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
14 ms |
396 KB |
Output is correct |
20 |
Correct |
13 ms |
448 KB |
Output is correct |
21 |
Correct |
18 ms |
1484 KB |
Output is correct |
22 |
Correct |
29 ms |
432 KB |
Output is correct |
23 |
Correct |
14 ms |
384 KB |
Output is correct |
24 |
Correct |
20 ms |
468 KB |
Output is correct |
25 |
Correct |
10 ms |
468 KB |
Output is correct |
26 |
Correct |
2 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
6 ms |
468 KB |
Output is correct |
29 |
Correct |
46 ms |
596 KB |
Output is correct |
30 |
Correct |
20 ms |
468 KB |
Output is correct |
31 |
Correct |
66 ms |
4800 KB |
Output is correct |
32 |
Correct |
64 ms |
716 KB |
Output is correct |
33 |
Correct |
40 ms |
596 KB |
Output is correct |
34 |
Correct |
67 ms |
852 KB |
Output is correct |
35 |
Correct |
38 ms |
852 KB |
Output is correct |
36 |
Correct |
36 ms |
1164 KB |
Output is correct |
37 |
Correct |
53 ms |
900 KB |
Output is correct |
38 |
Correct |
3 ms |
592 KB |
Output is correct |
39 |
Correct |
624 ms |
2840 KB |
Output is correct |
40 |
Correct |
26 ms |
528 KB |
Output is correct |
41 |
Correct |
36 ms |
980 KB |
Output is correct |
42 |
Correct |
105 ms |
704 KB |
Output is correct |
43 |
Correct |
83 ms |
876 KB |
Output is correct |
44 |
Correct |
197 ms |
1672 KB |
Output is correct |
45 |
Correct |
151 ms |
1912 KB |
Output is correct |
46 |
Correct |
169 ms |
11064 KB |
Output is correct |
47 |
Correct |
745 ms |
3224 KB |
Output is correct |
48 |
Correct |
419 ms |
2840 KB |
Output is correct |
49 |
Correct |
518 ms |
4396 KB |
Output is correct |
50 |
Correct |
231 ms |
4384 KB |
Output is correct |
51 |
Correct |
581 ms |
5128 KB |
Output is correct |
52 |
Correct |
391 ms |
4052 KB |
Output is correct |
53 |
Correct |
392 ms |
3052 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
316 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
324 KB |
Output is correct |
24 |
Correct |
1 ms |
320 KB |
Output is correct |
25 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
212 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
320 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
316 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
316 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 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 |
1 ms |
316 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
320 KB |
Output is correct |
20 |
Correct |
1 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
320 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
4 ms |
336 KB |
Output is correct |
26 |
Correct |
13 ms |
976 KB |
Output is correct |
27 |
Correct |
19 ms |
1484 KB |
Output is correct |
28 |
Correct |
17 ms |
1540 KB |
Output is correct |
29 |
Correct |
4 ms |
2136 KB |
Output is correct |
30 |
Correct |
2 ms |
2124 KB |
Output is correct |
31 |
Correct |
92 ms |
672 KB |
Output is correct |
32 |
Correct |
2 ms |
468 KB |
Output is correct |
33 |
Correct |
2 ms |
460 KB |
Output is correct |
34 |
Correct |
26 ms |
2628 KB |
Output is correct |
35 |
Correct |
56 ms |
4808 KB |
Output is correct |
36 |
Correct |
51 ms |
2724 KB |
Output is correct |
37 |
Correct |
12 ms |
5292 KB |
Output is correct |
38 |
Correct |
6 ms |
5296 KB |
Output is correct |
39 |
Correct |
73 ms |
5280 KB |
Output is correct |
40 |
Correct |
378 ms |
18652 KB |
Output is correct |
41 |
Correct |
172 ms |
11044 KB |
Output is correct |
42 |
Correct |
650 ms |
35660 KB |
Output is correct |
43 |
Correct |
73 ms |
44412 KB |
Output is correct |
44 |
Correct |
50 ms |
44244 KB |
Output is correct |
45 |
Correct |
348 ms |
19136 KB |
Output is correct |
46 |
Correct |
292 ms |
18876 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
316 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
324 KB |
Output is correct |
24 |
Correct |
1 ms |
320 KB |
Output is correct |
25 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
212 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
320 KB |
Output is correct |
33 |
Correct |
14 ms |
388 KB |
Output is correct |
34 |
Correct |
0 ms |
212 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
4 ms |
340 KB |
Output is correct |
37 |
Correct |
9 ms |
468 KB |
Output is correct |
38 |
Correct |
13 ms |
1040 KB |
Output is correct |
39 |
Correct |
19 ms |
1612 KB |
Output is correct |
40 |
Correct |
21 ms |
468 KB |
Output is correct |
41 |
Correct |
14 ms |
440 KB |
Output is correct |
42 |
Correct |
17 ms |
1492 KB |
Output is correct |
43 |
Correct |
4 ms |
2096 KB |
Output is correct |
44 |
Correct |
3 ms |
2136 KB |
Output is correct |
45 |
Correct |
21 ms |
468 KB |
Output is correct |
46 |
Correct |
10 ms |
512 KB |
Output is correct |
47 |
Correct |
24 ms |
468 KB |
Output is correct |
48 |
Correct |
67 ms |
424 KB |
Output is correct |
49 |
Correct |
79 ms |
488 KB |
Output is correct |
50 |
Correct |
183 ms |
592 KB |
Output is correct |
51 |
Correct |
90 ms |
660 KB |
Output is correct |
52 |
Correct |
2 ms |
468 KB |
Output is correct |
53 |
Correct |
2 ms |
468 KB |
Output is correct |
54 |
Correct |
6 ms |
468 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
316 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
1 ms |
324 KB |
Output is correct |
24 |
Correct |
1 ms |
320 KB |
Output is correct |
25 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
212 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
320 KB |
Output is correct |
33 |
Correct |
14 ms |
388 KB |
Output is correct |
34 |
Correct |
0 ms |
212 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
4 ms |
340 KB |
Output is correct |
37 |
Correct |
9 ms |
468 KB |
Output is correct |
38 |
Correct |
13 ms |
1040 KB |
Output is correct |
39 |
Correct |
19 ms |
1612 KB |
Output is correct |
40 |
Correct |
21 ms |
468 KB |
Output is correct |
41 |
Correct |
14 ms |
440 KB |
Output is correct |
42 |
Correct |
17 ms |
1492 KB |
Output is correct |
43 |
Correct |
4 ms |
2096 KB |
Output is correct |
44 |
Correct |
3 ms |
2136 KB |
Output is correct |
45 |
Correct |
21 ms |
468 KB |
Output is correct |
46 |
Correct |
10 ms |
512 KB |
Output is correct |
47 |
Correct |
24 ms |
468 KB |
Output is correct |
48 |
Correct |
67 ms |
424 KB |
Output is correct |
49 |
Correct |
79 ms |
488 KB |
Output is correct |
50 |
Correct |
183 ms |
592 KB |
Output is correct |
51 |
Correct |
90 ms |
660 KB |
Output is correct |
52 |
Correct |
2 ms |
468 KB |
Output is correct |
53 |
Correct |
2 ms |
468 KB |
Output is correct |
54 |
Correct |
6 ms |
468 KB |
Output is correct |
55 |
Correct |
50 ms |
604 KB |
Output is correct |
56 |
Correct |
20 ms |
468 KB |
Output is correct |
57 |
Correct |
26 ms |
2684 KB |
Output is correct |
58 |
Correct |
89 ms |
528 KB |
Output is correct |
59 |
Correct |
55 ms |
4776 KB |
Output is correct |
60 |
Correct |
65 ms |
704 KB |
Output is correct |
61 |
Correct |
40 ms |
596 KB |
Output is correct |
62 |
Correct |
51 ms |
2736 KB |
Output is correct |
63 |
Correct |
12 ms |
5400 KB |
Output is correct |
64 |
Correct |
6 ms |
5320 KB |
Output is correct |
65 |
Correct |
72 ms |
980 KB |
Output is correct |
66 |
Correct |
31 ms |
852 KB |
Output is correct |
67 |
Correct |
84 ms |
724 KB |
Output is correct |
68 |
Correct |
308 ms |
596 KB |
Output is correct |
69 |
Correct |
487 ms |
704 KB |
Output is correct |
70 |
Correct |
698 ms |
868 KB |
Output is correct |
71 |
Correct |
730 ms |
1232 KB |
Output is correct |
72 |
Correct |
36 ms |
1160 KB |
Output is correct |
73 |
Correct |
52 ms |
892 KB |
Output is correct |
74 |
Correct |
3 ms |
596 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
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 |
1 ms |
360 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
316 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
316 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
320 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
14 ms |
396 KB |
Output is correct |
20 |
Correct |
13 ms |
448 KB |
Output is correct |
21 |
Correct |
18 ms |
1484 KB |
Output is correct |
22 |
Correct |
29 ms |
432 KB |
Output is correct |
23 |
Correct |
14 ms |
384 KB |
Output is correct |
24 |
Correct |
20 ms |
468 KB |
Output is correct |
25 |
Correct |
10 ms |
468 KB |
Output is correct |
26 |
Correct |
2 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
6 ms |
468 KB |
Output is correct |
29 |
Correct |
46 ms |
596 KB |
Output is correct |
30 |
Correct |
20 ms |
468 KB |
Output is correct |
31 |
Correct |
66 ms |
4800 KB |
Output is correct |
32 |
Correct |
64 ms |
716 KB |
Output is correct |
33 |
Correct |
40 ms |
596 KB |
Output is correct |
34 |
Correct |
67 ms |
852 KB |
Output is correct |
35 |
Correct |
38 ms |
852 KB |
Output is correct |
36 |
Correct |
36 ms |
1164 KB |
Output is correct |
37 |
Correct |
53 ms |
900 KB |
Output is correct |
38 |
Correct |
3 ms |
592 KB |
Output is correct |
39 |
Correct |
624 ms |
2840 KB |
Output is correct |
40 |
Correct |
26 ms |
528 KB |
Output is correct |
41 |
Correct |
36 ms |
980 KB |
Output is correct |
42 |
Correct |
105 ms |
704 KB |
Output is correct |
43 |
Correct |
83 ms |
876 KB |
Output is correct |
44 |
Correct |
197 ms |
1672 KB |
Output is correct |
45 |
Correct |
151 ms |
1912 KB |
Output is correct |
46 |
Correct |
169 ms |
11064 KB |
Output is correct |
47 |
Correct |
745 ms |
3224 KB |
Output is correct |
48 |
Correct |
419 ms |
2840 KB |
Output is correct |
49 |
Correct |
518 ms |
4396 KB |
Output is correct |
50 |
Correct |
231 ms |
4384 KB |
Output is correct |
51 |
Correct |
581 ms |
5128 KB |
Output is correct |
52 |
Correct |
391 ms |
4052 KB |
Output is correct |
53 |
Correct |
392 ms |
3052 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
212 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
316 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
324 KB |
Output is correct |
77 |
Correct |
1 ms |
320 KB |
Output is correct |
78 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
212 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
320 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
316 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
316 KB |
Output is correct |
91 |
Correct |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
316 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
320 KB |
Output is correct |
105 |
Correct |
1 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
320 KB |
Output is correct |
107 |
Correct |
1 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
212 KB |
Output is correct |
110 |
Correct |
4 ms |
336 KB |
Output is correct |
111 |
Correct |
13 ms |
976 KB |
Output is correct |
112 |
Correct |
19 ms |
1484 KB |
Output is correct |
113 |
Correct |
17 ms |
1540 KB |
Output is correct |
114 |
Correct |
4 ms |
2136 KB |
Output is correct |
115 |
Correct |
2 ms |
2124 KB |
Output is correct |
116 |
Correct |
92 ms |
672 KB |
Output is correct |
117 |
Correct |
2 ms |
468 KB |
Output is correct |
118 |
Correct |
2 ms |
460 KB |
Output is correct |
119 |
Correct |
26 ms |
2628 KB |
Output is correct |
120 |
Correct |
56 ms |
4808 KB |
Output is correct |
121 |
Correct |
51 ms |
2724 KB |
Output is correct |
122 |
Correct |
12 ms |
5292 KB |
Output is correct |
123 |
Correct |
6 ms |
5296 KB |
Output is correct |
124 |
Correct |
73 ms |
5280 KB |
Output is correct |
125 |
Correct |
378 ms |
18652 KB |
Output is correct |
126 |
Correct |
172 ms |
11044 KB |
Output is correct |
127 |
Correct |
650 ms |
35660 KB |
Output is correct |
128 |
Correct |
73 ms |
44412 KB |
Output is correct |
129 |
Correct |
50 ms |
44244 KB |
Output is correct |
130 |
Correct |
348 ms |
19136 KB |
Output is correct |
131 |
Correct |
292 ms |
18876 KB |
Output is correct |
132 |
Correct |
14 ms |
388 KB |
Output is correct |
133 |
Correct |
0 ms |
212 KB |
Output is correct |
134 |
Correct |
1 ms |
212 KB |
Output is correct |
135 |
Correct |
4 ms |
340 KB |
Output is correct |
136 |
Correct |
9 ms |
468 KB |
Output is correct |
137 |
Correct |
13 ms |
1040 KB |
Output is correct |
138 |
Correct |
19 ms |
1612 KB |
Output is correct |
139 |
Correct |
21 ms |
468 KB |
Output is correct |
140 |
Correct |
14 ms |
440 KB |
Output is correct |
141 |
Correct |
17 ms |
1492 KB |
Output is correct |
142 |
Correct |
4 ms |
2096 KB |
Output is correct |
143 |
Correct |
3 ms |
2136 KB |
Output is correct |
144 |
Correct |
21 ms |
468 KB |
Output is correct |
145 |
Correct |
10 ms |
512 KB |
Output is correct |
146 |
Correct |
24 ms |
468 KB |
Output is correct |
147 |
Correct |
67 ms |
424 KB |
Output is correct |
148 |
Correct |
79 ms |
488 KB |
Output is correct |
149 |
Correct |
183 ms |
592 KB |
Output is correct |
150 |
Correct |
90 ms |
660 KB |
Output is correct |
151 |
Correct |
2 ms |
468 KB |
Output is correct |
152 |
Correct |
2 ms |
468 KB |
Output is correct |
153 |
Correct |
6 ms |
468 KB |
Output is correct |
154 |
Correct |
50 ms |
604 KB |
Output is correct |
155 |
Correct |
20 ms |
468 KB |
Output is correct |
156 |
Correct |
26 ms |
2684 KB |
Output is correct |
157 |
Correct |
89 ms |
528 KB |
Output is correct |
158 |
Correct |
55 ms |
4776 KB |
Output is correct |
159 |
Correct |
65 ms |
704 KB |
Output is correct |
160 |
Correct |
40 ms |
596 KB |
Output is correct |
161 |
Correct |
51 ms |
2736 KB |
Output is correct |
162 |
Correct |
12 ms |
5400 KB |
Output is correct |
163 |
Correct |
6 ms |
5320 KB |
Output is correct |
164 |
Correct |
72 ms |
980 KB |
Output is correct |
165 |
Correct |
31 ms |
852 KB |
Output is correct |
166 |
Correct |
84 ms |
724 KB |
Output is correct |
167 |
Correct |
308 ms |
596 KB |
Output is correct |
168 |
Correct |
487 ms |
704 KB |
Output is correct |
169 |
Correct |
698 ms |
868 KB |
Output is correct |
170 |
Correct |
730 ms |
1232 KB |
Output is correct |
171 |
Correct |
36 ms |
1160 KB |
Output is correct |
172 |
Correct |
52 ms |
892 KB |
Output is correct |
173 |
Correct |
3 ms |
596 KB |
Output is correct |
174 |
Correct |
45 ms |
596 KB |
Output is correct |
175 |
Correct |
1268 ms |
964 KB |
Output is correct |
176 |
Correct |
180 ms |
1892 KB |
Output is correct |
177 |
Correct |
1697 ms |
1904 KB |
Output is correct |
178 |
Correct |
193 ms |
2564 KB |
Output is correct |
179 |
Execution timed out |
2077 ms |
2984 KB |
Time limit exceeded |
180 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
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 |
1 ms |
360 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
316 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
316 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
320 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
14 ms |
396 KB |
Output is correct |
20 |
Correct |
13 ms |
448 KB |
Output is correct |
21 |
Correct |
18 ms |
1484 KB |
Output is correct |
22 |
Correct |
29 ms |
432 KB |
Output is correct |
23 |
Correct |
14 ms |
384 KB |
Output is correct |
24 |
Correct |
20 ms |
468 KB |
Output is correct |
25 |
Correct |
10 ms |
468 KB |
Output is correct |
26 |
Correct |
2 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
6 ms |
468 KB |
Output is correct |
29 |
Correct |
46 ms |
596 KB |
Output is correct |
30 |
Correct |
20 ms |
468 KB |
Output is correct |
31 |
Correct |
66 ms |
4800 KB |
Output is correct |
32 |
Correct |
64 ms |
716 KB |
Output is correct |
33 |
Correct |
40 ms |
596 KB |
Output is correct |
34 |
Correct |
67 ms |
852 KB |
Output is correct |
35 |
Correct |
38 ms |
852 KB |
Output is correct |
36 |
Correct |
36 ms |
1164 KB |
Output is correct |
37 |
Correct |
53 ms |
900 KB |
Output is correct |
38 |
Correct |
3 ms |
592 KB |
Output is correct |
39 |
Correct |
624 ms |
2840 KB |
Output is correct |
40 |
Correct |
26 ms |
528 KB |
Output is correct |
41 |
Correct |
36 ms |
980 KB |
Output is correct |
42 |
Correct |
105 ms |
704 KB |
Output is correct |
43 |
Correct |
83 ms |
876 KB |
Output is correct |
44 |
Correct |
197 ms |
1672 KB |
Output is correct |
45 |
Correct |
151 ms |
1912 KB |
Output is correct |
46 |
Correct |
169 ms |
11064 KB |
Output is correct |
47 |
Correct |
745 ms |
3224 KB |
Output is correct |
48 |
Correct |
419 ms |
2840 KB |
Output is correct |
49 |
Correct |
518 ms |
4396 KB |
Output is correct |
50 |
Correct |
231 ms |
4384 KB |
Output is correct |
51 |
Correct |
581 ms |
5128 KB |
Output is correct |
52 |
Correct |
391 ms |
4052 KB |
Output is correct |
53 |
Correct |
392 ms |
3052 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
212 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
316 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
324 KB |
Output is correct |
77 |
Correct |
1 ms |
320 KB |
Output is correct |
78 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
212 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
320 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
316 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
316 KB |
Output is correct |
91 |
Correct |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
316 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
320 KB |
Output is correct |
105 |
Correct |
1 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
320 KB |
Output is correct |
107 |
Correct |
1 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
212 KB |
Output is correct |
110 |
Correct |
4 ms |
336 KB |
Output is correct |
111 |
Correct |
13 ms |
976 KB |
Output is correct |
112 |
Correct |
19 ms |
1484 KB |
Output is correct |
113 |
Correct |
17 ms |
1540 KB |
Output is correct |
114 |
Correct |
4 ms |
2136 KB |
Output is correct |
115 |
Correct |
2 ms |
2124 KB |
Output is correct |
116 |
Correct |
92 ms |
672 KB |
Output is correct |
117 |
Correct |
2 ms |
468 KB |
Output is correct |
118 |
Correct |
2 ms |
460 KB |
Output is correct |
119 |
Correct |
26 ms |
2628 KB |
Output is correct |
120 |
Correct |
56 ms |
4808 KB |
Output is correct |
121 |
Correct |
51 ms |
2724 KB |
Output is correct |
122 |
Correct |
12 ms |
5292 KB |
Output is correct |
123 |
Correct |
6 ms |
5296 KB |
Output is correct |
124 |
Correct |
73 ms |
5280 KB |
Output is correct |
125 |
Correct |
378 ms |
18652 KB |
Output is correct |
126 |
Correct |
172 ms |
11044 KB |
Output is correct |
127 |
Correct |
650 ms |
35660 KB |
Output is correct |
128 |
Correct |
73 ms |
44412 KB |
Output is correct |
129 |
Correct |
50 ms |
44244 KB |
Output is correct |
130 |
Correct |
348 ms |
19136 KB |
Output is correct |
131 |
Correct |
292 ms |
18876 KB |
Output is correct |
132 |
Correct |
14 ms |
388 KB |
Output is correct |
133 |
Correct |
0 ms |
212 KB |
Output is correct |
134 |
Correct |
1 ms |
212 KB |
Output is correct |
135 |
Correct |
4 ms |
340 KB |
Output is correct |
136 |
Correct |
9 ms |
468 KB |
Output is correct |
137 |
Correct |
13 ms |
1040 KB |
Output is correct |
138 |
Correct |
19 ms |
1612 KB |
Output is correct |
139 |
Correct |
21 ms |
468 KB |
Output is correct |
140 |
Correct |
14 ms |
440 KB |
Output is correct |
141 |
Correct |
17 ms |
1492 KB |
Output is correct |
142 |
Correct |
4 ms |
2096 KB |
Output is correct |
143 |
Correct |
3 ms |
2136 KB |
Output is correct |
144 |
Correct |
21 ms |
468 KB |
Output is correct |
145 |
Correct |
10 ms |
512 KB |
Output is correct |
146 |
Correct |
24 ms |
468 KB |
Output is correct |
147 |
Correct |
67 ms |
424 KB |
Output is correct |
148 |
Correct |
79 ms |
488 KB |
Output is correct |
149 |
Correct |
183 ms |
592 KB |
Output is correct |
150 |
Correct |
90 ms |
660 KB |
Output is correct |
151 |
Correct |
2 ms |
468 KB |
Output is correct |
152 |
Correct |
2 ms |
468 KB |
Output is correct |
153 |
Correct |
6 ms |
468 KB |
Output is correct |
154 |
Correct |
50 ms |
604 KB |
Output is correct |
155 |
Correct |
20 ms |
468 KB |
Output is correct |
156 |
Correct |
26 ms |
2684 KB |
Output is correct |
157 |
Correct |
89 ms |
528 KB |
Output is correct |
158 |
Correct |
55 ms |
4776 KB |
Output is correct |
159 |
Correct |
65 ms |
704 KB |
Output is correct |
160 |
Correct |
40 ms |
596 KB |
Output is correct |
161 |
Correct |
51 ms |
2736 KB |
Output is correct |
162 |
Correct |
12 ms |
5400 KB |
Output is correct |
163 |
Correct |
6 ms |
5320 KB |
Output is correct |
164 |
Correct |
72 ms |
980 KB |
Output is correct |
165 |
Correct |
31 ms |
852 KB |
Output is correct |
166 |
Correct |
84 ms |
724 KB |
Output is correct |
167 |
Correct |
308 ms |
596 KB |
Output is correct |
168 |
Correct |
487 ms |
704 KB |
Output is correct |
169 |
Correct |
698 ms |
868 KB |
Output is correct |
170 |
Correct |
730 ms |
1232 KB |
Output is correct |
171 |
Correct |
36 ms |
1160 KB |
Output is correct |
172 |
Correct |
52 ms |
892 KB |
Output is correct |
173 |
Correct |
3 ms |
596 KB |
Output is correct |
174 |
Correct |
45 ms |
596 KB |
Output is correct |
175 |
Correct |
1268 ms |
964 KB |
Output is correct |
176 |
Correct |
180 ms |
1892 KB |
Output is correct |
177 |
Correct |
1697 ms |
1904 KB |
Output is correct |
178 |
Correct |
193 ms |
2564 KB |
Output is correct |
179 |
Execution timed out |
2077 ms |
2984 KB |
Time limit exceeded |
180 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
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 |
1 ms |
360 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
316 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
316 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
320 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
14 ms |
396 KB |
Output is correct |
20 |
Correct |
13 ms |
448 KB |
Output is correct |
21 |
Correct |
18 ms |
1484 KB |
Output is correct |
22 |
Correct |
29 ms |
432 KB |
Output is correct |
23 |
Correct |
14 ms |
384 KB |
Output is correct |
24 |
Correct |
20 ms |
468 KB |
Output is correct |
25 |
Correct |
10 ms |
468 KB |
Output is correct |
26 |
Correct |
2 ms |
468 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
6 ms |
468 KB |
Output is correct |
29 |
Correct |
46 ms |
596 KB |
Output is correct |
30 |
Correct |
20 ms |
468 KB |
Output is correct |
31 |
Correct |
66 ms |
4800 KB |
Output is correct |
32 |
Correct |
64 ms |
716 KB |
Output is correct |
33 |
Correct |
40 ms |
596 KB |
Output is correct |
34 |
Correct |
67 ms |
852 KB |
Output is correct |
35 |
Correct |
38 ms |
852 KB |
Output is correct |
36 |
Correct |
36 ms |
1164 KB |
Output is correct |
37 |
Correct |
53 ms |
900 KB |
Output is correct |
38 |
Correct |
3 ms |
592 KB |
Output is correct |
39 |
Correct |
624 ms |
2840 KB |
Output is correct |
40 |
Correct |
26 ms |
528 KB |
Output is correct |
41 |
Correct |
36 ms |
980 KB |
Output is correct |
42 |
Correct |
105 ms |
704 KB |
Output is correct |
43 |
Correct |
83 ms |
876 KB |
Output is correct |
44 |
Correct |
197 ms |
1672 KB |
Output is correct |
45 |
Correct |
151 ms |
1912 KB |
Output is correct |
46 |
Correct |
169 ms |
11064 KB |
Output is correct |
47 |
Correct |
745 ms |
3224 KB |
Output is correct |
48 |
Correct |
419 ms |
2840 KB |
Output is correct |
49 |
Correct |
518 ms |
4396 KB |
Output is correct |
50 |
Correct |
231 ms |
4384 KB |
Output is correct |
51 |
Correct |
581 ms |
5128 KB |
Output is correct |
52 |
Correct |
391 ms |
4052 KB |
Output is correct |
53 |
Correct |
392 ms |
3052 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
212 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
316 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
212 KB |
Output is correct |
76 |
Correct |
1 ms |
324 KB |
Output is correct |
77 |
Correct |
1 ms |
320 KB |
Output is correct |
78 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
212 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
320 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
316 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
316 KB |
Output is correct |
91 |
Correct |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
316 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
212 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
320 KB |
Output is correct |
105 |
Correct |
1 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
320 KB |
Output is correct |
107 |
Correct |
1 ms |
212 KB |
Output is correct |
108 |
Correct |
1 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
212 KB |
Output is correct |
110 |
Correct |
4 ms |
336 KB |
Output is correct |
111 |
Correct |
13 ms |
976 KB |
Output is correct |
112 |
Correct |
19 ms |
1484 KB |
Output is correct |
113 |
Correct |
17 ms |
1540 KB |
Output is correct |
114 |
Correct |
4 ms |
2136 KB |
Output is correct |
115 |
Correct |
2 ms |
2124 KB |
Output is correct |
116 |
Correct |
92 ms |
672 KB |
Output is correct |
117 |
Correct |
2 ms |
468 KB |
Output is correct |
118 |
Correct |
2 ms |
460 KB |
Output is correct |
119 |
Correct |
26 ms |
2628 KB |
Output is correct |
120 |
Correct |
56 ms |
4808 KB |
Output is correct |
121 |
Correct |
51 ms |
2724 KB |
Output is correct |
122 |
Correct |
12 ms |
5292 KB |
Output is correct |
123 |
Correct |
6 ms |
5296 KB |
Output is correct |
124 |
Correct |
73 ms |
5280 KB |
Output is correct |
125 |
Correct |
378 ms |
18652 KB |
Output is correct |
126 |
Correct |
172 ms |
11044 KB |
Output is correct |
127 |
Correct |
650 ms |
35660 KB |
Output is correct |
128 |
Correct |
73 ms |
44412 KB |
Output is correct |
129 |
Correct |
50 ms |
44244 KB |
Output is correct |
130 |
Correct |
348 ms |
19136 KB |
Output is correct |
131 |
Correct |
292 ms |
18876 KB |
Output is correct |
132 |
Correct |
14 ms |
388 KB |
Output is correct |
133 |
Correct |
0 ms |
212 KB |
Output is correct |
134 |
Correct |
1 ms |
212 KB |
Output is correct |
135 |
Correct |
4 ms |
340 KB |
Output is correct |
136 |
Correct |
9 ms |
468 KB |
Output is correct |
137 |
Correct |
13 ms |
1040 KB |
Output is correct |
138 |
Correct |
19 ms |
1612 KB |
Output is correct |
139 |
Correct |
21 ms |
468 KB |
Output is correct |
140 |
Correct |
14 ms |
440 KB |
Output is correct |
141 |
Correct |
17 ms |
1492 KB |
Output is correct |
142 |
Correct |
4 ms |
2096 KB |
Output is correct |
143 |
Correct |
3 ms |
2136 KB |
Output is correct |
144 |
Correct |
21 ms |
468 KB |
Output is correct |
145 |
Correct |
10 ms |
512 KB |
Output is correct |
146 |
Correct |
24 ms |
468 KB |
Output is correct |
147 |
Correct |
67 ms |
424 KB |
Output is correct |
148 |
Correct |
79 ms |
488 KB |
Output is correct |
149 |
Correct |
183 ms |
592 KB |
Output is correct |
150 |
Correct |
90 ms |
660 KB |
Output is correct |
151 |
Correct |
2 ms |
468 KB |
Output is correct |
152 |
Correct |
2 ms |
468 KB |
Output is correct |
153 |
Correct |
6 ms |
468 KB |
Output is correct |
154 |
Correct |
50 ms |
604 KB |
Output is correct |
155 |
Correct |
20 ms |
468 KB |
Output is correct |
156 |
Correct |
26 ms |
2684 KB |
Output is correct |
157 |
Correct |
89 ms |
528 KB |
Output is correct |
158 |
Correct |
55 ms |
4776 KB |
Output is correct |
159 |
Correct |
65 ms |
704 KB |
Output is correct |
160 |
Correct |
40 ms |
596 KB |
Output is correct |
161 |
Correct |
51 ms |
2736 KB |
Output is correct |
162 |
Correct |
12 ms |
5400 KB |
Output is correct |
163 |
Correct |
6 ms |
5320 KB |
Output is correct |
164 |
Correct |
72 ms |
980 KB |
Output is correct |
165 |
Correct |
31 ms |
852 KB |
Output is correct |
166 |
Correct |
84 ms |
724 KB |
Output is correct |
167 |
Correct |
308 ms |
596 KB |
Output is correct |
168 |
Correct |
487 ms |
704 KB |
Output is correct |
169 |
Correct |
698 ms |
868 KB |
Output is correct |
170 |
Correct |
730 ms |
1232 KB |
Output is correct |
171 |
Correct |
36 ms |
1160 KB |
Output is correct |
172 |
Correct |
52 ms |
892 KB |
Output is correct |
173 |
Correct |
3 ms |
596 KB |
Output is correct |
174 |
Correct |
45 ms |
596 KB |
Output is correct |
175 |
Correct |
1268 ms |
964 KB |
Output is correct |
176 |
Correct |
180 ms |
1892 KB |
Output is correct |
177 |
Correct |
1697 ms |
1904 KB |
Output is correct |
178 |
Correct |
193 ms |
2564 KB |
Output is correct |
179 |
Execution timed out |
2077 ms |
2984 KB |
Time limit exceeded |
180 |
Halted |
0 ms |
0 KB |
- |