#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define F first
#define S second
#define pb push_back
#define ppb pop_back
#define ep insert
#define endl '\n'
#define elif else if
#define pow pwr
#define sqrt sqrtt
#define int long long
#define ll long long
typedef unsigned long long ull;
using namespace std;
const int N=1300;
int n,m,k,sx,sy,ex,ey,mvx[]={1,0,-1,0},mvy[]={0,1,0,-1};
vector<vector<int>> dis,p;
vector<vector<bool>> vis;
vector<vector<char>> a;
bool ok(int x,int y){
return x>=1 && x<=n && y>=1 && y<=m && a[x][y]=='.';
}
void bfs1(){
deque<pair<int,int>> dq;
dq.push_front({sx,sy});
dis[sx][sy]=0;
while (!dq.empty()){
int x=dq.front().F,y=dq.front().S;
dq.pop_front();
if (vis[x][y]) continue;
//cout<<x<<' '<<y<<' '<<dis[x][y]<<endl;
vis[x][y]=1;
for (int i=0;i<4;i++){
int nx=mvx[i]+x,ny=mvy[i]+y;
if (!ok(nx,ny)) continue;
if (dis[nx][ny]>dis[x][y]){
dis[nx][ny]=dis[x][y];
dq.push_front({nx,ny});
}
}
for (int i=max(1LL,x-k);i<=min(n,x+k);i++){
for (int j=max(1LL,y-k);j<=min(m,y+k);j++){
if (i==x-k && j==y-k) continue;
if (i==x-k && j==y+k) continue;
if (i==x+k && j==y-k) continue;
if (i==x+k && j==y+k) continue;
if (dis[i][j]>dis[x][y]+1){
dis[i][j]=dis[x][y]+1;
dq.push_back({i,j});
}
}
}
}
return;
}
void bfs2(){
vector<pair<int,int>> q;
dis[sx][sy]=0;
vis[sx][sy]=1;
q.pb({sx,sy});
for (int t=0;t<INT_MAX;t++){
for (int i=0;i<q.size();i++){
int x=q[i].F,y=q[i].S;
dis[x][y]=t;
for (int j=0;j<4;j++){
int nx=x+mvx[j],ny=y+mvy[j];
if (vis[nx][ny] || !ok(nx,ny)) continue;
dis[nx][ny]=t;
vis[nx][ny]=1;
q.pb({nx,ny});
}
}
//for (auto u:q) cout<<u.F<<' '<<u.S<<" ";
//cout<<endl;
if (vis[ex][ey]) break;
for (int i=0;i<=n+5;i++) for (int j=0;j<=m+5;j++) p[i][j]=0;
for (int i=0;i<q.size();i++){
int x=q[i].F,y=q[i].S;
p[max(1LL,x-k)][max(1LL,y-k)]++;
p[max(1LL,x-k)][min(m,y+k)+1]--;
p[min(n,x+k)+1][max(1LL,y-k)]--;
p[min(n,x+k)+1][min(m,y+k)+1]--;
if (x-k>=1 && y-k>=1){
p[x-k][y-k]--;
p[x-k+1][y-k]++;
p[x-k][y-k+1]++;
p[x-k+1][y-k+1]--;
}
if (x-k>=1 && y+k<=m){
p[x-k][y+k]--;
p[x-k+1][y+k]++;
p[x-k][y+k+1]++;
p[x-k+1][y+k+1]--;
}
if (x+k<=n && y-k>=1){
p[x+k][y-k]--;
p[x+k+1][y-k]++;
p[x+k][y-k+1]++;
p[x+k+1][y-k+1]--;
}
if (x+k<=n && y+k<=m){
p[x+k][y+k]--;
p[x+k+1][y+k]++;
p[x+k][y+k+1]++;
p[x+k+1][y+k+1]--;
}
}
for (int i=1;i<=n;i++){
for (int j=1;j<=m;j++){
p[i][j]+=p[i-1][j]+p[i][j-1]-p[i-1][j-1];
if (p[i][j]>0 && !vis[i][j]) q.pb({i,j}),vis[i][j]=1;
//cout<<p[i][j]<<' ';
}//cout<<endl;
}//cout<<endl;
}
}
int32_t main(){
ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
cin>>n>>m>>k>>sx>>sy>>ex>>ey;
for (int i=0;i<=n+5;i++){
p.pb({});dis.pb({});vis.pb({});a.pb({});
for (int j=0;j<=m+5;j++){
p[i].pb(0);dis[i].pb(INT_MAX);vis[i].pb(0);a[i].pb('#');
}
}
for (int i=1;i<=n;i++) for (int j=1;j<=m;j++) cin>>a[i][j];
if ((2*k+1)*(2*k+1)<=N) bfs1();
else bfs2();
cout<<dis[ex][ey]<<endl;
return 0;
}
Compilation message
Main.cpp: In function 'void bfs2()':
Main.cpp:63:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i=0;i<q.size();i++){
| ~^~~~~~~~~
Main.cpp:78:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for (int i=0;i<q.size();i++){
| ~^~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
344 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
3 ms |
1372 KB |
Output is correct |
20 |
Correct |
6 ms |
7084 KB |
Output is correct |
21 |
Correct |
7 ms |
1884 KB |
Output is correct |
22 |
Correct |
5 ms |
1372 KB |
Output is correct |
23 |
Correct |
3 ms |
1372 KB |
Output is correct |
24 |
Correct |
7 ms |
8176 KB |
Output is correct |
25 |
Correct |
9 ms |
8224 KB |
Output is correct |
26 |
Correct |
5 ms |
1628 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
4 ms |
1372 KB |
Output is correct |
29 |
Correct |
11 ms |
3932 KB |
Output is correct |
30 |
Correct |
6 ms |
4672 KB |
Output is correct |
31 |
Correct |
9 ms |
5236 KB |
Output is correct |
32 |
Correct |
12 ms |
3932 KB |
Output is correct |
33 |
Correct |
8 ms |
3932 KB |
Output is correct |
34 |
Correct |
23 ms |
22464 KB |
Output is correct |
35 |
Correct |
23 ms |
22460 KB |
Output is correct |
36 |
Correct |
12 ms |
3928 KB |
Output is correct |
37 |
Correct |
11 ms |
3932 KB |
Output is correct |
38 |
Correct |
8 ms |
3980 KB |
Output is correct |
39 |
Correct |
107 ms |
37460 KB |
Output is correct |
40 |
Correct |
13 ms |
4952 KB |
Output is correct |
41 |
Correct |
24 ms |
25536 KB |
Output is correct |
42 |
Correct |
15 ms |
5976 KB |
Output is correct |
43 |
Correct |
22 ms |
17512 KB |
Output is correct |
44 |
Correct |
71 ms |
26140 KB |
Output is correct |
45 |
Correct |
61 ms |
36268 KB |
Output is correct |
46 |
Correct |
100 ms |
49784 KB |
Output is correct |
47 |
Correct |
119 ms |
37468 KB |
Output is correct |
48 |
Correct |
109 ms |
37464 KB |
Output is correct |
49 |
Correct |
209 ms |
194076 KB |
Output is correct |
50 |
Correct |
228 ms |
194080 KB |
Output is correct |
51 |
Correct |
121 ms |
37716 KB |
Output is correct |
52 |
Correct |
118 ms |
37460 KB |
Output is correct |
53 |
Correct |
98 ms |
37664 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
600 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
600 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
344 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
1 ms |
604 KB |
Output is correct |
25 |
Correct |
6 ms |
1628 KB |
Output is correct |
26 |
Correct |
14 ms |
3164 KB |
Output is correct |
27 |
Correct |
4 ms |
1884 KB |
Output is correct |
28 |
Correct |
3 ms |
2512 KB |
Output is correct |
29 |
Correct |
3 ms |
2504 KB |
Output is correct |
30 |
Correct |
3 ms |
2516 KB |
Output is correct |
31 |
Correct |
6 ms |
2276 KB |
Output is correct |
32 |
Correct |
6 ms |
1628 KB |
Output is correct |
33 |
Correct |
5 ms |
1372 KB |
Output is correct |
34 |
Correct |
8 ms |
6092 KB |
Output is correct |
35 |
Correct |
10 ms |
5232 KB |
Output is correct |
36 |
Correct |
8 ms |
8652 KB |
Output is correct |
37 |
Correct |
8 ms |
8904 KB |
Output is correct |
38 |
Correct |
8 ms |
9420 KB |
Output is correct |
39 |
Correct |
28 ms |
19400 KB |
Output is correct |
40 |
Correct |
79 ms |
41152 KB |
Output is correct |
41 |
Correct |
101 ms |
49888 KB |
Output is correct |
42 |
Correct |
87 ms |
70568 KB |
Output is correct |
43 |
Correct |
87 ms |
70576 KB |
Output is correct |
44 |
Correct |
90 ms |
70516 KB |
Output is correct |
45 |
Correct |
79 ms |
46104 KB |
Output is correct |
46 |
Correct |
78 ms |
44728 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
600 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
600 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
344 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
4 ms |
1368 KB |
Output is correct |
34 |
Correct |
0 ms |
604 KB |
Output is correct |
35 |
Correct |
1 ms |
884 KB |
Output is correct |
36 |
Correct |
6 ms |
1624 KB |
Output is correct |
37 |
Correct |
9 ms |
6896 KB |
Output is correct |
38 |
Correct |
15 ms |
3156 KB |
Output is correct |
39 |
Correct |
3 ms |
1884 KB |
Output is correct |
40 |
Correct |
5 ms |
1368 KB |
Output is correct |
41 |
Correct |
4 ms |
1372 KB |
Output is correct |
42 |
Correct |
3 ms |
2516 KB |
Output is correct |
43 |
Correct |
3 ms |
2516 KB |
Output is correct |
44 |
Correct |
3 ms |
2516 KB |
Output is correct |
45 |
Correct |
8 ms |
8064 KB |
Output is correct |
46 |
Correct |
7 ms |
8176 KB |
Output is correct |
47 |
Correct |
6 ms |
4672 KB |
Output is correct |
48 |
Correct |
42 ms |
1884 KB |
Output is correct |
49 |
Correct |
12 ms |
3028 KB |
Output is correct |
50 |
Correct |
20 ms |
3068 KB |
Output is correct |
51 |
Correct |
4 ms |
2276 KB |
Output is correct |
52 |
Correct |
5 ms |
1628 KB |
Output is correct |
53 |
Correct |
5 ms |
1372 KB |
Output is correct |
54 |
Correct |
3 ms |
1368 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
600 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
600 KB |
Output is correct |
24 |
Correct |
1 ms |
600 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
344 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
4 ms |
1368 KB |
Output is correct |
34 |
Correct |
0 ms |
604 KB |
Output is correct |
35 |
Correct |
1 ms |
884 KB |
Output is correct |
36 |
Correct |
6 ms |
1624 KB |
Output is correct |
37 |
Correct |
9 ms |
6896 KB |
Output is correct |
38 |
Correct |
15 ms |
3156 KB |
Output is correct |
39 |
Correct |
3 ms |
1884 KB |
Output is correct |
40 |
Correct |
5 ms |
1368 KB |
Output is correct |
41 |
Correct |
4 ms |
1372 KB |
Output is correct |
42 |
Correct |
3 ms |
2516 KB |
Output is correct |
43 |
Correct |
3 ms |
2516 KB |
Output is correct |
44 |
Correct |
3 ms |
2516 KB |
Output is correct |
45 |
Correct |
8 ms |
8064 KB |
Output is correct |
46 |
Correct |
7 ms |
8176 KB |
Output is correct |
47 |
Correct |
6 ms |
4672 KB |
Output is correct |
48 |
Correct |
42 ms |
1884 KB |
Output is correct |
49 |
Correct |
12 ms |
3028 KB |
Output is correct |
50 |
Correct |
20 ms |
3068 KB |
Output is correct |
51 |
Correct |
4 ms |
2276 KB |
Output is correct |
52 |
Correct |
5 ms |
1628 KB |
Output is correct |
53 |
Correct |
5 ms |
1372 KB |
Output is correct |
54 |
Correct |
3 ms |
1368 KB |
Output is correct |
55 |
Correct |
9 ms |
3932 KB |
Output is correct |
56 |
Correct |
6 ms |
4672 KB |
Output is correct |
57 |
Correct |
8 ms |
6096 KB |
Output is correct |
58 |
Correct |
19 ms |
4476 KB |
Output is correct |
59 |
Correct |
10 ms |
5212 KB |
Output is correct |
60 |
Correct |
12 ms |
3928 KB |
Output is correct |
61 |
Correct |
9 ms |
3928 KB |
Output is correct |
62 |
Correct |
9 ms |
8244 KB |
Output is correct |
63 |
Correct |
8 ms |
9212 KB |
Output is correct |
64 |
Correct |
8 ms |
9932 KB |
Output is correct |
65 |
Correct |
23 ms |
22484 KB |
Output is correct |
66 |
Correct |
21 ms |
22464 KB |
Output is correct |
67 |
Correct |
19 ms |
12980 KB |
Output is correct |
68 |
Correct |
321 ms |
9664 KB |
Output is correct |
69 |
Correct |
171 ms |
8896 KB |
Output is correct |
70 |
Correct |
75 ms |
8636 KB |
Output is correct |
71 |
Correct |
23 ms |
5580 KB |
Output is correct |
72 |
Correct |
12 ms |
3932 KB |
Output is correct |
73 |
Correct |
12 ms |
4020 KB |
Output is correct |
74 |
Correct |
8 ms |
3932 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
344 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
3 ms |
1372 KB |
Output is correct |
20 |
Correct |
6 ms |
7084 KB |
Output is correct |
21 |
Correct |
7 ms |
1884 KB |
Output is correct |
22 |
Correct |
5 ms |
1372 KB |
Output is correct |
23 |
Correct |
3 ms |
1372 KB |
Output is correct |
24 |
Correct |
7 ms |
8176 KB |
Output is correct |
25 |
Correct |
9 ms |
8224 KB |
Output is correct |
26 |
Correct |
5 ms |
1628 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
4 ms |
1372 KB |
Output is correct |
29 |
Correct |
11 ms |
3932 KB |
Output is correct |
30 |
Correct |
6 ms |
4672 KB |
Output is correct |
31 |
Correct |
9 ms |
5236 KB |
Output is correct |
32 |
Correct |
12 ms |
3932 KB |
Output is correct |
33 |
Correct |
8 ms |
3932 KB |
Output is correct |
34 |
Correct |
23 ms |
22464 KB |
Output is correct |
35 |
Correct |
23 ms |
22460 KB |
Output is correct |
36 |
Correct |
12 ms |
3928 KB |
Output is correct |
37 |
Correct |
11 ms |
3932 KB |
Output is correct |
38 |
Correct |
8 ms |
3980 KB |
Output is correct |
39 |
Correct |
107 ms |
37460 KB |
Output is correct |
40 |
Correct |
13 ms |
4952 KB |
Output is correct |
41 |
Correct |
24 ms |
25536 KB |
Output is correct |
42 |
Correct |
15 ms |
5976 KB |
Output is correct |
43 |
Correct |
22 ms |
17512 KB |
Output is correct |
44 |
Correct |
71 ms |
26140 KB |
Output is correct |
45 |
Correct |
61 ms |
36268 KB |
Output is correct |
46 |
Correct |
100 ms |
49784 KB |
Output is correct |
47 |
Correct |
119 ms |
37468 KB |
Output is correct |
48 |
Correct |
109 ms |
37464 KB |
Output is correct |
49 |
Correct |
209 ms |
194076 KB |
Output is correct |
50 |
Correct |
228 ms |
194080 KB |
Output is correct |
51 |
Correct |
121 ms |
37716 KB |
Output is correct |
52 |
Correct |
118 ms |
37460 KB |
Output is correct |
53 |
Correct |
98 ms |
37664 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
1 ms |
344 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
344 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
600 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
1 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
600 KB |
Output is correct |
77 |
Correct |
1 ms |
600 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
344 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
344 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
1 ms |
604 KB |
Output is correct |
110 |
Correct |
6 ms |
1628 KB |
Output is correct |
111 |
Correct |
14 ms |
3164 KB |
Output is correct |
112 |
Correct |
4 ms |
1884 KB |
Output is correct |
113 |
Correct |
3 ms |
2512 KB |
Output is correct |
114 |
Correct |
3 ms |
2504 KB |
Output is correct |
115 |
Correct |
3 ms |
2516 KB |
Output is correct |
116 |
Correct |
6 ms |
2276 KB |
Output is correct |
117 |
Correct |
6 ms |
1628 KB |
Output is correct |
118 |
Correct |
5 ms |
1372 KB |
Output is correct |
119 |
Correct |
8 ms |
6092 KB |
Output is correct |
120 |
Correct |
10 ms |
5232 KB |
Output is correct |
121 |
Correct |
8 ms |
8652 KB |
Output is correct |
122 |
Correct |
8 ms |
8904 KB |
Output is correct |
123 |
Correct |
8 ms |
9420 KB |
Output is correct |
124 |
Correct |
28 ms |
19400 KB |
Output is correct |
125 |
Correct |
79 ms |
41152 KB |
Output is correct |
126 |
Correct |
101 ms |
49888 KB |
Output is correct |
127 |
Correct |
87 ms |
70568 KB |
Output is correct |
128 |
Correct |
87 ms |
70576 KB |
Output is correct |
129 |
Correct |
90 ms |
70516 KB |
Output is correct |
130 |
Correct |
79 ms |
46104 KB |
Output is correct |
131 |
Correct |
78 ms |
44728 KB |
Output is correct |
132 |
Correct |
4 ms |
1368 KB |
Output is correct |
133 |
Correct |
0 ms |
604 KB |
Output is correct |
134 |
Correct |
1 ms |
884 KB |
Output is correct |
135 |
Correct |
6 ms |
1624 KB |
Output is correct |
136 |
Correct |
9 ms |
6896 KB |
Output is correct |
137 |
Correct |
15 ms |
3156 KB |
Output is correct |
138 |
Correct |
3 ms |
1884 KB |
Output is correct |
139 |
Correct |
5 ms |
1368 KB |
Output is correct |
140 |
Correct |
4 ms |
1372 KB |
Output is correct |
141 |
Correct |
3 ms |
2516 KB |
Output is correct |
142 |
Correct |
3 ms |
2516 KB |
Output is correct |
143 |
Correct |
3 ms |
2516 KB |
Output is correct |
144 |
Correct |
8 ms |
8064 KB |
Output is correct |
145 |
Correct |
7 ms |
8176 KB |
Output is correct |
146 |
Correct |
6 ms |
4672 KB |
Output is correct |
147 |
Correct |
42 ms |
1884 KB |
Output is correct |
148 |
Correct |
12 ms |
3028 KB |
Output is correct |
149 |
Correct |
20 ms |
3068 KB |
Output is correct |
150 |
Correct |
4 ms |
2276 KB |
Output is correct |
151 |
Correct |
5 ms |
1628 KB |
Output is correct |
152 |
Correct |
5 ms |
1372 KB |
Output is correct |
153 |
Correct |
3 ms |
1368 KB |
Output is correct |
154 |
Correct |
9 ms |
3932 KB |
Output is correct |
155 |
Correct |
6 ms |
4672 KB |
Output is correct |
156 |
Correct |
8 ms |
6096 KB |
Output is correct |
157 |
Correct |
19 ms |
4476 KB |
Output is correct |
158 |
Correct |
10 ms |
5212 KB |
Output is correct |
159 |
Correct |
12 ms |
3928 KB |
Output is correct |
160 |
Correct |
9 ms |
3928 KB |
Output is correct |
161 |
Correct |
9 ms |
8244 KB |
Output is correct |
162 |
Correct |
8 ms |
9212 KB |
Output is correct |
163 |
Correct |
8 ms |
9932 KB |
Output is correct |
164 |
Correct |
23 ms |
22484 KB |
Output is correct |
165 |
Correct |
21 ms |
22464 KB |
Output is correct |
166 |
Correct |
19 ms |
12980 KB |
Output is correct |
167 |
Correct |
321 ms |
9664 KB |
Output is correct |
168 |
Correct |
171 ms |
8896 KB |
Output is correct |
169 |
Correct |
75 ms |
8636 KB |
Output is correct |
170 |
Correct |
23 ms |
5580 KB |
Output is correct |
171 |
Correct |
12 ms |
3932 KB |
Output is correct |
172 |
Correct |
12 ms |
4020 KB |
Output is correct |
173 |
Correct |
8 ms |
3932 KB |
Output is correct |
174 |
Correct |
29 ms |
5468 KB |
Output is correct |
175 |
Incorrect |
669 ms |
12800 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
344 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
3 ms |
1372 KB |
Output is correct |
20 |
Correct |
6 ms |
7084 KB |
Output is correct |
21 |
Correct |
7 ms |
1884 KB |
Output is correct |
22 |
Correct |
5 ms |
1372 KB |
Output is correct |
23 |
Correct |
3 ms |
1372 KB |
Output is correct |
24 |
Correct |
7 ms |
8176 KB |
Output is correct |
25 |
Correct |
9 ms |
8224 KB |
Output is correct |
26 |
Correct |
5 ms |
1628 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
4 ms |
1372 KB |
Output is correct |
29 |
Correct |
11 ms |
3932 KB |
Output is correct |
30 |
Correct |
6 ms |
4672 KB |
Output is correct |
31 |
Correct |
9 ms |
5236 KB |
Output is correct |
32 |
Correct |
12 ms |
3932 KB |
Output is correct |
33 |
Correct |
8 ms |
3932 KB |
Output is correct |
34 |
Correct |
23 ms |
22464 KB |
Output is correct |
35 |
Correct |
23 ms |
22460 KB |
Output is correct |
36 |
Correct |
12 ms |
3928 KB |
Output is correct |
37 |
Correct |
11 ms |
3932 KB |
Output is correct |
38 |
Correct |
8 ms |
3980 KB |
Output is correct |
39 |
Correct |
107 ms |
37460 KB |
Output is correct |
40 |
Correct |
13 ms |
4952 KB |
Output is correct |
41 |
Correct |
24 ms |
25536 KB |
Output is correct |
42 |
Correct |
15 ms |
5976 KB |
Output is correct |
43 |
Correct |
22 ms |
17512 KB |
Output is correct |
44 |
Correct |
71 ms |
26140 KB |
Output is correct |
45 |
Correct |
61 ms |
36268 KB |
Output is correct |
46 |
Correct |
100 ms |
49784 KB |
Output is correct |
47 |
Correct |
119 ms |
37468 KB |
Output is correct |
48 |
Correct |
109 ms |
37464 KB |
Output is correct |
49 |
Correct |
209 ms |
194076 KB |
Output is correct |
50 |
Correct |
228 ms |
194080 KB |
Output is correct |
51 |
Correct |
121 ms |
37716 KB |
Output is correct |
52 |
Correct |
118 ms |
37460 KB |
Output is correct |
53 |
Correct |
98 ms |
37664 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
1 ms |
344 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
344 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
600 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
1 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
600 KB |
Output is correct |
77 |
Correct |
1 ms |
600 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
344 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
344 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
1 ms |
604 KB |
Output is correct |
110 |
Correct |
6 ms |
1628 KB |
Output is correct |
111 |
Correct |
14 ms |
3164 KB |
Output is correct |
112 |
Correct |
4 ms |
1884 KB |
Output is correct |
113 |
Correct |
3 ms |
2512 KB |
Output is correct |
114 |
Correct |
3 ms |
2504 KB |
Output is correct |
115 |
Correct |
3 ms |
2516 KB |
Output is correct |
116 |
Correct |
6 ms |
2276 KB |
Output is correct |
117 |
Correct |
6 ms |
1628 KB |
Output is correct |
118 |
Correct |
5 ms |
1372 KB |
Output is correct |
119 |
Correct |
8 ms |
6092 KB |
Output is correct |
120 |
Correct |
10 ms |
5232 KB |
Output is correct |
121 |
Correct |
8 ms |
8652 KB |
Output is correct |
122 |
Correct |
8 ms |
8904 KB |
Output is correct |
123 |
Correct |
8 ms |
9420 KB |
Output is correct |
124 |
Correct |
28 ms |
19400 KB |
Output is correct |
125 |
Correct |
79 ms |
41152 KB |
Output is correct |
126 |
Correct |
101 ms |
49888 KB |
Output is correct |
127 |
Correct |
87 ms |
70568 KB |
Output is correct |
128 |
Correct |
87 ms |
70576 KB |
Output is correct |
129 |
Correct |
90 ms |
70516 KB |
Output is correct |
130 |
Correct |
79 ms |
46104 KB |
Output is correct |
131 |
Correct |
78 ms |
44728 KB |
Output is correct |
132 |
Correct |
4 ms |
1368 KB |
Output is correct |
133 |
Correct |
0 ms |
604 KB |
Output is correct |
134 |
Correct |
1 ms |
884 KB |
Output is correct |
135 |
Correct |
6 ms |
1624 KB |
Output is correct |
136 |
Correct |
9 ms |
6896 KB |
Output is correct |
137 |
Correct |
15 ms |
3156 KB |
Output is correct |
138 |
Correct |
3 ms |
1884 KB |
Output is correct |
139 |
Correct |
5 ms |
1368 KB |
Output is correct |
140 |
Correct |
4 ms |
1372 KB |
Output is correct |
141 |
Correct |
3 ms |
2516 KB |
Output is correct |
142 |
Correct |
3 ms |
2516 KB |
Output is correct |
143 |
Correct |
3 ms |
2516 KB |
Output is correct |
144 |
Correct |
8 ms |
8064 KB |
Output is correct |
145 |
Correct |
7 ms |
8176 KB |
Output is correct |
146 |
Correct |
6 ms |
4672 KB |
Output is correct |
147 |
Correct |
42 ms |
1884 KB |
Output is correct |
148 |
Correct |
12 ms |
3028 KB |
Output is correct |
149 |
Correct |
20 ms |
3068 KB |
Output is correct |
150 |
Correct |
4 ms |
2276 KB |
Output is correct |
151 |
Correct |
5 ms |
1628 KB |
Output is correct |
152 |
Correct |
5 ms |
1372 KB |
Output is correct |
153 |
Correct |
3 ms |
1368 KB |
Output is correct |
154 |
Correct |
9 ms |
3932 KB |
Output is correct |
155 |
Correct |
6 ms |
4672 KB |
Output is correct |
156 |
Correct |
8 ms |
6096 KB |
Output is correct |
157 |
Correct |
19 ms |
4476 KB |
Output is correct |
158 |
Correct |
10 ms |
5212 KB |
Output is correct |
159 |
Correct |
12 ms |
3928 KB |
Output is correct |
160 |
Correct |
9 ms |
3928 KB |
Output is correct |
161 |
Correct |
9 ms |
8244 KB |
Output is correct |
162 |
Correct |
8 ms |
9212 KB |
Output is correct |
163 |
Correct |
8 ms |
9932 KB |
Output is correct |
164 |
Correct |
23 ms |
22484 KB |
Output is correct |
165 |
Correct |
21 ms |
22464 KB |
Output is correct |
166 |
Correct |
19 ms |
12980 KB |
Output is correct |
167 |
Correct |
321 ms |
9664 KB |
Output is correct |
168 |
Correct |
171 ms |
8896 KB |
Output is correct |
169 |
Correct |
75 ms |
8636 KB |
Output is correct |
170 |
Correct |
23 ms |
5580 KB |
Output is correct |
171 |
Correct |
12 ms |
3932 KB |
Output is correct |
172 |
Correct |
12 ms |
4020 KB |
Output is correct |
173 |
Correct |
8 ms |
3932 KB |
Output is correct |
174 |
Correct |
29 ms |
5468 KB |
Output is correct |
175 |
Incorrect |
669 ms |
12800 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
344 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
3 ms |
1372 KB |
Output is correct |
20 |
Correct |
6 ms |
7084 KB |
Output is correct |
21 |
Correct |
7 ms |
1884 KB |
Output is correct |
22 |
Correct |
5 ms |
1372 KB |
Output is correct |
23 |
Correct |
3 ms |
1372 KB |
Output is correct |
24 |
Correct |
7 ms |
8176 KB |
Output is correct |
25 |
Correct |
9 ms |
8224 KB |
Output is correct |
26 |
Correct |
5 ms |
1628 KB |
Output is correct |
27 |
Correct |
5 ms |
1372 KB |
Output is correct |
28 |
Correct |
4 ms |
1372 KB |
Output is correct |
29 |
Correct |
11 ms |
3932 KB |
Output is correct |
30 |
Correct |
6 ms |
4672 KB |
Output is correct |
31 |
Correct |
9 ms |
5236 KB |
Output is correct |
32 |
Correct |
12 ms |
3932 KB |
Output is correct |
33 |
Correct |
8 ms |
3932 KB |
Output is correct |
34 |
Correct |
23 ms |
22464 KB |
Output is correct |
35 |
Correct |
23 ms |
22460 KB |
Output is correct |
36 |
Correct |
12 ms |
3928 KB |
Output is correct |
37 |
Correct |
11 ms |
3932 KB |
Output is correct |
38 |
Correct |
8 ms |
3980 KB |
Output is correct |
39 |
Correct |
107 ms |
37460 KB |
Output is correct |
40 |
Correct |
13 ms |
4952 KB |
Output is correct |
41 |
Correct |
24 ms |
25536 KB |
Output is correct |
42 |
Correct |
15 ms |
5976 KB |
Output is correct |
43 |
Correct |
22 ms |
17512 KB |
Output is correct |
44 |
Correct |
71 ms |
26140 KB |
Output is correct |
45 |
Correct |
61 ms |
36268 KB |
Output is correct |
46 |
Correct |
100 ms |
49784 KB |
Output is correct |
47 |
Correct |
119 ms |
37468 KB |
Output is correct |
48 |
Correct |
109 ms |
37464 KB |
Output is correct |
49 |
Correct |
209 ms |
194076 KB |
Output is correct |
50 |
Correct |
228 ms |
194080 KB |
Output is correct |
51 |
Correct |
121 ms |
37716 KB |
Output is correct |
52 |
Correct |
118 ms |
37460 KB |
Output is correct |
53 |
Correct |
98 ms |
37664 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
1 ms |
344 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
344 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
600 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
1 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
600 KB |
Output is correct |
77 |
Correct |
1 ms |
600 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
344 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
344 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
1 ms |
604 KB |
Output is correct |
110 |
Correct |
6 ms |
1628 KB |
Output is correct |
111 |
Correct |
14 ms |
3164 KB |
Output is correct |
112 |
Correct |
4 ms |
1884 KB |
Output is correct |
113 |
Correct |
3 ms |
2512 KB |
Output is correct |
114 |
Correct |
3 ms |
2504 KB |
Output is correct |
115 |
Correct |
3 ms |
2516 KB |
Output is correct |
116 |
Correct |
6 ms |
2276 KB |
Output is correct |
117 |
Correct |
6 ms |
1628 KB |
Output is correct |
118 |
Correct |
5 ms |
1372 KB |
Output is correct |
119 |
Correct |
8 ms |
6092 KB |
Output is correct |
120 |
Correct |
10 ms |
5232 KB |
Output is correct |
121 |
Correct |
8 ms |
8652 KB |
Output is correct |
122 |
Correct |
8 ms |
8904 KB |
Output is correct |
123 |
Correct |
8 ms |
9420 KB |
Output is correct |
124 |
Correct |
28 ms |
19400 KB |
Output is correct |
125 |
Correct |
79 ms |
41152 KB |
Output is correct |
126 |
Correct |
101 ms |
49888 KB |
Output is correct |
127 |
Correct |
87 ms |
70568 KB |
Output is correct |
128 |
Correct |
87 ms |
70576 KB |
Output is correct |
129 |
Correct |
90 ms |
70516 KB |
Output is correct |
130 |
Correct |
79 ms |
46104 KB |
Output is correct |
131 |
Correct |
78 ms |
44728 KB |
Output is correct |
132 |
Correct |
4 ms |
1368 KB |
Output is correct |
133 |
Correct |
0 ms |
604 KB |
Output is correct |
134 |
Correct |
1 ms |
884 KB |
Output is correct |
135 |
Correct |
6 ms |
1624 KB |
Output is correct |
136 |
Correct |
9 ms |
6896 KB |
Output is correct |
137 |
Correct |
15 ms |
3156 KB |
Output is correct |
138 |
Correct |
3 ms |
1884 KB |
Output is correct |
139 |
Correct |
5 ms |
1368 KB |
Output is correct |
140 |
Correct |
4 ms |
1372 KB |
Output is correct |
141 |
Correct |
3 ms |
2516 KB |
Output is correct |
142 |
Correct |
3 ms |
2516 KB |
Output is correct |
143 |
Correct |
3 ms |
2516 KB |
Output is correct |
144 |
Correct |
8 ms |
8064 KB |
Output is correct |
145 |
Correct |
7 ms |
8176 KB |
Output is correct |
146 |
Correct |
6 ms |
4672 KB |
Output is correct |
147 |
Correct |
42 ms |
1884 KB |
Output is correct |
148 |
Correct |
12 ms |
3028 KB |
Output is correct |
149 |
Correct |
20 ms |
3068 KB |
Output is correct |
150 |
Correct |
4 ms |
2276 KB |
Output is correct |
151 |
Correct |
5 ms |
1628 KB |
Output is correct |
152 |
Correct |
5 ms |
1372 KB |
Output is correct |
153 |
Correct |
3 ms |
1368 KB |
Output is correct |
154 |
Correct |
9 ms |
3932 KB |
Output is correct |
155 |
Correct |
6 ms |
4672 KB |
Output is correct |
156 |
Correct |
8 ms |
6096 KB |
Output is correct |
157 |
Correct |
19 ms |
4476 KB |
Output is correct |
158 |
Correct |
10 ms |
5212 KB |
Output is correct |
159 |
Correct |
12 ms |
3928 KB |
Output is correct |
160 |
Correct |
9 ms |
3928 KB |
Output is correct |
161 |
Correct |
9 ms |
8244 KB |
Output is correct |
162 |
Correct |
8 ms |
9212 KB |
Output is correct |
163 |
Correct |
8 ms |
9932 KB |
Output is correct |
164 |
Correct |
23 ms |
22484 KB |
Output is correct |
165 |
Correct |
21 ms |
22464 KB |
Output is correct |
166 |
Correct |
19 ms |
12980 KB |
Output is correct |
167 |
Correct |
321 ms |
9664 KB |
Output is correct |
168 |
Correct |
171 ms |
8896 KB |
Output is correct |
169 |
Correct |
75 ms |
8636 KB |
Output is correct |
170 |
Correct |
23 ms |
5580 KB |
Output is correct |
171 |
Correct |
12 ms |
3932 KB |
Output is correct |
172 |
Correct |
12 ms |
4020 KB |
Output is correct |
173 |
Correct |
8 ms |
3932 KB |
Output is correct |
174 |
Correct |
29 ms |
5468 KB |
Output is correct |
175 |
Incorrect |
669 ms |
12800 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |