답안 #1105017

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1105017 2024-10-25T07:47:02 Z SalihSahin Toy (CEOI24_toy) C++14
100 / 100
206 ms 75924 KB
#include <bits/stdc++.h>
#define pb push_back
#define int long long
using namespace std;

const int mod = 1e9 + 7;
const int inf = 1e15;
const int N = 1e5+5;

bool intersect(pair<int, int> p1, pair<int, int> p2){
    return max(p1.first, p2.first) <= min(p1.second, p2.second);
}

int32_t main(){
    cin.tie(0); cout.tie(0);
    ios_base::sync_with_stdio(false);
    int h, w, k, l;
    cin>>h>>w>>k>>l;
    swap(h, w);
    int xh, yh, xv, yv;
    cin>>xh>>yh>>xv>>yv;

    pair<int, int> f;
    vector<vector<char> > a(h, vector<char>(w));
    for(int i = 0; i < h; i++){
        for(int j = 0; j < w; j++){
            cin>>a[i][j];
            if(a[i][j] == '*'){
                f = {i, j};
            }
        }
    }

    vector<vector<int> > left(h, vector<int>(w, -1));
    vector<vector<int> > right(h, vector<int>(w, w));
    vector<vector<int> > up(h, vector<int>(w, -1));
    vector<vector<int> > down(h, vector<int>(w, h));

    int pre;
    for(int i = 0; i < h; i++){
        pre = -1;
        for(int j = 0; j < w; j++){
            if(a[i][j] == 'X') pre = j;
            left[i][j] = pre;
        }
    }

    for(int i = 0; i < h; i++){
        pre = w;
        for(int j = w-1; j >= 0; j--){
            if(a[i][j] == 'X') pre = j;
            right[i][j] = pre;
        }
    }

    for(int i = 0; i < w; i++){
        pre = -1;
        for(int j = 0; j < h; j++){
            if(a[j][i] == 'X') pre = j;
            up[j][i] = pre;
        }
    }

    for(int i = 0; i < w; i++){
        pre = h;
        for(int j = h-1; j >= 0; j--){
            if(a[j][i] == 'X') pre = j;
            down[j][i] = pre;
        }
    }

    for(int i = 0; i < h; i++){
        for(int j = 0; j < w; j++){
            left[i][j]++;
            up[i][j]++;
            down[i][j] -= l;
            right[i][j] -= k;
        }
    }

    vector<vector<bool> > vis(h, vector<bool>(w));
    pair<int, int> s = {yh, xv};
    queue<pair<int, int> > q;
    q.push(s);
    while(!q.empty()){
        int x = q.front().first;
        int y = q.front().second;
        q.pop();

        if(vis[x][y]) continue;
        vis[x][y] = 1;

        if(x > 0 && !vis[x-1][y]){
            bool pos = (left[x-1][y] <= right[x-1][y] && up[x-1][y] <= down[x-1][y]);
            pos &= (intersect({left[x-1][y], right[x-1][y]}, {left[x][y], right[x][y]}));
            pos &= (intersect({up[x-1][y], down[x-1][y]}, {up[x][y], down[x][y]}));
            if(pos) q.push({x-1, y});
        }

        if(x < h-1 && !vis[x+1][y]){
            bool pos = (left[x+1][y] <= right[x+1][y] && up[x+1][y] <= down[x+1][y]);
            pos &= (intersect({left[x+1][y], right[x+1][y]}, {left[x][y], right[x][y]}));
            pos &= (intersect({up[x+1][y], down[x+1][y]}, {up[x][y], down[x][y]}));
            if(pos) q.push({x+1, y});
        }

        if(y > 0 && !vis[x][y-1]){
            bool pos = (left[x][y-1] <= right[x][y-1] && up[x][y-1] <= down[x][y-1]);
            pos &= (intersect({left[x][y-1], right[x][y-1]}, {left[x][y], right[x][y]}));
            pos &= (intersect({up[x][y-1], down[x][y-1]}, {up[x][y], down[x][y]}));
            if(pos) q.push({x, y-1});
        }

        if(y < w-1 && !vis[x][y+1]){
            bool pos = (left[x][y+1] <= right[x][y+1] && up[x][y+1] <= down[x][y+1]);
            pos &= (intersect({left[x][y+1], right[x][y+1]}, {left[x][y], right[x][y]}));
            pos &= (intersect({up[x][y+1], down[x][y+1]}, {up[x][y], down[x][y]}));
            if(pos) q.push({x, y+1});
        }
    }

    if(vis[f.first][f.second]) cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 504 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 592 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 336 KB Output is correct
12 Correct 1 ms 336 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 624 KB Output is correct
16 Correct 2 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 492 KB Output is correct
19 Correct 1 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 460 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 2 ms 336 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 2 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 504 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 460 KB Output is correct
36 Correct 1 ms 504 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 456 KB Output is correct
43 Correct 1 ms 336 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 1 ms 504 KB Output is correct
46 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 504 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 592 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 336 KB Output is correct
12 Correct 1 ms 336 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 624 KB Output is correct
16 Correct 2 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 492 KB Output is correct
19 Correct 1 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 460 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 2 ms 336 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 2 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 504 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 460 KB Output is correct
36 Correct 1 ms 504 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 456 KB Output is correct
43 Correct 1 ms 336 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 1 ms 504 KB Output is correct
46 Correct 1 ms 336 KB Output is correct
47 Correct 1 ms 592 KB Output is correct
48 Correct 1 ms 592 KB Output is correct
49 Correct 1 ms 592 KB Output is correct
50 Correct 1 ms 592 KB Output is correct
51 Correct 2 ms 592 KB Output is correct
52 Correct 1 ms 592 KB Output is correct
53 Correct 1 ms 592 KB Output is correct
54 Correct 1 ms 592 KB Output is correct
55 Correct 1 ms 592 KB Output is correct
56 Correct 1 ms 336 KB Output is correct
57 Correct 1 ms 592 KB Output is correct
58 Correct 1 ms 592 KB Output is correct
59 Correct 1 ms 592 KB Output is correct
60 Correct 1 ms 592 KB Output is correct
61 Correct 1 ms 592 KB Output is correct
62 Correct 2 ms 760 KB Output is correct
63 Correct 1 ms 592 KB Output is correct
64 Correct 1 ms 768 KB Output is correct
65 Correct 1 ms 760 KB Output is correct
66 Correct 1 ms 592 KB Output is correct
67 Correct 1 ms 592 KB Output is correct
68 Correct 1 ms 592 KB Output is correct
69 Correct 1 ms 592 KB Output is correct
70 Correct 2 ms 592 KB Output is correct
71 Correct 1 ms 736 KB Output is correct
72 Correct 1 ms 592 KB Output is correct
73 Correct 1 ms 592 KB Output is correct
74 Correct 2 ms 848 KB Output is correct
75 Correct 2 ms 592 KB Output is correct
76 Correct 1 ms 592 KB Output is correct
77 Correct 2 ms 592 KB Output is correct
78 Correct 1 ms 592 KB Output is correct
79 Correct 1 ms 592 KB Output is correct
80 Correct 1 ms 592 KB Output is correct
81 Correct 2 ms 592 KB Output is correct
82 Correct 1 ms 592 KB Output is correct
83 Correct 1 ms 592 KB Output is correct
84 Correct 2 ms 592 KB Output is correct
85 Correct 1 ms 592 KB Output is correct
86 Correct 2 ms 768 KB Output is correct
87 Correct 2 ms 592 KB Output is correct
88 Correct 1 ms 592 KB Output is correct
89 Correct 1 ms 592 KB Output is correct
90 Correct 2 ms 592 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 8 ms 3408 KB Output is correct
5 Correct 10 ms 3408 KB Output is correct
6 Correct 2 ms 848 KB Output is correct
7 Correct 7 ms 3408 KB Output is correct
8 Correct 7 ms 3540 KB Output is correct
9 Correct 2 ms 1360 KB Output is correct
10 Correct 5 ms 3408 KB Output is correct
11 Correct 5 ms 3408 KB Output is correct
12 Correct 2 ms 1360 KB Output is correct
13 Correct 5 ms 3468 KB Output is correct
14 Correct 4 ms 3524 KB Output is correct
15 Correct 6 ms 3152 KB Output is correct
16 Correct 7 ms 3052 KB Output is correct
17 Correct 7 ms 3204 KB Output is correct
18 Correct 8 ms 3408 KB Output is correct
19 Correct 8 ms 3576 KB Output is correct
20 Correct 7 ms 3408 KB Output is correct
21 Correct 7 ms 3408 KB Output is correct
22 Correct 7 ms 3408 KB Output is correct
23 Correct 7 ms 3408 KB Output is correct
24 Correct 7 ms 3408 KB Output is correct
25 Correct 7 ms 3408 KB Output is correct
26 Correct 8 ms 3408 KB Output is correct
27 Correct 7 ms 3408 KB Output is correct
28 Correct 8 ms 3472 KB Output is correct
29 Correct 9 ms 3408 KB Output is correct
30 Correct 7 ms 3292 KB Output is correct
31 Correct 7 ms 3152 KB Output is correct
32 Correct 7 ms 3408 KB Output is correct
33 Correct 7 ms 3152 KB Output is correct
34 Correct 6 ms 3152 KB Output is correct
35 Correct 7 ms 3152 KB Output is correct
36 Correct 5 ms 3152 KB Output is correct
37 Correct 6 ms 3408 KB Output is correct
38 Correct 4 ms 3152 KB Output is correct
39 Correct 5 ms 3152 KB Output is correct
40 Correct 5 ms 3408 KB Output is correct
41 Correct 6 ms 3164 KB Output is correct
42 Correct 9 ms 3408 KB Output is correct
43 Correct 7 ms 3408 KB Output is correct
44 Correct 8 ms 3408 KB Output is correct
45 Correct 7 ms 3408 KB Output is correct
46 Correct 5 ms 3152 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 504 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 592 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 336 KB Output is correct
12 Correct 1 ms 336 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 624 KB Output is correct
16 Correct 2 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 492 KB Output is correct
19 Correct 1 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 460 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 2 ms 336 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 2 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 504 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 460 KB Output is correct
36 Correct 1 ms 504 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 456 KB Output is correct
43 Correct 1 ms 336 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 1 ms 504 KB Output is correct
46 Correct 1 ms 336 KB Output is correct
47 Correct 1 ms 592 KB Output is correct
48 Correct 1 ms 592 KB Output is correct
49 Correct 1 ms 592 KB Output is correct
50 Correct 1 ms 592 KB Output is correct
51 Correct 2 ms 592 KB Output is correct
52 Correct 1 ms 592 KB Output is correct
53 Correct 1 ms 592 KB Output is correct
54 Correct 1 ms 592 KB Output is correct
55 Correct 1 ms 592 KB Output is correct
56 Correct 1 ms 336 KB Output is correct
57 Correct 1 ms 592 KB Output is correct
58 Correct 1 ms 592 KB Output is correct
59 Correct 1 ms 592 KB Output is correct
60 Correct 1 ms 592 KB Output is correct
61 Correct 1 ms 592 KB Output is correct
62 Correct 2 ms 760 KB Output is correct
63 Correct 1 ms 592 KB Output is correct
64 Correct 1 ms 768 KB Output is correct
65 Correct 1 ms 760 KB Output is correct
66 Correct 1 ms 592 KB Output is correct
67 Correct 1 ms 592 KB Output is correct
68 Correct 1 ms 592 KB Output is correct
69 Correct 1 ms 592 KB Output is correct
70 Correct 2 ms 592 KB Output is correct
71 Correct 1 ms 736 KB Output is correct
72 Correct 1 ms 592 KB Output is correct
73 Correct 1 ms 592 KB Output is correct
74 Correct 2 ms 848 KB Output is correct
75 Correct 2 ms 592 KB Output is correct
76 Correct 1 ms 592 KB Output is correct
77 Correct 2 ms 592 KB Output is correct
78 Correct 1 ms 592 KB Output is correct
79 Correct 1 ms 592 KB Output is correct
80 Correct 1 ms 592 KB Output is correct
81 Correct 2 ms 592 KB Output is correct
82 Correct 1 ms 592 KB Output is correct
83 Correct 1 ms 592 KB Output is correct
84 Correct 2 ms 592 KB Output is correct
85 Correct 1 ms 592 KB Output is correct
86 Correct 2 ms 768 KB Output is correct
87 Correct 2 ms 592 KB Output is correct
88 Correct 1 ms 592 KB Output is correct
89 Correct 1 ms 592 KB Output is correct
90 Correct 2 ms 592 KB Output is correct
91 Correct 1 ms 336 KB Output is correct
92 Correct 8 ms 3408 KB Output is correct
93 Correct 10 ms 3408 KB Output is correct
94 Correct 2 ms 848 KB Output is correct
95 Correct 7 ms 3408 KB Output is correct
96 Correct 7 ms 3540 KB Output is correct
97 Correct 2 ms 1360 KB Output is correct
98 Correct 5 ms 3408 KB Output is correct
99 Correct 5 ms 3408 KB Output is correct
100 Correct 2 ms 1360 KB Output is correct
101 Correct 5 ms 3468 KB Output is correct
102 Correct 4 ms 3524 KB Output is correct
103 Correct 6 ms 3152 KB Output is correct
104 Correct 7 ms 3052 KB Output is correct
105 Correct 7 ms 3204 KB Output is correct
106 Correct 8 ms 3408 KB Output is correct
107 Correct 8 ms 3576 KB Output is correct
108 Correct 7 ms 3408 KB Output is correct
109 Correct 7 ms 3408 KB Output is correct
110 Correct 7 ms 3408 KB Output is correct
111 Correct 7 ms 3408 KB Output is correct
112 Correct 7 ms 3408 KB Output is correct
113 Correct 7 ms 3408 KB Output is correct
114 Correct 8 ms 3408 KB Output is correct
115 Correct 7 ms 3408 KB Output is correct
116 Correct 8 ms 3472 KB Output is correct
117 Correct 9 ms 3408 KB Output is correct
118 Correct 7 ms 3292 KB Output is correct
119 Correct 7 ms 3152 KB Output is correct
120 Correct 7 ms 3408 KB Output is correct
121 Correct 7 ms 3152 KB Output is correct
122 Correct 6 ms 3152 KB Output is correct
123 Correct 7 ms 3152 KB Output is correct
124 Correct 5 ms 3152 KB Output is correct
125 Correct 6 ms 3408 KB Output is correct
126 Correct 4 ms 3152 KB Output is correct
127 Correct 5 ms 3152 KB Output is correct
128 Correct 5 ms 3408 KB Output is correct
129 Correct 6 ms 3164 KB Output is correct
130 Correct 9 ms 3408 KB Output is correct
131 Correct 7 ms 3408 KB Output is correct
132 Correct 8 ms 3408 KB Output is correct
133 Correct 7 ms 3408 KB Output is correct
134 Correct 5 ms 3152 KB Output is correct
135 Correct 2 ms 1616 KB Output is correct
136 Correct 7 ms 4832 KB Output is correct
137 Correct 6 ms 4816 KB Output is correct
138 Correct 4 ms 1872 KB Output is correct
139 Correct 7 ms 4688 KB Output is correct
140 Correct 7 ms 4828 KB Output is correct
141 Correct 4 ms 2128 KB Output is correct
142 Correct 7 ms 4688 KB Output is correct
143 Correct 7 ms 4704 KB Output is correct
144 Correct 1 ms 592 KB Output is correct
145 Correct 7 ms 4696 KB Output is correct
146 Correct 6 ms 4688 KB Output is correct
147 Correct 9 ms 4600 KB Output is correct
148 Correct 11 ms 4432 KB Output is correct
149 Correct 11 ms 4176 KB Output is correct
150 Correct 9 ms 4940 KB Output is correct
151 Correct 9 ms 4688 KB Output is correct
152 Correct 9 ms 4900 KB Output is correct
153 Correct 9 ms 4844 KB Output is correct
154 Correct 9 ms 4688 KB Output is correct
155 Correct 9 ms 4688 KB Output is correct
156 Correct 8 ms 4808 KB Output is correct
157 Correct 9 ms 4688 KB Output is correct
158 Correct 9 ms 4688 KB Output is correct
159 Correct 9 ms 4688 KB Output is correct
160 Correct 9 ms 4688 KB Output is correct
161 Correct 9 ms 4688 KB Output is correct
162 Correct 8 ms 4432 KB Output is correct
163 Correct 8 ms 4432 KB Output is correct
164 Correct 8 ms 4688 KB Output is correct
165 Correct 8 ms 4176 KB Output is correct
166 Correct 8 ms 4432 KB Output is correct
167 Correct 8 ms 4296 KB Output is correct
168 Correct 5 ms 4432 KB Output is correct
169 Correct 6 ms 4312 KB Output is correct
170 Correct 6 ms 4432 KB Output is correct
171 Correct 6 ms 4432 KB Output is correct
172 Correct 6 ms 4176 KB Output is correct
173 Correct 6 ms 4432 KB Output is correct
174 Correct 9 ms 4688 KB Output is correct
175 Correct 9 ms 4808 KB Output is correct
176 Correct 9 ms 4824 KB Output is correct
177 Correct 9 ms 4712 KB Output is correct
178 Correct 5 ms 4176 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 504 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 592 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 336 KB Output is correct
12 Correct 1 ms 336 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 624 KB Output is correct
16 Correct 2 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 492 KB Output is correct
19 Correct 1 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 460 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 2 ms 336 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 2 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 504 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 460 KB Output is correct
36 Correct 1 ms 504 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 456 KB Output is correct
43 Correct 1 ms 336 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 1 ms 504 KB Output is correct
46 Correct 1 ms 336 KB Output is correct
47 Correct 1 ms 592 KB Output is correct
48 Correct 1 ms 592 KB Output is correct
49 Correct 1 ms 592 KB Output is correct
50 Correct 1 ms 592 KB Output is correct
51 Correct 2 ms 592 KB Output is correct
52 Correct 1 ms 592 KB Output is correct
53 Correct 1 ms 592 KB Output is correct
54 Correct 1 ms 592 KB Output is correct
55 Correct 1 ms 592 KB Output is correct
56 Correct 1 ms 336 KB Output is correct
57 Correct 1 ms 592 KB Output is correct
58 Correct 1 ms 592 KB Output is correct
59 Correct 1 ms 592 KB Output is correct
60 Correct 1 ms 592 KB Output is correct
61 Correct 1 ms 592 KB Output is correct
62 Correct 2 ms 760 KB Output is correct
63 Correct 1 ms 592 KB Output is correct
64 Correct 1 ms 768 KB Output is correct
65 Correct 1 ms 760 KB Output is correct
66 Correct 1 ms 592 KB Output is correct
67 Correct 1 ms 592 KB Output is correct
68 Correct 1 ms 592 KB Output is correct
69 Correct 1 ms 592 KB Output is correct
70 Correct 2 ms 592 KB Output is correct
71 Correct 1 ms 736 KB Output is correct
72 Correct 1 ms 592 KB Output is correct
73 Correct 1 ms 592 KB Output is correct
74 Correct 2 ms 848 KB Output is correct
75 Correct 2 ms 592 KB Output is correct
76 Correct 1 ms 592 KB Output is correct
77 Correct 2 ms 592 KB Output is correct
78 Correct 1 ms 592 KB Output is correct
79 Correct 1 ms 592 KB Output is correct
80 Correct 1 ms 592 KB Output is correct
81 Correct 2 ms 592 KB Output is correct
82 Correct 1 ms 592 KB Output is correct
83 Correct 1 ms 592 KB Output is correct
84 Correct 2 ms 592 KB Output is correct
85 Correct 1 ms 592 KB Output is correct
86 Correct 2 ms 768 KB Output is correct
87 Correct 2 ms 592 KB Output is correct
88 Correct 1 ms 592 KB Output is correct
89 Correct 1 ms 592 KB Output is correct
90 Correct 2 ms 592 KB Output is correct
91 Correct 1 ms 336 KB Output is correct
92 Correct 8 ms 3408 KB Output is correct
93 Correct 10 ms 3408 KB Output is correct
94 Correct 2 ms 848 KB Output is correct
95 Correct 7 ms 3408 KB Output is correct
96 Correct 7 ms 3540 KB Output is correct
97 Correct 2 ms 1360 KB Output is correct
98 Correct 5 ms 3408 KB Output is correct
99 Correct 5 ms 3408 KB Output is correct
100 Correct 2 ms 1360 KB Output is correct
101 Correct 5 ms 3468 KB Output is correct
102 Correct 4 ms 3524 KB Output is correct
103 Correct 6 ms 3152 KB Output is correct
104 Correct 7 ms 3052 KB Output is correct
105 Correct 7 ms 3204 KB Output is correct
106 Correct 8 ms 3408 KB Output is correct
107 Correct 8 ms 3576 KB Output is correct
108 Correct 7 ms 3408 KB Output is correct
109 Correct 7 ms 3408 KB Output is correct
110 Correct 7 ms 3408 KB Output is correct
111 Correct 7 ms 3408 KB Output is correct
112 Correct 7 ms 3408 KB Output is correct
113 Correct 7 ms 3408 KB Output is correct
114 Correct 8 ms 3408 KB Output is correct
115 Correct 7 ms 3408 KB Output is correct
116 Correct 8 ms 3472 KB Output is correct
117 Correct 9 ms 3408 KB Output is correct
118 Correct 7 ms 3292 KB Output is correct
119 Correct 7 ms 3152 KB Output is correct
120 Correct 7 ms 3408 KB Output is correct
121 Correct 7 ms 3152 KB Output is correct
122 Correct 6 ms 3152 KB Output is correct
123 Correct 7 ms 3152 KB Output is correct
124 Correct 5 ms 3152 KB Output is correct
125 Correct 6 ms 3408 KB Output is correct
126 Correct 4 ms 3152 KB Output is correct
127 Correct 5 ms 3152 KB Output is correct
128 Correct 5 ms 3408 KB Output is correct
129 Correct 6 ms 3164 KB Output is correct
130 Correct 9 ms 3408 KB Output is correct
131 Correct 7 ms 3408 KB Output is correct
132 Correct 8 ms 3408 KB Output is correct
133 Correct 7 ms 3408 KB Output is correct
134 Correct 5 ms 3152 KB Output is correct
135 Correct 2 ms 1616 KB Output is correct
136 Correct 7 ms 4832 KB Output is correct
137 Correct 6 ms 4816 KB Output is correct
138 Correct 4 ms 1872 KB Output is correct
139 Correct 7 ms 4688 KB Output is correct
140 Correct 7 ms 4828 KB Output is correct
141 Correct 4 ms 2128 KB Output is correct
142 Correct 7 ms 4688 KB Output is correct
143 Correct 7 ms 4704 KB Output is correct
144 Correct 1 ms 592 KB Output is correct
145 Correct 7 ms 4696 KB Output is correct
146 Correct 6 ms 4688 KB Output is correct
147 Correct 9 ms 4600 KB Output is correct
148 Correct 11 ms 4432 KB Output is correct
149 Correct 11 ms 4176 KB Output is correct
150 Correct 9 ms 4940 KB Output is correct
151 Correct 9 ms 4688 KB Output is correct
152 Correct 9 ms 4900 KB Output is correct
153 Correct 9 ms 4844 KB Output is correct
154 Correct 9 ms 4688 KB Output is correct
155 Correct 9 ms 4688 KB Output is correct
156 Correct 8 ms 4808 KB Output is correct
157 Correct 9 ms 4688 KB Output is correct
158 Correct 9 ms 4688 KB Output is correct
159 Correct 9 ms 4688 KB Output is correct
160 Correct 9 ms 4688 KB Output is correct
161 Correct 9 ms 4688 KB Output is correct
162 Correct 8 ms 4432 KB Output is correct
163 Correct 8 ms 4432 KB Output is correct
164 Correct 8 ms 4688 KB Output is correct
165 Correct 8 ms 4176 KB Output is correct
166 Correct 8 ms 4432 KB Output is correct
167 Correct 8 ms 4296 KB Output is correct
168 Correct 5 ms 4432 KB Output is correct
169 Correct 6 ms 4312 KB Output is correct
170 Correct 6 ms 4432 KB Output is correct
171 Correct 6 ms 4432 KB Output is correct
172 Correct 6 ms 4176 KB Output is correct
173 Correct 6 ms 4432 KB Output is correct
174 Correct 9 ms 4688 KB Output is correct
175 Correct 9 ms 4808 KB Output is correct
176 Correct 9 ms 4824 KB Output is correct
177 Correct 9 ms 4712 KB Output is correct
178 Correct 5 ms 4176 KB Output is correct
179 Correct 22 ms 19792 KB Output is correct
180 Correct 94 ms 75844 KB Output is correct
181 Correct 89 ms 75848 KB Output is correct
182 Correct 22 ms 20048 KB Output is correct
183 Correct 96 ms 75896 KB Output is correct
184 Correct 87 ms 75856 KB Output is correct
185 Correct 66 ms 55684 KB Output is correct
186 Correct 99 ms 75848 KB Output is correct
187 Correct 101 ms 75852 KB Output is correct
188 Correct 51 ms 39596 KB Output is correct
189 Correct 108 ms 75848 KB Output is correct
190 Correct 100 ms 75832 KB Output is correct
191 Correct 170 ms 64332 KB Output is correct
192 Correct 173 ms 69192 KB Output is correct
193 Correct 173 ms 67912 KB Output is correct
194 Correct 204 ms 75852 KB Output is correct
195 Correct 201 ms 75864 KB Output is correct
196 Correct 191 ms 75848 KB Output is correct
197 Correct 182 ms 75848 KB Output is correct
198 Correct 200 ms 75852 KB Output is correct
199 Correct 194 ms 75924 KB Output is correct
200 Correct 206 ms 75848 KB Output is correct
201 Correct 203 ms 75848 KB Output is correct
202 Correct 191 ms 75848 KB Output is correct
203 Correct 188 ms 75848 KB Output is correct
204 Correct 176 ms 75848 KB Output is correct
205 Correct 183 ms 75792 KB Output is correct
206 Correct 153 ms 66376 KB Output is correct
207 Correct 166 ms 66888 KB Output is correct
208 Correct 153 ms 63652 KB Output is correct
209 Correct 174 ms 67916 KB Output is correct
210 Correct 181 ms 67664 KB Output is correct
211 Correct 174 ms 71752 KB Output is correct
212 Correct 79 ms 65352 KB Output is correct
213 Correct 102 ms 68500 KB Output is correct
214 Correct 92 ms 64840 KB Output is correct
215 Correct 103 ms 69652 KB Output is correct
216 Correct 93 ms 63584 KB Output is correct
217 Correct 96 ms 64584 KB Output is correct
218 Correct 181 ms 75840 KB Output is correct
219 Correct 181 ms 75848 KB Output is correct
220 Correct 172 ms 75856 KB Output is correct
221 Correct 171 ms 75836 KB Output is correct
222 Correct 72 ms 63560 KB Output is correct