#include <bits/stdc++.h>
//#define int long long
//#define ll long long
#define fi first
#define se second
#define pb push_back
#define all(lmao) lmao.begin(), lmao.end()
using namespace std;
typedef pair<int,int> pii;
typedef tuple<int,int,int> tp;
const int N = 6e6 + 5;
const int oo = 1e9 + 1;
const int mod = 1e9 + 7;
//const ll oo = 5e18;
const int ha[4] = {1, -1, 0, 0};
const int co[4] = {0, 0, 1, -1};
int m, n, k, xt, yt, xs, ys;
int ans;
vector<int> f[N];
vector<int> a[N], ph[N], pc[N];
deque<tp> q;
bool kt(int x,int y){
return x >= 1 && x <= m && y >= 1 && y <= n;
}
int row(int u,int v){
return (ph[u][v] == v ? v : ph[u][v] = row(u, ph[u][v]));
}
int col(int u,int v){
return (pc[u][v] == u ? u : pc[u][v] = col(pc[u][v], v));
}
void conduct(int val,int x,int y){
int l = max(1, x - k + 1), r = min(m, x + k - 1), pl = max(1, y - k + 1), pr = min(n, y + k - 1);
if(xt >= l && xt <= r && yt >= pl && yt <= pr) ans = min(ans, val + 1);
if(l - 1 >= 1){
int lx = l - 1, g = pr;
while(ph[lx][g] >= pl){
g = ph[lx][g];
if(f[lx][g] > val + 1) f[lx][g] = val + 1, q.push_back({f[lx][g], lx, g});
if(!ph[lx][g]) break;
ph[lx][g] = ph[lx][g - 1];
ph[lx][g] = row(lx, ph[lx][g]);
}
}
if(r + 1 <= m){
int lx = r + 1, g = pr;
while(ph[lx][g] >= pl){
g = ph[lx][g];
if(f[lx][g] > val + 1) f[lx][g] = val + 1, q.push_back({f[lx][g], lx, g});
if(!ph[lx][g]) break;
ph[lx][g] = ph[lx][g - 1];
ph[lx][g] = row(lx, ph[lx][g]);
}
}
if(pl - 1 >= 1){
int g = r, ly = pl - 1;
while(pc[g][ly] >= l){
g = pc[g][ly];
if(f[g][ly] > val + 1) f[g][ly] = val + 1, q.push_back({f[g][ly], g, ly});
if(!pc[g][ly]) break;
pc[g][ly] = pc[g - 1][ly];
pc[g][ly] = col(pc[g][ly], ly);
}
}
if(pr + 1 <= n){
int g = r, ly = pr + 1;
while(pc[g][ly] >= l){
g = pc[g][ly];
if(f[g][ly] > val + 1) f[g][ly] = val + 1, q.push_back({f[g][ly], g, ly});
if(!pc[g][ly]) break;
pc[g][ly] = pc[g - 1][ly];
pc[g][ly] = col(pc[g][ly], ly);
}
}
}
signed main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define task "v"
if(fopen(task ".inp","r")){
freopen(task ".inp","r",stdin);
freopen(task ".out","w",stdout);
}
cin >> m >> n >> k;
cin >> xs >> ys >> xt >> yt;
for(int i = 1; i <= m; i ++){
string s; cin >> s;
f[i].pb(oo);
a[i].pb(0);
ph[i].pb(0);
pc[i].pb(0);
for(int j = 0; j < n; j ++){
f[i].pb(oo);
pc[i].pb(0);
ph[i].pb(j + 1);
if(s[j] == '.') a[i].pb(0);
else a[i].pb(1);
}
f[i].pb(oo);
a[i].pb(0);
ph[i].pb(0);
pc[i].pb(0);
}
for(int i = 1; i <= n + 1; i ++) pc[0].pb(0);
for(int i = 1; i <= n; i ++){
for(int j = 1; j <= m; j ++){
pc[j][i] = j;
}
}
f[xs][ys] = 0;
q.push_back({0, xs, ys});
ans = oo;
while(!q.empty()){
int val, px, py; tie(val, px, py) = q.front();
q.pop_front();
if(val != f[px][py]) continue;
if(px == xt && py == yt) ans = min(ans, val);
conduct(val, px, py);
for(int d = 0; d < 4; d ++){
int x = px + ha[d];
int y = py + co[d];
if(!kt(x, y) || f[x][y] <= val || a[x][y]) continue;
q.push_front({f[x][y] = val, x, y});
if(ph[x][y]){
ph[x][y] = ph[x][y - 1];
ph[x][y] = row(x, ph[x][y]);
}
if(pc[x][y]){
pc[x][y] = pc[x - 1][y];
pc[x][y] = col(pc[x][y], y);
}
}
}
cout << min(ans, f[xt][yt]);
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:92:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
92 | freopen(task ".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:93:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
93 | freopen(task ".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
177 ms |
563996 KB |
Output is correct |
2 |
Correct |
178 ms |
564012 KB |
Output is correct |
3 |
Correct |
232 ms |
564052 KB |
Output is correct |
4 |
Correct |
178 ms |
564084 KB |
Output is correct |
5 |
Correct |
179 ms |
564124 KB |
Output is correct |
6 |
Correct |
195 ms |
564052 KB |
Output is correct |
7 |
Correct |
178 ms |
564048 KB |
Output is correct |
8 |
Correct |
180 ms |
564064 KB |
Output is correct |
9 |
Correct |
179 ms |
563828 KB |
Output is correct |
10 |
Correct |
181 ms |
563984 KB |
Output is correct |
11 |
Correct |
178 ms |
564032 KB |
Output is correct |
12 |
Correct |
178 ms |
563824 KB |
Output is correct |
13 |
Correct |
179 ms |
563948 KB |
Output is correct |
14 |
Correct |
178 ms |
563888 KB |
Output is correct |
15 |
Correct |
178 ms |
563796 KB |
Output is correct |
16 |
Correct |
179 ms |
564316 KB |
Output is correct |
17 |
Correct |
179 ms |
564304 KB |
Output is correct |
18 |
Correct |
180 ms |
563856 KB |
Output is correct |
19 |
Correct |
191 ms |
564816 KB |
Output is correct |
20 |
Correct |
194 ms |
565068 KB |
Output is correct |
21 |
Correct |
185 ms |
565624 KB |
Output is correct |
22 |
Correct |
183 ms |
564816 KB |
Output is correct |
23 |
Correct |
180 ms |
564820 KB |
Output is correct |
24 |
Correct |
184 ms |
565268 KB |
Output is correct |
25 |
Correct |
181 ms |
565268 KB |
Output is correct |
26 |
Correct |
184 ms |
565076 KB |
Output is correct |
27 |
Correct |
186 ms |
565088 KB |
Output is correct |
28 |
Correct |
181 ms |
564848 KB |
Output is correct |
29 |
Correct |
188 ms |
567124 KB |
Output is correct |
30 |
Correct |
183 ms |
565076 KB |
Output is correct |
31 |
Correct |
191 ms |
569680 KB |
Output is correct |
32 |
Correct |
192 ms |
567120 KB |
Output is correct |
33 |
Correct |
188 ms |
567184 KB |
Output is correct |
34 |
Correct |
188 ms |
567872 KB |
Output is correct |
35 |
Correct |
193 ms |
567888 KB |
Output is correct |
36 |
Correct |
201 ms |
567616 KB |
Output is correct |
37 |
Correct |
194 ms |
567024 KB |
Output is correct |
38 |
Correct |
191 ms |
567120 KB |
Output is correct |
39 |
Correct |
313 ms |
603472 KB |
Output is correct |
40 |
Correct |
195 ms |
567216 KB |
Output is correct |
41 |
Correct |
189 ms |
568448 KB |
Output is correct |
42 |
Correct |
206 ms |
569976 KB |
Output is correct |
43 |
Correct |
193 ms |
568788 KB |
Output is correct |
44 |
Correct |
249 ms |
577216 KB |
Output is correct |
45 |
Correct |
241 ms |
580416 KB |
Output is correct |
46 |
Correct |
288 ms |
626456 KB |
Output is correct |
47 |
Correct |
341 ms |
603472 KB |
Output is correct |
48 |
Correct |
328 ms |
603272 KB |
Output is correct |
49 |
Correct |
264 ms |
599696 KB |
Output is correct |
50 |
Correct |
251 ms |
599696 KB |
Output is correct |
51 |
Correct |
363 ms |
603988 KB |
Output is correct |
52 |
Correct |
352 ms |
603552 KB |
Output is correct |
53 |
Correct |
321 ms |
603424 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
189 ms |
564052 KB |
Output is correct |
2 |
Correct |
182 ms |
563876 KB |
Output is correct |
3 |
Correct |
178 ms |
563868 KB |
Output is correct |
4 |
Correct |
182 ms |
563792 KB |
Output is correct |
5 |
Correct |
179 ms |
563912 KB |
Output is correct |
6 |
Correct |
181 ms |
564272 KB |
Output is correct |
7 |
Correct |
181 ms |
563792 KB |
Output is correct |
8 |
Correct |
180 ms |
563796 KB |
Output is correct |
9 |
Correct |
180 ms |
564052 KB |
Output is correct |
10 |
Correct |
182 ms |
563916 KB |
Output is correct |
11 |
Correct |
182 ms |
564048 KB |
Output is correct |
12 |
Correct |
182 ms |
564056 KB |
Output is correct |
13 |
Correct |
180 ms |
563920 KB |
Output is correct |
14 |
Correct |
186 ms |
564148 KB |
Output is correct |
15 |
Correct |
180 ms |
564040 KB |
Output is correct |
16 |
Correct |
182 ms |
563896 KB |
Output is correct |
17 |
Correct |
183 ms |
564176 KB |
Output is correct |
18 |
Correct |
179 ms |
563996 KB |
Output is correct |
19 |
Correct |
180 ms |
563844 KB |
Output is correct |
20 |
Correct |
186 ms |
564292 KB |
Output is correct |
21 |
Correct |
181 ms |
564036 KB |
Output is correct |
22 |
Correct |
180 ms |
564048 KB |
Output is correct |
23 |
Correct |
179 ms |
563968 KB |
Output is correct |
24 |
Correct |
179 ms |
563796 KB |
Output is correct |
25 |
Correct |
180 ms |
564008 KB |
Output is correct |
26 |
Correct |
182 ms |
563796 KB |
Output is correct |
27 |
Correct |
184 ms |
564164 KB |
Output is correct |
28 |
Correct |
180 ms |
564048 KB |
Output is correct |
29 |
Correct |
186 ms |
563796 KB |
Output is correct |
30 |
Correct |
183 ms |
564308 KB |
Output is correct |
31 |
Correct |
181 ms |
564052 KB |
Output is correct |
32 |
Correct |
180 ms |
563828 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
180 ms |
563868 KB |
Output is correct |
2 |
Correct |
182 ms |
563944 KB |
Output is correct |
3 |
Correct |
179 ms |
563968 KB |
Output is correct |
4 |
Correct |
180 ms |
563796 KB |
Output is correct |
5 |
Correct |
181 ms |
563868 KB |
Output is correct |
6 |
Correct |
181 ms |
563796 KB |
Output is correct |
7 |
Correct |
181 ms |
563868 KB |
Output is correct |
8 |
Correct |
184 ms |
564216 KB |
Output is correct |
9 |
Correct |
180 ms |
564064 KB |
Output is correct |
10 |
Correct |
180 ms |
564048 KB |
Output is correct |
11 |
Correct |
182 ms |
564064 KB |
Output is correct |
12 |
Correct |
182 ms |
564052 KB |
Output is correct |
13 |
Correct |
180 ms |
563796 KB |
Output is correct |
14 |
Correct |
182 ms |
564304 KB |
Output is correct |
15 |
Correct |
183 ms |
563872 KB |
Output is correct |
16 |
Correct |
180 ms |
563820 KB |
Output is correct |
17 |
Correct |
185 ms |
564304 KB |
Output is correct |
18 |
Correct |
249 ms |
563872 KB |
Output is correct |
19 |
Correct |
180 ms |
563916 KB |
Output is correct |
20 |
Correct |
184 ms |
564052 KB |
Output is correct |
21 |
Correct |
183 ms |
563796 KB |
Output is correct |
22 |
Correct |
179 ms |
564048 KB |
Output is correct |
23 |
Correct |
181 ms |
564056 KB |
Output is correct |
24 |
Correct |
181 ms |
564024 KB |
Output is correct |
25 |
Correct |
183 ms |
564824 KB |
Output is correct |
26 |
Correct |
184 ms |
566100 KB |
Output is correct |
27 |
Correct |
185 ms |
565604 KB |
Output is correct |
28 |
Correct |
181 ms |
565336 KB |
Output is correct |
29 |
Correct |
181 ms |
564816 KB |
Output is correct |
30 |
Correct |
180 ms |
565032 KB |
Output is correct |
31 |
Correct |
181 ms |
565072 KB |
Output is correct |
32 |
Correct |
182 ms |
565080 KB |
Output is correct |
33 |
Correct |
191 ms |
565228 KB |
Output is correct |
34 |
Correct |
191 ms |
569008 KB |
Output is correct |
35 |
Correct |
191 ms |
569824 KB |
Output is correct |
36 |
Correct |
187 ms |
567892 KB |
Output is correct |
37 |
Correct |
181 ms |
567124 KB |
Output is correct |
38 |
Correct |
179 ms |
567164 KB |
Output is correct |
39 |
Correct |
234 ms |
579484 KB |
Output is correct |
40 |
Correct |
342 ms |
602860 KB |
Output is correct |
41 |
Correct |
288 ms |
626508 KB |
Output is correct |
42 |
Correct |
259 ms |
608364 KB |
Output is correct |
43 |
Correct |
211 ms |
603216 KB |
Output is correct |
44 |
Correct |
208 ms |
603352 KB |
Output is correct |
45 |
Correct |
360 ms |
607928 KB |
Output is correct |
46 |
Correct |
358 ms |
608536 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
189 ms |
564052 KB |
Output is correct |
2 |
Correct |
182 ms |
563876 KB |
Output is correct |
3 |
Correct |
178 ms |
563868 KB |
Output is correct |
4 |
Correct |
182 ms |
563792 KB |
Output is correct |
5 |
Correct |
179 ms |
563912 KB |
Output is correct |
6 |
Correct |
181 ms |
564272 KB |
Output is correct |
7 |
Correct |
181 ms |
563792 KB |
Output is correct |
8 |
Correct |
180 ms |
563796 KB |
Output is correct |
9 |
Correct |
180 ms |
564052 KB |
Output is correct |
10 |
Correct |
182 ms |
563916 KB |
Output is correct |
11 |
Correct |
182 ms |
564048 KB |
Output is correct |
12 |
Correct |
182 ms |
564056 KB |
Output is correct |
13 |
Correct |
180 ms |
563920 KB |
Output is correct |
14 |
Correct |
186 ms |
564148 KB |
Output is correct |
15 |
Correct |
180 ms |
564040 KB |
Output is correct |
16 |
Correct |
182 ms |
563896 KB |
Output is correct |
17 |
Correct |
183 ms |
564176 KB |
Output is correct |
18 |
Correct |
179 ms |
563996 KB |
Output is correct |
19 |
Correct |
180 ms |
563844 KB |
Output is correct |
20 |
Correct |
186 ms |
564292 KB |
Output is correct |
21 |
Correct |
181 ms |
564036 KB |
Output is correct |
22 |
Correct |
180 ms |
564048 KB |
Output is correct |
23 |
Correct |
179 ms |
563968 KB |
Output is correct |
24 |
Correct |
179 ms |
563796 KB |
Output is correct |
25 |
Correct |
180 ms |
564008 KB |
Output is correct |
26 |
Correct |
182 ms |
563796 KB |
Output is correct |
27 |
Correct |
184 ms |
564164 KB |
Output is correct |
28 |
Correct |
180 ms |
564048 KB |
Output is correct |
29 |
Correct |
186 ms |
563796 KB |
Output is correct |
30 |
Correct |
183 ms |
564308 KB |
Output is correct |
31 |
Correct |
181 ms |
564052 KB |
Output is correct |
32 |
Correct |
180 ms |
563828 KB |
Output is correct |
33 |
Correct |
183 ms |
564808 KB |
Output is correct |
34 |
Correct |
181 ms |
564076 KB |
Output is correct |
35 |
Correct |
178 ms |
564048 KB |
Output is correct |
36 |
Correct |
185 ms |
565032 KB |
Output is correct |
37 |
Correct |
183 ms |
565108 KB |
Output is correct |
38 |
Correct |
184 ms |
566068 KB |
Output is correct |
39 |
Correct |
184 ms |
565656 KB |
Output is correct |
40 |
Correct |
187 ms |
564820 KB |
Output is correct |
41 |
Correct |
179 ms |
565036 KB |
Output is correct |
42 |
Correct |
187 ms |
565216 KB |
Output is correct |
43 |
Correct |
179 ms |
564924 KB |
Output is correct |
44 |
Correct |
179 ms |
564820 KB |
Output is correct |
45 |
Correct |
181 ms |
565432 KB |
Output is correct |
46 |
Correct |
183 ms |
565328 KB |
Output is correct |
47 |
Correct |
180 ms |
565060 KB |
Output is correct |
48 |
Correct |
181 ms |
565084 KB |
Output is correct |
49 |
Correct |
179 ms |
565616 KB |
Output is correct |
50 |
Correct |
181 ms |
565332 KB |
Output is correct |
51 |
Correct |
181 ms |
564940 KB |
Output is correct |
52 |
Correct |
184 ms |
564944 KB |
Output is correct |
53 |
Correct |
184 ms |
565076 KB |
Output is correct |
54 |
Correct |
180 ms |
565044 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
189 ms |
564052 KB |
Output is correct |
2 |
Correct |
182 ms |
563876 KB |
Output is correct |
3 |
Correct |
178 ms |
563868 KB |
Output is correct |
4 |
Correct |
182 ms |
563792 KB |
Output is correct |
5 |
Correct |
179 ms |
563912 KB |
Output is correct |
6 |
Correct |
181 ms |
564272 KB |
Output is correct |
7 |
Correct |
181 ms |
563792 KB |
Output is correct |
8 |
Correct |
180 ms |
563796 KB |
Output is correct |
9 |
Correct |
180 ms |
564052 KB |
Output is correct |
10 |
Correct |
182 ms |
563916 KB |
Output is correct |
11 |
Correct |
182 ms |
564048 KB |
Output is correct |
12 |
Correct |
182 ms |
564056 KB |
Output is correct |
13 |
Correct |
180 ms |
563920 KB |
Output is correct |
14 |
Correct |
186 ms |
564148 KB |
Output is correct |
15 |
Correct |
180 ms |
564040 KB |
Output is correct |
16 |
Correct |
182 ms |
563896 KB |
Output is correct |
17 |
Correct |
183 ms |
564176 KB |
Output is correct |
18 |
Correct |
179 ms |
563996 KB |
Output is correct |
19 |
Correct |
180 ms |
563844 KB |
Output is correct |
20 |
Correct |
186 ms |
564292 KB |
Output is correct |
21 |
Correct |
181 ms |
564036 KB |
Output is correct |
22 |
Correct |
180 ms |
564048 KB |
Output is correct |
23 |
Correct |
179 ms |
563968 KB |
Output is correct |
24 |
Correct |
179 ms |
563796 KB |
Output is correct |
25 |
Correct |
180 ms |
564008 KB |
Output is correct |
26 |
Correct |
182 ms |
563796 KB |
Output is correct |
27 |
Correct |
184 ms |
564164 KB |
Output is correct |
28 |
Correct |
180 ms |
564048 KB |
Output is correct |
29 |
Correct |
186 ms |
563796 KB |
Output is correct |
30 |
Correct |
183 ms |
564308 KB |
Output is correct |
31 |
Correct |
181 ms |
564052 KB |
Output is correct |
32 |
Correct |
180 ms |
563828 KB |
Output is correct |
33 |
Correct |
183 ms |
564808 KB |
Output is correct |
34 |
Correct |
181 ms |
564076 KB |
Output is correct |
35 |
Correct |
178 ms |
564048 KB |
Output is correct |
36 |
Correct |
185 ms |
565032 KB |
Output is correct |
37 |
Correct |
183 ms |
565108 KB |
Output is correct |
38 |
Correct |
184 ms |
566068 KB |
Output is correct |
39 |
Correct |
184 ms |
565656 KB |
Output is correct |
40 |
Correct |
187 ms |
564820 KB |
Output is correct |
41 |
Correct |
179 ms |
565036 KB |
Output is correct |
42 |
Correct |
187 ms |
565216 KB |
Output is correct |
43 |
Correct |
179 ms |
564924 KB |
Output is correct |
44 |
Correct |
179 ms |
564820 KB |
Output is correct |
45 |
Correct |
181 ms |
565432 KB |
Output is correct |
46 |
Correct |
183 ms |
565328 KB |
Output is correct |
47 |
Correct |
180 ms |
565060 KB |
Output is correct |
48 |
Correct |
181 ms |
565084 KB |
Output is correct |
49 |
Correct |
179 ms |
565616 KB |
Output is correct |
50 |
Correct |
181 ms |
565332 KB |
Output is correct |
51 |
Correct |
181 ms |
564940 KB |
Output is correct |
52 |
Correct |
184 ms |
564944 KB |
Output is correct |
53 |
Correct |
184 ms |
565076 KB |
Output is correct |
54 |
Correct |
180 ms |
565044 KB |
Output is correct |
55 |
Correct |
192 ms |
567404 KB |
Output is correct |
56 |
Correct |
182 ms |
565212 KB |
Output is correct |
57 |
Correct |
190 ms |
568868 KB |
Output is correct |
58 |
Correct |
195 ms |
566716 KB |
Output is correct |
59 |
Correct |
190 ms |
569824 KB |
Output is correct |
60 |
Correct |
197 ms |
567192 KB |
Output is correct |
61 |
Correct |
190 ms |
567124 KB |
Output is correct |
62 |
Correct |
195 ms |
567696 KB |
Output is correct |
63 |
Correct |
182 ms |
567124 KB |
Output is correct |
64 |
Correct |
181 ms |
567120 KB |
Output is correct |
65 |
Correct |
190 ms |
567856 KB |
Output is correct |
66 |
Correct |
185 ms |
567940 KB |
Output is correct |
67 |
Correct |
192 ms |
567620 KB |
Output is correct |
68 |
Correct |
188 ms |
567120 KB |
Output is correct |
69 |
Correct |
197 ms |
567124 KB |
Output is correct |
70 |
Correct |
195 ms |
567224 KB |
Output is correct |
71 |
Correct |
193 ms |
566868 KB |
Output is correct |
72 |
Correct |
193 ms |
567224 KB |
Output is correct |
73 |
Correct |
195 ms |
567332 KB |
Output is correct |
74 |
Correct |
188 ms |
567124 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
177 ms |
563996 KB |
Output is correct |
2 |
Correct |
178 ms |
564012 KB |
Output is correct |
3 |
Correct |
232 ms |
564052 KB |
Output is correct |
4 |
Correct |
178 ms |
564084 KB |
Output is correct |
5 |
Correct |
179 ms |
564124 KB |
Output is correct |
6 |
Correct |
195 ms |
564052 KB |
Output is correct |
7 |
Correct |
178 ms |
564048 KB |
Output is correct |
8 |
Correct |
180 ms |
564064 KB |
Output is correct |
9 |
Correct |
179 ms |
563828 KB |
Output is correct |
10 |
Correct |
181 ms |
563984 KB |
Output is correct |
11 |
Correct |
178 ms |
564032 KB |
Output is correct |
12 |
Correct |
178 ms |
563824 KB |
Output is correct |
13 |
Correct |
179 ms |
563948 KB |
Output is correct |
14 |
Correct |
178 ms |
563888 KB |
Output is correct |
15 |
Correct |
178 ms |
563796 KB |
Output is correct |
16 |
Correct |
179 ms |
564316 KB |
Output is correct |
17 |
Correct |
179 ms |
564304 KB |
Output is correct |
18 |
Correct |
180 ms |
563856 KB |
Output is correct |
19 |
Correct |
191 ms |
564816 KB |
Output is correct |
20 |
Correct |
194 ms |
565068 KB |
Output is correct |
21 |
Correct |
185 ms |
565624 KB |
Output is correct |
22 |
Correct |
183 ms |
564816 KB |
Output is correct |
23 |
Correct |
180 ms |
564820 KB |
Output is correct |
24 |
Correct |
184 ms |
565268 KB |
Output is correct |
25 |
Correct |
181 ms |
565268 KB |
Output is correct |
26 |
Correct |
184 ms |
565076 KB |
Output is correct |
27 |
Correct |
186 ms |
565088 KB |
Output is correct |
28 |
Correct |
181 ms |
564848 KB |
Output is correct |
29 |
Correct |
188 ms |
567124 KB |
Output is correct |
30 |
Correct |
183 ms |
565076 KB |
Output is correct |
31 |
Correct |
191 ms |
569680 KB |
Output is correct |
32 |
Correct |
192 ms |
567120 KB |
Output is correct |
33 |
Correct |
188 ms |
567184 KB |
Output is correct |
34 |
Correct |
188 ms |
567872 KB |
Output is correct |
35 |
Correct |
193 ms |
567888 KB |
Output is correct |
36 |
Correct |
201 ms |
567616 KB |
Output is correct |
37 |
Correct |
194 ms |
567024 KB |
Output is correct |
38 |
Correct |
191 ms |
567120 KB |
Output is correct |
39 |
Correct |
313 ms |
603472 KB |
Output is correct |
40 |
Correct |
195 ms |
567216 KB |
Output is correct |
41 |
Correct |
189 ms |
568448 KB |
Output is correct |
42 |
Correct |
206 ms |
569976 KB |
Output is correct |
43 |
Correct |
193 ms |
568788 KB |
Output is correct |
44 |
Correct |
249 ms |
577216 KB |
Output is correct |
45 |
Correct |
241 ms |
580416 KB |
Output is correct |
46 |
Correct |
288 ms |
626456 KB |
Output is correct |
47 |
Correct |
341 ms |
603472 KB |
Output is correct |
48 |
Correct |
328 ms |
603272 KB |
Output is correct |
49 |
Correct |
264 ms |
599696 KB |
Output is correct |
50 |
Correct |
251 ms |
599696 KB |
Output is correct |
51 |
Correct |
363 ms |
603988 KB |
Output is correct |
52 |
Correct |
352 ms |
603552 KB |
Output is correct |
53 |
Correct |
321 ms |
603424 KB |
Output is correct |
54 |
Correct |
189 ms |
564052 KB |
Output is correct |
55 |
Correct |
182 ms |
563876 KB |
Output is correct |
56 |
Correct |
178 ms |
563868 KB |
Output is correct |
57 |
Correct |
182 ms |
563792 KB |
Output is correct |
58 |
Correct |
179 ms |
563912 KB |
Output is correct |
59 |
Correct |
181 ms |
564272 KB |
Output is correct |
60 |
Correct |
181 ms |
563792 KB |
Output is correct |
61 |
Correct |
180 ms |
563796 KB |
Output is correct |
62 |
Correct |
180 ms |
564052 KB |
Output is correct |
63 |
Correct |
182 ms |
563916 KB |
Output is correct |
64 |
Correct |
182 ms |
564048 KB |
Output is correct |
65 |
Correct |
182 ms |
564056 KB |
Output is correct |
66 |
Correct |
180 ms |
563920 KB |
Output is correct |
67 |
Correct |
186 ms |
564148 KB |
Output is correct |
68 |
Correct |
180 ms |
564040 KB |
Output is correct |
69 |
Correct |
182 ms |
563896 KB |
Output is correct |
70 |
Correct |
183 ms |
564176 KB |
Output is correct |
71 |
Correct |
179 ms |
563996 KB |
Output is correct |
72 |
Correct |
180 ms |
563844 KB |
Output is correct |
73 |
Correct |
186 ms |
564292 KB |
Output is correct |
74 |
Correct |
181 ms |
564036 KB |
Output is correct |
75 |
Correct |
180 ms |
564048 KB |
Output is correct |
76 |
Correct |
179 ms |
563968 KB |
Output is correct |
77 |
Correct |
179 ms |
563796 KB |
Output is correct |
78 |
Correct |
180 ms |
564008 KB |
Output is correct |
79 |
Correct |
182 ms |
563796 KB |
Output is correct |
80 |
Correct |
184 ms |
564164 KB |
Output is correct |
81 |
Correct |
180 ms |
564048 KB |
Output is correct |
82 |
Correct |
186 ms |
563796 KB |
Output is correct |
83 |
Correct |
183 ms |
564308 KB |
Output is correct |
84 |
Correct |
181 ms |
564052 KB |
Output is correct |
85 |
Correct |
180 ms |
563828 KB |
Output is correct |
86 |
Correct |
180 ms |
563868 KB |
Output is correct |
87 |
Correct |
182 ms |
563944 KB |
Output is correct |
88 |
Correct |
179 ms |
563968 KB |
Output is correct |
89 |
Correct |
180 ms |
563796 KB |
Output is correct |
90 |
Correct |
181 ms |
563868 KB |
Output is correct |
91 |
Correct |
181 ms |
563796 KB |
Output is correct |
92 |
Correct |
181 ms |
563868 KB |
Output is correct |
93 |
Correct |
184 ms |
564216 KB |
Output is correct |
94 |
Correct |
180 ms |
564064 KB |
Output is correct |
95 |
Correct |
180 ms |
564048 KB |
Output is correct |
96 |
Correct |
182 ms |
564064 KB |
Output is correct |
97 |
Correct |
182 ms |
564052 KB |
Output is correct |
98 |
Correct |
180 ms |
563796 KB |
Output is correct |
99 |
Correct |
182 ms |
564304 KB |
Output is correct |
100 |
Correct |
183 ms |
563872 KB |
Output is correct |
101 |
Correct |
180 ms |
563820 KB |
Output is correct |
102 |
Correct |
185 ms |
564304 KB |
Output is correct |
103 |
Correct |
249 ms |
563872 KB |
Output is correct |
104 |
Correct |
180 ms |
563916 KB |
Output is correct |
105 |
Correct |
184 ms |
564052 KB |
Output is correct |
106 |
Correct |
183 ms |
563796 KB |
Output is correct |
107 |
Correct |
179 ms |
564048 KB |
Output is correct |
108 |
Correct |
181 ms |
564056 KB |
Output is correct |
109 |
Correct |
181 ms |
564024 KB |
Output is correct |
110 |
Correct |
183 ms |
564824 KB |
Output is correct |
111 |
Correct |
184 ms |
566100 KB |
Output is correct |
112 |
Correct |
185 ms |
565604 KB |
Output is correct |
113 |
Correct |
181 ms |
565336 KB |
Output is correct |
114 |
Correct |
181 ms |
564816 KB |
Output is correct |
115 |
Correct |
180 ms |
565032 KB |
Output is correct |
116 |
Correct |
181 ms |
565072 KB |
Output is correct |
117 |
Correct |
182 ms |
565080 KB |
Output is correct |
118 |
Correct |
191 ms |
565228 KB |
Output is correct |
119 |
Correct |
191 ms |
569008 KB |
Output is correct |
120 |
Correct |
191 ms |
569824 KB |
Output is correct |
121 |
Correct |
187 ms |
567892 KB |
Output is correct |
122 |
Correct |
181 ms |
567124 KB |
Output is correct |
123 |
Correct |
179 ms |
567164 KB |
Output is correct |
124 |
Correct |
234 ms |
579484 KB |
Output is correct |
125 |
Correct |
342 ms |
602860 KB |
Output is correct |
126 |
Correct |
288 ms |
626508 KB |
Output is correct |
127 |
Correct |
259 ms |
608364 KB |
Output is correct |
128 |
Correct |
211 ms |
603216 KB |
Output is correct |
129 |
Correct |
208 ms |
603352 KB |
Output is correct |
130 |
Correct |
360 ms |
607928 KB |
Output is correct |
131 |
Correct |
358 ms |
608536 KB |
Output is correct |
132 |
Correct |
183 ms |
564808 KB |
Output is correct |
133 |
Correct |
181 ms |
564076 KB |
Output is correct |
134 |
Correct |
178 ms |
564048 KB |
Output is correct |
135 |
Correct |
185 ms |
565032 KB |
Output is correct |
136 |
Correct |
183 ms |
565108 KB |
Output is correct |
137 |
Correct |
184 ms |
566068 KB |
Output is correct |
138 |
Correct |
184 ms |
565656 KB |
Output is correct |
139 |
Correct |
187 ms |
564820 KB |
Output is correct |
140 |
Correct |
179 ms |
565036 KB |
Output is correct |
141 |
Correct |
187 ms |
565216 KB |
Output is correct |
142 |
Correct |
179 ms |
564924 KB |
Output is correct |
143 |
Correct |
179 ms |
564820 KB |
Output is correct |
144 |
Correct |
181 ms |
565432 KB |
Output is correct |
145 |
Correct |
183 ms |
565328 KB |
Output is correct |
146 |
Correct |
180 ms |
565060 KB |
Output is correct |
147 |
Correct |
181 ms |
565084 KB |
Output is correct |
148 |
Correct |
179 ms |
565616 KB |
Output is correct |
149 |
Correct |
181 ms |
565332 KB |
Output is correct |
150 |
Correct |
181 ms |
564940 KB |
Output is correct |
151 |
Correct |
184 ms |
564944 KB |
Output is correct |
152 |
Correct |
184 ms |
565076 KB |
Output is correct |
153 |
Correct |
180 ms |
565044 KB |
Output is correct |
154 |
Correct |
192 ms |
567404 KB |
Output is correct |
155 |
Correct |
182 ms |
565212 KB |
Output is correct |
156 |
Correct |
190 ms |
568868 KB |
Output is correct |
157 |
Correct |
195 ms |
566716 KB |
Output is correct |
158 |
Correct |
190 ms |
569824 KB |
Output is correct |
159 |
Correct |
197 ms |
567192 KB |
Output is correct |
160 |
Correct |
190 ms |
567124 KB |
Output is correct |
161 |
Correct |
195 ms |
567696 KB |
Output is correct |
162 |
Correct |
182 ms |
567124 KB |
Output is correct |
163 |
Correct |
181 ms |
567120 KB |
Output is correct |
164 |
Correct |
190 ms |
567856 KB |
Output is correct |
165 |
Correct |
185 ms |
567940 KB |
Output is correct |
166 |
Correct |
192 ms |
567620 KB |
Output is correct |
167 |
Correct |
188 ms |
567120 KB |
Output is correct |
168 |
Correct |
197 ms |
567124 KB |
Output is correct |
169 |
Correct |
195 ms |
567224 KB |
Output is correct |
170 |
Correct |
193 ms |
566868 KB |
Output is correct |
171 |
Correct |
193 ms |
567224 KB |
Output is correct |
172 |
Correct |
195 ms |
567332 KB |
Output is correct |
173 |
Correct |
188 ms |
567124 KB |
Output is correct |
174 |
Correct |
204 ms |
567380 KB |
Output is correct |
175 |
Correct |
213 ms |
570240 KB |
Output is correct |
176 |
Correct |
227 ms |
578616 KB |
Output is correct |
177 |
Correct |
276 ms |
582292 KB |
Output is correct |
178 |
Correct |
317 ms |
588548 KB |
Output is correct |
179 |
Correct |
293 ms |
592896 KB |
Output is correct |
180 |
Correct |
312 ms |
589396 KB |
Output is correct |
181 |
Correct |
318 ms |
590160 KB |
Output is correct |
182 |
Correct |
340 ms |
592036 KB |
Output is correct |
183 |
Correct |
329 ms |
595056 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
177 ms |
563996 KB |
Output is correct |
2 |
Correct |
178 ms |
564012 KB |
Output is correct |
3 |
Correct |
232 ms |
564052 KB |
Output is correct |
4 |
Correct |
178 ms |
564084 KB |
Output is correct |
5 |
Correct |
179 ms |
564124 KB |
Output is correct |
6 |
Correct |
195 ms |
564052 KB |
Output is correct |
7 |
Correct |
178 ms |
564048 KB |
Output is correct |
8 |
Correct |
180 ms |
564064 KB |
Output is correct |
9 |
Correct |
179 ms |
563828 KB |
Output is correct |
10 |
Correct |
181 ms |
563984 KB |
Output is correct |
11 |
Correct |
178 ms |
564032 KB |
Output is correct |
12 |
Correct |
178 ms |
563824 KB |
Output is correct |
13 |
Correct |
179 ms |
563948 KB |
Output is correct |
14 |
Correct |
178 ms |
563888 KB |
Output is correct |
15 |
Correct |
178 ms |
563796 KB |
Output is correct |
16 |
Correct |
179 ms |
564316 KB |
Output is correct |
17 |
Correct |
179 ms |
564304 KB |
Output is correct |
18 |
Correct |
180 ms |
563856 KB |
Output is correct |
19 |
Correct |
191 ms |
564816 KB |
Output is correct |
20 |
Correct |
194 ms |
565068 KB |
Output is correct |
21 |
Correct |
185 ms |
565624 KB |
Output is correct |
22 |
Correct |
183 ms |
564816 KB |
Output is correct |
23 |
Correct |
180 ms |
564820 KB |
Output is correct |
24 |
Correct |
184 ms |
565268 KB |
Output is correct |
25 |
Correct |
181 ms |
565268 KB |
Output is correct |
26 |
Correct |
184 ms |
565076 KB |
Output is correct |
27 |
Correct |
186 ms |
565088 KB |
Output is correct |
28 |
Correct |
181 ms |
564848 KB |
Output is correct |
29 |
Correct |
188 ms |
567124 KB |
Output is correct |
30 |
Correct |
183 ms |
565076 KB |
Output is correct |
31 |
Correct |
191 ms |
569680 KB |
Output is correct |
32 |
Correct |
192 ms |
567120 KB |
Output is correct |
33 |
Correct |
188 ms |
567184 KB |
Output is correct |
34 |
Correct |
188 ms |
567872 KB |
Output is correct |
35 |
Correct |
193 ms |
567888 KB |
Output is correct |
36 |
Correct |
201 ms |
567616 KB |
Output is correct |
37 |
Correct |
194 ms |
567024 KB |
Output is correct |
38 |
Correct |
191 ms |
567120 KB |
Output is correct |
39 |
Correct |
313 ms |
603472 KB |
Output is correct |
40 |
Correct |
195 ms |
567216 KB |
Output is correct |
41 |
Correct |
189 ms |
568448 KB |
Output is correct |
42 |
Correct |
206 ms |
569976 KB |
Output is correct |
43 |
Correct |
193 ms |
568788 KB |
Output is correct |
44 |
Correct |
249 ms |
577216 KB |
Output is correct |
45 |
Correct |
241 ms |
580416 KB |
Output is correct |
46 |
Correct |
288 ms |
626456 KB |
Output is correct |
47 |
Correct |
341 ms |
603472 KB |
Output is correct |
48 |
Correct |
328 ms |
603272 KB |
Output is correct |
49 |
Correct |
264 ms |
599696 KB |
Output is correct |
50 |
Correct |
251 ms |
599696 KB |
Output is correct |
51 |
Correct |
363 ms |
603988 KB |
Output is correct |
52 |
Correct |
352 ms |
603552 KB |
Output is correct |
53 |
Correct |
321 ms |
603424 KB |
Output is correct |
54 |
Correct |
189 ms |
564052 KB |
Output is correct |
55 |
Correct |
182 ms |
563876 KB |
Output is correct |
56 |
Correct |
178 ms |
563868 KB |
Output is correct |
57 |
Correct |
182 ms |
563792 KB |
Output is correct |
58 |
Correct |
179 ms |
563912 KB |
Output is correct |
59 |
Correct |
181 ms |
564272 KB |
Output is correct |
60 |
Correct |
181 ms |
563792 KB |
Output is correct |
61 |
Correct |
180 ms |
563796 KB |
Output is correct |
62 |
Correct |
180 ms |
564052 KB |
Output is correct |
63 |
Correct |
182 ms |
563916 KB |
Output is correct |
64 |
Correct |
182 ms |
564048 KB |
Output is correct |
65 |
Correct |
182 ms |
564056 KB |
Output is correct |
66 |
Correct |
180 ms |
563920 KB |
Output is correct |
67 |
Correct |
186 ms |
564148 KB |
Output is correct |
68 |
Correct |
180 ms |
564040 KB |
Output is correct |
69 |
Correct |
182 ms |
563896 KB |
Output is correct |
70 |
Correct |
183 ms |
564176 KB |
Output is correct |
71 |
Correct |
179 ms |
563996 KB |
Output is correct |
72 |
Correct |
180 ms |
563844 KB |
Output is correct |
73 |
Correct |
186 ms |
564292 KB |
Output is correct |
74 |
Correct |
181 ms |
564036 KB |
Output is correct |
75 |
Correct |
180 ms |
564048 KB |
Output is correct |
76 |
Correct |
179 ms |
563968 KB |
Output is correct |
77 |
Correct |
179 ms |
563796 KB |
Output is correct |
78 |
Correct |
180 ms |
564008 KB |
Output is correct |
79 |
Correct |
182 ms |
563796 KB |
Output is correct |
80 |
Correct |
184 ms |
564164 KB |
Output is correct |
81 |
Correct |
180 ms |
564048 KB |
Output is correct |
82 |
Correct |
186 ms |
563796 KB |
Output is correct |
83 |
Correct |
183 ms |
564308 KB |
Output is correct |
84 |
Correct |
181 ms |
564052 KB |
Output is correct |
85 |
Correct |
180 ms |
563828 KB |
Output is correct |
86 |
Correct |
180 ms |
563868 KB |
Output is correct |
87 |
Correct |
182 ms |
563944 KB |
Output is correct |
88 |
Correct |
179 ms |
563968 KB |
Output is correct |
89 |
Correct |
180 ms |
563796 KB |
Output is correct |
90 |
Correct |
181 ms |
563868 KB |
Output is correct |
91 |
Correct |
181 ms |
563796 KB |
Output is correct |
92 |
Correct |
181 ms |
563868 KB |
Output is correct |
93 |
Correct |
184 ms |
564216 KB |
Output is correct |
94 |
Correct |
180 ms |
564064 KB |
Output is correct |
95 |
Correct |
180 ms |
564048 KB |
Output is correct |
96 |
Correct |
182 ms |
564064 KB |
Output is correct |
97 |
Correct |
182 ms |
564052 KB |
Output is correct |
98 |
Correct |
180 ms |
563796 KB |
Output is correct |
99 |
Correct |
182 ms |
564304 KB |
Output is correct |
100 |
Correct |
183 ms |
563872 KB |
Output is correct |
101 |
Correct |
180 ms |
563820 KB |
Output is correct |
102 |
Correct |
185 ms |
564304 KB |
Output is correct |
103 |
Correct |
249 ms |
563872 KB |
Output is correct |
104 |
Correct |
180 ms |
563916 KB |
Output is correct |
105 |
Correct |
184 ms |
564052 KB |
Output is correct |
106 |
Correct |
183 ms |
563796 KB |
Output is correct |
107 |
Correct |
179 ms |
564048 KB |
Output is correct |
108 |
Correct |
181 ms |
564056 KB |
Output is correct |
109 |
Correct |
181 ms |
564024 KB |
Output is correct |
110 |
Correct |
183 ms |
564824 KB |
Output is correct |
111 |
Correct |
184 ms |
566100 KB |
Output is correct |
112 |
Correct |
185 ms |
565604 KB |
Output is correct |
113 |
Correct |
181 ms |
565336 KB |
Output is correct |
114 |
Correct |
181 ms |
564816 KB |
Output is correct |
115 |
Correct |
180 ms |
565032 KB |
Output is correct |
116 |
Correct |
181 ms |
565072 KB |
Output is correct |
117 |
Correct |
182 ms |
565080 KB |
Output is correct |
118 |
Correct |
191 ms |
565228 KB |
Output is correct |
119 |
Correct |
191 ms |
569008 KB |
Output is correct |
120 |
Correct |
191 ms |
569824 KB |
Output is correct |
121 |
Correct |
187 ms |
567892 KB |
Output is correct |
122 |
Correct |
181 ms |
567124 KB |
Output is correct |
123 |
Correct |
179 ms |
567164 KB |
Output is correct |
124 |
Correct |
234 ms |
579484 KB |
Output is correct |
125 |
Correct |
342 ms |
602860 KB |
Output is correct |
126 |
Correct |
288 ms |
626508 KB |
Output is correct |
127 |
Correct |
259 ms |
608364 KB |
Output is correct |
128 |
Correct |
211 ms |
603216 KB |
Output is correct |
129 |
Correct |
208 ms |
603352 KB |
Output is correct |
130 |
Correct |
360 ms |
607928 KB |
Output is correct |
131 |
Correct |
358 ms |
608536 KB |
Output is correct |
132 |
Correct |
183 ms |
564808 KB |
Output is correct |
133 |
Correct |
181 ms |
564076 KB |
Output is correct |
134 |
Correct |
178 ms |
564048 KB |
Output is correct |
135 |
Correct |
185 ms |
565032 KB |
Output is correct |
136 |
Correct |
183 ms |
565108 KB |
Output is correct |
137 |
Correct |
184 ms |
566068 KB |
Output is correct |
138 |
Correct |
184 ms |
565656 KB |
Output is correct |
139 |
Correct |
187 ms |
564820 KB |
Output is correct |
140 |
Correct |
179 ms |
565036 KB |
Output is correct |
141 |
Correct |
187 ms |
565216 KB |
Output is correct |
142 |
Correct |
179 ms |
564924 KB |
Output is correct |
143 |
Correct |
179 ms |
564820 KB |
Output is correct |
144 |
Correct |
181 ms |
565432 KB |
Output is correct |
145 |
Correct |
183 ms |
565328 KB |
Output is correct |
146 |
Correct |
180 ms |
565060 KB |
Output is correct |
147 |
Correct |
181 ms |
565084 KB |
Output is correct |
148 |
Correct |
179 ms |
565616 KB |
Output is correct |
149 |
Correct |
181 ms |
565332 KB |
Output is correct |
150 |
Correct |
181 ms |
564940 KB |
Output is correct |
151 |
Correct |
184 ms |
564944 KB |
Output is correct |
152 |
Correct |
184 ms |
565076 KB |
Output is correct |
153 |
Correct |
180 ms |
565044 KB |
Output is correct |
154 |
Correct |
192 ms |
567404 KB |
Output is correct |
155 |
Correct |
182 ms |
565212 KB |
Output is correct |
156 |
Correct |
190 ms |
568868 KB |
Output is correct |
157 |
Correct |
195 ms |
566716 KB |
Output is correct |
158 |
Correct |
190 ms |
569824 KB |
Output is correct |
159 |
Correct |
197 ms |
567192 KB |
Output is correct |
160 |
Correct |
190 ms |
567124 KB |
Output is correct |
161 |
Correct |
195 ms |
567696 KB |
Output is correct |
162 |
Correct |
182 ms |
567124 KB |
Output is correct |
163 |
Correct |
181 ms |
567120 KB |
Output is correct |
164 |
Correct |
190 ms |
567856 KB |
Output is correct |
165 |
Correct |
185 ms |
567940 KB |
Output is correct |
166 |
Correct |
192 ms |
567620 KB |
Output is correct |
167 |
Correct |
188 ms |
567120 KB |
Output is correct |
168 |
Correct |
197 ms |
567124 KB |
Output is correct |
169 |
Correct |
195 ms |
567224 KB |
Output is correct |
170 |
Correct |
193 ms |
566868 KB |
Output is correct |
171 |
Correct |
193 ms |
567224 KB |
Output is correct |
172 |
Correct |
195 ms |
567332 KB |
Output is correct |
173 |
Correct |
188 ms |
567124 KB |
Output is correct |
174 |
Correct |
204 ms |
567380 KB |
Output is correct |
175 |
Correct |
213 ms |
570240 KB |
Output is correct |
176 |
Correct |
227 ms |
578616 KB |
Output is correct |
177 |
Correct |
276 ms |
582292 KB |
Output is correct |
178 |
Correct |
317 ms |
588548 KB |
Output is correct |
179 |
Correct |
293 ms |
592896 KB |
Output is correct |
180 |
Correct |
312 ms |
589396 KB |
Output is correct |
181 |
Correct |
318 ms |
590160 KB |
Output is correct |
182 |
Correct |
340 ms |
592036 KB |
Output is correct |
183 |
Correct |
329 ms |
595056 KB |
Output is correct |
184 |
Correct |
488 ms |
619956 KB |
Output is correct |
185 |
Correct |
351 ms |
592028 KB |
Output is correct |
186 |
Correct |
433 ms |
617848 KB |
Output is correct |
187 |
Correct |
466 ms |
611116 KB |
Output is correct |
188 |
Correct |
393 ms |
663944 KB |
Output is correct |
189 |
Correct |
514 ms |
619924 KB |
Output is correct |
190 |
Correct |
442 ms |
619600 KB |
Output is correct |
191 |
Correct |
334 ms |
633652 KB |
Output is correct |
192 |
Correct |
275 ms |
619748 KB |
Output is correct |
193 |
Correct |
234 ms |
619604 KB |
Output is correct |
194 |
Correct |
349 ms |
635504 KB |
Output is correct |
195 |
Correct |
340 ms |
635604 KB |
Output is correct |
196 |
Correct |
475 ms |
613844 KB |
Output is correct |
197 |
Correct |
453 ms |
621260 KB |
Output is correct |
198 |
Correct |
472 ms |
614228 KB |
Output is correct |
199 |
Correct |
495 ms |
616336 KB |
Output is correct |
200 |
Correct |
492 ms |
620624 KB |
Output is correct |
201 |
Correct |
500 ms |
620064 KB |
Output is correct |
202 |
Correct |
448 ms |
619856 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
177 ms |
563996 KB |
Output is correct |
2 |
Correct |
178 ms |
564012 KB |
Output is correct |
3 |
Correct |
232 ms |
564052 KB |
Output is correct |
4 |
Correct |
178 ms |
564084 KB |
Output is correct |
5 |
Correct |
179 ms |
564124 KB |
Output is correct |
6 |
Correct |
195 ms |
564052 KB |
Output is correct |
7 |
Correct |
178 ms |
564048 KB |
Output is correct |
8 |
Correct |
180 ms |
564064 KB |
Output is correct |
9 |
Correct |
179 ms |
563828 KB |
Output is correct |
10 |
Correct |
181 ms |
563984 KB |
Output is correct |
11 |
Correct |
178 ms |
564032 KB |
Output is correct |
12 |
Correct |
178 ms |
563824 KB |
Output is correct |
13 |
Correct |
179 ms |
563948 KB |
Output is correct |
14 |
Correct |
178 ms |
563888 KB |
Output is correct |
15 |
Correct |
178 ms |
563796 KB |
Output is correct |
16 |
Correct |
179 ms |
564316 KB |
Output is correct |
17 |
Correct |
179 ms |
564304 KB |
Output is correct |
18 |
Correct |
180 ms |
563856 KB |
Output is correct |
19 |
Correct |
191 ms |
564816 KB |
Output is correct |
20 |
Correct |
194 ms |
565068 KB |
Output is correct |
21 |
Correct |
185 ms |
565624 KB |
Output is correct |
22 |
Correct |
183 ms |
564816 KB |
Output is correct |
23 |
Correct |
180 ms |
564820 KB |
Output is correct |
24 |
Correct |
184 ms |
565268 KB |
Output is correct |
25 |
Correct |
181 ms |
565268 KB |
Output is correct |
26 |
Correct |
184 ms |
565076 KB |
Output is correct |
27 |
Correct |
186 ms |
565088 KB |
Output is correct |
28 |
Correct |
181 ms |
564848 KB |
Output is correct |
29 |
Correct |
188 ms |
567124 KB |
Output is correct |
30 |
Correct |
183 ms |
565076 KB |
Output is correct |
31 |
Correct |
191 ms |
569680 KB |
Output is correct |
32 |
Correct |
192 ms |
567120 KB |
Output is correct |
33 |
Correct |
188 ms |
567184 KB |
Output is correct |
34 |
Correct |
188 ms |
567872 KB |
Output is correct |
35 |
Correct |
193 ms |
567888 KB |
Output is correct |
36 |
Correct |
201 ms |
567616 KB |
Output is correct |
37 |
Correct |
194 ms |
567024 KB |
Output is correct |
38 |
Correct |
191 ms |
567120 KB |
Output is correct |
39 |
Correct |
313 ms |
603472 KB |
Output is correct |
40 |
Correct |
195 ms |
567216 KB |
Output is correct |
41 |
Correct |
189 ms |
568448 KB |
Output is correct |
42 |
Correct |
206 ms |
569976 KB |
Output is correct |
43 |
Correct |
193 ms |
568788 KB |
Output is correct |
44 |
Correct |
249 ms |
577216 KB |
Output is correct |
45 |
Correct |
241 ms |
580416 KB |
Output is correct |
46 |
Correct |
288 ms |
626456 KB |
Output is correct |
47 |
Correct |
341 ms |
603472 KB |
Output is correct |
48 |
Correct |
328 ms |
603272 KB |
Output is correct |
49 |
Correct |
264 ms |
599696 KB |
Output is correct |
50 |
Correct |
251 ms |
599696 KB |
Output is correct |
51 |
Correct |
363 ms |
603988 KB |
Output is correct |
52 |
Correct |
352 ms |
603552 KB |
Output is correct |
53 |
Correct |
321 ms |
603424 KB |
Output is correct |
54 |
Correct |
189 ms |
564052 KB |
Output is correct |
55 |
Correct |
182 ms |
563876 KB |
Output is correct |
56 |
Correct |
178 ms |
563868 KB |
Output is correct |
57 |
Correct |
182 ms |
563792 KB |
Output is correct |
58 |
Correct |
179 ms |
563912 KB |
Output is correct |
59 |
Correct |
181 ms |
564272 KB |
Output is correct |
60 |
Correct |
181 ms |
563792 KB |
Output is correct |
61 |
Correct |
180 ms |
563796 KB |
Output is correct |
62 |
Correct |
180 ms |
564052 KB |
Output is correct |
63 |
Correct |
182 ms |
563916 KB |
Output is correct |
64 |
Correct |
182 ms |
564048 KB |
Output is correct |
65 |
Correct |
182 ms |
564056 KB |
Output is correct |
66 |
Correct |
180 ms |
563920 KB |
Output is correct |
67 |
Correct |
186 ms |
564148 KB |
Output is correct |
68 |
Correct |
180 ms |
564040 KB |
Output is correct |
69 |
Correct |
182 ms |
563896 KB |
Output is correct |
70 |
Correct |
183 ms |
564176 KB |
Output is correct |
71 |
Correct |
179 ms |
563996 KB |
Output is correct |
72 |
Correct |
180 ms |
563844 KB |
Output is correct |
73 |
Correct |
186 ms |
564292 KB |
Output is correct |
74 |
Correct |
181 ms |
564036 KB |
Output is correct |
75 |
Correct |
180 ms |
564048 KB |
Output is correct |
76 |
Correct |
179 ms |
563968 KB |
Output is correct |
77 |
Correct |
179 ms |
563796 KB |
Output is correct |
78 |
Correct |
180 ms |
564008 KB |
Output is correct |
79 |
Correct |
182 ms |
563796 KB |
Output is correct |
80 |
Correct |
184 ms |
564164 KB |
Output is correct |
81 |
Correct |
180 ms |
564048 KB |
Output is correct |
82 |
Correct |
186 ms |
563796 KB |
Output is correct |
83 |
Correct |
183 ms |
564308 KB |
Output is correct |
84 |
Correct |
181 ms |
564052 KB |
Output is correct |
85 |
Correct |
180 ms |
563828 KB |
Output is correct |
86 |
Correct |
180 ms |
563868 KB |
Output is correct |
87 |
Correct |
182 ms |
563944 KB |
Output is correct |
88 |
Correct |
179 ms |
563968 KB |
Output is correct |
89 |
Correct |
180 ms |
563796 KB |
Output is correct |
90 |
Correct |
181 ms |
563868 KB |
Output is correct |
91 |
Correct |
181 ms |
563796 KB |
Output is correct |
92 |
Correct |
181 ms |
563868 KB |
Output is correct |
93 |
Correct |
184 ms |
564216 KB |
Output is correct |
94 |
Correct |
180 ms |
564064 KB |
Output is correct |
95 |
Correct |
180 ms |
564048 KB |
Output is correct |
96 |
Correct |
182 ms |
564064 KB |
Output is correct |
97 |
Correct |
182 ms |
564052 KB |
Output is correct |
98 |
Correct |
180 ms |
563796 KB |
Output is correct |
99 |
Correct |
182 ms |
564304 KB |
Output is correct |
100 |
Correct |
183 ms |
563872 KB |
Output is correct |
101 |
Correct |
180 ms |
563820 KB |
Output is correct |
102 |
Correct |
185 ms |
564304 KB |
Output is correct |
103 |
Correct |
249 ms |
563872 KB |
Output is correct |
104 |
Correct |
180 ms |
563916 KB |
Output is correct |
105 |
Correct |
184 ms |
564052 KB |
Output is correct |
106 |
Correct |
183 ms |
563796 KB |
Output is correct |
107 |
Correct |
179 ms |
564048 KB |
Output is correct |
108 |
Correct |
181 ms |
564056 KB |
Output is correct |
109 |
Correct |
181 ms |
564024 KB |
Output is correct |
110 |
Correct |
183 ms |
564824 KB |
Output is correct |
111 |
Correct |
184 ms |
566100 KB |
Output is correct |
112 |
Correct |
185 ms |
565604 KB |
Output is correct |
113 |
Correct |
181 ms |
565336 KB |
Output is correct |
114 |
Correct |
181 ms |
564816 KB |
Output is correct |
115 |
Correct |
180 ms |
565032 KB |
Output is correct |
116 |
Correct |
181 ms |
565072 KB |
Output is correct |
117 |
Correct |
182 ms |
565080 KB |
Output is correct |
118 |
Correct |
191 ms |
565228 KB |
Output is correct |
119 |
Correct |
191 ms |
569008 KB |
Output is correct |
120 |
Correct |
191 ms |
569824 KB |
Output is correct |
121 |
Correct |
187 ms |
567892 KB |
Output is correct |
122 |
Correct |
181 ms |
567124 KB |
Output is correct |
123 |
Correct |
179 ms |
567164 KB |
Output is correct |
124 |
Correct |
234 ms |
579484 KB |
Output is correct |
125 |
Correct |
342 ms |
602860 KB |
Output is correct |
126 |
Correct |
288 ms |
626508 KB |
Output is correct |
127 |
Correct |
259 ms |
608364 KB |
Output is correct |
128 |
Correct |
211 ms |
603216 KB |
Output is correct |
129 |
Correct |
208 ms |
603352 KB |
Output is correct |
130 |
Correct |
360 ms |
607928 KB |
Output is correct |
131 |
Correct |
358 ms |
608536 KB |
Output is correct |
132 |
Correct |
183 ms |
564808 KB |
Output is correct |
133 |
Correct |
181 ms |
564076 KB |
Output is correct |
134 |
Correct |
178 ms |
564048 KB |
Output is correct |
135 |
Correct |
185 ms |
565032 KB |
Output is correct |
136 |
Correct |
183 ms |
565108 KB |
Output is correct |
137 |
Correct |
184 ms |
566068 KB |
Output is correct |
138 |
Correct |
184 ms |
565656 KB |
Output is correct |
139 |
Correct |
187 ms |
564820 KB |
Output is correct |
140 |
Correct |
179 ms |
565036 KB |
Output is correct |
141 |
Correct |
187 ms |
565216 KB |
Output is correct |
142 |
Correct |
179 ms |
564924 KB |
Output is correct |
143 |
Correct |
179 ms |
564820 KB |
Output is correct |
144 |
Correct |
181 ms |
565432 KB |
Output is correct |
145 |
Correct |
183 ms |
565328 KB |
Output is correct |
146 |
Correct |
180 ms |
565060 KB |
Output is correct |
147 |
Correct |
181 ms |
565084 KB |
Output is correct |
148 |
Correct |
179 ms |
565616 KB |
Output is correct |
149 |
Correct |
181 ms |
565332 KB |
Output is correct |
150 |
Correct |
181 ms |
564940 KB |
Output is correct |
151 |
Correct |
184 ms |
564944 KB |
Output is correct |
152 |
Correct |
184 ms |
565076 KB |
Output is correct |
153 |
Correct |
180 ms |
565044 KB |
Output is correct |
154 |
Correct |
192 ms |
567404 KB |
Output is correct |
155 |
Correct |
182 ms |
565212 KB |
Output is correct |
156 |
Correct |
190 ms |
568868 KB |
Output is correct |
157 |
Correct |
195 ms |
566716 KB |
Output is correct |
158 |
Correct |
190 ms |
569824 KB |
Output is correct |
159 |
Correct |
197 ms |
567192 KB |
Output is correct |
160 |
Correct |
190 ms |
567124 KB |
Output is correct |
161 |
Correct |
195 ms |
567696 KB |
Output is correct |
162 |
Correct |
182 ms |
567124 KB |
Output is correct |
163 |
Correct |
181 ms |
567120 KB |
Output is correct |
164 |
Correct |
190 ms |
567856 KB |
Output is correct |
165 |
Correct |
185 ms |
567940 KB |
Output is correct |
166 |
Correct |
192 ms |
567620 KB |
Output is correct |
167 |
Correct |
188 ms |
567120 KB |
Output is correct |
168 |
Correct |
197 ms |
567124 KB |
Output is correct |
169 |
Correct |
195 ms |
567224 KB |
Output is correct |
170 |
Correct |
193 ms |
566868 KB |
Output is correct |
171 |
Correct |
193 ms |
567224 KB |
Output is correct |
172 |
Correct |
195 ms |
567332 KB |
Output is correct |
173 |
Correct |
188 ms |
567124 KB |
Output is correct |
174 |
Correct |
204 ms |
567380 KB |
Output is correct |
175 |
Correct |
213 ms |
570240 KB |
Output is correct |
176 |
Correct |
227 ms |
578616 KB |
Output is correct |
177 |
Correct |
276 ms |
582292 KB |
Output is correct |
178 |
Correct |
317 ms |
588548 KB |
Output is correct |
179 |
Correct |
293 ms |
592896 KB |
Output is correct |
180 |
Correct |
312 ms |
589396 KB |
Output is correct |
181 |
Correct |
318 ms |
590160 KB |
Output is correct |
182 |
Correct |
340 ms |
592036 KB |
Output is correct |
183 |
Correct |
329 ms |
595056 KB |
Output is correct |
184 |
Correct |
488 ms |
619956 KB |
Output is correct |
185 |
Correct |
351 ms |
592028 KB |
Output is correct |
186 |
Correct |
433 ms |
617848 KB |
Output is correct |
187 |
Correct |
466 ms |
611116 KB |
Output is correct |
188 |
Correct |
393 ms |
663944 KB |
Output is correct |
189 |
Correct |
514 ms |
619924 KB |
Output is correct |
190 |
Correct |
442 ms |
619600 KB |
Output is correct |
191 |
Correct |
334 ms |
633652 KB |
Output is correct |
192 |
Correct |
275 ms |
619748 KB |
Output is correct |
193 |
Correct |
234 ms |
619604 KB |
Output is correct |
194 |
Correct |
349 ms |
635504 KB |
Output is correct |
195 |
Correct |
340 ms |
635604 KB |
Output is correct |
196 |
Correct |
475 ms |
613844 KB |
Output is correct |
197 |
Correct |
453 ms |
621260 KB |
Output is correct |
198 |
Correct |
472 ms |
614228 KB |
Output is correct |
199 |
Correct |
495 ms |
616336 KB |
Output is correct |
200 |
Correct |
492 ms |
620624 KB |
Output is correct |
201 |
Correct |
500 ms |
620064 KB |
Output is correct |
202 |
Correct |
448 ms |
619856 KB |
Output is correct |
203 |
Correct |
798 ms |
697840 KB |
Output is correct |
204 |
Correct |
451 ms |
629988 KB |
Output is correct |
205 |
Correct |
670 ms |
631024 KB |
Output is correct |
206 |
Correct |
735 ms |
671160 KB |
Output is correct |
207 |
Correct |
623 ms |
771716 KB |
Output is correct |
208 |
Correct |
870 ms |
697672 KB |
Output is correct |
209 |
Correct |
788 ms |
697424 KB |
Output is correct |
210 |
Correct |
520 ms |
733408 KB |
Output is correct |
211 |
Correct |
328 ms |
697600 KB |
Output is correct |
212 |
Correct |
306 ms |
697332 KB |
Output is correct |
213 |
Correct |
539 ms |
707052 KB |
Output is correct |
214 |
Correct |
485 ms |
707180 KB |
Output is correct |
215 |
Correct |
691 ms |
672400 KB |
Output is correct |
216 |
Correct |
794 ms |
661964 KB |
Output is correct |
217 |
Correct |
774 ms |
678188 KB |
Output is correct |
218 |
Correct |
841 ms |
665976 KB |
Output is correct |
219 |
Correct |
856 ms |
688944 KB |
Output is correct |
220 |
Correct |
871 ms |
719924 KB |
Output is correct |
221 |
Correct |
986 ms |
734424 KB |
Output is correct |
222 |
Correct |
956 ms |
751616 KB |
Output is correct |
223 |
Correct |
858 ms |
698840 KB |
Output is correct |
224 |
Correct |
877 ms |
698240 KB |
Output is correct |
225 |
Correct |
747 ms |
697780 KB |
Output is correct |