# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
728675 |
2023-04-22T20:15:32 Z |
vjudge1 |
Mars (APIO22_mars) |
C++17 |
|
1774 ms |
16064 KB |
#include "mars.h"
#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int>> f[30][30][30];
vector<pair<int, int>> trace[30][30][30];
int g[30][30][30];
int done[30][30][30];
std::string process(std::vector<std::vector<std::string>> a, int i, int j, int k, int n) {
k++;
auto fill = [&](int x, int y, int z, int a, int b) {
f[z][x][y].clear();
if (k == n) trace[z][x][y].clear();
g[z][x][y] = 0;
for (int ii = x; ii < x + 3; ii++) {
for (int jj = y; jj < y + 3; jj++) {
if (x / a != ii / b) continue;
if (y / a != jj / b) continue;
if (done[z - 1][ii][jj] == 0) {
f[z][x][y].emplace_back(ii, jj);
if (k == n) trace[z][x][y].insert(trace[z][x][y].end(), trace[z - 1][ii][jj].begin(), trace[z - 1][ii][jj].end());
g[z][x][y] += g[z - 1][ii][jj];
done[z - 1][ii][jj] = 1;
}
}
}
};
if (k != n) {
memset(done, 0, sizeof done);
memset(g, 0, sizeof g);
for (int ii = 0; ii <= n * 2; ii++) {
for (int jj = 0; jj <= n * 2; jj++) {
trace[0][ii][jj] = {{ii, jj}};
g[0][ii][jj] = 1;
}
}
int cur_i = i / (((n - k) * 2) / 3 + 1);
int cur_j = j / (((n - k) * 2) / 3 + 1);
for (int kk = 1; kk <= k; kk++) {
int mm = (n - kk) * 2;
int cur_size = mm / 3 + 1;
int last_size = (mm + 2) / 3 + 1;
for (int ii = cur_i * cur_size; ii <= mm && ii < (cur_i + 1) * cur_size; ii++) {
for (int jj = cur_j * cur_size; jj <= mm && jj < (cur_j + 1) * cur_size; jj++) {
fill(ii, jj, kk, cur_size, last_size);
}
}
}
string s = "";
for (pair<int, int>& p : f[k][i][j]) {
int ii = p.first;
int jj = p.second;
int x = ii - i;
int y = jj - j;
for (int z = 0; z < g[k - 1][ii][jj]; z++) {
s += a[x][y][z];
}
}
while (s.size() < 100) s += '0';
assert(s.size() == 100);
return s;
}
memset(done, 0, sizeof done);
memset(g, 0, sizeof g);
for (int ii = 0; ii <= n * 2; ii++) {
for (int jj = 0; jj <= n * 2; jj++) {
trace[0][ii][jj] = {{ii, jj}};
g[0][ii][jj] = 1;
}
}
for (int kk = 1; kk <= k; kk++) {
int mm = (n - kk) * 2;
int cur_size = mm / 3 + 1;
int last_size = (mm + 2) / 3 + 1;
for (int ii = 0; ii <= mm; ii++) {
for (int jj = 0; jj <= mm; jj++) {
fill(ii, jj, kk, cur_size, last_size);
}
}
}
k--;
vector<vector<int>> map(n * 2 + 1, vector<int>(n * 2 + 1, 0));
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
for (int z = 0; z < g[k][i][j]; z++) {
int ii = trace[k][i][j][z].first;
int jj = trace[k][i][j][z].second;
map[ii][jj] = a[i][j][z] - '0';
}
}
}
int dr[] = {-1, 0, +1, 0};
int dc[] = {0, -1, 0, +1};
int res = 0;
for (int i = 0; i <= n * 2; i++) {
for (int j = 0; j <= n * 2; j++) {
if (map[i][j] == 1) {
res++;
queue<pair<int, int>> q;
q.emplace(i, j);
map[i][j] = 0;
while (q.size()) {
int ii = q.front().first;
int jj = q.front().second;
q.pop();
for (int id = 0; id < 4; id++) {
int ni = ii + dr[id];
int nj = jj + dc[id];
if (ni < 0 || nj < 0 || ni > n * 2 || nj > n * 2 || map[ni][nj] == 0) continue;
q.emplace(ni, nj);
map[ni][nj] = 0;
}
}
}
}
}
string s = "";
while (s.size() < 100) s += res % 2 + '0', res /= 2;
return s;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
29 |
Correct |
273 ms |
14864 KB |
Output is correct |
30 |
Correct |
402 ms |
15036 KB |
Output is correct |
31 |
Correct |
408 ms |
15016 KB |
Output is correct |
32 |
Correct |
402 ms |
15000 KB |
Output is correct |
33 |
Correct |
420 ms |
14944 KB |
Output is correct |
34 |
Correct |
413 ms |
15004 KB |
Output is correct |
35 |
Correct |
419 ms |
14996 KB |
Output is correct |
36 |
Correct |
408 ms |
15044 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
29 |
Correct |
273 ms |
14864 KB |
Output is correct |
30 |
Correct |
402 ms |
15036 KB |
Output is correct |
31 |
Correct |
408 ms |
15016 KB |
Output is correct |
32 |
Correct |
402 ms |
15000 KB |
Output is correct |
33 |
Correct |
420 ms |
14944 KB |
Output is correct |
34 |
Correct |
413 ms |
15004 KB |
Output is correct |
35 |
Correct |
419 ms |
14996 KB |
Output is correct |
36 |
Correct |
408 ms |
15044 KB |
Output is correct |
37 |
Correct |
592 ms |
15392 KB |
Output is correct |
38 |
Correct |
861 ms |
15512 KB |
Output is correct |
39 |
Correct |
848 ms |
15492 KB |
Output is correct |
40 |
Correct |
862 ms |
15668 KB |
Output is correct |
41 |
Correct |
866 ms |
15612 KB |
Output is correct |
42 |
Correct |
870 ms |
15700 KB |
Output is correct |
43 |
Correct |
873 ms |
15528 KB |
Output is correct |
44 |
Correct |
885 ms |
15524 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
29 |
Correct |
273 ms |
14864 KB |
Output is correct |
30 |
Correct |
402 ms |
15036 KB |
Output is correct |
31 |
Correct |
408 ms |
15016 KB |
Output is correct |
32 |
Correct |
402 ms |
15000 KB |
Output is correct |
33 |
Correct |
420 ms |
14944 KB |
Output is correct |
34 |
Correct |
413 ms |
15004 KB |
Output is correct |
35 |
Correct |
419 ms |
14996 KB |
Output is correct |
36 |
Correct |
408 ms |
15044 KB |
Output is correct |
37 |
Correct |
592 ms |
15392 KB |
Output is correct |
38 |
Correct |
861 ms |
15512 KB |
Output is correct |
39 |
Correct |
848 ms |
15492 KB |
Output is correct |
40 |
Correct |
862 ms |
15668 KB |
Output is correct |
41 |
Correct |
866 ms |
15612 KB |
Output is correct |
42 |
Correct |
870 ms |
15700 KB |
Output is correct |
43 |
Correct |
873 ms |
15528 KB |
Output is correct |
44 |
Correct |
885 ms |
15524 KB |
Output is correct |
45 |
Correct |
1252 ms |
15724 KB |
Output is correct |
46 |
Correct |
1740 ms |
15940 KB |
Output is correct |
47 |
Correct |
1738 ms |
15940 KB |
Output is correct |
48 |
Correct |
1774 ms |
16004 KB |
Output is correct |
49 |
Correct |
1727 ms |
16000 KB |
Output is correct |
50 |
Correct |
1736 ms |
16040 KB |
Output is correct |
51 |
Correct |
1766 ms |
15964 KB |
Output is correct |
52 |
Correct |
1759 ms |
16064 KB |
Output is correct |
53 |
Correct |
1752 ms |
16040 KB |
Output is correct |
54 |
Correct |
1742 ms |
16044 KB |
Output is correct |
55 |
Correct |
1738 ms |
15984 KB |
Output is correct |
56 |
Correct |
1752 ms |
15956 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
29 |
Correct |
273 ms |
14864 KB |
Output is correct |
30 |
Correct |
402 ms |
15036 KB |
Output is correct |
31 |
Correct |
408 ms |
15016 KB |
Output is correct |
32 |
Correct |
402 ms |
15000 KB |
Output is correct |
33 |
Correct |
420 ms |
14944 KB |
Output is correct |
34 |
Correct |
413 ms |
15004 KB |
Output is correct |
35 |
Correct |
419 ms |
14996 KB |
Output is correct |
36 |
Correct |
408 ms |
15044 KB |
Output is correct |
37 |
Correct |
592 ms |
15392 KB |
Output is correct |
38 |
Correct |
861 ms |
15512 KB |
Output is correct |
39 |
Correct |
848 ms |
15492 KB |
Output is correct |
40 |
Correct |
862 ms |
15668 KB |
Output is correct |
41 |
Correct |
866 ms |
15612 KB |
Output is correct |
42 |
Correct |
870 ms |
15700 KB |
Output is correct |
43 |
Correct |
873 ms |
15528 KB |
Output is correct |
44 |
Correct |
885 ms |
15524 KB |
Output is correct |
45 |
Correct |
1252 ms |
15724 KB |
Output is correct |
46 |
Correct |
1740 ms |
15940 KB |
Output is correct |
47 |
Correct |
1738 ms |
15940 KB |
Output is correct |
48 |
Correct |
1774 ms |
16004 KB |
Output is correct |
49 |
Correct |
1727 ms |
16000 KB |
Output is correct |
50 |
Correct |
1736 ms |
16040 KB |
Output is correct |
51 |
Correct |
1766 ms |
15964 KB |
Output is correct |
52 |
Correct |
1759 ms |
16064 KB |
Output is correct |
53 |
Correct |
1752 ms |
16040 KB |
Output is correct |
54 |
Correct |
1742 ms |
16044 KB |
Output is correct |
55 |
Correct |
1738 ms |
15984 KB |
Output is correct |
56 |
Correct |
1752 ms |
15956 KB |
Output is correct |
57 |
Runtime error |
151 ms |
3872 KB |
Execution killed with signal 6 |
58 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
29 |
Correct |
273 ms |
14864 KB |
Output is correct |
30 |
Correct |
402 ms |
15036 KB |
Output is correct |
31 |
Correct |
408 ms |
15016 KB |
Output is correct |
32 |
Correct |
402 ms |
15000 KB |
Output is correct |
33 |
Correct |
420 ms |
14944 KB |
Output is correct |
34 |
Correct |
413 ms |
15004 KB |
Output is correct |
35 |
Correct |
419 ms |
14996 KB |
Output is correct |
36 |
Correct |
408 ms |
15044 KB |
Output is correct |
37 |
Correct |
592 ms |
15392 KB |
Output is correct |
38 |
Correct |
861 ms |
15512 KB |
Output is correct |
39 |
Correct |
848 ms |
15492 KB |
Output is correct |
40 |
Correct |
862 ms |
15668 KB |
Output is correct |
41 |
Correct |
866 ms |
15612 KB |
Output is correct |
42 |
Correct |
870 ms |
15700 KB |
Output is correct |
43 |
Correct |
873 ms |
15528 KB |
Output is correct |
44 |
Correct |
885 ms |
15524 KB |
Output is correct |
45 |
Correct |
1252 ms |
15724 KB |
Output is correct |
46 |
Correct |
1740 ms |
15940 KB |
Output is correct |
47 |
Correct |
1738 ms |
15940 KB |
Output is correct |
48 |
Correct |
1774 ms |
16004 KB |
Output is correct |
49 |
Correct |
1727 ms |
16000 KB |
Output is correct |
50 |
Correct |
1736 ms |
16040 KB |
Output is correct |
51 |
Correct |
1766 ms |
15964 KB |
Output is correct |
52 |
Correct |
1759 ms |
16064 KB |
Output is correct |
53 |
Correct |
1752 ms |
16040 KB |
Output is correct |
54 |
Correct |
1742 ms |
16044 KB |
Output is correct |
55 |
Correct |
1738 ms |
15984 KB |
Output is correct |
56 |
Correct |
1752 ms |
15956 KB |
Output is correct |
57 |
Runtime error |
151 ms |
3872 KB |
Execution killed with signal 6 |
58 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
13624 KB |
Output is correct |
2 |
Correct |
16 ms |
13632 KB |
Output is correct |
3 |
Correct |
17 ms |
13836 KB |
Output is correct |
4 |
Correct |
16 ms |
13744 KB |
Output is correct |
5 |
Correct |
17 ms |
13648 KB |
Output is correct |
6 |
Correct |
16 ms |
13808 KB |
Output is correct |
7 |
Correct |
23 ms |
13632 KB |
Output is correct |
8 |
Correct |
31 ms |
13528 KB |
Output is correct |
9 |
Correct |
30 ms |
13704 KB |
Output is correct |
10 |
Correct |
31 ms |
13684 KB |
Output is correct |
11 |
Correct |
34 ms |
13596 KB |
Output is correct |
12 |
Correct |
32 ms |
13456 KB |
Output is correct |
13 |
Correct |
31 ms |
13488 KB |
Output is correct |
14 |
Correct |
56 ms |
14312 KB |
Output is correct |
15 |
Correct |
75 ms |
14372 KB |
Output is correct |
16 |
Correct |
75 ms |
14472 KB |
Output is correct |
17 |
Correct |
76 ms |
14576 KB |
Output is correct |
18 |
Correct |
77 ms |
14456 KB |
Output is correct |
19 |
Correct |
83 ms |
14396 KB |
Output is correct |
20 |
Correct |
78 ms |
14236 KB |
Output is correct |
21 |
Correct |
117 ms |
14516 KB |
Output is correct |
22 |
Correct |
182 ms |
14700 KB |
Output is correct |
23 |
Correct |
178 ms |
14756 KB |
Output is correct |
24 |
Correct |
184 ms |
14708 KB |
Output is correct |
25 |
Correct |
181 ms |
14780 KB |
Output is correct |
26 |
Correct |
184 ms |
14736 KB |
Output is correct |
27 |
Correct |
180 ms |
14780 KB |
Output is correct |
28 |
Correct |
177 ms |
14732 KB |
Output is correct |
29 |
Correct |
273 ms |
14864 KB |
Output is correct |
30 |
Correct |
402 ms |
15036 KB |
Output is correct |
31 |
Correct |
408 ms |
15016 KB |
Output is correct |
32 |
Correct |
402 ms |
15000 KB |
Output is correct |
33 |
Correct |
420 ms |
14944 KB |
Output is correct |
34 |
Correct |
413 ms |
15004 KB |
Output is correct |
35 |
Correct |
419 ms |
14996 KB |
Output is correct |
36 |
Correct |
408 ms |
15044 KB |
Output is correct |
37 |
Correct |
592 ms |
15392 KB |
Output is correct |
38 |
Correct |
861 ms |
15512 KB |
Output is correct |
39 |
Correct |
848 ms |
15492 KB |
Output is correct |
40 |
Correct |
862 ms |
15668 KB |
Output is correct |
41 |
Correct |
866 ms |
15612 KB |
Output is correct |
42 |
Correct |
870 ms |
15700 KB |
Output is correct |
43 |
Correct |
873 ms |
15528 KB |
Output is correct |
44 |
Correct |
885 ms |
15524 KB |
Output is correct |
45 |
Correct |
1252 ms |
15724 KB |
Output is correct |
46 |
Correct |
1740 ms |
15940 KB |
Output is correct |
47 |
Correct |
1738 ms |
15940 KB |
Output is correct |
48 |
Correct |
1774 ms |
16004 KB |
Output is correct |
49 |
Correct |
1727 ms |
16000 KB |
Output is correct |
50 |
Correct |
1736 ms |
16040 KB |
Output is correct |
51 |
Correct |
1766 ms |
15964 KB |
Output is correct |
52 |
Correct |
1759 ms |
16064 KB |
Output is correct |
53 |
Correct |
1752 ms |
16040 KB |
Output is correct |
54 |
Correct |
1742 ms |
16044 KB |
Output is correct |
55 |
Correct |
1738 ms |
15984 KB |
Output is correct |
56 |
Correct |
1752 ms |
15956 KB |
Output is correct |
57 |
Runtime error |
151 ms |
3872 KB |
Execution killed with signal 6 |
58 |
Halted |
0 ms |
0 KB |
- |