답안 #1088620

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1088620 2024-09-14T17:04:46 Z nikd Toy (CEOI24_toy) C++17
100 / 100
142 ms 50436 KB
#include <bits/stdc++.h>
using namespace std;

int w,h;
vector<vector<bool>> sol;
vector<string> grid;

inline bool isvalid(int i, int j){
    return i<h&&j<w&& i>=0 && j>= 0 && sol[i][j]==0 && grid[i][j]!='X';
}

int main(){
    cin >> w >> h;
    int K, L; cin >> K >> L;
    int xh, yh, xv, yv; cin >> xh >> yh >> xv >> yv;
    grid.resize(h);
    for(int i = 0; i<h; i++) cin >> grid[i];
    sol.resize(h, vector<bool>(w, 0));

    vector<vector<int>> l(h, vector<int>(w, -1));
    vector<vector<int>> r(h, vector<int>(w, -1));
    vector<vector<int>> t(h, vector<int>(w, -1));
    vector<vector<int>> b(h, vector<int>(w, -1));

    queue<pair<int, int>> q;
    int i_obj, j_obj;
    for(int i = 0; i<h; i++){
        for(int j = 0; j<w; j++){
            if(grid[i][j]=='*'){
                i_obj = i; j_obj = j;
            }
            else if(grid[i][j]=='X'){
                q.push({i, j});
                l[i][j]=0;
                r[i][j]=0;
                t[i][j]=0;
                b[i][j]=0;
                int i2 = i; int j2 = j;
                i2++;
                while(isvalid(i2, j2)){
                    t[i2][j2]=t[i2-1][j2]+1;
                    i2++;
                }
                i2 = i; i2--;
                while(isvalid(i2, j2)){
                    b[i2][j2]=b[i2+1][j2]+1;
                    i2--;
                }
                i2 = i; j2++;
                while(isvalid(i2, j2)){
                    l[i2][j2]=l[i2][j2-1]+1;
                    j2++;
                }
                j2 = j; j2--;
                while(isvalid(i2, j2)){
                    r[i2][j2]=r[i2][j2+1]+1;
                    j2--;
                }
                
            }
        }
    }

    
    for(int i = 0; i<h; i++){
        for(int j = 0; j<w; j++){
            if(t[i][j]==-1) t[i][j]=i+1;
            if(b[i][j]==-1) b[i][j]=h-i;
            if(l[i][j]==-1) l[i][j]=j+1;
            if(r[i][j]==-1) r[i][j]=w-j;

        }
    }


    int i_start = yh; int j_start = xv;
    sol[i_start][j_start]=1;

    q.push({i_start, j_start});

    while(!q.empty()){
        auto pr = q.front();
        int i_v = pr.first;
        int j_v = pr.second;
        q.pop();
        if(isvalid(i_v+1, j_v)){
            int l_1 = min(l[i_v][j_v], l[i_v+1][j_v]);
            int r_1 = min(r[i_v][j_v], r[i_v+1][j_v]);
            if(r_1+l_1-1>=K){
                sol[i_v+1][j_v]=1;
                q.push({i_v+1, j_v});
            }
        }
        if(isvalid(i_v-1, j_v)){
            int l_1 = min(l[i_v][j_v], l[i_v-1][j_v]);
            int r_1 = min(r[i_v][j_v], r[i_v-1][j_v]);
            if(r_1+l_1-1>=K){
                sol[i_v-1][j_v]=1;
                q.push({i_v-1, j_v});
            }
        }
        if(isvalid(i_v, j_v+1)){
            int t_1 = min(t[i_v][j_v+1], t[i_v][j_v]);
            int b_1 = min(b[i_v][j_v+1], b[i_v][j_v]);
            if(b_1+t_1-1>=L){
                sol[i_v][j_v+1]=1;
                q.push({i_v, j_v+1});
            }
        }
        if(isvalid(i_v, j_v-1)){
            int t_1 = min(t[i_v][j_v-1], t[i_v][j_v]);
            int b_1 = min(b[i_v][j_v-1], b[i_v][j_v]);
            if(b_1+t_1-1>=L){
                sol[i_v][j_v-1]=1;
                q.push({i_v, j_v-1});
            }
        }
    }

    if(sol[i_obj][j_obj]) cout << "YES\n";
    else cout << "NO\n";
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:120:17: warning: 'i_obj' may be used uninitialized in this function [-Wmaybe-uninitialized]
  120 |     if(sol[i_obj][j_obj]) cout << "YES\n";
      |                 ^
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 432 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 1 ms 436 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 436 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 440 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 1 ms 432 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 432 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 1 ms 436 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 436 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 440 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 1 ms 432 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 1 ms 600 KB Output is correct
49 Correct 1 ms 600 KB Output is correct
50 Correct 1 ms 348 KB Output is correct
51 Correct 1 ms 604 KB Output is correct
52 Correct 0 ms 604 KB Output is correct
53 Correct 1 ms 440 KB Output is correct
54 Correct 1 ms 600 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 1 ms 600 KB Output is correct
58 Correct 1 ms 604 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 1 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 600 KB Output is correct
66 Correct 1 ms 604 KB Output is correct
67 Correct 1 ms 604 KB Output is correct
68 Correct 1 ms 604 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 1 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 348 KB Output is correct
75 Correct 1 ms 348 KB Output is correct
76 Correct 1 ms 604 KB Output is correct
77 Correct 1 ms 348 KB Output is correct
78 Correct 1 ms 604 KB Output is correct
79 Correct 1 ms 348 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 1 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 604 KB Output is correct
89 Correct 1 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 4 ms 2160 KB Output is correct
5 Correct 4 ms 2140 KB Output is correct
6 Correct 1 ms 444 KB Output is correct
7 Correct 5 ms 2140 KB Output is correct
8 Correct 7 ms 1984 KB Output is correct
9 Correct 2 ms 860 KB Output is correct
10 Correct 4 ms 2140 KB Output is correct
11 Correct 4 ms 2140 KB Output is correct
12 Correct 3 ms 1116 KB Output is correct
13 Correct 6 ms 2396 KB Output is correct
14 Correct 6 ms 2396 KB Output is correct
15 Correct 4 ms 1884 KB Output is correct
16 Correct 4 ms 1884 KB Output is correct
17 Correct 4 ms 1884 KB Output is correct
18 Correct 4 ms 2140 KB Output is correct
19 Correct 4 ms 2140 KB Output is correct
20 Correct 4 ms 1988 KB Output is correct
21 Correct 4 ms 2160 KB Output is correct
22 Correct 4 ms 2168 KB Output is correct
23 Correct 4 ms 2140 KB Output is correct
24 Correct 4 ms 2140 KB Output is correct
25 Correct 5 ms 2140 KB Output is correct
26 Correct 4 ms 2136 KB Output is correct
27 Correct 4 ms 2140 KB Output is correct
28 Correct 6 ms 1984 KB Output is correct
29 Correct 4 ms 2140 KB Output is correct
30 Correct 4 ms 2052 KB Output is correct
31 Correct 4 ms 1880 KB Output is correct
32 Correct 6 ms 1884 KB Output is correct
33 Correct 4 ms 2140 KB Output is correct
34 Correct 3 ms 1884 KB Output is correct
35 Correct 4 ms 2024 KB Output is correct
36 Correct 4 ms 2140 KB Output is correct
37 Correct 3 ms 1884 KB Output is correct
38 Correct 3 ms 1884 KB Output is correct
39 Correct 3 ms 1984 KB Output is correct
40 Correct 3 ms 1884 KB Output is correct
41 Correct 3 ms 1880 KB Output is correct
42 Correct 3 ms 2140 KB Output is correct
43 Correct 5 ms 2140 KB Output is correct
44 Correct 6 ms 2172 KB Output is correct
45 Correct 3 ms 2100 KB Output is correct
46 Correct 5 ms 2652 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 432 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 1 ms 436 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 436 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 440 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 1 ms 432 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 1 ms 600 KB Output is correct
49 Correct 1 ms 600 KB Output is correct
50 Correct 1 ms 348 KB Output is correct
51 Correct 1 ms 604 KB Output is correct
52 Correct 0 ms 604 KB Output is correct
53 Correct 1 ms 440 KB Output is correct
54 Correct 1 ms 600 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 1 ms 600 KB Output is correct
58 Correct 1 ms 604 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 1 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 600 KB Output is correct
66 Correct 1 ms 604 KB Output is correct
67 Correct 1 ms 604 KB Output is correct
68 Correct 1 ms 604 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 1 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 348 KB Output is correct
75 Correct 1 ms 348 KB Output is correct
76 Correct 1 ms 604 KB Output is correct
77 Correct 1 ms 348 KB Output is correct
78 Correct 1 ms 604 KB Output is correct
79 Correct 1 ms 348 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 1 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 604 KB Output is correct
89 Correct 1 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 4 ms 2160 KB Output is correct
93 Correct 4 ms 2140 KB Output is correct
94 Correct 1 ms 444 KB Output is correct
95 Correct 5 ms 2140 KB Output is correct
96 Correct 7 ms 1984 KB Output is correct
97 Correct 2 ms 860 KB Output is correct
98 Correct 4 ms 2140 KB Output is correct
99 Correct 4 ms 2140 KB Output is correct
100 Correct 3 ms 1116 KB Output is correct
101 Correct 6 ms 2396 KB Output is correct
102 Correct 6 ms 2396 KB Output is correct
103 Correct 4 ms 1884 KB Output is correct
104 Correct 4 ms 1884 KB Output is correct
105 Correct 4 ms 1884 KB Output is correct
106 Correct 4 ms 2140 KB Output is correct
107 Correct 4 ms 2140 KB Output is correct
108 Correct 4 ms 1988 KB Output is correct
109 Correct 4 ms 2160 KB Output is correct
110 Correct 4 ms 2168 KB Output is correct
111 Correct 4 ms 2140 KB Output is correct
112 Correct 4 ms 2140 KB Output is correct
113 Correct 5 ms 2140 KB Output is correct
114 Correct 4 ms 2136 KB Output is correct
115 Correct 4 ms 2140 KB Output is correct
116 Correct 6 ms 1984 KB Output is correct
117 Correct 4 ms 2140 KB Output is correct
118 Correct 4 ms 2052 KB Output is correct
119 Correct 4 ms 1880 KB Output is correct
120 Correct 6 ms 1884 KB Output is correct
121 Correct 4 ms 2140 KB Output is correct
122 Correct 3 ms 1884 KB Output is correct
123 Correct 4 ms 2024 KB Output is correct
124 Correct 4 ms 2140 KB Output is correct
125 Correct 3 ms 1884 KB Output is correct
126 Correct 3 ms 1884 KB Output is correct
127 Correct 3 ms 1984 KB Output is correct
128 Correct 3 ms 1884 KB Output is correct
129 Correct 3 ms 1880 KB Output is correct
130 Correct 3 ms 2140 KB Output is correct
131 Correct 5 ms 2140 KB Output is correct
132 Correct 6 ms 2172 KB Output is correct
133 Correct 3 ms 2100 KB Output is correct
134 Correct 5 ms 2652 KB Output is correct
135 Correct 1 ms 1116 KB Output is correct
136 Correct 4 ms 2756 KB Output is correct
137 Correct 6 ms 2648 KB Output is correct
138 Correct 2 ms 1212 KB Output is correct
139 Correct 5 ms 2652 KB Output is correct
140 Correct 5 ms 2816 KB Output is correct
141 Correct 3 ms 1368 KB Output is correct
142 Correct 6 ms 2908 KB Output is correct
143 Correct 5 ms 2968 KB Output is correct
144 Correct 1 ms 348 KB Output is correct
145 Correct 9 ms 3164 KB Output is correct
146 Correct 8 ms 3164 KB Output is correct
147 Correct 5 ms 2636 KB Output is correct
148 Correct 5 ms 2652 KB Output is correct
149 Correct 6 ms 2508 KB Output is correct
150 Correct 5 ms 2876 KB Output is correct
151 Correct 5 ms 2752 KB Output is correct
152 Correct 5 ms 2652 KB Output is correct
153 Correct 6 ms 2652 KB Output is correct
154 Correct 5 ms 2876 KB Output is correct
155 Correct 6 ms 2868 KB Output is correct
156 Correct 5 ms 2652 KB Output is correct
157 Correct 8 ms 2880 KB Output is correct
158 Correct 5 ms 2752 KB Output is correct
159 Correct 5 ms 2652 KB Output is correct
160 Correct 6 ms 2652 KB Output is correct
161 Correct 6 ms 2652 KB Output is correct
162 Correct 5 ms 2652 KB Output is correct
163 Correct 5 ms 2396 KB Output is correct
164 Correct 6 ms 2652 KB Output is correct
165 Correct 5 ms 2396 KB Output is correct
166 Correct 5 ms 2628 KB Output is correct
167 Correct 5 ms 2396 KB Output is correct
168 Correct 4 ms 2936 KB Output is correct
169 Correct 4 ms 2652 KB Output is correct
170 Correct 5 ms 2652 KB Output is correct
171 Correct 4 ms 2396 KB Output is correct
172 Correct 4 ms 2396 KB Output is correct
173 Correct 4 ms 2628 KB Output is correct
174 Correct 5 ms 2648 KB Output is correct
175 Correct 5 ms 2868 KB Output is correct
176 Correct 5 ms 2652 KB Output is correct
177 Correct 5 ms 2748 KB Output is correct
178 Correct 6 ms 3420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 432 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 1 ms 436 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 436 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 440 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 1 ms 432 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 1 ms 600 KB Output is correct
49 Correct 1 ms 600 KB Output is correct
50 Correct 1 ms 348 KB Output is correct
51 Correct 1 ms 604 KB Output is correct
52 Correct 0 ms 604 KB Output is correct
53 Correct 1 ms 440 KB Output is correct
54 Correct 1 ms 600 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 1 ms 600 KB Output is correct
58 Correct 1 ms 604 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 1 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 600 KB Output is correct
66 Correct 1 ms 604 KB Output is correct
67 Correct 1 ms 604 KB Output is correct
68 Correct 1 ms 604 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 1 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 348 KB Output is correct
75 Correct 1 ms 348 KB Output is correct
76 Correct 1 ms 604 KB Output is correct
77 Correct 1 ms 348 KB Output is correct
78 Correct 1 ms 604 KB Output is correct
79 Correct 1 ms 348 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 1 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 604 KB Output is correct
89 Correct 1 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 4 ms 2160 KB Output is correct
93 Correct 4 ms 2140 KB Output is correct
94 Correct 1 ms 444 KB Output is correct
95 Correct 5 ms 2140 KB Output is correct
96 Correct 7 ms 1984 KB Output is correct
97 Correct 2 ms 860 KB Output is correct
98 Correct 4 ms 2140 KB Output is correct
99 Correct 4 ms 2140 KB Output is correct
100 Correct 3 ms 1116 KB Output is correct
101 Correct 6 ms 2396 KB Output is correct
102 Correct 6 ms 2396 KB Output is correct
103 Correct 4 ms 1884 KB Output is correct
104 Correct 4 ms 1884 KB Output is correct
105 Correct 4 ms 1884 KB Output is correct
106 Correct 4 ms 2140 KB Output is correct
107 Correct 4 ms 2140 KB Output is correct
108 Correct 4 ms 1988 KB Output is correct
109 Correct 4 ms 2160 KB Output is correct
110 Correct 4 ms 2168 KB Output is correct
111 Correct 4 ms 2140 KB Output is correct
112 Correct 4 ms 2140 KB Output is correct
113 Correct 5 ms 2140 KB Output is correct
114 Correct 4 ms 2136 KB Output is correct
115 Correct 4 ms 2140 KB Output is correct
116 Correct 6 ms 1984 KB Output is correct
117 Correct 4 ms 2140 KB Output is correct
118 Correct 4 ms 2052 KB Output is correct
119 Correct 4 ms 1880 KB Output is correct
120 Correct 6 ms 1884 KB Output is correct
121 Correct 4 ms 2140 KB Output is correct
122 Correct 3 ms 1884 KB Output is correct
123 Correct 4 ms 2024 KB Output is correct
124 Correct 4 ms 2140 KB Output is correct
125 Correct 3 ms 1884 KB Output is correct
126 Correct 3 ms 1884 KB Output is correct
127 Correct 3 ms 1984 KB Output is correct
128 Correct 3 ms 1884 KB Output is correct
129 Correct 3 ms 1880 KB Output is correct
130 Correct 3 ms 2140 KB Output is correct
131 Correct 5 ms 2140 KB Output is correct
132 Correct 6 ms 2172 KB Output is correct
133 Correct 3 ms 2100 KB Output is correct
134 Correct 5 ms 2652 KB Output is correct
135 Correct 1 ms 1116 KB Output is correct
136 Correct 4 ms 2756 KB Output is correct
137 Correct 6 ms 2648 KB Output is correct
138 Correct 2 ms 1212 KB Output is correct
139 Correct 5 ms 2652 KB Output is correct
140 Correct 5 ms 2816 KB Output is correct
141 Correct 3 ms 1368 KB Output is correct
142 Correct 6 ms 2908 KB Output is correct
143 Correct 5 ms 2968 KB Output is correct
144 Correct 1 ms 348 KB Output is correct
145 Correct 9 ms 3164 KB Output is correct
146 Correct 8 ms 3164 KB Output is correct
147 Correct 5 ms 2636 KB Output is correct
148 Correct 5 ms 2652 KB Output is correct
149 Correct 6 ms 2508 KB Output is correct
150 Correct 5 ms 2876 KB Output is correct
151 Correct 5 ms 2752 KB Output is correct
152 Correct 5 ms 2652 KB Output is correct
153 Correct 6 ms 2652 KB Output is correct
154 Correct 5 ms 2876 KB Output is correct
155 Correct 6 ms 2868 KB Output is correct
156 Correct 5 ms 2652 KB Output is correct
157 Correct 8 ms 2880 KB Output is correct
158 Correct 5 ms 2752 KB Output is correct
159 Correct 5 ms 2652 KB Output is correct
160 Correct 6 ms 2652 KB Output is correct
161 Correct 6 ms 2652 KB Output is correct
162 Correct 5 ms 2652 KB Output is correct
163 Correct 5 ms 2396 KB Output is correct
164 Correct 6 ms 2652 KB Output is correct
165 Correct 5 ms 2396 KB Output is correct
166 Correct 5 ms 2628 KB Output is correct
167 Correct 5 ms 2396 KB Output is correct
168 Correct 4 ms 2936 KB Output is correct
169 Correct 4 ms 2652 KB Output is correct
170 Correct 5 ms 2652 KB Output is correct
171 Correct 4 ms 2396 KB Output is correct
172 Correct 4 ms 2396 KB Output is correct
173 Correct 4 ms 2628 KB Output is correct
174 Correct 5 ms 2648 KB Output is correct
175 Correct 5 ms 2868 KB Output is correct
176 Correct 5 ms 2652 KB Output is correct
177 Correct 5 ms 2748 KB Output is correct
178 Correct 6 ms 3420 KB Output is correct
179 Correct 19 ms 11144 KB Output is correct
180 Correct 67 ms 41300 KB Output is correct
181 Correct 71 ms 41296 KB Output is correct
182 Correct 20 ms 11352 KB Output is correct
183 Correct 82 ms 41300 KB Output is correct
184 Correct 100 ms 41296 KB Output is correct
185 Correct 67 ms 32080 KB Output is correct
186 Correct 93 ms 43088 KB Output is correct
187 Correct 83 ms 43092 KB Output is correct
188 Correct 66 ms 26196 KB Output is correct
189 Correct 133 ms 48620 KB Output is correct
190 Correct 142 ms 48636 KB Output is correct
191 Correct 79 ms 35152 KB Output is correct
192 Correct 85 ms 37848 KB Output is correct
193 Correct 83 ms 37060 KB Output is correct
194 Correct 99 ms 41328 KB Output is correct
195 Correct 99 ms 41296 KB Output is correct
196 Correct 95 ms 41328 KB Output is correct
197 Correct 95 ms 41336 KB Output is correct
198 Correct 102 ms 41328 KB Output is correct
199 Correct 99 ms 41332 KB Output is correct
200 Correct 99 ms 41240 KB Output is correct
201 Correct 119 ms 41300 KB Output is correct
202 Correct 96 ms 41296 KB Output is correct
203 Correct 96 ms 41296 KB Output is correct
204 Correct 98 ms 41296 KB Output is correct
205 Correct 111 ms 41124 KB Output is correct
206 Correct 81 ms 36492 KB Output is correct
207 Correct 81 ms 36460 KB Output is correct
208 Correct 80 ms 34896 KB Output is correct
209 Correct 85 ms 36996 KB Output is correct
210 Correct 85 ms 36948 KB Output is correct
211 Correct 88 ms 39168 KB Output is correct
212 Correct 80 ms 39704 KB Output is correct
213 Correct 64 ms 37108 KB Output is correct
214 Correct 82 ms 35408 KB Output is correct
215 Correct 78 ms 37968 KB Output is correct
216 Correct 63 ms 34644 KB Output is correct
217 Correct 61 ms 35408 KB Output is correct
218 Correct 100 ms 41228 KB Output is correct
219 Correct 95 ms 41140 KB Output is correct
220 Correct 95 ms 41316 KB Output is correct
221 Correct 103 ms 41316 KB Output is correct
222 Correct 86 ms 50436 KB Output is correct