# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
365663 | 2021-02-12T07:40:17 Z | sean617 | Painting Walls (APIO20_paint) | C++17 | 1098 ms | 22144 KB |
#include "paint.h" #include <iostream> #include <cstdio> #include <vector> #include <cstring> #define N 100005 using namespace std; vector<int> co[N], a[300000], a1, a2; int v[N], s[N]; bool po[N]; int minimumInstructions(int n, int m, int l, vector<int> c, vector<int> sz, vector<std::vector<int>> b) { int i, ii, ans, j, t, t2, z; for (i = 0; i < m; i++) { for (j = 0; j < sz[i]; j++) { co[b[i][j]].push_back(i); // v[b[i][j]].insert(i); } } memset(v, -1, sizeof(v)); for (i = 0; i < co[c[0]].size(); i++) { v[co[c[0]][i]] = 0; s[co[c[0]][i]] = 1; if (m == 1) po[0] = 1; } for (i = 1; i < n; i++) { t = c[i]; a1.clear(); a2.clear(); for (j = 0; j < co[t].size(); j++) { t2 = (co[t][j] - 1 + m) % m; a1.push_back((t2 + 1) % m); if (v[t2] == i - 1) { a2.push_back(s[t2] + 1); } else { a2.push_back(1); } } for (j = 0; j < a1.size(); j++) { v[a1[j]] = i; s[a1[j]] = a2[j]; if (a2[j] >= m) { po[i - m + 1] = 1; } } } if (!po[0]) return -1; i = m; j = 0; ans = 1; while (i < n) { ii = -1; for (; j <= i; j++) { if (po[j]) ii = j + m; } if (ii == -1) return -1; i = ii; ans++; } return ans; // for (k = 1; k < m; k *= 2); // for (i = 0; i < m; i++) { // for (j = 0; j < co[c[i]].size(); j++) { // t = co[c[i]][j]; // a[k + i].push_back(t); // } // } // for (i = k - 1; i >= 1; i--) { // // } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 8 ms | 10240 KB | Output is correct |
2 | Correct | 8 ms | 10092 KB | Output is correct |
3 | Correct | 8 ms | 10092 KB | Output is correct |
4 | Correct | 7 ms | 10092 KB | Output is correct |
5 | Correct | 7 ms | 10092 KB | Output is correct |
6 | Correct | 7 ms | 10092 KB | Output is correct |
7 | Correct | 7 ms | 10092 KB | Output is correct |
8 | Correct | 7 ms | 10092 KB | Output is correct |
9 | Correct | 7 ms | 10092 KB | Output is correct |
10 | Correct | 8 ms | 10092 KB | Output is correct |
11 | Correct | 7 ms | 10092 KB | Output is correct |
12 | Correct | 7 ms | 10092 KB | Output is correct |
13 | Correct | 8 ms | 10220 KB | Output is correct |
14 | Correct | 7 ms | 10220 KB | Output is correct |
15 | Correct | 7 ms | 10220 KB | Output is correct |
16 | Correct | 9 ms | 10220 KB | Output is correct |
17 | Correct | 8 ms | 10220 KB | Output is correct |
18 | Correct | 8 ms | 10220 KB | Output is correct |
19 | Correct | 8 ms | 10220 KB | Output is correct |
20 | Correct | 8 ms | 10220 KB | Output is correct |
21 | Correct | 8 ms | 10220 KB | Output is correct |
22 | Correct | 30 ms | 14572 KB | Output is correct |
23 | Correct | 30 ms | 14572 KB | Output is correct |
24 | Correct | 35 ms | 14700 KB | Output is correct |
25 | Correct | 11 ms | 10348 KB | Output is correct |
26 | Correct | 10 ms | 10348 KB | Output is correct |
27 | Correct | 10 ms | 10348 KB | Output is correct |
28 | Correct | 10 ms | 10348 KB | Output is correct |
29 | Correct | 10 ms | 10348 KB | Output is correct |
30 | Correct | 11 ms | 10348 KB | Output is correct |
31 | Correct | 19 ms | 11628 KB | Output is correct |
32 | Correct | 18 ms | 11500 KB | Output is correct |
33 | Correct | 19 ms | 11500 KB | Output is correct |
34 | Correct | 23 ms | 11500 KB | Output is correct |
35 | Correct | 17 ms | 11500 KB | Output is correct |
36 | Correct | 17 ms | 11500 KB | Output is correct |
37 | Correct | 39 ms | 15084 KB | Output is correct |
38 | Correct | 37 ms | 15084 KB | Output is correct |
39 | Correct | 37 ms | 15084 KB | Output is correct |
40 | Correct | 19 ms | 11116 KB | Output is correct |
41 | Correct | 15 ms | 10732 KB | Output is correct |
42 | Correct | 21 ms | 11116 KB | Output is correct |
43 | Correct | 16 ms | 10860 KB | Output is correct |
44 | Correct | 15 ms | 10732 KB | Output is correct |
45 | Correct | 26 ms | 11116 KB | Output is correct |
46 | Correct | 58 ms | 20480 KB | Output is correct |
47 | Correct | 39 ms | 15980 KB | Output is correct |
48 | Correct | 43 ms | 18540 KB | Output is correct |
49 | Correct | 58 ms | 19052 KB | Output is correct |
50 | Correct | 57 ms | 18540 KB | Output is correct |
51 | Correct | 52 ms | 16224 KB | Output is correct |
52 | Correct | 21 ms | 11116 KB | Output is correct |
53 | Correct | 24 ms | 11116 KB | Output is correct |
54 | Correct | 21 ms | 11136 KB | Output is correct |
55 | Correct | 22 ms | 11116 KB | Output is correct |
56 | Correct | 21 ms | 11116 KB | Output is correct |
57 | Correct | 21 ms | 11244 KB | Output is correct |
58 | Correct | 63 ms | 21472 KB | Output is correct |
59 | Correct | 64 ms | 21356 KB | Output is correct |
60 | Correct | 67 ms | 21484 KB | Output is correct |
61 | Correct | 64 ms | 21356 KB | Output is correct |
62 | Correct | 62 ms | 21356 KB | Output is correct |
63 | Correct | 82 ms | 21356 KB | Output is correct |
64 | Correct | 72 ms | 20460 KB | Output is correct |
65 | Correct | 73 ms | 20460 KB | Output is correct |
66 | Correct | 73 ms | 20588 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 8 ms | 10240 KB | Output is correct |
2 | Correct | 8 ms | 10092 KB | Output is correct |
3 | Correct | 8 ms | 10092 KB | Output is correct |
4 | Correct | 7 ms | 10092 KB | Output is correct |
5 | Correct | 7 ms | 10092 KB | Output is correct |
6 | Correct | 7 ms | 10092 KB | Output is correct |
7 | Correct | 7 ms | 10092 KB | Output is correct |
8 | Correct | 7 ms | 10092 KB | Output is correct |
9 | Correct | 7 ms | 10092 KB | Output is correct |
10 | Correct | 8 ms | 10092 KB | Output is correct |
11 | Correct | 7 ms | 10092 KB | Output is correct |
12 | Correct | 7 ms | 10092 KB | Output is correct |
13 | Correct | 8 ms | 10220 KB | Output is correct |
14 | Correct | 7 ms | 10220 KB | Output is correct |
15 | Correct | 7 ms | 10220 KB | Output is correct |
16 | Correct | 9 ms | 10220 KB | Output is correct |
17 | Correct | 8 ms | 10220 KB | Output is correct |
18 | Correct | 8 ms | 10220 KB | Output is correct |
19 | Correct | 8 ms | 10220 KB | Output is correct |
20 | Correct | 8 ms | 10220 KB | Output is correct |
21 | Correct | 8 ms | 10220 KB | Output is correct |
22 | Correct | 7 ms | 10092 KB | Output is correct |
23 | Correct | 7 ms | 10092 KB | Output is correct |
24 | Correct | 7 ms | 10092 KB | Output is correct |
25 | Correct | 7 ms | 10092 KB | Output is correct |
26 | Correct | 8 ms | 10092 KB | Output is correct |
27 | Correct | 7 ms | 10092 KB | Output is correct |
28 | Correct | 8 ms | 10092 KB | Output is correct |
29 | Correct | 8 ms | 10092 KB | Output is correct |
30 | Correct | 8 ms | 10092 KB | Output is correct |
31 | Correct | 7 ms | 10092 KB | Output is correct |
32 | Correct | 7 ms | 10092 KB | Output is correct |
33 | Correct | 7 ms | 10092 KB | Output is correct |
34 | Correct | 7 ms | 10092 KB | Output is correct |
35 | Correct | 9 ms | 10092 KB | Output is correct |
36 | Correct | 7 ms | 10092 KB | Output is correct |
37 | Correct | 8 ms | 10240 KB | Output is correct |
38 | Correct | 9 ms | 10092 KB | Output is correct |
39 | Correct | 8 ms | 10092 KB | Output is correct |
40 | Correct | 7 ms | 10220 KB | Output is correct |
41 | Correct | 7 ms | 10092 KB | Output is correct |
42 | Correct | 7 ms | 10092 KB | Output is correct |
43 | Correct | 7 ms | 10092 KB | Output is correct |
44 | Correct | 7 ms | 10092 KB | Output is correct |
45 | Correct | 7 ms | 10092 KB | Output is correct |
46 | Correct | 7 ms | 10092 KB | Output is correct |
47 | Correct | 7 ms | 10092 KB | Output is correct |
48 | Correct | 7 ms | 10092 KB | Output is correct |
49 | Correct | 9 ms | 10092 KB | Output is correct |
50 | Correct | 7 ms | 10220 KB | Output is correct |
51 | Correct | 8 ms | 10220 KB | Output is correct |
52 | Correct | 8 ms | 10220 KB | Output is correct |
53 | Correct | 9 ms | 10220 KB | Output is correct |
54 | Correct | 7 ms | 10220 KB | Output is correct |
55 | Correct | 7 ms | 10220 KB | Output is correct |
56 | Correct | 8 ms | 10220 KB | Output is correct |
57 | Correct | 7 ms | 10092 KB | Output is correct |
58 | Correct | 7 ms | 10220 KB | Output is correct |
59 | Correct | 7 ms | 10092 KB | Output is correct |
60 | Correct | 7 ms | 10220 KB | Output is correct |
61 | Correct | 9 ms | 10092 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 7 ms | 10092 KB | Output is correct |
2 | Correct | 7 ms | 10092 KB | Output is correct |
3 | Correct | 8 ms | 10240 KB | Output is correct |
4 | Correct | 8 ms | 10092 KB | Output is correct |
5 | Correct | 8 ms | 10092 KB | Output is correct |
6 | Correct | 7 ms | 10092 KB | Output is correct |
7 | Correct | 7 ms | 10092 KB | Output is correct |
8 | Correct | 7 ms | 10092 KB | Output is correct |
9 | Correct | 7 ms | 10092 KB | Output is correct |
10 | Correct | 7 ms | 10092 KB | Output is correct |
11 | Correct | 7 ms | 10092 KB | Output is correct |
12 | Correct | 8 ms | 10092 KB | Output is correct |
13 | Correct | 7 ms | 10092 KB | Output is correct |
14 | Correct | 7 ms | 10092 KB | Output is correct |
15 | Correct | 8 ms | 10220 KB | Output is correct |
16 | Correct | 7 ms | 10220 KB | Output is correct |
17 | Correct | 7 ms | 10220 KB | Output is correct |
18 | Correct | 9 ms | 10220 KB | Output is correct |
19 | Correct | 8 ms | 10220 KB | Output is correct |
20 | Correct | 8 ms | 10220 KB | Output is correct |
21 | Correct | 8 ms | 10220 KB | Output is correct |
22 | Correct | 8 ms | 10220 KB | Output is correct |
23 | Correct | 8 ms | 10220 KB | Output is correct |
24 | Correct | 30 ms | 14572 KB | Output is correct |
25 | Correct | 30 ms | 14572 KB | Output is correct |
26 | Correct | 35 ms | 14700 KB | Output is correct |
27 | Correct | 7 ms | 10092 KB | Output is correct |
28 | Correct | 7 ms | 10092 KB | Output is correct |
29 | Correct | 8 ms | 10092 KB | Output is correct |
30 | Correct | 7 ms | 10092 KB | Output is correct |
31 | Correct | 8 ms | 10092 KB | Output is correct |
32 | Correct | 8 ms | 10092 KB | Output is correct |
33 | Correct | 8 ms | 10092 KB | Output is correct |
34 | Correct | 7 ms | 10092 KB | Output is correct |
35 | Correct | 7 ms | 10092 KB | Output is correct |
36 | Correct | 7 ms | 10092 KB | Output is correct |
37 | Correct | 7 ms | 10092 KB | Output is correct |
38 | Correct | 9 ms | 10092 KB | Output is correct |
39 | Correct | 7 ms | 10092 KB | Output is correct |
40 | Correct | 8 ms | 10240 KB | Output is correct |
41 | Correct | 9 ms | 10092 KB | Output is correct |
42 | Correct | 8 ms | 10092 KB | Output is correct |
43 | Correct | 7 ms | 10220 KB | Output is correct |
44 | Correct | 7 ms | 10092 KB | Output is correct |
45 | Correct | 7 ms | 10092 KB | Output is correct |
46 | Correct | 7 ms | 10092 KB | Output is correct |
47 | Correct | 7 ms | 10092 KB | Output is correct |
48 | Correct | 7 ms | 10092 KB | Output is correct |
49 | Correct | 7 ms | 10092 KB | Output is correct |
50 | Correct | 7 ms | 10092 KB | Output is correct |
51 | Correct | 7 ms | 10092 KB | Output is correct |
52 | Correct | 9 ms | 10092 KB | Output is correct |
53 | Correct | 7 ms | 10220 KB | Output is correct |
54 | Correct | 8 ms | 10220 KB | Output is correct |
55 | Correct | 8 ms | 10220 KB | Output is correct |
56 | Correct | 9 ms | 10220 KB | Output is correct |
57 | Correct | 7 ms | 10220 KB | Output is correct |
58 | Correct | 7 ms | 10220 KB | Output is correct |
59 | Correct | 8 ms | 10220 KB | Output is correct |
60 | Correct | 7 ms | 10092 KB | Output is correct |
61 | Correct | 7 ms | 10220 KB | Output is correct |
62 | Correct | 7 ms | 10092 KB | Output is correct |
63 | Correct | 7 ms | 10220 KB | Output is correct |
64 | Correct | 9 ms | 10092 KB | Output is correct |
65 | Correct | 7 ms | 10092 KB | Output is correct |
66 | Correct | 8 ms | 10092 KB | Output is correct |
67 | Correct | 8 ms | 10092 KB | Output is correct |
68 | Correct | 8 ms | 10092 KB | Output is correct |
69 | Correct | 9 ms | 10092 KB | Output is correct |
70 | Correct | 9 ms | 10348 KB | Output is correct |
71 | Correct | 9 ms | 10348 KB | Output is correct |
72 | Correct | 9 ms | 10348 KB | Output is correct |
73 | Correct | 8 ms | 10220 KB | Output is correct |
74 | Correct | 9 ms | 10348 KB | Output is correct |
75 | Correct | 9 ms | 10348 KB | Output is correct |
76 | Correct | 33 ms | 13420 KB | Output is correct |
77 | Correct | 29 ms | 14060 KB | Output is correct |
78 | Correct | 40 ms | 14452 KB | Output is correct |
79 | Correct | 9 ms | 10092 KB | Output is correct |
80 | Correct | 9 ms | 10092 KB | Output is correct |
81 | Correct | 9 ms | 10092 KB | Output is correct |
82 | Correct | 11 ms | 10092 KB | Output is correct |
83 | Correct | 10 ms | 10092 KB | Output is correct |
84 | Correct | 10 ms | 10476 KB | Output is correct |
85 | Correct | 9 ms | 10476 KB | Output is correct |
86 | Correct | 11 ms | 10476 KB | Output is correct |
87 | Correct | 11 ms | 10476 KB | Output is correct |
88 | Correct | 10 ms | 10476 KB | Output is correct |
89 | Correct | 11 ms | 10496 KB | Output is correct |
90 | Correct | 46 ms | 14828 KB | Output is correct |
91 | Correct | 49 ms | 14700 KB | Output is correct |
92 | Correct | 48 ms | 14828 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 7 ms | 10092 KB | Output is correct |
2 | Correct | 7 ms | 10092 KB | Output is correct |
3 | Correct | 8 ms | 10240 KB | Output is correct |
4 | Correct | 8 ms | 10092 KB | Output is correct |
5 | Correct | 8 ms | 10092 KB | Output is correct |
6 | Correct | 7 ms | 10092 KB | Output is correct |
7 | Correct | 7 ms | 10092 KB | Output is correct |
8 | Correct | 7 ms | 10092 KB | Output is correct |
9 | Correct | 7 ms | 10092 KB | Output is correct |
10 | Correct | 7 ms | 10092 KB | Output is correct |
11 | Correct | 7 ms | 10092 KB | Output is correct |
12 | Correct | 8 ms | 10092 KB | Output is correct |
13 | Correct | 7 ms | 10092 KB | Output is correct |
14 | Correct | 7 ms | 10092 KB | Output is correct |
15 | Correct | 8 ms | 10220 KB | Output is correct |
16 | Correct | 7 ms | 10220 KB | Output is correct |
17 | Correct | 7 ms | 10220 KB | Output is correct |
18 | Correct | 9 ms | 10220 KB | Output is correct |
19 | Correct | 8 ms | 10220 KB | Output is correct |
20 | Correct | 8 ms | 10220 KB | Output is correct |
21 | Correct | 8 ms | 10220 KB | Output is correct |
22 | Correct | 8 ms | 10220 KB | Output is correct |
23 | Correct | 8 ms | 10220 KB | Output is correct |
24 | Correct | 30 ms | 14572 KB | Output is correct |
25 | Correct | 30 ms | 14572 KB | Output is correct |
26 | Correct | 35 ms | 14700 KB | Output is correct |
27 | Correct | 11 ms | 10348 KB | Output is correct |
28 | Correct | 10 ms | 10348 KB | Output is correct |
29 | Correct | 10 ms | 10348 KB | Output is correct |
30 | Correct | 10 ms | 10348 KB | Output is correct |
31 | Correct | 10 ms | 10348 KB | Output is correct |
32 | Correct | 11 ms | 10348 KB | Output is correct |
33 | Correct | 19 ms | 11628 KB | Output is correct |
34 | Correct | 18 ms | 11500 KB | Output is correct |
35 | Correct | 19 ms | 11500 KB | Output is correct |
36 | Correct | 23 ms | 11500 KB | Output is correct |
37 | Correct | 17 ms | 11500 KB | Output is correct |
38 | Correct | 17 ms | 11500 KB | Output is correct |
39 | Correct | 39 ms | 15084 KB | Output is correct |
40 | Correct | 37 ms | 15084 KB | Output is correct |
41 | Correct | 37 ms | 15084 KB | Output is correct |
42 | Correct | 7 ms | 10092 KB | Output is correct |
43 | Correct | 7 ms | 10092 KB | Output is correct |
44 | Correct | 8 ms | 10092 KB | Output is correct |
45 | Correct | 7 ms | 10092 KB | Output is correct |
46 | Correct | 8 ms | 10092 KB | Output is correct |
47 | Correct | 8 ms | 10092 KB | Output is correct |
48 | Correct | 8 ms | 10092 KB | Output is correct |
49 | Correct | 7 ms | 10092 KB | Output is correct |
50 | Correct | 7 ms | 10092 KB | Output is correct |
51 | Correct | 7 ms | 10092 KB | Output is correct |
52 | Correct | 7 ms | 10092 KB | Output is correct |
53 | Correct | 9 ms | 10092 KB | Output is correct |
54 | Correct | 7 ms | 10092 KB | Output is correct |
55 | Correct | 8 ms | 10240 KB | Output is correct |
56 | Correct | 9 ms | 10092 KB | Output is correct |
57 | Correct | 8 ms | 10092 KB | Output is correct |
58 | Correct | 7 ms | 10220 KB | Output is correct |
59 | Correct | 7 ms | 10092 KB | Output is correct |
60 | Correct | 7 ms | 10092 KB | Output is correct |
61 | Correct | 7 ms | 10092 KB | Output is correct |
62 | Correct | 7 ms | 10092 KB | Output is correct |
63 | Correct | 7 ms | 10092 KB | Output is correct |
64 | Correct | 7 ms | 10092 KB | Output is correct |
65 | Correct | 7 ms | 10092 KB | Output is correct |
66 | Correct | 7 ms | 10092 KB | Output is correct |
67 | Correct | 9 ms | 10092 KB | Output is correct |
68 | Correct | 7 ms | 10220 KB | Output is correct |
69 | Correct | 8 ms | 10220 KB | Output is correct |
70 | Correct | 8 ms | 10220 KB | Output is correct |
71 | Correct | 9 ms | 10220 KB | Output is correct |
72 | Correct | 7 ms | 10220 KB | Output is correct |
73 | Correct | 7 ms | 10220 KB | Output is correct |
74 | Correct | 8 ms | 10220 KB | Output is correct |
75 | Correct | 7 ms | 10092 KB | Output is correct |
76 | Correct | 7 ms | 10220 KB | Output is correct |
77 | Correct | 7 ms | 10092 KB | Output is correct |
78 | Correct | 7 ms | 10220 KB | Output is correct |
79 | Correct | 9 ms | 10092 KB | Output is correct |
80 | Correct | 7 ms | 10092 KB | Output is correct |
81 | Correct | 8 ms | 10092 KB | Output is correct |
82 | Correct | 8 ms | 10092 KB | Output is correct |
83 | Correct | 8 ms | 10092 KB | Output is correct |
84 | Correct | 9 ms | 10092 KB | Output is correct |
85 | Correct | 9 ms | 10348 KB | Output is correct |
86 | Correct | 9 ms | 10348 KB | Output is correct |
87 | Correct | 9 ms | 10348 KB | Output is correct |
88 | Correct | 8 ms | 10220 KB | Output is correct |
89 | Correct | 9 ms | 10348 KB | Output is correct |
90 | Correct | 9 ms | 10348 KB | Output is correct |
91 | Correct | 33 ms | 13420 KB | Output is correct |
92 | Correct | 29 ms | 14060 KB | Output is correct |
93 | Correct | 40 ms | 14452 KB | Output is correct |
94 | Correct | 9 ms | 10092 KB | Output is correct |
95 | Correct | 9 ms | 10092 KB | Output is correct |
96 | Correct | 9 ms | 10092 KB | Output is correct |
97 | Correct | 11 ms | 10092 KB | Output is correct |
98 | Correct | 10 ms | 10092 KB | Output is correct |
99 | Correct | 10 ms | 10476 KB | Output is correct |
100 | Correct | 9 ms | 10476 KB | Output is correct |
101 | Correct | 11 ms | 10476 KB | Output is correct |
102 | Correct | 11 ms | 10476 KB | Output is correct |
103 | Correct | 10 ms | 10476 KB | Output is correct |
104 | Correct | 11 ms | 10496 KB | Output is correct |
105 | Correct | 46 ms | 14828 KB | Output is correct |
106 | Correct | 49 ms | 14700 KB | Output is correct |
107 | Correct | 48 ms | 14828 KB | Output is correct |
108 | Correct | 9 ms | 10348 KB | Output is correct |
109 | Correct | 160 ms | 10348 KB | Output is correct |
110 | Correct | 121 ms | 10476 KB | Output is correct |
111 | Correct | 94 ms | 10348 KB | Output is correct |
112 | Correct | 104 ms | 10348 KB | Output is correct |
113 | Correct | 67 ms | 10348 KB | Output is correct |
114 | Correct | 22 ms | 11756 KB | Output is correct |
115 | Correct | 23 ms | 11628 KB | Output is correct |
116 | Correct | 26 ms | 12140 KB | Output is correct |
117 | Correct | 21 ms | 11756 KB | Output is correct |
118 | Correct | 23 ms | 11884 KB | Output is correct |
119 | Correct | 22 ms | 11500 KB | Output is correct |
120 | Correct | 30 ms | 13164 KB | Output is correct |
121 | Correct | 12 ms | 10860 KB | Output is correct |
122 | Correct | 34 ms | 13548 KB | Output is correct |
123 | Correct | 12 ms | 10732 KB | Output is correct |
124 | Correct | 41 ms | 14060 KB | Output is correct |
125 | Correct | 17 ms | 10988 KB | Output is correct |
126 | Correct | 15 ms | 11244 KB | Output is correct |
127 | Correct | 18 ms | 11372 KB | Output is correct |
128 | Correct | 14 ms | 10988 KB | Output is correct |
129 | Correct | 19 ms | 11116 KB | Output is correct |
130 | Correct | 10 ms | 10348 KB | Output is correct |
131 | Correct | 226 ms | 10476 KB | Output is correct |
132 | Correct | 216 ms | 10604 KB | Output is correct |
133 | Correct | 178 ms | 10476 KB | Output is correct |
134 | Correct | 149 ms | 10476 KB | Output is correct |
135 | Correct | 128 ms | 10604 KB | Output is correct |
136 | Correct | 28 ms | 12268 KB | Output is correct |
137 | Correct | 37 ms | 12268 KB | Output is correct |
138 | Correct | 29 ms | 12268 KB | Output is correct |
139 | Correct | 29 ms | 12268 KB | Output is correct |
140 | Correct | 28 ms | 12268 KB | Output is correct |
141 | Correct | 28 ms | 12268 KB | Output is correct |
142 | Correct | 49 ms | 15212 KB | Output is correct |
143 | Correct | 16 ms | 11244 KB | Output is correct |
144 | Correct | 67 ms | 15212 KB | Output is correct |
145 | Correct | 18 ms | 11244 KB | Output is correct |
146 | Correct | 54 ms | 15212 KB | Output is correct |
147 | Correct | 16 ms | 11244 KB | Output is correct |
148 | Correct | 23 ms | 11628 KB | Output is correct |
149 | Correct | 18 ms | 11500 KB | Output is correct |
150 | Correct | 17 ms | 11500 KB | Output is correct |
151 | Correct | 17 ms | 11500 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 7 ms | 10092 KB | Output is correct |
2 | Correct | 7 ms | 10092 KB | Output is correct |
3 | Correct | 8 ms | 10240 KB | Output is correct |
4 | Correct | 8 ms | 10092 KB | Output is correct |
5 | Correct | 8 ms | 10092 KB | Output is correct |
6 | Correct | 7 ms | 10092 KB | Output is correct |
7 | Correct | 7 ms | 10092 KB | Output is correct |
8 | Correct | 7 ms | 10092 KB | Output is correct |
9 | Correct | 7 ms | 10092 KB | Output is correct |
10 | Correct | 7 ms | 10092 KB | Output is correct |
11 | Correct | 7 ms | 10092 KB | Output is correct |
12 | Correct | 8 ms | 10092 KB | Output is correct |
13 | Correct | 7 ms | 10092 KB | Output is correct |
14 | Correct | 7 ms | 10092 KB | Output is correct |
15 | Correct | 8 ms | 10220 KB | Output is correct |
16 | Correct | 7 ms | 10220 KB | Output is correct |
17 | Correct | 7 ms | 10220 KB | Output is correct |
18 | Correct | 9 ms | 10220 KB | Output is correct |
19 | Correct | 8 ms | 10220 KB | Output is correct |
20 | Correct | 8 ms | 10220 KB | Output is correct |
21 | Correct | 8 ms | 10220 KB | Output is correct |
22 | Correct | 8 ms | 10220 KB | Output is correct |
23 | Correct | 8 ms | 10220 KB | Output is correct |
24 | Correct | 30 ms | 14572 KB | Output is correct |
25 | Correct | 30 ms | 14572 KB | Output is correct |
26 | Correct | 35 ms | 14700 KB | Output is correct |
27 | Correct | 11 ms | 10348 KB | Output is correct |
28 | Correct | 10 ms | 10348 KB | Output is correct |
29 | Correct | 10 ms | 10348 KB | Output is correct |
30 | Correct | 10 ms | 10348 KB | Output is correct |
31 | Correct | 10 ms | 10348 KB | Output is correct |
32 | Correct | 11 ms | 10348 KB | Output is correct |
33 | Correct | 19 ms | 11628 KB | Output is correct |
34 | Correct | 18 ms | 11500 KB | Output is correct |
35 | Correct | 19 ms | 11500 KB | Output is correct |
36 | Correct | 23 ms | 11500 KB | Output is correct |
37 | Correct | 17 ms | 11500 KB | Output is correct |
38 | Correct | 17 ms | 11500 KB | Output is correct |
39 | Correct | 39 ms | 15084 KB | Output is correct |
40 | Correct | 37 ms | 15084 KB | Output is correct |
41 | Correct | 37 ms | 15084 KB | Output is correct |
42 | Correct | 19 ms | 11116 KB | Output is correct |
43 | Correct | 15 ms | 10732 KB | Output is correct |
44 | Correct | 21 ms | 11116 KB | Output is correct |
45 | Correct | 16 ms | 10860 KB | Output is correct |
46 | Correct | 15 ms | 10732 KB | Output is correct |
47 | Correct | 26 ms | 11116 KB | Output is correct |
48 | Correct | 58 ms | 20480 KB | Output is correct |
49 | Correct | 39 ms | 15980 KB | Output is correct |
50 | Correct | 43 ms | 18540 KB | Output is correct |
51 | Correct | 58 ms | 19052 KB | Output is correct |
52 | Correct | 57 ms | 18540 KB | Output is correct |
53 | Correct | 52 ms | 16224 KB | Output is correct |
54 | Correct | 21 ms | 11116 KB | Output is correct |
55 | Correct | 24 ms | 11116 KB | Output is correct |
56 | Correct | 21 ms | 11136 KB | Output is correct |
57 | Correct | 22 ms | 11116 KB | Output is correct |
58 | Correct | 21 ms | 11116 KB | Output is correct |
59 | Correct | 21 ms | 11244 KB | Output is correct |
60 | Correct | 63 ms | 21472 KB | Output is correct |
61 | Correct | 64 ms | 21356 KB | Output is correct |
62 | Correct | 67 ms | 21484 KB | Output is correct |
63 | Correct | 64 ms | 21356 KB | Output is correct |
64 | Correct | 62 ms | 21356 KB | Output is correct |
65 | Correct | 82 ms | 21356 KB | Output is correct |
66 | Correct | 72 ms | 20460 KB | Output is correct |
67 | Correct | 73 ms | 20460 KB | Output is correct |
68 | Correct | 73 ms | 20588 KB | Output is correct |
69 | Correct | 7 ms | 10092 KB | Output is correct |
70 | Correct | 7 ms | 10092 KB | Output is correct |
71 | Correct | 8 ms | 10092 KB | Output is correct |
72 | Correct | 7 ms | 10092 KB | Output is correct |
73 | Correct | 8 ms | 10092 KB | Output is correct |
74 | Correct | 8 ms | 10092 KB | Output is correct |
75 | Correct | 8 ms | 10092 KB | Output is correct |
76 | Correct | 7 ms | 10092 KB | Output is correct |
77 | Correct | 7 ms | 10092 KB | Output is correct |
78 | Correct | 7 ms | 10092 KB | Output is correct |
79 | Correct | 7 ms | 10092 KB | Output is correct |
80 | Correct | 9 ms | 10092 KB | Output is correct |
81 | Correct | 7 ms | 10092 KB | Output is correct |
82 | Correct | 8 ms | 10240 KB | Output is correct |
83 | Correct | 9 ms | 10092 KB | Output is correct |
84 | Correct | 8 ms | 10092 KB | Output is correct |
85 | Correct | 7 ms | 10220 KB | Output is correct |
86 | Correct | 7 ms | 10092 KB | Output is correct |
87 | Correct | 7 ms | 10092 KB | Output is correct |
88 | Correct | 7 ms | 10092 KB | Output is correct |
89 | Correct | 7 ms | 10092 KB | Output is correct |
90 | Correct | 7 ms | 10092 KB | Output is correct |
91 | Correct | 7 ms | 10092 KB | Output is correct |
92 | Correct | 7 ms | 10092 KB | Output is correct |
93 | Correct | 7 ms | 10092 KB | Output is correct |
94 | Correct | 9 ms | 10092 KB | Output is correct |
95 | Correct | 7 ms | 10220 KB | Output is correct |
96 | Correct | 8 ms | 10220 KB | Output is correct |
97 | Correct | 8 ms | 10220 KB | Output is correct |
98 | Correct | 9 ms | 10220 KB | Output is correct |
99 | Correct | 7 ms | 10220 KB | Output is correct |
100 | Correct | 7 ms | 10220 KB | Output is correct |
101 | Correct | 8 ms | 10220 KB | Output is correct |
102 | Correct | 7 ms | 10092 KB | Output is correct |
103 | Correct | 7 ms | 10220 KB | Output is correct |
104 | Correct | 7 ms | 10092 KB | Output is correct |
105 | Correct | 7 ms | 10220 KB | Output is correct |
106 | Correct | 9 ms | 10092 KB | Output is correct |
107 | Correct | 7 ms | 10092 KB | Output is correct |
108 | Correct | 8 ms | 10092 KB | Output is correct |
109 | Correct | 8 ms | 10092 KB | Output is correct |
110 | Correct | 8 ms | 10092 KB | Output is correct |
111 | Correct | 9 ms | 10092 KB | Output is correct |
112 | Correct | 9 ms | 10348 KB | Output is correct |
113 | Correct | 9 ms | 10348 KB | Output is correct |
114 | Correct | 9 ms | 10348 KB | Output is correct |
115 | Correct | 8 ms | 10220 KB | Output is correct |
116 | Correct | 9 ms | 10348 KB | Output is correct |
117 | Correct | 9 ms | 10348 KB | Output is correct |
118 | Correct | 33 ms | 13420 KB | Output is correct |
119 | Correct | 29 ms | 14060 KB | Output is correct |
120 | Correct | 40 ms | 14452 KB | Output is correct |
121 | Correct | 9 ms | 10092 KB | Output is correct |
122 | Correct | 9 ms | 10092 KB | Output is correct |
123 | Correct | 9 ms | 10092 KB | Output is correct |
124 | Correct | 11 ms | 10092 KB | Output is correct |
125 | Correct | 10 ms | 10092 KB | Output is correct |
126 | Correct | 10 ms | 10476 KB | Output is correct |
127 | Correct | 9 ms | 10476 KB | Output is correct |
128 | Correct | 11 ms | 10476 KB | Output is correct |
129 | Correct | 11 ms | 10476 KB | Output is correct |
130 | Correct | 10 ms | 10476 KB | Output is correct |
131 | Correct | 11 ms | 10496 KB | Output is correct |
132 | Correct | 46 ms | 14828 KB | Output is correct |
133 | Correct | 49 ms | 14700 KB | Output is correct |
134 | Correct | 48 ms | 14828 KB | Output is correct |
135 | Correct | 9 ms | 10348 KB | Output is correct |
136 | Correct | 160 ms | 10348 KB | Output is correct |
137 | Correct | 121 ms | 10476 KB | Output is correct |
138 | Correct | 94 ms | 10348 KB | Output is correct |
139 | Correct | 104 ms | 10348 KB | Output is correct |
140 | Correct | 67 ms | 10348 KB | Output is correct |
141 | Correct | 22 ms | 11756 KB | Output is correct |
142 | Correct | 23 ms | 11628 KB | Output is correct |
143 | Correct | 26 ms | 12140 KB | Output is correct |
144 | Correct | 21 ms | 11756 KB | Output is correct |
145 | Correct | 23 ms | 11884 KB | Output is correct |
146 | Correct | 22 ms | 11500 KB | Output is correct |
147 | Correct | 30 ms | 13164 KB | Output is correct |
148 | Correct | 12 ms | 10860 KB | Output is correct |
149 | Correct | 34 ms | 13548 KB | Output is correct |
150 | Correct | 12 ms | 10732 KB | Output is correct |
151 | Correct | 41 ms | 14060 KB | Output is correct |
152 | Correct | 17 ms | 10988 KB | Output is correct |
153 | Correct | 15 ms | 11244 KB | Output is correct |
154 | Correct | 18 ms | 11372 KB | Output is correct |
155 | Correct | 14 ms | 10988 KB | Output is correct |
156 | Correct | 19 ms | 11116 KB | Output is correct |
157 | Correct | 10 ms | 10348 KB | Output is correct |
158 | Correct | 226 ms | 10476 KB | Output is correct |
159 | Correct | 216 ms | 10604 KB | Output is correct |
160 | Correct | 178 ms | 10476 KB | Output is correct |
161 | Correct | 149 ms | 10476 KB | Output is correct |
162 | Correct | 128 ms | 10604 KB | Output is correct |
163 | Correct | 28 ms | 12268 KB | Output is correct |
164 | Correct | 37 ms | 12268 KB | Output is correct |
165 | Correct | 29 ms | 12268 KB | Output is correct |
166 | Correct | 29 ms | 12268 KB | Output is correct |
167 | Correct | 28 ms | 12268 KB | Output is correct |
168 | Correct | 28 ms | 12268 KB | Output is correct |
169 | Correct | 49 ms | 15212 KB | Output is correct |
170 | Correct | 16 ms | 11244 KB | Output is correct |
171 | Correct | 67 ms | 15212 KB | Output is correct |
172 | Correct | 18 ms | 11244 KB | Output is correct |
173 | Correct | 54 ms | 15212 KB | Output is correct |
174 | Correct | 16 ms | 11244 KB | Output is correct |
175 | Correct | 23 ms | 11628 KB | Output is correct |
176 | Correct | 18 ms | 11500 KB | Output is correct |
177 | Correct | 17 ms | 11500 KB | Output is correct |
178 | Correct | 17 ms | 11500 KB | Output is correct |
179 | Correct | 16 ms | 10732 KB | Output is correct |
180 | Correct | 442 ms | 10904 KB | Output is correct |
181 | Correct | 695 ms | 10988 KB | Output is correct |
182 | Correct | 838 ms | 11372 KB | Output is correct |
183 | Correct | 395 ms | 10960 KB | Output is correct |
184 | Correct | 312 ms | 10988 KB | Output is correct |
185 | Correct | 48 ms | 14316 KB | Output is correct |
186 | Correct | 43 ms | 15852 KB | Output is correct |
187 | Correct | 52 ms | 15212 KB | Output is correct |
188 | Correct | 48 ms | 14700 KB | Output is correct |
189 | Correct | 51 ms | 14568 KB | Output is correct |
190 | Correct | 65 ms | 15852 KB | Output is correct |
191 | Correct | 47 ms | 15340 KB | Output is correct |
192 | Correct | 40 ms | 13932 KB | Output is correct |
193 | Correct | 39 ms | 13292 KB | Output is correct |
194 | Correct | 21 ms | 11116 KB | Output is correct |
195 | Correct | 1098 ms | 11524 KB | Output is correct |
196 | Correct | 1063 ms | 11268 KB | Output is correct |
197 | Correct | 829 ms | 11300 KB | Output is correct |
198 | Correct | 686 ms | 11372 KB | Output is correct |
199 | Correct | 605 ms | 11372 KB | Output is correct |
200 | Correct | 88 ms | 22020 KB | Output is correct |
201 | Correct | 88 ms | 22016 KB | Output is correct |
202 | Correct | 90 ms | 21996 KB | Output is correct |
203 | Correct | 93 ms | 21996 KB | Output is correct |
204 | Correct | 108 ms | 22144 KB | Output is correct |
205 | Correct | 108 ms | 21996 KB | Output is correct |
206 | Correct | 85 ms | 20940 KB | Output is correct |
207 | Correct | 71 ms | 20204 KB | Output is correct |
208 | Correct | 83 ms | 20844 KB | Output is correct |
209 | Correct | 73 ms | 20204 KB | Output is correct |
210 | Correct | 94 ms | 20844 KB | Output is correct |
211 | Correct | 74 ms | 20204 KB | Output is correct |
212 | Correct | 75 ms | 21612 KB | Output is correct |
213 | Correct | 76 ms | 18796 KB | Output is correct |
214 | Correct | 78 ms | 18028 KB | Output is correct |
215 | Correct | 81 ms | 17900 KB | Output is correct |