#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef __int128 lll;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pld;
#define MAX 9223372036854775807LL
#define MIN -9223372036854775807LL
#define INF 0x3f3f3f3f3f3f3f3f
#define fi first
#define se second
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cout << fixed; cout.precision(10);
#define sp << " "
#define en << "\n"
#define compress(v) sort(v.begin(), v.end()), v.erase(unique(v.begin(), v.end()), v.end())
ll R, C, N;
ll sx, sy;
ll ex, ey;
vector<string> a;
vector< vector<ll> > chk;
vector<ll> tmp;
string all;
vector<pll> now;
ll dx[] = {-1, 1, 0, 0};
ll dy[] = {0, 0, -1, 1};
ll T;
void Wbfs(void)
{
queue<pll> q;
for(auto &i : now)
q.push(i);
while(!q.empty())
{
pll qq = q.front();
q.pop();
for(ll d = 0 ; d < 4 ; d++)
{
ll nx = qq.fi + dx[d];
ll ny = qq.se + dy[d];
if(nx < 0 || ny < 0 || nx >= R || ny >= C)
continue;
if(a[nx][ny] == '#' || chk[nx][ny])
continue;
chk[nx][ny] = T;
now.push_back({nx, ny});
q.push({nx, ny});
}
}
}
int main(void)
{
fastio
cin >> R >> C >> N;
cin >> sx >> sy;
cin >> ex >> ey;
sx--, sy--;
ex--, ey--;
for(ll i = 0 ; i < R ; i++)
{
cin >> all;
a.push_back(all);
}
for(ll i = 0 ; i < C ; i++)
tmp.push_back(0);
for(ll i = 0 ; i < R ; i++)
chk.push_back(tmp);
T = 1;
chk[sx][sy] = T;
now.push_back({sx, sy});
Wbfs();
while(1)
{
if(chk[ex][ey])
{
cout << chk[ex][ey] - 1;
return 0;
}
T++;
vector<pll> tmp2;
for(auto &i : now)
{
for(ll d = 0 ; d < 4 ; d++)
{
ll nx = i.fi + dx[d];
ll ny = i.se + dy[d];
if(nx < 0 || ny < 0 || nx >= R || ny >= C)
continue;
if(chk[nx][ny] || a[nx][ny] == '.')
continue;
chk[nx][ny] = T;
tmp2.push_back({nx, ny});
}
}
now = tmp2;
for(auto &i : tmp2)
{
for(ll d = 1 ; d < N ; d++)
{
ll nx = i.fi - d;
ll ny = i.se;
if(nx < 0 || nx >= R)
continue;
if(chk[nx][ny])
break;
chk[nx][ny] = T;
now.push_back({nx, ny});
}
for(ll d = 1 ; d < N ; d++)
{
ll nx = i.fi + d;
ll ny = i.se;
if(nx < 0 || nx >= R)
continue;
if(chk[nx][ny])
break;
chk[nx][ny] = T;
now.push_back({nx, ny});
}
}
tmp2 = now;
for(auto &i : tmp2)
{
for(ll d = 1 ; d < N ; d++)
{
ll nx = i.fi;
ll ny = i.se - d;
if(ny < 0 || ny >= C)
continue;
if(chk[nx][ny])
break;
chk[nx][ny] = T;
now.push_back({nx, ny});
}
for(ll d = 1 ; d < N ; d++)
{
ll nx = i.fi;
ll ny = i.se + d;
if(ny < 0 || ny >= C)
continue;
if(chk[nx][ny])
break;
chk[nx][ny] = T;
now.push_back({nx, ny});
}
}
Wbfs();
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
316 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
316 KB |
Output is correct |
6 |
Correct |
0 ms |
316 KB |
Output is correct |
7 |
Correct |
0 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
320 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
288 KB |
Output is correct |
13 |
Correct |
1 ms |
320 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
316 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
312 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
2 ms |
852 KB |
Output is correct |
20 |
Correct |
4 ms |
1228 KB |
Output is correct |
21 |
Correct |
2 ms |
1992 KB |
Output is correct |
22 |
Correct |
4 ms |
980 KB |
Output is correct |
23 |
Correct |
4 ms |
840 KB |
Output is correct |
24 |
Correct |
3 ms |
1520 KB |
Output is correct |
25 |
Correct |
6 ms |
1520 KB |
Output is correct |
26 |
Correct |
1 ms |
1100 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
980 KB |
Output is correct |
29 |
Correct |
6 ms |
1876 KB |
Output is correct |
30 |
Correct |
4 ms |
1232 KB |
Output is correct |
31 |
Correct |
6 ms |
6084 KB |
Output is correct |
32 |
Correct |
9 ms |
1876 KB |
Output is correct |
33 |
Correct |
5 ms |
1876 KB |
Output is correct |
34 |
Correct |
5 ms |
3152 KB |
Output is correct |
35 |
Correct |
17 ms |
3144 KB |
Output is correct |
36 |
Correct |
6 ms |
2324 KB |
Output is correct |
37 |
Correct |
8 ms |
2188 KB |
Output is correct |
38 |
Correct |
1 ms |
1876 KB |
Output is correct |
39 |
Correct |
77 ms |
15196 KB |
Output is correct |
40 |
Correct |
4 ms |
2004 KB |
Output is correct |
41 |
Correct |
5 ms |
3784 KB |
Output is correct |
42 |
Correct |
11 ms |
2516 KB |
Output is correct |
43 |
Correct |
12 ms |
3796 KB |
Output is correct |
44 |
Correct |
16 ms |
8824 KB |
Output is correct |
45 |
Correct |
27 ms |
9744 KB |
Output is correct |
46 |
Correct |
74 ms |
48052 KB |
Output is correct |
47 |
Correct |
89 ms |
15560 KB |
Output is correct |
48 |
Correct |
47 ms |
15180 KB |
Output is correct |
49 |
Correct |
41 ms |
29216 KB |
Output is correct |
50 |
Correct |
88 ms |
29240 KB |
Output is correct |
51 |
Correct |
75 ms |
17240 KB |
Output is correct |
52 |
Correct |
52 ms |
16068 KB |
Output is correct |
53 |
Correct |
58 ms |
15488 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
320 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
324 KB |
Output is correct |
8 |
Correct |
1 ms |
316 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
320 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
320 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
324 KB |
Output is correct |
27 |
Correct |
1 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
0 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
320 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
324 KB |
Output is correct |
9 |
Correct |
1 ms |
324 KB |
Output is correct |
10 |
Correct |
1 ms |
324 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
324 KB |
Output is correct |
22 |
Correct |
1 ms |
320 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
320 KB |
Output is correct |
25 |
Correct |
1 ms |
724 KB |
Output is correct |
26 |
Correct |
3 ms |
1996 KB |
Output is correct |
27 |
Correct |
2 ms |
2056 KB |
Output is correct |
28 |
Correct |
2 ms |
2004 KB |
Output is correct |
29 |
Correct |
4 ms |
2792 KB |
Output is correct |
30 |
Correct |
3 ms |
2776 KB |
Output is correct |
31 |
Correct |
2 ms |
1108 KB |
Output is correct |
32 |
Correct |
1 ms |
1108 KB |
Output is correct |
33 |
Correct |
1 ms |
980 KB |
Output is correct |
34 |
Correct |
5 ms |
3656 KB |
Output is correct |
35 |
Correct |
8 ms |
6080 KB |
Output is correct |
36 |
Correct |
8 ms |
6084 KB |
Output is correct |
37 |
Correct |
10 ms |
6676 KB |
Output is correct |
38 |
Correct |
8 ms |
6588 KB |
Output is correct |
39 |
Correct |
18 ms |
12992 KB |
Output is correct |
40 |
Correct |
56 ms |
29352 KB |
Output is correct |
41 |
Correct |
79 ms |
48072 KB |
Output is correct |
42 |
Correct |
56 ms |
48004 KB |
Output is correct |
43 |
Correct |
92 ms |
63248 KB |
Output is correct |
44 |
Correct |
65 ms |
63200 KB |
Output is correct |
45 |
Correct |
52 ms |
31968 KB |
Output is correct |
46 |
Correct |
51 ms |
31608 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
320 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
324 KB |
Output is correct |
8 |
Correct |
1 ms |
316 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
320 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
320 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
324 KB |
Output is correct |
27 |
Correct |
1 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
0 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
3 ms |
852 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
724 KB |
Output is correct |
37 |
Correct |
5 ms |
1228 KB |
Output is correct |
38 |
Correct |
3 ms |
1996 KB |
Output is correct |
39 |
Correct |
2 ms |
2004 KB |
Output is correct |
40 |
Correct |
4 ms |
972 KB |
Output is correct |
41 |
Correct |
3 ms |
840 KB |
Output is correct |
42 |
Correct |
2 ms |
2004 KB |
Output is correct |
43 |
Correct |
4 ms |
2792 KB |
Output is correct |
44 |
Correct |
3 ms |
2776 KB |
Output is correct |
45 |
Correct |
2 ms |
1636 KB |
Output is correct |
46 |
Correct |
5 ms |
1520 KB |
Output is correct |
47 |
Correct |
4 ms |
1232 KB |
Output is correct |
48 |
Correct |
3 ms |
976 KB |
Output is correct |
49 |
Correct |
2 ms |
1012 KB |
Output is correct |
50 |
Correct |
3 ms |
980 KB |
Output is correct |
51 |
Correct |
2 ms |
1104 KB |
Output is correct |
52 |
Correct |
1 ms |
1108 KB |
Output is correct |
53 |
Correct |
1 ms |
980 KB |
Output is correct |
54 |
Correct |
2 ms |
980 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
320 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
324 KB |
Output is correct |
8 |
Correct |
1 ms |
316 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
320 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
320 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
324 KB |
Output is correct |
27 |
Correct |
1 ms |
212 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
0 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
3 ms |
852 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
724 KB |
Output is correct |
37 |
Correct |
5 ms |
1228 KB |
Output is correct |
38 |
Correct |
3 ms |
1996 KB |
Output is correct |
39 |
Correct |
2 ms |
2004 KB |
Output is correct |
40 |
Correct |
4 ms |
972 KB |
Output is correct |
41 |
Correct |
3 ms |
840 KB |
Output is correct |
42 |
Correct |
2 ms |
2004 KB |
Output is correct |
43 |
Correct |
4 ms |
2792 KB |
Output is correct |
44 |
Correct |
3 ms |
2776 KB |
Output is correct |
45 |
Correct |
2 ms |
1636 KB |
Output is correct |
46 |
Correct |
5 ms |
1520 KB |
Output is correct |
47 |
Correct |
4 ms |
1232 KB |
Output is correct |
48 |
Correct |
3 ms |
976 KB |
Output is correct |
49 |
Correct |
2 ms |
1012 KB |
Output is correct |
50 |
Correct |
3 ms |
980 KB |
Output is correct |
51 |
Correct |
2 ms |
1104 KB |
Output is correct |
52 |
Correct |
1 ms |
1108 KB |
Output is correct |
53 |
Correct |
1 ms |
980 KB |
Output is correct |
54 |
Correct |
2 ms |
980 KB |
Output is correct |
55 |
Correct |
6 ms |
1876 KB |
Output is correct |
56 |
Correct |
3 ms |
1284 KB |
Output is correct |
57 |
Correct |
5 ms |
3656 KB |
Output is correct |
58 |
Correct |
6 ms |
1816 KB |
Output is correct |
59 |
Correct |
5 ms |
6084 KB |
Output is correct |
60 |
Correct |
9 ms |
1876 KB |
Output is correct |
61 |
Correct |
5 ms |
1868 KB |
Output is correct |
62 |
Correct |
5 ms |
6076 KB |
Output is correct |
63 |
Correct |
11 ms |
6592 KB |
Output is correct |
64 |
Correct |
7 ms |
6596 KB |
Output is correct |
65 |
Correct |
5 ms |
3140 KB |
Output is correct |
66 |
Correct |
13 ms |
3152 KB |
Output is correct |
67 |
Correct |
10 ms |
2504 KB |
Output is correct |
68 |
Correct |
8 ms |
1916 KB |
Output is correct |
69 |
Correct |
8 ms |
1964 KB |
Output is correct |
70 |
Correct |
8 ms |
2004 KB |
Output is correct |
71 |
Correct |
8 ms |
2240 KB |
Output is correct |
72 |
Correct |
6 ms |
2340 KB |
Output is correct |
73 |
Correct |
8 ms |
2180 KB |
Output is correct |
74 |
Correct |
1 ms |
1876 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
316 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
316 KB |
Output is correct |
6 |
Correct |
0 ms |
316 KB |
Output is correct |
7 |
Correct |
0 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
320 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
288 KB |
Output is correct |
13 |
Correct |
1 ms |
320 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
316 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
312 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
2 ms |
852 KB |
Output is correct |
20 |
Correct |
4 ms |
1228 KB |
Output is correct |
21 |
Correct |
2 ms |
1992 KB |
Output is correct |
22 |
Correct |
4 ms |
980 KB |
Output is correct |
23 |
Correct |
4 ms |
840 KB |
Output is correct |
24 |
Correct |
3 ms |
1520 KB |
Output is correct |
25 |
Correct |
6 ms |
1520 KB |
Output is correct |
26 |
Correct |
1 ms |
1100 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
980 KB |
Output is correct |
29 |
Correct |
6 ms |
1876 KB |
Output is correct |
30 |
Correct |
4 ms |
1232 KB |
Output is correct |
31 |
Correct |
6 ms |
6084 KB |
Output is correct |
32 |
Correct |
9 ms |
1876 KB |
Output is correct |
33 |
Correct |
5 ms |
1876 KB |
Output is correct |
34 |
Correct |
5 ms |
3152 KB |
Output is correct |
35 |
Correct |
17 ms |
3144 KB |
Output is correct |
36 |
Correct |
6 ms |
2324 KB |
Output is correct |
37 |
Correct |
8 ms |
2188 KB |
Output is correct |
38 |
Correct |
1 ms |
1876 KB |
Output is correct |
39 |
Correct |
77 ms |
15196 KB |
Output is correct |
40 |
Correct |
4 ms |
2004 KB |
Output is correct |
41 |
Correct |
5 ms |
3784 KB |
Output is correct |
42 |
Correct |
11 ms |
2516 KB |
Output is correct |
43 |
Correct |
12 ms |
3796 KB |
Output is correct |
44 |
Correct |
16 ms |
8824 KB |
Output is correct |
45 |
Correct |
27 ms |
9744 KB |
Output is correct |
46 |
Correct |
74 ms |
48052 KB |
Output is correct |
47 |
Correct |
89 ms |
15560 KB |
Output is correct |
48 |
Correct |
47 ms |
15180 KB |
Output is correct |
49 |
Correct |
41 ms |
29216 KB |
Output is correct |
50 |
Correct |
88 ms |
29240 KB |
Output is correct |
51 |
Correct |
75 ms |
17240 KB |
Output is correct |
52 |
Correct |
52 ms |
16068 KB |
Output is correct |
53 |
Correct |
58 ms |
15488 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
1 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
320 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
324 KB |
Output is correct |
61 |
Correct |
1 ms |
316 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
0 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
320 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
1 ms |
320 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
324 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
320 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
324 KB |
Output is correct |
94 |
Correct |
1 ms |
324 KB |
Output is correct |
95 |
Correct |
1 ms |
324 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
0 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
340 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
324 KB |
Output is correct |
107 |
Correct |
1 ms |
320 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
320 KB |
Output is correct |
110 |
Correct |
1 ms |
724 KB |
Output is correct |
111 |
Correct |
3 ms |
1996 KB |
Output is correct |
112 |
Correct |
2 ms |
2056 KB |
Output is correct |
113 |
Correct |
2 ms |
2004 KB |
Output is correct |
114 |
Correct |
4 ms |
2792 KB |
Output is correct |
115 |
Correct |
3 ms |
2776 KB |
Output is correct |
116 |
Correct |
2 ms |
1108 KB |
Output is correct |
117 |
Correct |
1 ms |
1108 KB |
Output is correct |
118 |
Correct |
1 ms |
980 KB |
Output is correct |
119 |
Correct |
5 ms |
3656 KB |
Output is correct |
120 |
Correct |
8 ms |
6080 KB |
Output is correct |
121 |
Correct |
8 ms |
6084 KB |
Output is correct |
122 |
Correct |
10 ms |
6676 KB |
Output is correct |
123 |
Correct |
8 ms |
6588 KB |
Output is correct |
124 |
Correct |
18 ms |
12992 KB |
Output is correct |
125 |
Correct |
56 ms |
29352 KB |
Output is correct |
126 |
Correct |
79 ms |
48072 KB |
Output is correct |
127 |
Correct |
56 ms |
48004 KB |
Output is correct |
128 |
Correct |
92 ms |
63248 KB |
Output is correct |
129 |
Correct |
65 ms |
63200 KB |
Output is correct |
130 |
Correct |
52 ms |
31968 KB |
Output is correct |
131 |
Correct |
51 ms |
31608 KB |
Output is correct |
132 |
Correct |
3 ms |
852 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
1 ms |
724 KB |
Output is correct |
136 |
Correct |
5 ms |
1228 KB |
Output is correct |
137 |
Correct |
3 ms |
1996 KB |
Output is correct |
138 |
Correct |
2 ms |
2004 KB |
Output is correct |
139 |
Correct |
4 ms |
972 KB |
Output is correct |
140 |
Correct |
3 ms |
840 KB |
Output is correct |
141 |
Correct |
2 ms |
2004 KB |
Output is correct |
142 |
Correct |
4 ms |
2792 KB |
Output is correct |
143 |
Correct |
3 ms |
2776 KB |
Output is correct |
144 |
Correct |
2 ms |
1636 KB |
Output is correct |
145 |
Correct |
5 ms |
1520 KB |
Output is correct |
146 |
Correct |
4 ms |
1232 KB |
Output is correct |
147 |
Correct |
3 ms |
976 KB |
Output is correct |
148 |
Correct |
2 ms |
1012 KB |
Output is correct |
149 |
Correct |
3 ms |
980 KB |
Output is correct |
150 |
Correct |
2 ms |
1104 KB |
Output is correct |
151 |
Correct |
1 ms |
1108 KB |
Output is correct |
152 |
Correct |
1 ms |
980 KB |
Output is correct |
153 |
Correct |
2 ms |
980 KB |
Output is correct |
154 |
Correct |
6 ms |
1876 KB |
Output is correct |
155 |
Correct |
3 ms |
1284 KB |
Output is correct |
156 |
Correct |
5 ms |
3656 KB |
Output is correct |
157 |
Correct |
6 ms |
1816 KB |
Output is correct |
158 |
Correct |
5 ms |
6084 KB |
Output is correct |
159 |
Correct |
9 ms |
1876 KB |
Output is correct |
160 |
Correct |
5 ms |
1868 KB |
Output is correct |
161 |
Correct |
5 ms |
6076 KB |
Output is correct |
162 |
Correct |
11 ms |
6592 KB |
Output is correct |
163 |
Correct |
7 ms |
6596 KB |
Output is correct |
164 |
Correct |
5 ms |
3140 KB |
Output is correct |
165 |
Correct |
13 ms |
3152 KB |
Output is correct |
166 |
Correct |
10 ms |
2504 KB |
Output is correct |
167 |
Correct |
8 ms |
1916 KB |
Output is correct |
168 |
Correct |
8 ms |
1964 KB |
Output is correct |
169 |
Correct |
8 ms |
2004 KB |
Output is correct |
170 |
Correct |
8 ms |
2240 KB |
Output is correct |
171 |
Correct |
6 ms |
2340 KB |
Output is correct |
172 |
Correct |
8 ms |
2180 KB |
Output is correct |
173 |
Correct |
1 ms |
1876 KB |
Output is correct |
174 |
Correct |
4 ms |
2332 KB |
Output is correct |
175 |
Correct |
16 ms |
3792 KB |
Output is correct |
176 |
Correct |
21 ms |
10196 KB |
Output is correct |
177 |
Correct |
34 ms |
10752 KB |
Output is correct |
178 |
Correct |
11 ms |
13624 KB |
Output is correct |
179 |
Correct |
43 ms |
15680 KB |
Output is correct |
180 |
Correct |
89 ms |
15736 KB |
Output is correct |
181 |
Correct |
83 ms |
16092 KB |
Output is correct |
182 |
Correct |
76 ms |
17432 KB |
Output is correct |
183 |
Correct |
84 ms |
22236 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
316 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
316 KB |
Output is correct |
6 |
Correct |
0 ms |
316 KB |
Output is correct |
7 |
Correct |
0 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
320 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
288 KB |
Output is correct |
13 |
Correct |
1 ms |
320 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
316 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
312 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
2 ms |
852 KB |
Output is correct |
20 |
Correct |
4 ms |
1228 KB |
Output is correct |
21 |
Correct |
2 ms |
1992 KB |
Output is correct |
22 |
Correct |
4 ms |
980 KB |
Output is correct |
23 |
Correct |
4 ms |
840 KB |
Output is correct |
24 |
Correct |
3 ms |
1520 KB |
Output is correct |
25 |
Correct |
6 ms |
1520 KB |
Output is correct |
26 |
Correct |
1 ms |
1100 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
980 KB |
Output is correct |
29 |
Correct |
6 ms |
1876 KB |
Output is correct |
30 |
Correct |
4 ms |
1232 KB |
Output is correct |
31 |
Correct |
6 ms |
6084 KB |
Output is correct |
32 |
Correct |
9 ms |
1876 KB |
Output is correct |
33 |
Correct |
5 ms |
1876 KB |
Output is correct |
34 |
Correct |
5 ms |
3152 KB |
Output is correct |
35 |
Correct |
17 ms |
3144 KB |
Output is correct |
36 |
Correct |
6 ms |
2324 KB |
Output is correct |
37 |
Correct |
8 ms |
2188 KB |
Output is correct |
38 |
Correct |
1 ms |
1876 KB |
Output is correct |
39 |
Correct |
77 ms |
15196 KB |
Output is correct |
40 |
Correct |
4 ms |
2004 KB |
Output is correct |
41 |
Correct |
5 ms |
3784 KB |
Output is correct |
42 |
Correct |
11 ms |
2516 KB |
Output is correct |
43 |
Correct |
12 ms |
3796 KB |
Output is correct |
44 |
Correct |
16 ms |
8824 KB |
Output is correct |
45 |
Correct |
27 ms |
9744 KB |
Output is correct |
46 |
Correct |
74 ms |
48052 KB |
Output is correct |
47 |
Correct |
89 ms |
15560 KB |
Output is correct |
48 |
Correct |
47 ms |
15180 KB |
Output is correct |
49 |
Correct |
41 ms |
29216 KB |
Output is correct |
50 |
Correct |
88 ms |
29240 KB |
Output is correct |
51 |
Correct |
75 ms |
17240 KB |
Output is correct |
52 |
Correct |
52 ms |
16068 KB |
Output is correct |
53 |
Correct |
58 ms |
15488 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
1 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
320 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
324 KB |
Output is correct |
61 |
Correct |
1 ms |
316 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
0 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
320 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
1 ms |
320 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
324 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
320 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
324 KB |
Output is correct |
94 |
Correct |
1 ms |
324 KB |
Output is correct |
95 |
Correct |
1 ms |
324 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
0 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
340 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
324 KB |
Output is correct |
107 |
Correct |
1 ms |
320 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
320 KB |
Output is correct |
110 |
Correct |
1 ms |
724 KB |
Output is correct |
111 |
Correct |
3 ms |
1996 KB |
Output is correct |
112 |
Correct |
2 ms |
2056 KB |
Output is correct |
113 |
Correct |
2 ms |
2004 KB |
Output is correct |
114 |
Correct |
4 ms |
2792 KB |
Output is correct |
115 |
Correct |
3 ms |
2776 KB |
Output is correct |
116 |
Correct |
2 ms |
1108 KB |
Output is correct |
117 |
Correct |
1 ms |
1108 KB |
Output is correct |
118 |
Correct |
1 ms |
980 KB |
Output is correct |
119 |
Correct |
5 ms |
3656 KB |
Output is correct |
120 |
Correct |
8 ms |
6080 KB |
Output is correct |
121 |
Correct |
8 ms |
6084 KB |
Output is correct |
122 |
Correct |
10 ms |
6676 KB |
Output is correct |
123 |
Correct |
8 ms |
6588 KB |
Output is correct |
124 |
Correct |
18 ms |
12992 KB |
Output is correct |
125 |
Correct |
56 ms |
29352 KB |
Output is correct |
126 |
Correct |
79 ms |
48072 KB |
Output is correct |
127 |
Correct |
56 ms |
48004 KB |
Output is correct |
128 |
Correct |
92 ms |
63248 KB |
Output is correct |
129 |
Correct |
65 ms |
63200 KB |
Output is correct |
130 |
Correct |
52 ms |
31968 KB |
Output is correct |
131 |
Correct |
51 ms |
31608 KB |
Output is correct |
132 |
Correct |
3 ms |
852 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
1 ms |
724 KB |
Output is correct |
136 |
Correct |
5 ms |
1228 KB |
Output is correct |
137 |
Correct |
3 ms |
1996 KB |
Output is correct |
138 |
Correct |
2 ms |
2004 KB |
Output is correct |
139 |
Correct |
4 ms |
972 KB |
Output is correct |
140 |
Correct |
3 ms |
840 KB |
Output is correct |
141 |
Correct |
2 ms |
2004 KB |
Output is correct |
142 |
Correct |
4 ms |
2792 KB |
Output is correct |
143 |
Correct |
3 ms |
2776 KB |
Output is correct |
144 |
Correct |
2 ms |
1636 KB |
Output is correct |
145 |
Correct |
5 ms |
1520 KB |
Output is correct |
146 |
Correct |
4 ms |
1232 KB |
Output is correct |
147 |
Correct |
3 ms |
976 KB |
Output is correct |
148 |
Correct |
2 ms |
1012 KB |
Output is correct |
149 |
Correct |
3 ms |
980 KB |
Output is correct |
150 |
Correct |
2 ms |
1104 KB |
Output is correct |
151 |
Correct |
1 ms |
1108 KB |
Output is correct |
152 |
Correct |
1 ms |
980 KB |
Output is correct |
153 |
Correct |
2 ms |
980 KB |
Output is correct |
154 |
Correct |
6 ms |
1876 KB |
Output is correct |
155 |
Correct |
3 ms |
1284 KB |
Output is correct |
156 |
Correct |
5 ms |
3656 KB |
Output is correct |
157 |
Correct |
6 ms |
1816 KB |
Output is correct |
158 |
Correct |
5 ms |
6084 KB |
Output is correct |
159 |
Correct |
9 ms |
1876 KB |
Output is correct |
160 |
Correct |
5 ms |
1868 KB |
Output is correct |
161 |
Correct |
5 ms |
6076 KB |
Output is correct |
162 |
Correct |
11 ms |
6592 KB |
Output is correct |
163 |
Correct |
7 ms |
6596 KB |
Output is correct |
164 |
Correct |
5 ms |
3140 KB |
Output is correct |
165 |
Correct |
13 ms |
3152 KB |
Output is correct |
166 |
Correct |
10 ms |
2504 KB |
Output is correct |
167 |
Correct |
8 ms |
1916 KB |
Output is correct |
168 |
Correct |
8 ms |
1964 KB |
Output is correct |
169 |
Correct |
8 ms |
2004 KB |
Output is correct |
170 |
Correct |
8 ms |
2240 KB |
Output is correct |
171 |
Correct |
6 ms |
2340 KB |
Output is correct |
172 |
Correct |
8 ms |
2180 KB |
Output is correct |
173 |
Correct |
1 ms |
1876 KB |
Output is correct |
174 |
Correct |
4 ms |
2332 KB |
Output is correct |
175 |
Correct |
16 ms |
3792 KB |
Output is correct |
176 |
Correct |
21 ms |
10196 KB |
Output is correct |
177 |
Correct |
34 ms |
10752 KB |
Output is correct |
178 |
Correct |
11 ms |
13624 KB |
Output is correct |
179 |
Correct |
43 ms |
15680 KB |
Output is correct |
180 |
Correct |
89 ms |
15736 KB |
Output is correct |
181 |
Correct |
83 ms |
16092 KB |
Output is correct |
182 |
Correct |
76 ms |
17432 KB |
Output is correct |
183 |
Correct |
84 ms |
22236 KB |
Output is correct |
184 |
Correct |
188 ms |
30052 KB |
Output is correct |
185 |
Correct |
29 ms |
17052 KB |
Output is correct |
186 |
Correct |
68 ms |
50240 KB |
Output is correct |
187 |
Correct |
19 ms |
24736 KB |
Output is correct |
188 |
Correct |
146 ms |
95664 KB |
Output is correct |
189 |
Correct |
163 ms |
30568 KB |
Output is correct |
190 |
Correct |
61 ms |
29928 KB |
Output is correct |
191 |
Correct |
135 ms |
95612 KB |
Output is correct |
192 |
Correct |
188 ms |
126100 KB |
Output is correct |
193 |
Correct |
126 ms |
125988 KB |
Output is correct |
194 |
Correct |
101 ms |
58160 KB |
Output is correct |
195 |
Correct |
201 ms |
58160 KB |
Output is correct |
196 |
Correct |
149 ms |
30552 KB |
Output is correct |
197 |
Correct |
87 ms |
30968 KB |
Output is correct |
198 |
Correct |
77 ms |
31548 KB |
Output is correct |
199 |
Correct |
181 ms |
33264 KB |
Output is correct |
200 |
Correct |
102 ms |
33676 KB |
Output is correct |
201 |
Correct |
130 ms |
31796 KB |
Output is correct |
202 |
Correct |
202 ms |
30444 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
316 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
316 KB |
Output is correct |
6 |
Correct |
0 ms |
316 KB |
Output is correct |
7 |
Correct |
0 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
320 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
288 KB |
Output is correct |
13 |
Correct |
1 ms |
320 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
316 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
312 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
2 ms |
852 KB |
Output is correct |
20 |
Correct |
4 ms |
1228 KB |
Output is correct |
21 |
Correct |
2 ms |
1992 KB |
Output is correct |
22 |
Correct |
4 ms |
980 KB |
Output is correct |
23 |
Correct |
4 ms |
840 KB |
Output is correct |
24 |
Correct |
3 ms |
1520 KB |
Output is correct |
25 |
Correct |
6 ms |
1520 KB |
Output is correct |
26 |
Correct |
1 ms |
1100 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
980 KB |
Output is correct |
29 |
Correct |
6 ms |
1876 KB |
Output is correct |
30 |
Correct |
4 ms |
1232 KB |
Output is correct |
31 |
Correct |
6 ms |
6084 KB |
Output is correct |
32 |
Correct |
9 ms |
1876 KB |
Output is correct |
33 |
Correct |
5 ms |
1876 KB |
Output is correct |
34 |
Correct |
5 ms |
3152 KB |
Output is correct |
35 |
Correct |
17 ms |
3144 KB |
Output is correct |
36 |
Correct |
6 ms |
2324 KB |
Output is correct |
37 |
Correct |
8 ms |
2188 KB |
Output is correct |
38 |
Correct |
1 ms |
1876 KB |
Output is correct |
39 |
Correct |
77 ms |
15196 KB |
Output is correct |
40 |
Correct |
4 ms |
2004 KB |
Output is correct |
41 |
Correct |
5 ms |
3784 KB |
Output is correct |
42 |
Correct |
11 ms |
2516 KB |
Output is correct |
43 |
Correct |
12 ms |
3796 KB |
Output is correct |
44 |
Correct |
16 ms |
8824 KB |
Output is correct |
45 |
Correct |
27 ms |
9744 KB |
Output is correct |
46 |
Correct |
74 ms |
48052 KB |
Output is correct |
47 |
Correct |
89 ms |
15560 KB |
Output is correct |
48 |
Correct |
47 ms |
15180 KB |
Output is correct |
49 |
Correct |
41 ms |
29216 KB |
Output is correct |
50 |
Correct |
88 ms |
29240 KB |
Output is correct |
51 |
Correct |
75 ms |
17240 KB |
Output is correct |
52 |
Correct |
52 ms |
16068 KB |
Output is correct |
53 |
Correct |
58 ms |
15488 KB |
Output is correct |
54 |
Correct |
1 ms |
212 KB |
Output is correct |
55 |
Correct |
1 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
1 ms |
320 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
324 KB |
Output is correct |
61 |
Correct |
1 ms |
316 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
0 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
320 KB |
Output is correct |
73 |
Correct |
0 ms |
212 KB |
Output is correct |
74 |
Correct |
1 ms |
320 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
324 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
1 ms |
212 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
320 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
324 KB |
Output is correct |
94 |
Correct |
1 ms |
324 KB |
Output is correct |
95 |
Correct |
1 ms |
324 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
0 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
340 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
324 KB |
Output is correct |
107 |
Correct |
1 ms |
320 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
320 KB |
Output is correct |
110 |
Correct |
1 ms |
724 KB |
Output is correct |
111 |
Correct |
3 ms |
1996 KB |
Output is correct |
112 |
Correct |
2 ms |
2056 KB |
Output is correct |
113 |
Correct |
2 ms |
2004 KB |
Output is correct |
114 |
Correct |
4 ms |
2792 KB |
Output is correct |
115 |
Correct |
3 ms |
2776 KB |
Output is correct |
116 |
Correct |
2 ms |
1108 KB |
Output is correct |
117 |
Correct |
1 ms |
1108 KB |
Output is correct |
118 |
Correct |
1 ms |
980 KB |
Output is correct |
119 |
Correct |
5 ms |
3656 KB |
Output is correct |
120 |
Correct |
8 ms |
6080 KB |
Output is correct |
121 |
Correct |
8 ms |
6084 KB |
Output is correct |
122 |
Correct |
10 ms |
6676 KB |
Output is correct |
123 |
Correct |
8 ms |
6588 KB |
Output is correct |
124 |
Correct |
18 ms |
12992 KB |
Output is correct |
125 |
Correct |
56 ms |
29352 KB |
Output is correct |
126 |
Correct |
79 ms |
48072 KB |
Output is correct |
127 |
Correct |
56 ms |
48004 KB |
Output is correct |
128 |
Correct |
92 ms |
63248 KB |
Output is correct |
129 |
Correct |
65 ms |
63200 KB |
Output is correct |
130 |
Correct |
52 ms |
31968 KB |
Output is correct |
131 |
Correct |
51 ms |
31608 KB |
Output is correct |
132 |
Correct |
3 ms |
852 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
1 ms |
724 KB |
Output is correct |
136 |
Correct |
5 ms |
1228 KB |
Output is correct |
137 |
Correct |
3 ms |
1996 KB |
Output is correct |
138 |
Correct |
2 ms |
2004 KB |
Output is correct |
139 |
Correct |
4 ms |
972 KB |
Output is correct |
140 |
Correct |
3 ms |
840 KB |
Output is correct |
141 |
Correct |
2 ms |
2004 KB |
Output is correct |
142 |
Correct |
4 ms |
2792 KB |
Output is correct |
143 |
Correct |
3 ms |
2776 KB |
Output is correct |
144 |
Correct |
2 ms |
1636 KB |
Output is correct |
145 |
Correct |
5 ms |
1520 KB |
Output is correct |
146 |
Correct |
4 ms |
1232 KB |
Output is correct |
147 |
Correct |
3 ms |
976 KB |
Output is correct |
148 |
Correct |
2 ms |
1012 KB |
Output is correct |
149 |
Correct |
3 ms |
980 KB |
Output is correct |
150 |
Correct |
2 ms |
1104 KB |
Output is correct |
151 |
Correct |
1 ms |
1108 KB |
Output is correct |
152 |
Correct |
1 ms |
980 KB |
Output is correct |
153 |
Correct |
2 ms |
980 KB |
Output is correct |
154 |
Correct |
6 ms |
1876 KB |
Output is correct |
155 |
Correct |
3 ms |
1284 KB |
Output is correct |
156 |
Correct |
5 ms |
3656 KB |
Output is correct |
157 |
Correct |
6 ms |
1816 KB |
Output is correct |
158 |
Correct |
5 ms |
6084 KB |
Output is correct |
159 |
Correct |
9 ms |
1876 KB |
Output is correct |
160 |
Correct |
5 ms |
1868 KB |
Output is correct |
161 |
Correct |
5 ms |
6076 KB |
Output is correct |
162 |
Correct |
11 ms |
6592 KB |
Output is correct |
163 |
Correct |
7 ms |
6596 KB |
Output is correct |
164 |
Correct |
5 ms |
3140 KB |
Output is correct |
165 |
Correct |
13 ms |
3152 KB |
Output is correct |
166 |
Correct |
10 ms |
2504 KB |
Output is correct |
167 |
Correct |
8 ms |
1916 KB |
Output is correct |
168 |
Correct |
8 ms |
1964 KB |
Output is correct |
169 |
Correct |
8 ms |
2004 KB |
Output is correct |
170 |
Correct |
8 ms |
2240 KB |
Output is correct |
171 |
Correct |
6 ms |
2340 KB |
Output is correct |
172 |
Correct |
8 ms |
2180 KB |
Output is correct |
173 |
Correct |
1 ms |
1876 KB |
Output is correct |
174 |
Correct |
4 ms |
2332 KB |
Output is correct |
175 |
Correct |
16 ms |
3792 KB |
Output is correct |
176 |
Correct |
21 ms |
10196 KB |
Output is correct |
177 |
Correct |
34 ms |
10752 KB |
Output is correct |
178 |
Correct |
11 ms |
13624 KB |
Output is correct |
179 |
Correct |
43 ms |
15680 KB |
Output is correct |
180 |
Correct |
89 ms |
15736 KB |
Output is correct |
181 |
Correct |
83 ms |
16092 KB |
Output is correct |
182 |
Correct |
76 ms |
17432 KB |
Output is correct |
183 |
Correct |
84 ms |
22236 KB |
Output is correct |
184 |
Correct |
188 ms |
30052 KB |
Output is correct |
185 |
Correct |
29 ms |
17052 KB |
Output is correct |
186 |
Correct |
68 ms |
50240 KB |
Output is correct |
187 |
Correct |
19 ms |
24736 KB |
Output is correct |
188 |
Correct |
146 ms |
95664 KB |
Output is correct |
189 |
Correct |
163 ms |
30568 KB |
Output is correct |
190 |
Correct |
61 ms |
29928 KB |
Output is correct |
191 |
Correct |
135 ms |
95612 KB |
Output is correct |
192 |
Correct |
188 ms |
126100 KB |
Output is correct |
193 |
Correct |
126 ms |
125988 KB |
Output is correct |
194 |
Correct |
101 ms |
58160 KB |
Output is correct |
195 |
Correct |
201 ms |
58160 KB |
Output is correct |
196 |
Correct |
149 ms |
30552 KB |
Output is correct |
197 |
Correct |
87 ms |
30968 KB |
Output is correct |
198 |
Correct |
77 ms |
31548 KB |
Output is correct |
199 |
Correct |
181 ms |
33264 KB |
Output is correct |
200 |
Correct |
102 ms |
33676 KB |
Output is correct |
201 |
Correct |
130 ms |
31796 KB |
Output is correct |
202 |
Correct |
202 ms |
30444 KB |
Output is correct |
203 |
Correct |
354 ms |
59508 KB |
Output is correct |
204 |
Correct |
126 ms |
41740 KB |
Output is correct |
205 |
Correct |
212 ms |
37504 KB |
Output is correct |
206 |
Correct |
85 ms |
60624 KB |
Output is correct |
207 |
Correct |
282 ms |
190628 KB |
Output is correct |
208 |
Correct |
355 ms |
60200 KB |
Output is correct |
209 |
Correct |
289 ms |
59468 KB |
Output is correct |
210 |
Correct |
248 ms |
190756 KB |
Output is correct |
211 |
Correct |
388 ms |
252312 KB |
Output is correct |
212 |
Correct |
257 ms |
251536 KB |
Output is correct |
213 |
Correct |
154 ms |
115932 KB |
Output is correct |
214 |
Correct |
370 ms |
116040 KB |
Output is correct |
215 |
Correct |
270 ms |
60236 KB |
Output is correct |
216 |
Correct |
242 ms |
60564 KB |
Output is correct |
217 |
Correct |
279 ms |
61800 KB |
Output is correct |
218 |
Correct |
225 ms |
65372 KB |
Output is correct |
219 |
Correct |
288 ms |
107448 KB |
Output is correct |
220 |
Correct |
147 ms |
125568 KB |
Output is correct |
221 |
Correct |
204 ms |
125308 KB |
Output is correct |
222 |
Correct |
487 ms |
191380 KB |
Output is correct |
223 |
Correct |
304 ms |
63288 KB |
Output is correct |
224 |
Correct |
312 ms |
61964 KB |
Output is correct |
225 |
Correct |
171 ms |
59912 KB |
Output is correct |