Submission #1053455

# Submission time Handle Problem Language Result Execution time Memory
1053455 2024-08-11T12:05:25 Z elazarkoren Toy (CEOI24_toy) C++17
100 / 100
67 ms 38484 KB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define x first
#define y second
#define all(v) v.begin(), v.end()
#define chkmin(a, b) a = min(a, b)
#define chkmax(a, b) a = max(a, b)
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef pair<ll, ll> pii;
typedef vector<pii> vii;
typedef vector<bool> vb;
typedef vector<vb> vvb;

const int MAX_N = 1505;
int dx[] = {0, 0, -1, 1}, dy[] = {1, -1, 0, 0};

int dp_u[MAX_N][MAX_N], dp_d[MAX_N][MAX_N], dp_l[MAX_N][MAX_N], dp_r[MAX_N][MAX_N];
int n, m, k, l;

bool Check(int x, int y, int nx, int ny) {
    if (x == nx) {
        int u = max(dp_u[x][y], dp_u[nx][ny]);
        int d = min(dp_d[x][y], dp_d[nx][ny]);
        return d - u + 1 >= l;
    }
    int le = max(dp_l[x][y], dp_l[nx][ny]);
    int r = min(dp_r[x][y], dp_r[nx][ny]);
    return r - le + 1 >= k;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin >> m >> n >> k >> l;
    int xh, yh, xv, yv, xt, yt;
    cin >> xh >> yh >> xv >> yv;
    vvb visited(n, vb(m));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            char c;
            cin >> c;
            if (c == '*') {
                xt = i, yt = j;
            } else if (c == 'X') visited[i][j] = 1;
        }
    }
    for (int i = 1; i < n; i++) {
        for (int j = 0; j < m; j++) {
            dp_u[i][j] = visited[i - 1][j] ? i : dp_u[i - 1][j];
        }
    }
    for (int j = 0; j < m; j++) dp_d[n - 1][j] = n - 1;
    for (int i = n - 2; i >= 0; i--) {
        for (int j = 0; j < m; j++) {
            dp_d[i][j] = visited[i + 1][j] ? i : dp_d[i + 1][j];
        }
    }
    for (int i = 0; i < n; i++) {
        for (int j = 1; j < m; j++) {
            dp_l[i][j] = visited[i][j - 1] ? j : dp_l[i][j - 1];
        }
    }
    for (int i = 0; i < n; i++) dp_r[i][m - 1] = m - 1;
    for (int i = 0; i < n; i++) {
        for (int j = m - 2; j >= 0; j--) {
            dp_r[i][j] = visited[i][j + 1] ? j : dp_r[i][j + 1];
        }
    }

    queue<pii> q;
    q.push({yh, xv});
    visited[yh][xv] = 1;
    while (!q.empty()) {
        auto [x, y] = q.front();
        q.pop();
        for (int d = 0; d < 4; d++) {
            int nx = x + dx[d], ny = y + dy[d];
            if (0 > nx || nx >= n || 0 > ny || ny >= m || visited[nx][ny]) continue;
            if (Check(x, y, nx, ny)) {
                q.push({nx, ny});
                visited[nx][ny] = 1;
            }
        }
    }
    cout << (visited[xt][yt] ? "YES\n" : "NO\n");
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:88:24: warning: 'xt' may be used uninitialized in this function [-Wmaybe-uninitialized]
   88 |     cout << (visited[xt][yt] ? "YES\n" : "NO\n");
      |                        ^
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
3 Correct 1 ms 2648 KB Output is correct
4 Correct 1 ms 7004 KB Output is correct
5 Correct 1 ms 7004 KB Output is correct
6 Correct 1 ms 7004 KB Output is correct
7 Correct 1 ms 7004 KB Output is correct
8 Correct 1 ms 7004 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 7004 KB Output is correct
11 Correct 1 ms 7004 KB Output is correct
12 Correct 0 ms 2392 KB Output is correct
13 Correct 1 ms 7004 KB Output is correct
14 Correct 1 ms 10844 KB Output is correct
15 Correct 1 ms 7004 KB Output is correct
16 Correct 1 ms 7004 KB Output is correct
17 Correct 1 ms 7004 KB Output is correct
18 Correct 1 ms 7004 KB Output is correct
19 Correct 1 ms 7004 KB Output is correct
20 Correct 1 ms 7004 KB Output is correct
21 Correct 1 ms 7004 KB Output is correct
22 Correct 1 ms 7004 KB Output is correct
23 Correct 1 ms 7004 KB Output is correct
24 Correct 1 ms 7004 KB Output is correct
25 Correct 1 ms 7004 KB Output is correct
26 Correct 1 ms 7004 KB Output is correct
27 Correct 1 ms 7004 KB Output is correct
28 Correct 1 ms 7000 KB Output is correct
29 Correct 1 ms 7004 KB Output is correct
30 Correct 1 ms 7004 KB Output is correct
31 Correct 1 ms 7004 KB Output is correct
32 Correct 1 ms 7004 KB Output is correct
33 Correct 1 ms 7004 KB Output is correct
34 Correct 1 ms 7004 KB Output is correct
35 Correct 1 ms 7004 KB Output is correct
36 Correct 1 ms 7004 KB Output is correct
37 Correct 1 ms 7004 KB Output is correct
38 Correct 1 ms 7004 KB Output is correct
39 Correct 1 ms 7004 KB Output is correct
40 Correct 1 ms 7000 KB Output is correct
41 Correct 1 ms 7000 KB Output is correct
42 Correct 1 ms 7004 KB Output is correct
43 Correct 1 ms 7004 KB Output is correct
44 Correct 1 ms 7004 KB Output is correct
45 Correct 1 ms 7120 KB Output is correct
46 Correct 1 ms 7004 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
3 Correct 1 ms 2648 KB Output is correct
4 Correct 1 ms 7004 KB Output is correct
5 Correct 1 ms 7004 KB Output is correct
6 Correct 1 ms 7004 KB Output is correct
7 Correct 1 ms 7004 KB Output is correct
8 Correct 1 ms 7004 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 7004 KB Output is correct
11 Correct 1 ms 7004 KB Output is correct
12 Correct 0 ms 2392 KB Output is correct
13 Correct 1 ms 7004 KB Output is correct
14 Correct 1 ms 10844 KB Output is correct
15 Correct 1 ms 7004 KB Output is correct
16 Correct 1 ms 7004 KB Output is correct
17 Correct 1 ms 7004 KB Output is correct
18 Correct 1 ms 7004 KB Output is correct
19 Correct 1 ms 7004 KB Output is correct
20 Correct 1 ms 7004 KB Output is correct
21 Correct 1 ms 7004 KB Output is correct
22 Correct 1 ms 7004 KB Output is correct
23 Correct 1 ms 7004 KB Output is correct
24 Correct 1 ms 7004 KB Output is correct
25 Correct 1 ms 7004 KB Output is correct
26 Correct 1 ms 7004 KB Output is correct
27 Correct 1 ms 7004 KB Output is correct
28 Correct 1 ms 7000 KB Output is correct
29 Correct 1 ms 7004 KB Output is correct
30 Correct 1 ms 7004 KB Output is correct
31 Correct 1 ms 7004 KB Output is correct
32 Correct 1 ms 7004 KB Output is correct
33 Correct 1 ms 7004 KB Output is correct
34 Correct 1 ms 7004 KB Output is correct
35 Correct 1 ms 7004 KB Output is correct
36 Correct 1 ms 7004 KB Output is correct
37 Correct 1 ms 7004 KB Output is correct
38 Correct 1 ms 7004 KB Output is correct
39 Correct 1 ms 7004 KB Output is correct
40 Correct 1 ms 7000 KB Output is correct
41 Correct 1 ms 7000 KB Output is correct
42 Correct 1 ms 7004 KB Output is correct
43 Correct 1 ms 7004 KB Output is correct
44 Correct 1 ms 7004 KB Output is correct
45 Correct 1 ms 7120 KB Output is correct
46 Correct 1 ms 7004 KB Output is correct
47 Correct 1 ms 2648 KB Output is correct
48 Correct 1 ms 7260 KB Output is correct
49 Correct 1 ms 7260 KB Output is correct
50 Correct 1 ms 7260 KB Output is correct
51 Correct 1 ms 7260 KB Output is correct
52 Correct 1 ms 7260 KB Output is correct
53 Correct 1 ms 7004 KB Output is correct
54 Correct 1 ms 10844 KB Output is correct
55 Correct 1 ms 7336 KB Output is correct
56 Correct 1 ms 10844 KB Output is correct
57 Correct 1 ms 10844 KB Output is correct
58 Correct 1 ms 7260 KB Output is correct
59 Correct 1 ms 7260 KB Output is correct
60 Correct 1 ms 7260 KB Output is correct
61 Correct 1 ms 7088 KB Output is correct
62 Correct 1 ms 7260 KB Output is correct
63 Correct 1 ms 7260 KB Output is correct
64 Correct 1 ms 7260 KB Output is correct
65 Correct 1 ms 7260 KB Output is correct
66 Correct 1 ms 7260 KB Output is correct
67 Correct 1 ms 7260 KB Output is correct
68 Correct 1 ms 7272 KB Output is correct
69 Correct 1 ms 7260 KB Output is correct
70 Correct 1 ms 7260 KB Output is correct
71 Correct 2 ms 7260 KB Output is correct
72 Correct 1 ms 7260 KB Output is correct
73 Correct 1 ms 7260 KB Output is correct
74 Correct 1 ms 7260 KB Output is correct
75 Correct 1 ms 7260 KB Output is correct
76 Correct 1 ms 7260 KB Output is correct
77 Correct 1 ms 7260 KB Output is correct
78 Correct 1 ms 7260 KB Output is correct
79 Correct 1 ms 7120 KB Output is correct
80 Correct 1 ms 7260 KB Output is correct
81 Correct 1 ms 7260 KB Output is correct
82 Correct 1 ms 7260 KB Output is correct
83 Correct 1 ms 7260 KB Output is correct
84 Correct 1 ms 7260 KB Output is correct
85 Correct 1 ms 7260 KB Output is correct
86 Correct 1 ms 7260 KB Output is correct
87 Correct 1 ms 7260 KB Output is correct
88 Correct 1 ms 7260 KB Output is correct
89 Correct 1 ms 7260 KB Output is correct
90 Correct 1 ms 7260 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 3 ms 10588 KB Output is correct
5 Correct 4 ms 10628 KB Output is correct
6 Correct 1 ms 7256 KB Output is correct
7 Correct 3 ms 10588 KB Output is correct
8 Correct 3 ms 10448 KB Output is correct
9 Correct 1 ms 7512 KB Output is correct
10 Correct 2 ms 10588 KB Output is correct
11 Correct 3 ms 10588 KB Output is correct
12 Correct 2 ms 10076 KB Output is correct
13 Correct 3 ms 12892 KB Output is correct
14 Correct 3 ms 12892 KB Output is correct
15 Correct 3 ms 10328 KB Output is correct
16 Correct 3 ms 10332 KB Output is correct
17 Correct 3 ms 10568 KB Output is correct
18 Correct 3 ms 10444 KB Output is correct
19 Correct 3 ms 10624 KB Output is correct
20 Correct 3 ms 10628 KB Output is correct
21 Correct 4 ms 10588 KB Output is correct
22 Correct 3 ms 10588 KB Output is correct
23 Correct 4 ms 10528 KB Output is correct
24 Correct 3 ms 10588 KB Output is correct
25 Correct 3 ms 10624 KB Output is correct
26 Correct 3 ms 10588 KB Output is correct
27 Correct 4 ms 10588 KB Output is correct
28 Correct 3 ms 10588 KB Output is correct
29 Correct 3 ms 10588 KB Output is correct
30 Correct 5 ms 10584 KB Output is correct
31 Correct 3 ms 10332 KB Output is correct
32 Correct 3 ms 10588 KB Output is correct
33 Correct 3 ms 10332 KB Output is correct
34 Correct 3 ms 10332 KB Output is correct
35 Correct 3 ms 10332 KB Output is correct
36 Correct 2 ms 10332 KB Output is correct
37 Correct 2 ms 10456 KB Output is correct
38 Correct 3 ms 10332 KB Output is correct
39 Correct 2 ms 10332 KB Output is correct
40 Correct 2 ms 10588 KB Output is correct
41 Correct 2 ms 10332 KB Output is correct
42 Correct 4 ms 10588 KB Output is correct
43 Correct 4 ms 10628 KB Output is correct
44 Correct 3 ms 10588 KB Output is correct
45 Correct 3 ms 10588 KB Output is correct
46 Correct 2 ms 10332 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
3 Correct 1 ms 2648 KB Output is correct
4 Correct 1 ms 7004 KB Output is correct
5 Correct 1 ms 7004 KB Output is correct
6 Correct 1 ms 7004 KB Output is correct
7 Correct 1 ms 7004 KB Output is correct
8 Correct 1 ms 7004 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 7004 KB Output is correct
11 Correct 1 ms 7004 KB Output is correct
12 Correct 0 ms 2392 KB Output is correct
13 Correct 1 ms 7004 KB Output is correct
14 Correct 1 ms 10844 KB Output is correct
15 Correct 1 ms 7004 KB Output is correct
16 Correct 1 ms 7004 KB Output is correct
17 Correct 1 ms 7004 KB Output is correct
18 Correct 1 ms 7004 KB Output is correct
19 Correct 1 ms 7004 KB Output is correct
20 Correct 1 ms 7004 KB Output is correct
21 Correct 1 ms 7004 KB Output is correct
22 Correct 1 ms 7004 KB Output is correct
23 Correct 1 ms 7004 KB Output is correct
24 Correct 1 ms 7004 KB Output is correct
25 Correct 1 ms 7004 KB Output is correct
26 Correct 1 ms 7004 KB Output is correct
27 Correct 1 ms 7004 KB Output is correct
28 Correct 1 ms 7000 KB Output is correct
29 Correct 1 ms 7004 KB Output is correct
30 Correct 1 ms 7004 KB Output is correct
31 Correct 1 ms 7004 KB Output is correct
32 Correct 1 ms 7004 KB Output is correct
33 Correct 1 ms 7004 KB Output is correct
34 Correct 1 ms 7004 KB Output is correct
35 Correct 1 ms 7004 KB Output is correct
36 Correct 1 ms 7004 KB Output is correct
37 Correct 1 ms 7004 KB Output is correct
38 Correct 1 ms 7004 KB Output is correct
39 Correct 1 ms 7004 KB Output is correct
40 Correct 1 ms 7000 KB Output is correct
41 Correct 1 ms 7000 KB Output is correct
42 Correct 1 ms 7004 KB Output is correct
43 Correct 1 ms 7004 KB Output is correct
44 Correct 1 ms 7004 KB Output is correct
45 Correct 1 ms 7120 KB Output is correct
46 Correct 1 ms 7004 KB Output is correct
47 Correct 1 ms 2648 KB Output is correct
48 Correct 1 ms 7260 KB Output is correct
49 Correct 1 ms 7260 KB Output is correct
50 Correct 1 ms 7260 KB Output is correct
51 Correct 1 ms 7260 KB Output is correct
52 Correct 1 ms 7260 KB Output is correct
53 Correct 1 ms 7004 KB Output is correct
54 Correct 1 ms 10844 KB Output is correct
55 Correct 1 ms 7336 KB Output is correct
56 Correct 1 ms 10844 KB Output is correct
57 Correct 1 ms 10844 KB Output is correct
58 Correct 1 ms 7260 KB Output is correct
59 Correct 1 ms 7260 KB Output is correct
60 Correct 1 ms 7260 KB Output is correct
61 Correct 1 ms 7088 KB Output is correct
62 Correct 1 ms 7260 KB Output is correct
63 Correct 1 ms 7260 KB Output is correct
64 Correct 1 ms 7260 KB Output is correct
65 Correct 1 ms 7260 KB Output is correct
66 Correct 1 ms 7260 KB Output is correct
67 Correct 1 ms 7260 KB Output is correct
68 Correct 1 ms 7272 KB Output is correct
69 Correct 1 ms 7260 KB Output is correct
70 Correct 1 ms 7260 KB Output is correct
71 Correct 2 ms 7260 KB Output is correct
72 Correct 1 ms 7260 KB Output is correct
73 Correct 1 ms 7260 KB Output is correct
74 Correct 1 ms 7260 KB Output is correct
75 Correct 1 ms 7260 KB Output is correct
76 Correct 1 ms 7260 KB Output is correct
77 Correct 1 ms 7260 KB Output is correct
78 Correct 1 ms 7260 KB Output is correct
79 Correct 1 ms 7120 KB Output is correct
80 Correct 1 ms 7260 KB Output is correct
81 Correct 1 ms 7260 KB Output is correct
82 Correct 1 ms 7260 KB Output is correct
83 Correct 1 ms 7260 KB Output is correct
84 Correct 1 ms 7260 KB Output is correct
85 Correct 1 ms 7260 KB Output is correct
86 Correct 1 ms 7260 KB Output is correct
87 Correct 1 ms 7260 KB Output is correct
88 Correct 1 ms 7260 KB Output is correct
89 Correct 1 ms 7260 KB Output is correct
90 Correct 1 ms 7260 KB Output is correct
91 Correct 1 ms 4956 KB Output is correct
92 Correct 3 ms 10588 KB Output is correct
93 Correct 4 ms 10628 KB Output is correct
94 Correct 1 ms 7256 KB Output is correct
95 Correct 3 ms 10588 KB Output is correct
96 Correct 3 ms 10448 KB Output is correct
97 Correct 1 ms 7512 KB Output is correct
98 Correct 2 ms 10588 KB Output is correct
99 Correct 3 ms 10588 KB Output is correct
100 Correct 2 ms 10076 KB Output is correct
101 Correct 3 ms 12892 KB Output is correct
102 Correct 3 ms 12892 KB Output is correct
103 Correct 3 ms 10328 KB Output is correct
104 Correct 3 ms 10332 KB Output is correct
105 Correct 3 ms 10568 KB Output is correct
106 Correct 3 ms 10444 KB Output is correct
107 Correct 3 ms 10624 KB Output is correct
108 Correct 3 ms 10628 KB Output is correct
109 Correct 4 ms 10588 KB Output is correct
110 Correct 3 ms 10588 KB Output is correct
111 Correct 4 ms 10528 KB Output is correct
112 Correct 3 ms 10588 KB Output is correct
113 Correct 3 ms 10624 KB Output is correct
114 Correct 3 ms 10588 KB Output is correct
115 Correct 4 ms 10588 KB Output is correct
116 Correct 3 ms 10588 KB Output is correct
117 Correct 3 ms 10588 KB Output is correct
118 Correct 5 ms 10584 KB Output is correct
119 Correct 3 ms 10332 KB Output is correct
120 Correct 3 ms 10588 KB Output is correct
121 Correct 3 ms 10332 KB Output is correct
122 Correct 3 ms 10332 KB Output is correct
123 Correct 3 ms 10332 KB Output is correct
124 Correct 2 ms 10332 KB Output is correct
125 Correct 2 ms 10456 KB Output is correct
126 Correct 3 ms 10332 KB Output is correct
127 Correct 2 ms 10332 KB Output is correct
128 Correct 2 ms 10588 KB Output is correct
129 Correct 2 ms 10332 KB Output is correct
130 Correct 4 ms 10588 KB Output is correct
131 Correct 4 ms 10628 KB Output is correct
132 Correct 3 ms 10588 KB Output is correct
133 Correct 3 ms 10588 KB Output is correct
134 Correct 2 ms 10332 KB Output is correct
135 Correct 2 ms 10076 KB Output is correct
136 Correct 3 ms 11120 KB Output is correct
137 Correct 3 ms 11100 KB Output is correct
138 Correct 2 ms 9820 KB Output is correct
139 Correct 3 ms 10972 KB Output is correct
140 Correct 3 ms 11104 KB Output is correct
141 Correct 3 ms 10588 KB Output is correct
142 Correct 3 ms 11100 KB Output is correct
143 Correct 3 ms 11100 KB Output is correct
144 Correct 1 ms 2908 KB Output is correct
145 Correct 5 ms 12656 KB Output is correct
146 Correct 5 ms 11096 KB Output is correct
147 Correct 4 ms 10972 KB Output is correct
148 Correct 4 ms 10860 KB Output is correct
149 Correct 4 ms 10844 KB Output is correct
150 Correct 4 ms 11112 KB Output is correct
151 Correct 4 ms 11180 KB Output is correct
152 Correct 4 ms 11184 KB Output is correct
153 Correct 5 ms 11100 KB Output is correct
154 Correct 4 ms 11100 KB Output is correct
155 Correct 4 ms 11100 KB Output is correct
156 Correct 5 ms 11100 KB Output is correct
157 Correct 4 ms 11104 KB Output is correct
158 Correct 4 ms 11100 KB Output is correct
159 Correct 5 ms 11100 KB Output is correct
160 Correct 5 ms 11128 KB Output is correct
161 Correct 4 ms 10972 KB Output is correct
162 Correct 5 ms 10864 KB Output is correct
163 Correct 4 ms 10844 KB Output is correct
164 Correct 4 ms 11080 KB Output is correct
165 Correct 4 ms 11096 KB Output is correct
166 Correct 4 ms 10844 KB Output is correct
167 Correct 4 ms 10852 KB Output is correct
168 Correct 3 ms 10844 KB Output is correct
169 Correct 3 ms 11076 KB Output is correct
170 Correct 3 ms 11100 KB Output is correct
171 Correct 5 ms 10844 KB Output is correct
172 Correct 3 ms 10840 KB Output is correct
173 Correct 3 ms 10848 KB Output is correct
174 Correct 5 ms 11104 KB Output is correct
175 Correct 4 ms 11100 KB Output is correct
176 Correct 5 ms 11100 KB Output is correct
177 Correct 4 ms 11112 KB Output is correct
178 Correct 3 ms 11036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
3 Correct 1 ms 2648 KB Output is correct
4 Correct 1 ms 7004 KB Output is correct
5 Correct 1 ms 7004 KB Output is correct
6 Correct 1 ms 7004 KB Output is correct
7 Correct 1 ms 7004 KB Output is correct
8 Correct 1 ms 7004 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 7004 KB Output is correct
11 Correct 1 ms 7004 KB Output is correct
12 Correct 0 ms 2392 KB Output is correct
13 Correct 1 ms 7004 KB Output is correct
14 Correct 1 ms 10844 KB Output is correct
15 Correct 1 ms 7004 KB Output is correct
16 Correct 1 ms 7004 KB Output is correct
17 Correct 1 ms 7004 KB Output is correct
18 Correct 1 ms 7004 KB Output is correct
19 Correct 1 ms 7004 KB Output is correct
20 Correct 1 ms 7004 KB Output is correct
21 Correct 1 ms 7004 KB Output is correct
22 Correct 1 ms 7004 KB Output is correct
23 Correct 1 ms 7004 KB Output is correct
24 Correct 1 ms 7004 KB Output is correct
25 Correct 1 ms 7004 KB Output is correct
26 Correct 1 ms 7004 KB Output is correct
27 Correct 1 ms 7004 KB Output is correct
28 Correct 1 ms 7000 KB Output is correct
29 Correct 1 ms 7004 KB Output is correct
30 Correct 1 ms 7004 KB Output is correct
31 Correct 1 ms 7004 KB Output is correct
32 Correct 1 ms 7004 KB Output is correct
33 Correct 1 ms 7004 KB Output is correct
34 Correct 1 ms 7004 KB Output is correct
35 Correct 1 ms 7004 KB Output is correct
36 Correct 1 ms 7004 KB Output is correct
37 Correct 1 ms 7004 KB Output is correct
38 Correct 1 ms 7004 KB Output is correct
39 Correct 1 ms 7004 KB Output is correct
40 Correct 1 ms 7000 KB Output is correct
41 Correct 1 ms 7000 KB Output is correct
42 Correct 1 ms 7004 KB Output is correct
43 Correct 1 ms 7004 KB Output is correct
44 Correct 1 ms 7004 KB Output is correct
45 Correct 1 ms 7120 KB Output is correct
46 Correct 1 ms 7004 KB Output is correct
47 Correct 1 ms 2648 KB Output is correct
48 Correct 1 ms 7260 KB Output is correct
49 Correct 1 ms 7260 KB Output is correct
50 Correct 1 ms 7260 KB Output is correct
51 Correct 1 ms 7260 KB Output is correct
52 Correct 1 ms 7260 KB Output is correct
53 Correct 1 ms 7004 KB Output is correct
54 Correct 1 ms 10844 KB Output is correct
55 Correct 1 ms 7336 KB Output is correct
56 Correct 1 ms 10844 KB Output is correct
57 Correct 1 ms 10844 KB Output is correct
58 Correct 1 ms 7260 KB Output is correct
59 Correct 1 ms 7260 KB Output is correct
60 Correct 1 ms 7260 KB Output is correct
61 Correct 1 ms 7088 KB Output is correct
62 Correct 1 ms 7260 KB Output is correct
63 Correct 1 ms 7260 KB Output is correct
64 Correct 1 ms 7260 KB Output is correct
65 Correct 1 ms 7260 KB Output is correct
66 Correct 1 ms 7260 KB Output is correct
67 Correct 1 ms 7260 KB Output is correct
68 Correct 1 ms 7272 KB Output is correct
69 Correct 1 ms 7260 KB Output is correct
70 Correct 1 ms 7260 KB Output is correct
71 Correct 2 ms 7260 KB Output is correct
72 Correct 1 ms 7260 KB Output is correct
73 Correct 1 ms 7260 KB Output is correct
74 Correct 1 ms 7260 KB Output is correct
75 Correct 1 ms 7260 KB Output is correct
76 Correct 1 ms 7260 KB Output is correct
77 Correct 1 ms 7260 KB Output is correct
78 Correct 1 ms 7260 KB Output is correct
79 Correct 1 ms 7120 KB Output is correct
80 Correct 1 ms 7260 KB Output is correct
81 Correct 1 ms 7260 KB Output is correct
82 Correct 1 ms 7260 KB Output is correct
83 Correct 1 ms 7260 KB Output is correct
84 Correct 1 ms 7260 KB Output is correct
85 Correct 1 ms 7260 KB Output is correct
86 Correct 1 ms 7260 KB Output is correct
87 Correct 1 ms 7260 KB Output is correct
88 Correct 1 ms 7260 KB Output is correct
89 Correct 1 ms 7260 KB Output is correct
90 Correct 1 ms 7260 KB Output is correct
91 Correct 1 ms 4956 KB Output is correct
92 Correct 3 ms 10588 KB Output is correct
93 Correct 4 ms 10628 KB Output is correct
94 Correct 1 ms 7256 KB Output is correct
95 Correct 3 ms 10588 KB Output is correct
96 Correct 3 ms 10448 KB Output is correct
97 Correct 1 ms 7512 KB Output is correct
98 Correct 2 ms 10588 KB Output is correct
99 Correct 3 ms 10588 KB Output is correct
100 Correct 2 ms 10076 KB Output is correct
101 Correct 3 ms 12892 KB Output is correct
102 Correct 3 ms 12892 KB Output is correct
103 Correct 3 ms 10328 KB Output is correct
104 Correct 3 ms 10332 KB Output is correct
105 Correct 3 ms 10568 KB Output is correct
106 Correct 3 ms 10444 KB Output is correct
107 Correct 3 ms 10624 KB Output is correct
108 Correct 3 ms 10628 KB Output is correct
109 Correct 4 ms 10588 KB Output is correct
110 Correct 3 ms 10588 KB Output is correct
111 Correct 4 ms 10528 KB Output is correct
112 Correct 3 ms 10588 KB Output is correct
113 Correct 3 ms 10624 KB Output is correct
114 Correct 3 ms 10588 KB Output is correct
115 Correct 4 ms 10588 KB Output is correct
116 Correct 3 ms 10588 KB Output is correct
117 Correct 3 ms 10588 KB Output is correct
118 Correct 5 ms 10584 KB Output is correct
119 Correct 3 ms 10332 KB Output is correct
120 Correct 3 ms 10588 KB Output is correct
121 Correct 3 ms 10332 KB Output is correct
122 Correct 3 ms 10332 KB Output is correct
123 Correct 3 ms 10332 KB Output is correct
124 Correct 2 ms 10332 KB Output is correct
125 Correct 2 ms 10456 KB Output is correct
126 Correct 3 ms 10332 KB Output is correct
127 Correct 2 ms 10332 KB Output is correct
128 Correct 2 ms 10588 KB Output is correct
129 Correct 2 ms 10332 KB Output is correct
130 Correct 4 ms 10588 KB Output is correct
131 Correct 4 ms 10628 KB Output is correct
132 Correct 3 ms 10588 KB Output is correct
133 Correct 3 ms 10588 KB Output is correct
134 Correct 2 ms 10332 KB Output is correct
135 Correct 2 ms 10076 KB Output is correct
136 Correct 3 ms 11120 KB Output is correct
137 Correct 3 ms 11100 KB Output is correct
138 Correct 2 ms 9820 KB Output is correct
139 Correct 3 ms 10972 KB Output is correct
140 Correct 3 ms 11104 KB Output is correct
141 Correct 3 ms 10588 KB Output is correct
142 Correct 3 ms 11100 KB Output is correct
143 Correct 3 ms 11100 KB Output is correct
144 Correct 1 ms 2908 KB Output is correct
145 Correct 5 ms 12656 KB Output is correct
146 Correct 5 ms 11096 KB Output is correct
147 Correct 4 ms 10972 KB Output is correct
148 Correct 4 ms 10860 KB Output is correct
149 Correct 4 ms 10844 KB Output is correct
150 Correct 4 ms 11112 KB Output is correct
151 Correct 4 ms 11180 KB Output is correct
152 Correct 4 ms 11184 KB Output is correct
153 Correct 5 ms 11100 KB Output is correct
154 Correct 4 ms 11100 KB Output is correct
155 Correct 4 ms 11100 KB Output is correct
156 Correct 5 ms 11100 KB Output is correct
157 Correct 4 ms 11104 KB Output is correct
158 Correct 4 ms 11100 KB Output is correct
159 Correct 5 ms 11100 KB Output is correct
160 Correct 5 ms 11128 KB Output is correct
161 Correct 4 ms 10972 KB Output is correct
162 Correct 5 ms 10864 KB Output is correct
163 Correct 4 ms 10844 KB Output is correct
164 Correct 4 ms 11080 KB Output is correct
165 Correct 4 ms 11096 KB Output is correct
166 Correct 4 ms 10844 KB Output is correct
167 Correct 4 ms 10852 KB Output is correct
168 Correct 3 ms 10844 KB Output is correct
169 Correct 3 ms 11076 KB Output is correct
170 Correct 3 ms 11100 KB Output is correct
171 Correct 5 ms 10844 KB Output is correct
172 Correct 3 ms 10840 KB Output is correct
173 Correct 3 ms 10848 KB Output is correct
174 Correct 5 ms 11104 KB Output is correct
175 Correct 4 ms 11100 KB Output is correct
176 Correct 5 ms 11100 KB Output is correct
177 Correct 4 ms 11112 KB Output is correct
178 Correct 3 ms 11036 KB Output is correct
179 Correct 9 ms 24924 KB Output is correct
180 Correct 25 ms 38316 KB Output is correct
181 Correct 25 ms 38340 KB Output is correct
182 Correct 10 ms 29788 KB Output is correct
183 Correct 26 ms 38392 KB Output is correct
184 Correct 26 ms 38348 KB Output is correct
185 Correct 25 ms 35584 KB Output is correct
186 Correct 33 ms 38228 KB Output is correct
187 Correct 32 ms 38240 KB Output is correct
188 Correct 33 ms 34576 KB Output is correct
189 Correct 62 ms 38440 KB Output is correct
190 Correct 60 ms 38224 KB Output is correct
191 Correct 53 ms 36176 KB Output is correct
192 Correct 60 ms 37704 KB Output is correct
193 Correct 56 ms 36432 KB Output is correct
194 Correct 56 ms 38396 KB Output is correct
195 Correct 53 ms 38228 KB Output is correct
196 Correct 54 ms 38228 KB Output is correct
197 Correct 53 ms 38224 KB Output is correct
198 Correct 63 ms 38224 KB Output is correct
199 Correct 53 ms 38228 KB Output is correct
200 Correct 55 ms 38236 KB Output is correct
201 Correct 55 ms 38224 KB Output is correct
202 Correct 55 ms 38304 KB Output is correct
203 Correct 54 ms 38352 KB Output is correct
204 Correct 67 ms 38228 KB Output is correct
205 Correct 58 ms 38228 KB Output is correct
206 Correct 47 ms 37076 KB Output is correct
207 Correct 49 ms 36464 KB Output is correct
208 Correct 48 ms 36440 KB Output is correct
209 Correct 48 ms 37200 KB Output is correct
210 Correct 47 ms 36700 KB Output is correct
211 Correct 51 ms 37200 KB Output is correct
212 Correct 22 ms 36184 KB Output is correct
213 Correct 30 ms 36436 KB Output is correct
214 Correct 30 ms 36196 KB Output is correct
215 Correct 31 ms 36700 KB Output is correct
216 Correct 29 ms 36176 KB Output is correct
217 Correct 31 ms 36436 KB Output is correct
218 Correct 55 ms 38484 KB Output is correct
219 Correct 61 ms 38404 KB Output is correct
220 Correct 56 ms 38236 KB Output is correct
221 Correct 57 ms 38348 KB Output is correct
222 Correct 22 ms 36436 KB Output is correct