# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1039633 | 2024-07-31T06:20:27 Z | 김은성(#10990) | Toy (CEOI24_toy) | C++17 | 133 ms | 40412 KB |
#include <bits/stdc++.h> using namespace std; char s[1509][1509]; int h, w, fr, fc, u[1509][1509], l[1509][1509], r[1509][1509], d[1509][1509]; bool ch[1509][1509]; bool right_adj(int sr, int sc){ if(sc <= 0 || sc >=w) return 0; return min(d[sr][sc], d[sr][sc+1]) - max(u[sr][sc], u[sr][sc+1]) >= fr+1; } bool down_adj(int sr, int sc){ if(sr<=0 || sr>=h) return 0; return min(r[sr][sc], r[sr+1][sc]) - max(l[sr][sc], l[sr+1][sc]) >= fc+1; } int main(){ int dh, dc, trash, sr, sc, i, j, FR, FC; scanf("%d %d %d %d", &w, &h, &fc, &fr); scanf("%d %d %d %d", &trash, &sr, &sc, &trash); queue<pair<int, int> > qa; for(i=1; i<=h; i++) scanf(" %s", s[i] + 1); sr++; sc++; for(i=1; i<=h; i++){ for(j=1; j<=w; j++){ if(s[i][j] == '*'){ FR = i; FC = j; } } } for(i=1; i<=h; i++) l[i][0] = 0; for(j=1; j<=w; j++) u[0][j] = 0; for(i=1; i<=h; i++){ for(j=1; j<=w; j++){ u[i][j] = (s[i][j] == 'X' ? i : u[i-1][j]); l[i][j] = (s[i][j] == 'X' ? j : l[i][j-1]); } } for(i=1; i<=h; i++) r[i][w+1] = w+1; for(j=1; j<=w; j++) d[h+1][j] = h+1; for(i=h; i>=1; i--){ for(j=w; j>=1; j--){ r[i][j] = (s[i][j] == 'X' ? j : r[i][j+1]); d[i][j] = (s[i][j] == 'X' ? i : d[i+1][j]); } } qa.push(make_pair(sr, sc)); ch[sr][sc] = 1; while(!qa.empty()){ sr = qa.front().first; sc = qa.front().second; // printf("sr=%d sc=%d\n", sr, sc); if(right_adj(sr, sc-1)){ if(!ch[sr][sc-1]){ ch[sr][sc-1] = 1; qa.push(make_pair(sr, sc-1)); } } if(right_adj(sr, sc)){ if(!ch[sr][sc+1]){ ch[sr][sc+1] = 1; qa.push(make_pair(sr, sc+1)); } } if(down_adj(sr-1, sc)){ if(!ch[sr-1][sc]){ ch[sr-1][sc] = 1; qa.push(make_pair(sr-1, sc)); } } if(down_adj(sr, sc)){ if(!ch[sr+1][sc]){ ch[sr+1][sc] = 1; qa.push(make_pair(sr+1, sc)); } } qa.pop(); } printf("%s\n", ch[FR][FC] ? "YES" : "NO"); return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2396 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2396 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 604 KB | Output is correct |
4 | Correct | 0 ms | 1372 KB | Output is correct |
5 | Correct | 1 ms | 1372 KB | Output is correct |
6 | Correct | 1 ms | 1116 KB | Output is correct |
7 | Correct | 0 ms | 1372 KB | Output is correct |
8 | Correct | 1 ms | 1372 KB | Output is correct |
9 | Correct | 0 ms | 860 KB | Output is correct |
10 | Correct | 0 ms | 1372 KB | Output is correct |
11 | Correct | 1 ms | 1372 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 1 ms | 1372 KB | Output is correct |
14 | Correct | 1 ms | 3164 KB | Output is correct |
15 | Correct | 1 ms | 1372 KB | Output is correct |
16 | Correct | 1 ms | 1248 KB | Output is correct |
17 | Correct | 1 ms | 1372 KB | Output is correct |
18 | Correct | 1 ms | 1364 KB | Output is correct |
19 | Correct | 1 ms | 1372 KB | Output is correct |
20 | Correct | 1 ms | 1372 KB | Output is correct |
21 | Correct | 1 ms | 1372 KB | Output is correct |
22 | Correct | 1 ms | 1372 KB | Output is correct |
23 | Correct | 1 ms | 1372 KB | Output is correct |
24 | Correct | 1 ms | 1372 KB | Output is correct |
25 | Correct | 1 ms | 1372 KB | Output is correct |
26 | Correct | 1 ms | 1372 KB | Output is correct |
27 | Correct | 1 ms | 1372 KB | Output is correct |
28 | Correct | 1 ms | 1372 KB | Output is correct |
29 | Correct | 1 ms | 1372 KB | Output is correct |
30 | Correct | 1 ms | 1372 KB | Output is correct |
31 | Correct | 1 ms | 3164 KB | Output is correct |
32 | Correct | 1 ms | 1372 KB | Output is correct |
33 | Correct | 1 ms | 1372 KB | Output is correct |
34 | Correct | 1 ms | 1372 KB | Output is correct |
35 | Correct | 1 ms | 1368 KB | Output is correct |
36 | Correct | 0 ms | 1116 KB | Output is correct |
37 | Correct | 1 ms | 1116 KB | Output is correct |
38 | Correct | 1 ms | 1372 KB | Output is correct |
39 | Correct | 1 ms | 1372 KB | Output is correct |
40 | Correct | 1 ms | 1372 KB | Output is correct |
41 | Correct | 1 ms | 1368 KB | Output is correct |
42 | Correct | 1 ms | 1372 KB | Output is correct |
43 | Correct | 1 ms | 1372 KB | Output is correct |
44 | Correct | 1 ms | 3420 KB | Output is correct |
45 | Correct | 1 ms | 3248 KB | Output is correct |
46 | Correct | 1 ms | 1116 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2396 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 604 KB | Output is correct |
4 | Correct | 0 ms | 1372 KB | Output is correct |
5 | Correct | 1 ms | 1372 KB | Output is correct |
6 | Correct | 1 ms | 1116 KB | Output is correct |
7 | Correct | 0 ms | 1372 KB | Output is correct |
8 | Correct | 1 ms | 1372 KB | Output is correct |
9 | Correct | 0 ms | 860 KB | Output is correct |
10 | Correct | 0 ms | 1372 KB | Output is correct |
11 | Correct | 1 ms | 1372 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 1 ms | 1372 KB | Output is correct |
14 | Correct | 1 ms | 3164 KB | Output is correct |
15 | Correct | 1 ms | 1372 KB | Output is correct |
16 | Correct | 1 ms | 1248 KB | Output is correct |
17 | Correct | 1 ms | 1372 KB | Output is correct |
18 | Correct | 1 ms | 1364 KB | Output is correct |
19 | Correct | 1 ms | 1372 KB | Output is correct |
20 | Correct | 1 ms | 1372 KB | Output is correct |
21 | Correct | 1 ms | 1372 KB | Output is correct |
22 | Correct | 1 ms | 1372 KB | Output is correct |
23 | Correct | 1 ms | 1372 KB | Output is correct |
24 | Correct | 1 ms | 1372 KB | Output is correct |
25 | Correct | 1 ms | 1372 KB | Output is correct |
26 | Correct | 1 ms | 1372 KB | Output is correct |
27 | Correct | 1 ms | 1372 KB | Output is correct |
28 | Correct | 1 ms | 1372 KB | Output is correct |
29 | Correct | 1 ms | 1372 KB | Output is correct |
30 | Correct | 1 ms | 1372 KB | Output is correct |
31 | Correct | 1 ms | 3164 KB | Output is correct |
32 | Correct | 1 ms | 1372 KB | Output is correct |
33 | Correct | 1 ms | 1372 KB | Output is correct |
34 | Correct | 1 ms | 1372 KB | Output is correct |
35 | Correct | 1 ms | 1368 KB | Output is correct |
36 | Correct | 0 ms | 1116 KB | Output is correct |
37 | Correct | 1 ms | 1116 KB | Output is correct |
38 | Correct | 1 ms | 1372 KB | Output is correct |
39 | Correct | 1 ms | 1372 KB | Output is correct |
40 | Correct | 1 ms | 1372 KB | Output is correct |
41 | Correct | 1 ms | 1368 KB | Output is correct |
42 | Correct | 1 ms | 1372 KB | Output is correct |
43 | Correct | 1 ms | 1372 KB | Output is correct |
44 | Correct | 1 ms | 3420 KB | Output is correct |
45 | Correct | 1 ms | 3248 KB | Output is correct |
46 | Correct | 1 ms | 1116 KB | Output is correct |
47 | Correct | 1 ms | 856 KB | Output is correct |
48 | Correct | 1 ms | 2140 KB | Output is correct |
49 | Correct | 1 ms | 2140 KB | Output is correct |
50 | Correct | 1 ms | 4184 KB | Output is correct |
51 | Correct | 1 ms | 3932 KB | Output is correct |
52 | Correct | 1 ms | 2140 KB | Output is correct |
53 | Correct | 0 ms | 1372 KB | Output is correct |
54 | Correct | 1 ms | 2140 KB | Output is correct |
55 | Correct | 1 ms | 2140 KB | Output is correct |
56 | Correct | 1 ms | 1884 KB | Output is correct |
57 | Correct | 1 ms | 3932 KB | Output is correct |
58 | Correct | 1 ms | 2140 KB | Output is correct |
59 | Correct | 1 ms | 2140 KB | Output is correct |
60 | Correct | 1 ms | 3944 KB | Output is correct |
61 | Correct | 1 ms | 2140 KB | Output is correct |
62 | Correct | 1 ms | 2140 KB | Output is correct |
63 | Correct | 1 ms | 2140 KB | Output is correct |
64 | Correct | 1 ms | 2140 KB | Output is correct |
65 | Correct | 1 ms | 2140 KB | Output is correct |
66 | Correct | 1 ms | 2140 KB | Output is correct |
67 | Correct | 1 ms | 2140 KB | Output is correct |
68 | Correct | 1 ms | 2140 KB | Output is correct |
69 | Correct | 1 ms | 2200 KB | Output is correct |
70 | Correct | 1 ms | 2136 KB | Output is correct |
71 | Correct | 1 ms | 2140 KB | Output is correct |
72 | Correct | 1 ms | 2140 KB | Output is correct |
73 | Correct | 2 ms | 2140 KB | Output is correct |
74 | Correct | 1 ms | 2136 KB | Output is correct |
75 | Correct | 1 ms | 2140 KB | Output is correct |
76 | Correct | 1 ms | 2140 KB | Output is correct |
77 | Correct | 1 ms | 2140 KB | Output is correct |
78 | Correct | 1 ms | 2140 KB | Output is correct |
79 | Correct | 1 ms | 2140 KB | Output is correct |
80 | Correct | 1 ms | 2140 KB | Output is correct |
81 | Correct | 1 ms | 1884 KB | Output is correct |
82 | Correct | 1 ms | 2140 KB | Output is correct |
83 | Correct | 1 ms | 1880 KB | Output is correct |
84 | Correct | 1 ms | 2136 KB | Output is correct |
85 | Correct | 1 ms | 2140 KB | Output is correct |
86 | Correct | 1 ms | 2140 KB | Output is correct |
87 | Correct | 1 ms | 2140 KB | Output is correct |
88 | Correct | 1 ms | 2140 KB | Output is correct |
89 | Correct | 1 ms | 2140 KB | Output is correct |
90 | Correct | 1 ms | 3932 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2396 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 860 KB | Output is correct |
4 | Correct | 5 ms | 7336 KB | Output is correct |
5 | Correct | 7 ms | 7516 KB | Output is correct |
6 | Correct | 1 ms | 3676 KB | Output is correct |
7 | Correct | 7 ms | 7516 KB | Output is correct |
8 | Correct | 5 ms | 7516 KB | Output is correct |
9 | Correct | 1 ms | 4700 KB | Output is correct |
10 | Correct | 3 ms | 7004 KB | Output is correct |
11 | Correct | 3 ms | 7004 KB | Output is correct |
12 | Correct | 2 ms | 5212 KB | Output is correct |
13 | Correct | 3 ms | 6988 KB | Output is correct |
14 | Correct | 5 ms | 7000 KB | Output is correct |
15 | Correct | 5 ms | 7256 KB | Output is correct |
16 | Correct | 5 ms | 8536 KB | Output is correct |
17 | Correct | 5 ms | 8792 KB | Output is correct |
18 | Correct | 5 ms | 7516 KB | Output is correct |
19 | Correct | 6 ms | 8996 KB | Output is correct |
20 | Correct | 7 ms | 9052 KB | Output is correct |
21 | Correct | 5 ms | 9052 KB | Output is correct |
22 | Correct | 5 ms | 9052 KB | Output is correct |
23 | Correct | 7 ms | 9052 KB | Output is correct |
24 | Correct | 5 ms | 9052 KB | Output is correct |
25 | Correct | 5 ms | 8984 KB | Output is correct |
26 | Correct | 5 ms | 9052 KB | Output is correct |
27 | Correct | 4 ms | 9052 KB | Output is correct |
28 | Correct | 5 ms | 9144 KB | Output is correct |
29 | Correct | 5 ms | 9052 KB | Output is correct |
30 | Correct | 4 ms | 8796 KB | Output is correct |
31 | Correct | 5 ms | 8796 KB | Output is correct |
32 | Correct | 6 ms | 9052 KB | Output is correct |
33 | Correct | 5 ms | 8540 KB | Output is correct |
34 | Correct | 4 ms | 8540 KB | Output is correct |
35 | Correct | 4 ms | 8540 KB | Output is correct |
36 | Correct | 3 ms | 8284 KB | Output is correct |
37 | Correct | 4 ms | 8796 KB | Output is correct |
38 | Correct | 4 ms | 8796 KB | Output is correct |
39 | Correct | 3 ms | 8540 KB | Output is correct |
40 | Correct | 3 ms | 8796 KB | Output is correct |
41 | Correct | 4 ms | 8796 KB | Output is correct |
42 | Correct | 5 ms | 9052 KB | Output is correct |
43 | Correct | 5 ms | 9052 KB | Output is correct |
44 | Correct | 5 ms | 9048 KB | Output is correct |
45 | Correct | 5 ms | 9048 KB | Output is correct |
46 | Correct | 3 ms | 8280 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2396 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 604 KB | Output is correct |
4 | Correct | 0 ms | 1372 KB | Output is correct |
5 | Correct | 1 ms | 1372 KB | Output is correct |
6 | Correct | 1 ms | 1116 KB | Output is correct |
7 | Correct | 0 ms | 1372 KB | Output is correct |
8 | Correct | 1 ms | 1372 KB | Output is correct |
9 | Correct | 0 ms | 860 KB | Output is correct |
10 | Correct | 0 ms | 1372 KB | Output is correct |
11 | Correct | 1 ms | 1372 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 1 ms | 1372 KB | Output is correct |
14 | Correct | 1 ms | 3164 KB | Output is correct |
15 | Correct | 1 ms | 1372 KB | Output is correct |
16 | Correct | 1 ms | 1248 KB | Output is correct |
17 | Correct | 1 ms | 1372 KB | Output is correct |
18 | Correct | 1 ms | 1364 KB | Output is correct |
19 | Correct | 1 ms | 1372 KB | Output is correct |
20 | Correct | 1 ms | 1372 KB | Output is correct |
21 | Correct | 1 ms | 1372 KB | Output is correct |
22 | Correct | 1 ms | 1372 KB | Output is correct |
23 | Correct | 1 ms | 1372 KB | Output is correct |
24 | Correct | 1 ms | 1372 KB | Output is correct |
25 | Correct | 1 ms | 1372 KB | Output is correct |
26 | Correct | 1 ms | 1372 KB | Output is correct |
27 | Correct | 1 ms | 1372 KB | Output is correct |
28 | Correct | 1 ms | 1372 KB | Output is correct |
29 | Correct | 1 ms | 1372 KB | Output is correct |
30 | Correct | 1 ms | 1372 KB | Output is correct |
31 | Correct | 1 ms | 3164 KB | Output is correct |
32 | Correct | 1 ms | 1372 KB | Output is correct |
33 | Correct | 1 ms | 1372 KB | Output is correct |
34 | Correct | 1 ms | 1372 KB | Output is correct |
35 | Correct | 1 ms | 1368 KB | Output is correct |
36 | Correct | 0 ms | 1116 KB | Output is correct |
37 | Correct | 1 ms | 1116 KB | Output is correct |
38 | Correct | 1 ms | 1372 KB | Output is correct |
39 | Correct | 1 ms | 1372 KB | Output is correct |
40 | Correct | 1 ms | 1372 KB | Output is correct |
41 | Correct | 1 ms | 1368 KB | Output is correct |
42 | Correct | 1 ms | 1372 KB | Output is correct |
43 | Correct | 1 ms | 1372 KB | Output is correct |
44 | Correct | 1 ms | 3420 KB | Output is correct |
45 | Correct | 1 ms | 3248 KB | Output is correct |
46 | Correct | 1 ms | 1116 KB | Output is correct |
47 | Correct | 1 ms | 856 KB | Output is correct |
48 | Correct | 1 ms | 2140 KB | Output is correct |
49 | Correct | 1 ms | 2140 KB | Output is correct |
50 | Correct | 1 ms | 4184 KB | Output is correct |
51 | Correct | 1 ms | 3932 KB | Output is correct |
52 | Correct | 1 ms | 2140 KB | Output is correct |
53 | Correct | 0 ms | 1372 KB | Output is correct |
54 | Correct | 1 ms | 2140 KB | Output is correct |
55 | Correct | 1 ms | 2140 KB | Output is correct |
56 | Correct | 1 ms | 1884 KB | Output is correct |
57 | Correct | 1 ms | 3932 KB | Output is correct |
58 | Correct | 1 ms | 2140 KB | Output is correct |
59 | Correct | 1 ms | 2140 KB | Output is correct |
60 | Correct | 1 ms | 3944 KB | Output is correct |
61 | Correct | 1 ms | 2140 KB | Output is correct |
62 | Correct | 1 ms | 2140 KB | Output is correct |
63 | Correct | 1 ms | 2140 KB | Output is correct |
64 | Correct | 1 ms | 2140 KB | Output is correct |
65 | Correct | 1 ms | 2140 KB | Output is correct |
66 | Correct | 1 ms | 2140 KB | Output is correct |
67 | Correct | 1 ms | 2140 KB | Output is correct |
68 | Correct | 1 ms | 2140 KB | Output is correct |
69 | Correct | 1 ms | 2200 KB | Output is correct |
70 | Correct | 1 ms | 2136 KB | Output is correct |
71 | Correct | 1 ms | 2140 KB | Output is correct |
72 | Correct | 1 ms | 2140 KB | Output is correct |
73 | Correct | 2 ms | 2140 KB | Output is correct |
74 | Correct | 1 ms | 2136 KB | Output is correct |
75 | Correct | 1 ms | 2140 KB | Output is correct |
76 | Correct | 1 ms | 2140 KB | Output is correct |
77 | Correct | 1 ms | 2140 KB | Output is correct |
78 | Correct | 1 ms | 2140 KB | Output is correct |
79 | Correct | 1 ms | 2140 KB | Output is correct |
80 | Correct | 1 ms | 2140 KB | Output is correct |
81 | Correct | 1 ms | 1884 KB | Output is correct |
82 | Correct | 1 ms | 2140 KB | Output is correct |
83 | Correct | 1 ms | 1880 KB | Output is correct |
84 | Correct | 1 ms | 2136 KB | Output is correct |
85 | Correct | 1 ms | 2140 KB | Output is correct |
86 | Correct | 1 ms | 2140 KB | Output is correct |
87 | Correct | 1 ms | 2140 KB | Output is correct |
88 | Correct | 1 ms | 2140 KB | Output is correct |
89 | Correct | 1 ms | 2140 KB | Output is correct |
90 | Correct | 1 ms | 3932 KB | Output is correct |
91 | Correct | 1 ms | 860 KB | Output is correct |
92 | Correct | 5 ms | 7336 KB | Output is correct |
93 | Correct | 7 ms | 7516 KB | Output is correct |
94 | Correct | 1 ms | 3676 KB | Output is correct |
95 | Correct | 7 ms | 7516 KB | Output is correct |
96 | Correct | 5 ms | 7516 KB | Output is correct |
97 | Correct | 1 ms | 4700 KB | Output is correct |
98 | Correct | 3 ms | 7004 KB | Output is correct |
99 | Correct | 3 ms | 7004 KB | Output is correct |
100 | Correct | 2 ms | 5212 KB | Output is correct |
101 | Correct | 3 ms | 6988 KB | Output is correct |
102 | Correct | 5 ms | 7000 KB | Output is correct |
103 | Correct | 5 ms | 7256 KB | Output is correct |
104 | Correct | 5 ms | 8536 KB | Output is correct |
105 | Correct | 5 ms | 8792 KB | Output is correct |
106 | Correct | 5 ms | 7516 KB | Output is correct |
107 | Correct | 6 ms | 8996 KB | Output is correct |
108 | Correct | 7 ms | 9052 KB | Output is correct |
109 | Correct | 5 ms | 9052 KB | Output is correct |
110 | Correct | 5 ms | 9052 KB | Output is correct |
111 | Correct | 7 ms | 9052 KB | Output is correct |
112 | Correct | 5 ms | 9052 KB | Output is correct |
113 | Correct | 5 ms | 8984 KB | Output is correct |
114 | Correct | 5 ms | 9052 KB | Output is correct |
115 | Correct | 4 ms | 9052 KB | Output is correct |
116 | Correct | 5 ms | 9144 KB | Output is correct |
117 | Correct | 5 ms | 9052 KB | Output is correct |
118 | Correct | 4 ms | 8796 KB | Output is correct |
119 | Correct | 5 ms | 8796 KB | Output is correct |
120 | Correct | 6 ms | 9052 KB | Output is correct |
121 | Correct | 5 ms | 8540 KB | Output is correct |
122 | Correct | 4 ms | 8540 KB | Output is correct |
123 | Correct | 4 ms | 8540 KB | Output is correct |
124 | Correct | 3 ms | 8284 KB | Output is correct |
125 | Correct | 4 ms | 8796 KB | Output is correct |
126 | Correct | 4 ms | 8796 KB | Output is correct |
127 | Correct | 3 ms | 8540 KB | Output is correct |
128 | Correct | 3 ms | 8796 KB | Output is correct |
129 | Correct | 4 ms | 8796 KB | Output is correct |
130 | Correct | 5 ms | 9052 KB | Output is correct |
131 | Correct | 5 ms | 9052 KB | Output is correct |
132 | Correct | 5 ms | 9048 KB | Output is correct |
133 | Correct | 5 ms | 9048 KB | Output is correct |
134 | Correct | 3 ms | 8280 KB | Output is correct |
135 | Correct | 2 ms | 4956 KB | Output is correct |
136 | Correct | 5 ms | 8796 KB | Output is correct |
137 | Correct | 4 ms | 10072 KB | Output is correct |
138 | Correct | 2 ms | 5980 KB | Output is correct |
139 | Correct | 3 ms | 8796 KB | Output is correct |
140 | Correct | 4 ms | 8540 KB | Output is correct |
141 | Correct | 2 ms | 8796 KB | Output is correct |
142 | Correct | 4 ms | 10076 KB | Output is correct |
143 | Correct | 4 ms | 10076 KB | Output is correct |
144 | Correct | 1 ms | 2908 KB | Output is correct |
145 | Correct | 4 ms | 8628 KB | Output is correct |
146 | Correct | 5 ms | 8540 KB | Output is correct |
147 | Correct | 7 ms | 8796 KB | Output is correct |
148 | Correct | 7 ms | 8540 KB | Output is correct |
149 | Correct | 6 ms | 8284 KB | Output is correct |
150 | Correct | 7 ms | 10588 KB | Output is correct |
151 | Correct | 7 ms | 10588 KB | Output is correct |
152 | Correct | 8 ms | 10832 KB | Output is correct |
153 | Correct | 6 ms | 10588 KB | Output is correct |
154 | Correct | 6 ms | 10832 KB | Output is correct |
155 | Correct | 6 ms | 10588 KB | Output is correct |
156 | Correct | 6 ms | 10612 KB | Output is correct |
157 | Correct | 7 ms | 10588 KB | Output is correct |
158 | Correct | 6 ms | 10588 KB | Output is correct |
159 | Correct | 7 ms | 10844 KB | Output is correct |
160 | Correct | 7 ms | 10588 KB | Output is correct |
161 | Correct | 6 ms | 10588 KB | Output is correct |
162 | Correct | 6 ms | 10076 KB | Output is correct |
163 | Correct | 8 ms | 10072 KB | Output is correct |
164 | Correct | 6 ms | 10588 KB | Output is correct |
165 | Correct | 6 ms | 9964 KB | Output is correct |
166 | Correct | 6 ms | 10332 KB | Output is correct |
167 | Correct | 6 ms | 9820 KB | Output is correct |
168 | Correct | 3 ms | 9816 KB | Output is correct |
169 | Correct | 4 ms | 10160 KB | Output is correct |
170 | Correct | 4 ms | 10188 KB | Output is correct |
171 | Correct | 4 ms | 9820 KB | Output is correct |
172 | Correct | 4 ms | 9820 KB | Output is correct |
173 | Correct | 4 ms | 10076 KB | Output is correct |
174 | Correct | 6 ms | 10844 KB | Output is correct |
175 | Correct | 6 ms | 10788 KB | Output is correct |
176 | Correct | 7 ms | 10588 KB | Output is correct |
177 | Correct | 7 ms | 10584 KB | Output is correct |
178 | Correct | 3 ms | 9820 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2396 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 604 KB | Output is correct |
4 | Correct | 0 ms | 1372 KB | Output is correct |
5 | Correct | 1 ms | 1372 KB | Output is correct |
6 | Correct | 1 ms | 1116 KB | Output is correct |
7 | Correct | 0 ms | 1372 KB | Output is correct |
8 | Correct | 1 ms | 1372 KB | Output is correct |
9 | Correct | 0 ms | 860 KB | Output is correct |
10 | Correct | 0 ms | 1372 KB | Output is correct |
11 | Correct | 1 ms | 1372 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 1 ms | 1372 KB | Output is correct |
14 | Correct | 1 ms | 3164 KB | Output is correct |
15 | Correct | 1 ms | 1372 KB | Output is correct |
16 | Correct | 1 ms | 1248 KB | Output is correct |
17 | Correct | 1 ms | 1372 KB | Output is correct |
18 | Correct | 1 ms | 1364 KB | Output is correct |
19 | Correct | 1 ms | 1372 KB | Output is correct |
20 | Correct | 1 ms | 1372 KB | Output is correct |
21 | Correct | 1 ms | 1372 KB | Output is correct |
22 | Correct | 1 ms | 1372 KB | Output is correct |
23 | Correct | 1 ms | 1372 KB | Output is correct |
24 | Correct | 1 ms | 1372 KB | Output is correct |
25 | Correct | 1 ms | 1372 KB | Output is correct |
26 | Correct | 1 ms | 1372 KB | Output is correct |
27 | Correct | 1 ms | 1372 KB | Output is correct |
28 | Correct | 1 ms | 1372 KB | Output is correct |
29 | Correct | 1 ms | 1372 KB | Output is correct |
30 | Correct | 1 ms | 1372 KB | Output is correct |
31 | Correct | 1 ms | 3164 KB | Output is correct |
32 | Correct | 1 ms | 1372 KB | Output is correct |
33 | Correct | 1 ms | 1372 KB | Output is correct |
34 | Correct | 1 ms | 1372 KB | Output is correct |
35 | Correct | 1 ms | 1368 KB | Output is correct |
36 | Correct | 0 ms | 1116 KB | Output is correct |
37 | Correct | 1 ms | 1116 KB | Output is correct |
38 | Correct | 1 ms | 1372 KB | Output is correct |
39 | Correct | 1 ms | 1372 KB | Output is correct |
40 | Correct | 1 ms | 1372 KB | Output is correct |
41 | Correct | 1 ms | 1368 KB | Output is correct |
42 | Correct | 1 ms | 1372 KB | Output is correct |
43 | Correct | 1 ms | 1372 KB | Output is correct |
44 | Correct | 1 ms | 3420 KB | Output is correct |
45 | Correct | 1 ms | 3248 KB | Output is correct |
46 | Correct | 1 ms | 1116 KB | Output is correct |
47 | Correct | 1 ms | 856 KB | Output is correct |
48 | Correct | 1 ms | 2140 KB | Output is correct |
49 | Correct | 1 ms | 2140 KB | Output is correct |
50 | Correct | 1 ms | 4184 KB | Output is correct |
51 | Correct | 1 ms | 3932 KB | Output is correct |
52 | Correct | 1 ms | 2140 KB | Output is correct |
53 | Correct | 0 ms | 1372 KB | Output is correct |
54 | Correct | 1 ms | 2140 KB | Output is correct |
55 | Correct | 1 ms | 2140 KB | Output is correct |
56 | Correct | 1 ms | 1884 KB | Output is correct |
57 | Correct | 1 ms | 3932 KB | Output is correct |
58 | Correct | 1 ms | 2140 KB | Output is correct |
59 | Correct | 1 ms | 2140 KB | Output is correct |
60 | Correct | 1 ms | 3944 KB | Output is correct |
61 | Correct | 1 ms | 2140 KB | Output is correct |
62 | Correct | 1 ms | 2140 KB | Output is correct |
63 | Correct | 1 ms | 2140 KB | Output is correct |
64 | Correct | 1 ms | 2140 KB | Output is correct |
65 | Correct | 1 ms | 2140 KB | Output is correct |
66 | Correct | 1 ms | 2140 KB | Output is correct |
67 | Correct | 1 ms | 2140 KB | Output is correct |
68 | Correct | 1 ms | 2140 KB | Output is correct |
69 | Correct | 1 ms | 2200 KB | Output is correct |
70 | Correct | 1 ms | 2136 KB | Output is correct |
71 | Correct | 1 ms | 2140 KB | Output is correct |
72 | Correct | 1 ms | 2140 KB | Output is correct |
73 | Correct | 2 ms | 2140 KB | Output is correct |
74 | Correct | 1 ms | 2136 KB | Output is correct |
75 | Correct | 1 ms | 2140 KB | Output is correct |
76 | Correct | 1 ms | 2140 KB | Output is correct |
77 | Correct | 1 ms | 2140 KB | Output is correct |
78 | Correct | 1 ms | 2140 KB | Output is correct |
79 | Correct | 1 ms | 2140 KB | Output is correct |
80 | Correct | 1 ms | 2140 KB | Output is correct |
81 | Correct | 1 ms | 1884 KB | Output is correct |
82 | Correct | 1 ms | 2140 KB | Output is correct |
83 | Correct | 1 ms | 1880 KB | Output is correct |
84 | Correct | 1 ms | 2136 KB | Output is correct |
85 | Correct | 1 ms | 2140 KB | Output is correct |
86 | Correct | 1 ms | 2140 KB | Output is correct |
87 | Correct | 1 ms | 2140 KB | Output is correct |
88 | Correct | 1 ms | 2140 KB | Output is correct |
89 | Correct | 1 ms | 2140 KB | Output is correct |
90 | Correct | 1 ms | 3932 KB | Output is correct |
91 | Correct | 1 ms | 860 KB | Output is correct |
92 | Correct | 5 ms | 7336 KB | Output is correct |
93 | Correct | 7 ms | 7516 KB | Output is correct |
94 | Correct | 1 ms | 3676 KB | Output is correct |
95 | Correct | 7 ms | 7516 KB | Output is correct |
96 | Correct | 5 ms | 7516 KB | Output is correct |
97 | Correct | 1 ms | 4700 KB | Output is correct |
98 | Correct | 3 ms | 7004 KB | Output is correct |
99 | Correct | 3 ms | 7004 KB | Output is correct |
100 | Correct | 2 ms | 5212 KB | Output is correct |
101 | Correct | 3 ms | 6988 KB | Output is correct |
102 | Correct | 5 ms | 7000 KB | Output is correct |
103 | Correct | 5 ms | 7256 KB | Output is correct |
104 | Correct | 5 ms | 8536 KB | Output is correct |
105 | Correct | 5 ms | 8792 KB | Output is correct |
106 | Correct | 5 ms | 7516 KB | Output is correct |
107 | Correct | 6 ms | 8996 KB | Output is correct |
108 | Correct | 7 ms | 9052 KB | Output is correct |
109 | Correct | 5 ms | 9052 KB | Output is correct |
110 | Correct | 5 ms | 9052 KB | Output is correct |
111 | Correct | 7 ms | 9052 KB | Output is correct |
112 | Correct | 5 ms | 9052 KB | Output is correct |
113 | Correct | 5 ms | 8984 KB | Output is correct |
114 | Correct | 5 ms | 9052 KB | Output is correct |
115 | Correct | 4 ms | 9052 KB | Output is correct |
116 | Correct | 5 ms | 9144 KB | Output is correct |
117 | Correct | 5 ms | 9052 KB | Output is correct |
118 | Correct | 4 ms | 8796 KB | Output is correct |
119 | Correct | 5 ms | 8796 KB | Output is correct |
120 | Correct | 6 ms | 9052 KB | Output is correct |
121 | Correct | 5 ms | 8540 KB | Output is correct |
122 | Correct | 4 ms | 8540 KB | Output is correct |
123 | Correct | 4 ms | 8540 KB | Output is correct |
124 | Correct | 3 ms | 8284 KB | Output is correct |
125 | Correct | 4 ms | 8796 KB | Output is correct |
126 | Correct | 4 ms | 8796 KB | Output is correct |
127 | Correct | 3 ms | 8540 KB | Output is correct |
128 | Correct | 3 ms | 8796 KB | Output is correct |
129 | Correct | 4 ms | 8796 KB | Output is correct |
130 | Correct | 5 ms | 9052 KB | Output is correct |
131 | Correct | 5 ms | 9052 KB | Output is correct |
132 | Correct | 5 ms | 9048 KB | Output is correct |
133 | Correct | 5 ms | 9048 KB | Output is correct |
134 | Correct | 3 ms | 8280 KB | Output is correct |
135 | Correct | 2 ms | 4956 KB | Output is correct |
136 | Correct | 5 ms | 8796 KB | Output is correct |
137 | Correct | 4 ms | 10072 KB | Output is correct |
138 | Correct | 2 ms | 5980 KB | Output is correct |
139 | Correct | 3 ms | 8796 KB | Output is correct |
140 | Correct | 4 ms | 8540 KB | Output is correct |
141 | Correct | 2 ms | 8796 KB | Output is correct |
142 | Correct | 4 ms | 10076 KB | Output is correct |
143 | Correct | 4 ms | 10076 KB | Output is correct |
144 | Correct | 1 ms | 2908 KB | Output is correct |
145 | Correct | 4 ms | 8628 KB | Output is correct |
146 | Correct | 5 ms | 8540 KB | Output is correct |
147 | Correct | 7 ms | 8796 KB | Output is correct |
148 | Correct | 7 ms | 8540 KB | Output is correct |
149 | Correct | 6 ms | 8284 KB | Output is correct |
150 | Correct | 7 ms | 10588 KB | Output is correct |
151 | Correct | 7 ms | 10588 KB | Output is correct |
152 | Correct | 8 ms | 10832 KB | Output is correct |
153 | Correct | 6 ms | 10588 KB | Output is correct |
154 | Correct | 6 ms | 10832 KB | Output is correct |
155 | Correct | 6 ms | 10588 KB | Output is correct |
156 | Correct | 6 ms | 10612 KB | Output is correct |
157 | Correct | 7 ms | 10588 KB | Output is correct |
158 | Correct | 6 ms | 10588 KB | Output is correct |
159 | Correct | 7 ms | 10844 KB | Output is correct |
160 | Correct | 7 ms | 10588 KB | Output is correct |
161 | Correct | 6 ms | 10588 KB | Output is correct |
162 | Correct | 6 ms | 10076 KB | Output is correct |
163 | Correct | 8 ms | 10072 KB | Output is correct |
164 | Correct | 6 ms | 10588 KB | Output is correct |
165 | Correct | 6 ms | 9964 KB | Output is correct |
166 | Correct | 6 ms | 10332 KB | Output is correct |
167 | Correct | 6 ms | 9820 KB | Output is correct |
168 | Correct | 3 ms | 9816 KB | Output is correct |
169 | Correct | 4 ms | 10160 KB | Output is correct |
170 | Correct | 4 ms | 10188 KB | Output is correct |
171 | Correct | 4 ms | 9820 KB | Output is correct |
172 | Correct | 4 ms | 9820 KB | Output is correct |
173 | Correct | 4 ms | 10076 KB | Output is correct |
174 | Correct | 6 ms | 10844 KB | Output is correct |
175 | Correct | 6 ms | 10788 KB | Output is correct |
176 | Correct | 7 ms | 10588 KB | Output is correct |
177 | Correct | 7 ms | 10584 KB | Output is correct |
178 | Correct | 3 ms | 9820 KB | Output is correct |
179 | Correct | 13 ms | 22360 KB | Output is correct |
180 | Correct | 23 ms | 38000 KB | Output is correct |
181 | Correct | 22 ms | 37976 KB | Output is correct |
182 | Correct | 11 ms | 25944 KB | Output is correct |
183 | Correct | 25 ms | 37984 KB | Output is correct |
184 | Correct | 24 ms | 37976 KB | Output is correct |
185 | Correct | 27 ms | 34484 KB | Output is correct |
186 | Correct | 29 ms | 37980 KB | Output is correct |
187 | Correct | 29 ms | 37968 KB | Output is correct |
188 | Correct | 26 ms | 30480 KB | Output is correct |
189 | Correct | 37 ms | 37900 KB | Output is correct |
190 | Correct | 40 ms | 38064 KB | Output is correct |
191 | Correct | 98 ms | 36948 KB | Output is correct |
192 | Correct | 96 ms | 39644 KB | Output is correct |
193 | Correct | 92 ms | 37716 KB | Output is correct |
194 | Correct | 77 ms | 40340 KB | Output is correct |
195 | Correct | 76 ms | 40292 KB | Output is correct |
196 | Correct | 87 ms | 40248 KB | Output is correct |
197 | Correct | 88 ms | 40276 KB | Output is correct |
198 | Correct | 79 ms | 40272 KB | Output is correct |
199 | Correct | 78 ms | 40264 KB | Output is correct |
200 | Correct | 93 ms | 40272 KB | Output is correct |
201 | Correct | 111 ms | 40412 KB | Output is correct |
202 | Correct | 84 ms | 40364 KB | Output is correct |
203 | Correct | 85 ms | 40272 KB | Output is correct |
204 | Correct | 83 ms | 40136 KB | Output is correct |
205 | Correct | 82 ms | 40272 KB | Output is correct |
206 | Correct | 71 ms | 38992 KB | Output is correct |
207 | Correct | 70 ms | 37788 KB | Output is correct |
208 | Correct | 69 ms | 37972 KB | Output is correct |
209 | Correct | 70 ms | 39344 KB | Output is correct |
210 | Correct | 70 ms | 38484 KB | Output is correct |
211 | Correct | 74 ms | 39176 KB | Output is correct |
212 | Correct | 20 ms | 35164 KB | Output is correct |
213 | Correct | 36 ms | 36756 KB | Output is correct |
214 | Correct | 36 ms | 36444 KB | Output is correct |
215 | Correct | 41 ms | 37468 KB | Output is correct |
216 | Correct | 34 ms | 36444 KB | Output is correct |
217 | Correct | 35 ms | 37204 KB | Output is correct |
218 | Correct | 107 ms | 40360 KB | Output is correct |
219 | Correct | 133 ms | 40272 KB | Output is correct |
220 | Correct | 101 ms | 40192 KB | Output is correct |
221 | Correct | 101 ms | 40148 KB | Output is correct |
222 | Correct | 19 ms | 35928 KB | Output is correct |