Submission #930056

# Submission time Handle Problem Language Result Execution time Memory
930056 2024-02-18T11:40:17 Z koukirocks Maze (JOI23_ho_t3) C++17
100 / 100
798 ms 123044 KB
#include <bits/stdc++.h>
#define speed ios_base::sync_with_stdio(0); cin.tie(0)
#define all(x) (x).begin(),(x).end()
 
using namespace std;
typedef long long ll;
typedef long double ldb;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
 
const ll MAX=5e5+10,P=1e9+7;
const ll INF=0x3f3f3f3f,oo=0x3f3f3f3f3f3f3f3f;
 
const int dir[4][2]={{0,1},{1,0},{-1,0},{0,-1}};
int r,c,n;
pii s,g;
vector<vector<bool> > mp,vis;
vector<vector<int> > dis;

bool in(int x,int y) {
	return x>=0 and x<r and y>=0 and y<c;
}
 
bool inrg(int vx,int vy,int tgx,int tgy) {
	int dx=abs(tgx-vx);
	int dy=abs(tgy-vy);
	if (max(dx,dy)<=n and !(dx==n and dy==n)) return true;
	return false;
}

vector<vector<int> > rw;

int rwnxt(int i,int j) {
	if (j==c or !vis[i][j]) return j;
	return rw[i][j]=rwnxt(i,rw[i][j]);
}

vector<vector<int> > col;

int colnxt(int i,int j) {
	if (i==r or !vis[i][j]) return i;
	return col[i][j]=colnxt(col[i][j],j);
}

int main() {
	speed;
	cin>>r>>c>>n;
	cin>>s.first>>s.second;
	s.first--;s.second--;
	cin>>g.first>>g.second;
	g.first--;g.second--;
	mp.resize(r,vector<bool>(c));
	dis.resize(r,vector<int>(c,INF));
	vis.resize(r,vector<bool>(c,0));
	for (int i=0;i<r;i++) {
		for (int j=0;j<c;j++) {
			char c;
			cin>>c;
			if (c=='.') mp[i][j]=0;
			else mp[i][j]=1;
		}
	}
	rw.resize(r,vector<int>(c));
	col.resize(r,vector<int>(c));
	for (int i=0;i<r;i++) {
		for (int j=0;j<c;j++) {
			rw[i][j]=j+1;
			col[i][j]=i+1;
		}
	}
	vector<pii> cur0,cur1;
	cur0.emplace_back(s);
	vis[s.first][s.second]=true;
	dis[s.first][s.second]=0;
	while (!cur0.empty()) {
		while (!cur0.empty()) {
			auto [vx,vy]=cur0.back();
			cur1.emplace_back(vx,vy);
			cur0.pop_back();
			for (int k=0;k<4;k++) {
				int nx=vx+dir[k][0];
				int ny=vy+dir[k][1];
				if (in(nx,ny) and !mp[nx][ny] and !vis[nx][ny]) {
					dis[nx][ny]=dis[vx][vy];
					vis[nx][ny]=true;
					cur0.emplace_back(nx,ny);
//					cout<<nx<<" "<<ny<<"\n";
					if (vis[g.first][g.second]) goto found;
				}
			}
		}
		while (!cur1.empty()) {
			auto [vx,vy]=cur1.back();
			cur1.pop_back();
//			cout<<vx<<" "<<vy<<"\n"<<flush;
			if (inrg(vx,vy,g.first,g.second)) {
				dis[g.first][g.second]=dis[vx][vy]+1;
				goto found;
			}
			for (int nx:{max(0,vx-n),min(r-1,vx+n)}) {
//				cout<<nx<<" "<<max(0,vy-n+1)<<" rw\n"<<flush;
				int ny=rwnxt(nx,max(0,vy-n+1));
				while(ny<min(c,vy+n)) {
//					cout<<nx<<" "<<ny<<" rwn\n"<<flush;
					dis[nx][ny]=dis[vx][vy]+1;
					vis[nx][ny]=true;
					cur0.emplace_back(nx,ny);
					ny=rwnxt(nx,ny);
				}
			}
			for (int ny:{max(0,vy-n),min(c-1,vy+n)}) {
				int nx=colnxt(max(0,vx-n+1),ny);
				while(nx<min(r,vx+n)) {
//					cout<<nx<<" "<<ny<<" coln\n";
					dis[nx][ny]=dis[vx][vy]+1;
					vis[nx][ny]=true;
					cur0.emplace_back(nx,ny);
					nx=colnxt(nx,ny);
				}
			}
		}
//		cout<<"---------\n";
	}
	found:
//		for (int i=0;i<r;i++) {
//			for (int j=0;j<c;j++) cout<<(dis[i][j]==INF?0:dis[i][j])<<" ";
//			cout<<"\n";
//		}
	cout<<dis[g.first][g.second]<<"\n";
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 460 KB Output is correct
3 Correct 0 ms 456 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 1 ms 348 KB Output is correct
9 Correct 0 ms 452 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 344 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 5 ms 1116 KB Output is correct
20 Correct 3 ms 1188 KB Output is correct
21 Correct 1 ms 1116 KB Output is correct
22 Correct 7 ms 1116 KB Output is correct
23 Correct 5 ms 1116 KB Output is correct
24 Correct 4 ms 1644 KB Output is correct
25 Correct 4 ms 1492 KB Output is correct
26 Correct 3 ms 1116 KB Output is correct
27 Correct 2 ms 1312 KB Output is correct
28 Correct 3 ms 1112 KB Output is correct
29 Correct 14 ms 2396 KB Output is correct
30 Correct 5 ms 1492 KB Output is correct
31 Correct 3 ms 2652 KB Output is correct
32 Correct 21 ms 2584 KB Output is correct
33 Correct 13 ms 2392 KB Output is correct
34 Correct 10 ms 2832 KB Output is correct
35 Correct 9 ms 3044 KB Output is correct
36 Correct 12 ms 2648 KB Output is correct
37 Correct 17 ms 2652 KB Output is correct
38 Correct 5 ms 2652 KB Output is correct
39 Correct 180 ms 20044 KB Output is correct
40 Correct 8 ms 2652 KB Output is correct
41 Correct 8 ms 3464 KB Output is correct
42 Correct 26 ms 3164 KB Output is correct
43 Correct 17 ms 4128 KB Output is correct
44 Correct 37 ms 10360 KB Output is correct
45 Correct 38 ms 11496 KB Output is correct
46 Correct 31 ms 23412 KB Output is correct
47 Correct 195 ms 20420 KB Output is correct
48 Correct 145 ms 20504 KB Output is correct
49 Correct 82 ms 25788 KB Output is correct
50 Correct 59 ms 25784 KB Output is correct
51 Correct 150 ms 20936 KB Output is correct
52 Correct 111 ms 20540 KB Output is correct
53 Correct 144 ms 20348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 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 344 KB Output is correct
5 Correct 1 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 1 ms 360 KB Output is correct
9 Correct 0 ms 344 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 344 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 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 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 424 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
# Verdict Execution time Memory Grader output
1 Correct 1 ms 452 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 1 ms 540 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 452 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 1 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 344 KB Output is correct
17 Correct 1 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 0 ms 348 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 452 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 860 KB Output is correct
26 Correct 2 ms 1212 KB Output is correct
27 Correct 1 ms 1116 KB Output is correct
28 Correct 3 ms 1700 KB Output is correct
29 Correct 2 ms 1112 KB Output is correct
30 Correct 1 ms 1112 KB Output is correct
31 Correct 3 ms 1368 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 2 ms 1116 KB Output is correct
34 Correct 5 ms 2756 KB Output is correct
35 Correct 3 ms 2648 KB Output is correct
36 Correct 5 ms 3284 KB Output is correct
37 Correct 4 ms 2396 KB Output is correct
38 Correct 3 ms 2396 KB Output is correct
39 Correct 12 ms 7516 KB Output is correct
40 Correct 27 ms 18208 KB Output is correct
41 Correct 38 ms 23404 KB Output is correct
42 Correct 49 ms 34560 KB Output is correct
43 Correct 31 ms 20048 KB Output is correct
44 Correct 23 ms 20040 KB Output is correct
45 Correct 58 ms 30216 KB Output is correct
46 Correct 50 ms 25828 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 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 344 KB Output is correct
5 Correct 1 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 1 ms 360 KB Output is correct
9 Correct 0 ms 344 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 344 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 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 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 424 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 5 ms 1116 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 600 KB Output is correct
36 Correct 2 ms 860 KB Output is correct
37 Correct 3 ms 1052 KB Output is correct
38 Correct 2 ms 1112 KB Output is correct
39 Correct 2 ms 1116 KB Output is correct
40 Correct 9 ms 1236 KB Output is correct
41 Correct 5 ms 1116 KB Output is correct
42 Correct 4 ms 1708 KB Output is correct
43 Correct 2 ms 1116 KB Output is correct
44 Correct 2 ms 1120 KB Output is correct
45 Correct 4 ms 1392 KB Output is correct
46 Correct 3 ms 1388 KB Output is correct
47 Correct 5 ms 1372 KB Output is correct
48 Correct 5 ms 1116 KB Output is correct
49 Correct 4 ms 1116 KB Output is correct
50 Correct 6 ms 1288 KB Output is correct
51 Correct 3 ms 1372 KB Output is correct
52 Correct 2 ms 1112 KB Output is correct
53 Correct 2 ms 1120 KB Output is correct
54 Correct 3 ms 1120 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 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 344 KB Output is correct
5 Correct 1 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 1 ms 360 KB Output is correct
9 Correct 0 ms 344 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 344 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 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 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 424 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 5 ms 1116 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 600 KB Output is correct
36 Correct 2 ms 860 KB Output is correct
37 Correct 3 ms 1052 KB Output is correct
38 Correct 2 ms 1112 KB Output is correct
39 Correct 2 ms 1116 KB Output is correct
40 Correct 9 ms 1236 KB Output is correct
41 Correct 5 ms 1116 KB Output is correct
42 Correct 4 ms 1708 KB Output is correct
43 Correct 2 ms 1116 KB Output is correct
44 Correct 2 ms 1120 KB Output is correct
45 Correct 4 ms 1392 KB Output is correct
46 Correct 3 ms 1388 KB Output is correct
47 Correct 5 ms 1372 KB Output is correct
48 Correct 5 ms 1116 KB Output is correct
49 Correct 4 ms 1116 KB Output is correct
50 Correct 6 ms 1288 KB Output is correct
51 Correct 3 ms 1372 KB Output is correct
52 Correct 2 ms 1112 KB Output is correct
53 Correct 2 ms 1120 KB Output is correct
54 Correct 3 ms 1120 KB Output is correct
55 Correct 14 ms 2500 KB Output is correct
56 Correct 5 ms 1372 KB Output is correct
57 Correct 5 ms 2772 KB Output is correct
58 Correct 15 ms 2140 KB Output is correct
59 Correct 3 ms 2652 KB Output is correct
60 Correct 20 ms 2396 KB Output is correct
61 Correct 12 ms 2516 KB Output is correct
62 Correct 5 ms 3288 KB Output is correct
63 Correct 4 ms 2396 KB Output is correct
64 Correct 3 ms 2396 KB Output is correct
65 Correct 13 ms 3052 KB Output is correct
66 Correct 9 ms 2832 KB Output is correct
67 Correct 13 ms 2732 KB Output is correct
68 Correct 14 ms 2396 KB Output is correct
69 Correct 14 ms 2396 KB Output is correct
70 Correct 14 ms 2668 KB Output is correct
71 Correct 12 ms 2988 KB Output is correct
72 Correct 13 ms 2652 KB Output is correct
73 Correct 17 ms 2692 KB Output is correct
74 Correct 3 ms 2396 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 460 KB Output is correct
3 Correct 0 ms 456 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 1 ms 348 KB Output is correct
9 Correct 0 ms 452 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 344 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 5 ms 1116 KB Output is correct
20 Correct 3 ms 1188 KB Output is correct
21 Correct 1 ms 1116 KB Output is correct
22 Correct 7 ms 1116 KB Output is correct
23 Correct 5 ms 1116 KB Output is correct
24 Correct 4 ms 1644 KB Output is correct
25 Correct 4 ms 1492 KB Output is correct
26 Correct 3 ms 1116 KB Output is correct
27 Correct 2 ms 1312 KB Output is correct
28 Correct 3 ms 1112 KB Output is correct
29 Correct 14 ms 2396 KB Output is correct
30 Correct 5 ms 1492 KB Output is correct
31 Correct 3 ms 2652 KB Output is correct
32 Correct 21 ms 2584 KB Output is correct
33 Correct 13 ms 2392 KB Output is correct
34 Correct 10 ms 2832 KB Output is correct
35 Correct 9 ms 3044 KB Output is correct
36 Correct 12 ms 2648 KB Output is correct
37 Correct 17 ms 2652 KB Output is correct
38 Correct 5 ms 2652 KB Output is correct
39 Correct 180 ms 20044 KB Output is correct
40 Correct 8 ms 2652 KB Output is correct
41 Correct 8 ms 3464 KB Output is correct
42 Correct 26 ms 3164 KB Output is correct
43 Correct 17 ms 4128 KB Output is correct
44 Correct 37 ms 10360 KB Output is correct
45 Correct 38 ms 11496 KB Output is correct
46 Correct 31 ms 23412 KB Output is correct
47 Correct 195 ms 20420 KB Output is correct
48 Correct 145 ms 20504 KB Output is correct
49 Correct 82 ms 25788 KB Output is correct
50 Correct 59 ms 25784 KB Output is correct
51 Correct 150 ms 20936 KB Output is correct
52 Correct 111 ms 20540 KB Output is correct
53 Correct 144 ms 20348 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 360 KB Output is correct
62 Correct 0 ms 344 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 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 344 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 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 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 424 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 1 ms 452 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 344 KB Output is correct
89 Correct 1 ms 540 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 452 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 344 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 344 KB Output is correct
98 Correct 1 ms 348 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 344 KB Output is correct
102 Correct 1 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 0 ms 348 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 452 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 2 ms 860 KB Output is correct
111 Correct 2 ms 1212 KB Output is correct
112 Correct 1 ms 1116 KB Output is correct
113 Correct 3 ms 1700 KB Output is correct
114 Correct 2 ms 1112 KB Output is correct
115 Correct 1 ms 1112 KB Output is correct
116 Correct 3 ms 1368 KB Output is correct
117 Correct 2 ms 1116 KB Output is correct
118 Correct 2 ms 1116 KB Output is correct
119 Correct 5 ms 2756 KB Output is correct
120 Correct 3 ms 2648 KB Output is correct
121 Correct 5 ms 3284 KB Output is correct
122 Correct 4 ms 2396 KB Output is correct
123 Correct 3 ms 2396 KB Output is correct
124 Correct 12 ms 7516 KB Output is correct
125 Correct 27 ms 18208 KB Output is correct
126 Correct 38 ms 23404 KB Output is correct
127 Correct 49 ms 34560 KB Output is correct
128 Correct 31 ms 20048 KB Output is correct
129 Correct 23 ms 20040 KB Output is correct
130 Correct 58 ms 30216 KB Output is correct
131 Correct 50 ms 25828 KB Output is correct
132 Correct 5 ms 1116 KB Output is correct
133 Correct 0 ms 348 KB Output is correct
134 Correct 0 ms 600 KB Output is correct
135 Correct 2 ms 860 KB Output is correct
136 Correct 3 ms 1052 KB Output is correct
137 Correct 2 ms 1112 KB Output is correct
138 Correct 2 ms 1116 KB Output is correct
139 Correct 9 ms 1236 KB Output is correct
140 Correct 5 ms 1116 KB Output is correct
141 Correct 4 ms 1708 KB Output is correct
142 Correct 2 ms 1116 KB Output is correct
143 Correct 2 ms 1120 KB Output is correct
144 Correct 4 ms 1392 KB Output is correct
145 Correct 3 ms 1388 KB Output is correct
146 Correct 5 ms 1372 KB Output is correct
147 Correct 5 ms 1116 KB Output is correct
148 Correct 4 ms 1116 KB Output is correct
149 Correct 6 ms 1288 KB Output is correct
150 Correct 3 ms 1372 KB Output is correct
151 Correct 2 ms 1112 KB Output is correct
152 Correct 2 ms 1120 KB Output is correct
153 Correct 3 ms 1120 KB Output is correct
154 Correct 14 ms 2500 KB Output is correct
155 Correct 5 ms 1372 KB Output is correct
156 Correct 5 ms 2772 KB Output is correct
157 Correct 15 ms 2140 KB Output is correct
158 Correct 3 ms 2652 KB Output is correct
159 Correct 20 ms 2396 KB Output is correct
160 Correct 12 ms 2516 KB Output is correct
161 Correct 5 ms 3288 KB Output is correct
162 Correct 4 ms 2396 KB Output is correct
163 Correct 3 ms 2396 KB Output is correct
164 Correct 13 ms 3052 KB Output is correct
165 Correct 9 ms 2832 KB Output is correct
166 Correct 13 ms 2732 KB Output is correct
167 Correct 14 ms 2396 KB Output is correct
168 Correct 14 ms 2396 KB Output is correct
169 Correct 14 ms 2668 KB Output is correct
170 Correct 12 ms 2988 KB Output is correct
171 Correct 13 ms 2652 KB Output is correct
172 Correct 17 ms 2692 KB Output is correct
173 Correct 3 ms 2396 KB Output is correct
174 Correct 9 ms 2904 KB Output is correct
175 Correct 41 ms 4956 KB Output is correct
176 Correct 34 ms 11372 KB Output is correct
177 Correct 87 ms 13680 KB Output is correct
178 Correct 34 ms 17604 KB Output is correct
179 Correct 89 ms 20312 KB Output is correct
180 Correct 150 ms 20444 KB Output is correct
181 Correct 158 ms 21120 KB Output is correct
182 Correct 153 ms 24040 KB Output is correct
183 Correct 138 ms 23624 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 460 KB Output is correct
3 Correct 0 ms 456 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 1 ms 348 KB Output is correct
9 Correct 0 ms 452 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 344 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 5 ms 1116 KB Output is correct
20 Correct 3 ms 1188 KB Output is correct
21 Correct 1 ms 1116 KB Output is correct
22 Correct 7 ms 1116 KB Output is correct
23 Correct 5 ms 1116 KB Output is correct
24 Correct 4 ms 1644 KB Output is correct
25 Correct 4 ms 1492 KB Output is correct
26 Correct 3 ms 1116 KB Output is correct
27 Correct 2 ms 1312 KB Output is correct
28 Correct 3 ms 1112 KB Output is correct
29 Correct 14 ms 2396 KB Output is correct
30 Correct 5 ms 1492 KB Output is correct
31 Correct 3 ms 2652 KB Output is correct
32 Correct 21 ms 2584 KB Output is correct
33 Correct 13 ms 2392 KB Output is correct
34 Correct 10 ms 2832 KB Output is correct
35 Correct 9 ms 3044 KB Output is correct
36 Correct 12 ms 2648 KB Output is correct
37 Correct 17 ms 2652 KB Output is correct
38 Correct 5 ms 2652 KB Output is correct
39 Correct 180 ms 20044 KB Output is correct
40 Correct 8 ms 2652 KB Output is correct
41 Correct 8 ms 3464 KB Output is correct
42 Correct 26 ms 3164 KB Output is correct
43 Correct 17 ms 4128 KB Output is correct
44 Correct 37 ms 10360 KB Output is correct
45 Correct 38 ms 11496 KB Output is correct
46 Correct 31 ms 23412 KB Output is correct
47 Correct 195 ms 20420 KB Output is correct
48 Correct 145 ms 20504 KB Output is correct
49 Correct 82 ms 25788 KB Output is correct
50 Correct 59 ms 25784 KB Output is correct
51 Correct 150 ms 20936 KB Output is correct
52 Correct 111 ms 20540 KB Output is correct
53 Correct 144 ms 20348 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 360 KB Output is correct
62 Correct 0 ms 344 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 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 344 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 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 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 424 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 1 ms 452 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 344 KB Output is correct
89 Correct 1 ms 540 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 452 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 344 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 344 KB Output is correct
98 Correct 1 ms 348 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 344 KB Output is correct
102 Correct 1 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 0 ms 348 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 452 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 2 ms 860 KB Output is correct
111 Correct 2 ms 1212 KB Output is correct
112 Correct 1 ms 1116 KB Output is correct
113 Correct 3 ms 1700 KB Output is correct
114 Correct 2 ms 1112 KB Output is correct
115 Correct 1 ms 1112 KB Output is correct
116 Correct 3 ms 1368 KB Output is correct
117 Correct 2 ms 1116 KB Output is correct
118 Correct 2 ms 1116 KB Output is correct
119 Correct 5 ms 2756 KB Output is correct
120 Correct 3 ms 2648 KB Output is correct
121 Correct 5 ms 3284 KB Output is correct
122 Correct 4 ms 2396 KB Output is correct
123 Correct 3 ms 2396 KB Output is correct
124 Correct 12 ms 7516 KB Output is correct
125 Correct 27 ms 18208 KB Output is correct
126 Correct 38 ms 23404 KB Output is correct
127 Correct 49 ms 34560 KB Output is correct
128 Correct 31 ms 20048 KB Output is correct
129 Correct 23 ms 20040 KB Output is correct
130 Correct 58 ms 30216 KB Output is correct
131 Correct 50 ms 25828 KB Output is correct
132 Correct 5 ms 1116 KB Output is correct
133 Correct 0 ms 348 KB Output is correct
134 Correct 0 ms 600 KB Output is correct
135 Correct 2 ms 860 KB Output is correct
136 Correct 3 ms 1052 KB Output is correct
137 Correct 2 ms 1112 KB Output is correct
138 Correct 2 ms 1116 KB Output is correct
139 Correct 9 ms 1236 KB Output is correct
140 Correct 5 ms 1116 KB Output is correct
141 Correct 4 ms 1708 KB Output is correct
142 Correct 2 ms 1116 KB Output is correct
143 Correct 2 ms 1120 KB Output is correct
144 Correct 4 ms 1392 KB Output is correct
145 Correct 3 ms 1388 KB Output is correct
146 Correct 5 ms 1372 KB Output is correct
147 Correct 5 ms 1116 KB Output is correct
148 Correct 4 ms 1116 KB Output is correct
149 Correct 6 ms 1288 KB Output is correct
150 Correct 3 ms 1372 KB Output is correct
151 Correct 2 ms 1112 KB Output is correct
152 Correct 2 ms 1120 KB Output is correct
153 Correct 3 ms 1120 KB Output is correct
154 Correct 14 ms 2500 KB Output is correct
155 Correct 5 ms 1372 KB Output is correct
156 Correct 5 ms 2772 KB Output is correct
157 Correct 15 ms 2140 KB Output is correct
158 Correct 3 ms 2652 KB Output is correct
159 Correct 20 ms 2396 KB Output is correct
160 Correct 12 ms 2516 KB Output is correct
161 Correct 5 ms 3288 KB Output is correct
162 Correct 4 ms 2396 KB Output is correct
163 Correct 3 ms 2396 KB Output is correct
164 Correct 13 ms 3052 KB Output is correct
165 Correct 9 ms 2832 KB Output is correct
166 Correct 13 ms 2732 KB Output is correct
167 Correct 14 ms 2396 KB Output is correct
168 Correct 14 ms 2396 KB Output is correct
169 Correct 14 ms 2668 KB Output is correct
170 Correct 12 ms 2988 KB Output is correct
171 Correct 13 ms 2652 KB Output is correct
172 Correct 17 ms 2692 KB Output is correct
173 Correct 3 ms 2396 KB Output is correct
174 Correct 9 ms 2904 KB Output is correct
175 Correct 41 ms 4956 KB Output is correct
176 Correct 34 ms 11372 KB Output is correct
177 Correct 87 ms 13680 KB Output is correct
178 Correct 34 ms 17604 KB Output is correct
179 Correct 89 ms 20312 KB Output is correct
180 Correct 150 ms 20444 KB Output is correct
181 Correct 158 ms 21120 KB Output is correct
182 Correct 153 ms 24040 KB Output is correct
183 Correct 138 ms 23624 KB Output is correct
184 Correct 396 ms 39764 KB Output is correct
185 Correct 69 ms 21908 KB Output is correct
186 Correct 42 ms 25968 KB Output is correct
187 Correct 56 ms 29940 KB Output is correct
188 Correct 98 ms 68056 KB Output is correct
189 Correct 343 ms 40120 KB Output is correct
190 Correct 140 ms 39764 KB Output is correct
191 Correct 96 ms 67724 KB Output is correct
192 Correct 65 ms 39504 KB Output is correct
193 Correct 44 ms 39504 KB Output is correct
194 Correct 190 ms 51560 KB Output is correct
195 Correct 126 ms 51300 KB Output is correct
196 Correct 275 ms 39812 KB Output is correct
197 Correct 174 ms 40396 KB Output is correct
198 Correct 179 ms 41412 KB Output is correct
199 Correct 299 ms 44040 KB Output is correct
200 Correct 221 ms 41456 KB Output is correct
201 Correct 270 ms 40392 KB Output is correct
202 Correct 341 ms 40076 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 460 KB Output is correct
3 Correct 0 ms 456 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 1 ms 348 KB Output is correct
9 Correct 0 ms 452 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 344 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 5 ms 1116 KB Output is correct
20 Correct 3 ms 1188 KB Output is correct
21 Correct 1 ms 1116 KB Output is correct
22 Correct 7 ms 1116 KB Output is correct
23 Correct 5 ms 1116 KB Output is correct
24 Correct 4 ms 1644 KB Output is correct
25 Correct 4 ms 1492 KB Output is correct
26 Correct 3 ms 1116 KB Output is correct
27 Correct 2 ms 1312 KB Output is correct
28 Correct 3 ms 1112 KB Output is correct
29 Correct 14 ms 2396 KB Output is correct
30 Correct 5 ms 1492 KB Output is correct
31 Correct 3 ms 2652 KB Output is correct
32 Correct 21 ms 2584 KB Output is correct
33 Correct 13 ms 2392 KB Output is correct
34 Correct 10 ms 2832 KB Output is correct
35 Correct 9 ms 3044 KB Output is correct
36 Correct 12 ms 2648 KB Output is correct
37 Correct 17 ms 2652 KB Output is correct
38 Correct 5 ms 2652 KB Output is correct
39 Correct 180 ms 20044 KB Output is correct
40 Correct 8 ms 2652 KB Output is correct
41 Correct 8 ms 3464 KB Output is correct
42 Correct 26 ms 3164 KB Output is correct
43 Correct 17 ms 4128 KB Output is correct
44 Correct 37 ms 10360 KB Output is correct
45 Correct 38 ms 11496 KB Output is correct
46 Correct 31 ms 23412 KB Output is correct
47 Correct 195 ms 20420 KB Output is correct
48 Correct 145 ms 20504 KB Output is correct
49 Correct 82 ms 25788 KB Output is correct
50 Correct 59 ms 25784 KB Output is correct
51 Correct 150 ms 20936 KB Output is correct
52 Correct 111 ms 20540 KB Output is correct
53 Correct 144 ms 20348 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 360 KB Output is correct
62 Correct 0 ms 344 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 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 344 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 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 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 424 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 1 ms 452 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 344 KB Output is correct
89 Correct 1 ms 540 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 452 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 344 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 344 KB Output is correct
98 Correct 1 ms 348 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 344 KB Output is correct
102 Correct 1 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 0 ms 348 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 452 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 2 ms 860 KB Output is correct
111 Correct 2 ms 1212 KB Output is correct
112 Correct 1 ms 1116 KB Output is correct
113 Correct 3 ms 1700 KB Output is correct
114 Correct 2 ms 1112 KB Output is correct
115 Correct 1 ms 1112 KB Output is correct
116 Correct 3 ms 1368 KB Output is correct
117 Correct 2 ms 1116 KB Output is correct
118 Correct 2 ms 1116 KB Output is correct
119 Correct 5 ms 2756 KB Output is correct
120 Correct 3 ms 2648 KB Output is correct
121 Correct 5 ms 3284 KB Output is correct
122 Correct 4 ms 2396 KB Output is correct
123 Correct 3 ms 2396 KB Output is correct
124 Correct 12 ms 7516 KB Output is correct
125 Correct 27 ms 18208 KB Output is correct
126 Correct 38 ms 23404 KB Output is correct
127 Correct 49 ms 34560 KB Output is correct
128 Correct 31 ms 20048 KB Output is correct
129 Correct 23 ms 20040 KB Output is correct
130 Correct 58 ms 30216 KB Output is correct
131 Correct 50 ms 25828 KB Output is correct
132 Correct 5 ms 1116 KB Output is correct
133 Correct 0 ms 348 KB Output is correct
134 Correct 0 ms 600 KB Output is correct
135 Correct 2 ms 860 KB Output is correct
136 Correct 3 ms 1052 KB Output is correct
137 Correct 2 ms 1112 KB Output is correct
138 Correct 2 ms 1116 KB Output is correct
139 Correct 9 ms 1236 KB Output is correct
140 Correct 5 ms 1116 KB Output is correct
141 Correct 4 ms 1708 KB Output is correct
142 Correct 2 ms 1116 KB Output is correct
143 Correct 2 ms 1120 KB Output is correct
144 Correct 4 ms 1392 KB Output is correct
145 Correct 3 ms 1388 KB Output is correct
146 Correct 5 ms 1372 KB Output is correct
147 Correct 5 ms 1116 KB Output is correct
148 Correct 4 ms 1116 KB Output is correct
149 Correct 6 ms 1288 KB Output is correct
150 Correct 3 ms 1372 KB Output is correct
151 Correct 2 ms 1112 KB Output is correct
152 Correct 2 ms 1120 KB Output is correct
153 Correct 3 ms 1120 KB Output is correct
154 Correct 14 ms 2500 KB Output is correct
155 Correct 5 ms 1372 KB Output is correct
156 Correct 5 ms 2772 KB Output is correct
157 Correct 15 ms 2140 KB Output is correct
158 Correct 3 ms 2652 KB Output is correct
159 Correct 20 ms 2396 KB Output is correct
160 Correct 12 ms 2516 KB Output is correct
161 Correct 5 ms 3288 KB Output is correct
162 Correct 4 ms 2396 KB Output is correct
163 Correct 3 ms 2396 KB Output is correct
164 Correct 13 ms 3052 KB Output is correct
165 Correct 9 ms 2832 KB Output is correct
166 Correct 13 ms 2732 KB Output is correct
167 Correct 14 ms 2396 KB Output is correct
168 Correct 14 ms 2396 KB Output is correct
169 Correct 14 ms 2668 KB Output is correct
170 Correct 12 ms 2988 KB Output is correct
171 Correct 13 ms 2652 KB Output is correct
172 Correct 17 ms 2692 KB Output is correct
173 Correct 3 ms 2396 KB Output is correct
174 Correct 9 ms 2904 KB Output is correct
175 Correct 41 ms 4956 KB Output is correct
176 Correct 34 ms 11372 KB Output is correct
177 Correct 87 ms 13680 KB Output is correct
178 Correct 34 ms 17604 KB Output is correct
179 Correct 89 ms 20312 KB Output is correct
180 Correct 150 ms 20444 KB Output is correct
181 Correct 158 ms 21120 KB Output is correct
182 Correct 153 ms 24040 KB Output is correct
183 Correct 138 ms 23624 KB Output is correct
184 Correct 396 ms 39764 KB Output is correct
185 Correct 69 ms 21908 KB Output is correct
186 Correct 42 ms 25968 KB Output is correct
187 Correct 56 ms 29940 KB Output is correct
188 Correct 98 ms 68056 KB Output is correct
189 Correct 343 ms 40120 KB Output is correct
190 Correct 140 ms 39764 KB Output is correct
191 Correct 96 ms 67724 KB Output is correct
192 Correct 65 ms 39504 KB Output is correct
193 Correct 44 ms 39504 KB Output is correct
194 Correct 190 ms 51560 KB Output is correct
195 Correct 126 ms 51300 KB Output is correct
196 Correct 275 ms 39812 KB Output is correct
197 Correct 174 ms 40396 KB Output is correct
198 Correct 179 ms 41412 KB Output is correct
199 Correct 299 ms 44040 KB Output is correct
200 Correct 221 ms 41456 KB Output is correct
201 Correct 270 ms 40392 KB Output is correct
202 Correct 341 ms 40076 KB Output is correct
203 Correct 798 ms 79048 KB Output is correct
204 Correct 239 ms 59828 KB Output is correct
205 Correct 498 ms 48684 KB Output is correct
206 Correct 231 ms 78464 KB Output is correct
207 Correct 147 ms 107992 KB Output is correct
208 Correct 674 ms 79140 KB Output is correct
209 Correct 784 ms 78928 KB Output is correct
210 Correct 176 ms 108044 KB Output is correct
211 Correct 124 ms 78692 KB Output is correct
212 Correct 88 ms 78676 KB Output is correct
213 Correct 289 ms 102424 KB Output is correct
214 Correct 314 ms 102444 KB Output is correct
215 Correct 571 ms 79092 KB Output is correct
216 Correct 492 ms 79944 KB Output is correct
217 Correct 566 ms 81676 KB Output is correct
218 Correct 452 ms 88640 KB Output is correct
219 Correct 444 ms 104336 KB Output is correct
220 Correct 158 ms 98028 KB Output is correct
221 Correct 154 ms 88768 KB Output is correct
222 Correct 321 ms 123044 KB Output is correct
223 Correct 612 ms 80580 KB Output is correct
224 Correct 616 ms 79888 KB Output is correct
225 Correct 349 ms 79208 KB Output is correct