Submission #927688

# Submission time Handle Problem Language Result Execution time Memory
927688 2024-02-15T08:42:37 Z jcelin Maze (JOI23_ho_t3) C++14
100 / 100
1012 ms 711488 KB
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

typedef pair<int,int> ii;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ll> vll;
typedef vector<pll> vpll;

#define PB push_back
#define PF push_front
#define PPB pop_back
#define PPF pop_front
#define X first
#define Y second
#define MP make_pair
#define all(x) (x).begin(), (x).end()

const int mod = 1e9 + 7; //998244353;
const int inf = 1e9 + 7;
const ll INF = 1e18 + 7;
const int logo = 20;
const int MAXN = 6e6 + 7;
const int off = 1 << logo;
const int trsz = off << 1;
const int dx[] = {1, -1, 0, 0, -1, -1, 1, 1};
const int dy[] = {0, 0, -1, 1, -1, 1, -1, 1};

vi d[MAXN];
vector<bool> mt[MAXN];
int n, m, kv;
vii p[MAXN];


bool izvan(int r, int s){
	if(r < 1 or s < 1 or r > n or s > m) return 1;
	return 0;
}

void expand_na_bijele(int ud){
	queue<ii> q;
	for(auto &x : p[ud]) q.push(x);
	
	while(!q.empty()){
		int r, s;
		tie(r, s) = q.front();
		q.pop();
		for(int k=0; k<4; k++){
			int nr = r + dx[k], ns = s + dy[k];
			if(izvan(nr, ns)) continue;
			if(mt[nr][ns]) continue;
			if(d[nr][ns] != -1) continue;
			d[nr][ns] = ud;
			p[ud].PB({nr, ns});
			q.push({nr, ns});
		}
	}
}

//ud - 1 -> ud
void expand_kvadrat(int ud){
	queue<pair<ii, int>> q;
	for(auto &x : p[ud - 1]) q.push({x, kv - 1});
	while(!q.empty()){
		int r, s, ost;
		tie(r, s) = q.front().X;
		ost = q.front().Y;
		q.pop();
		if(ost == 0) continue;
		for(int k=0; k<8; k++){
			int nr = r + dx[k], ns = s + dy[k];
			if(izvan(nr, ns)) continue;
			if(d[nr][ns] != -1) continue;
			d[nr][ns] = ud;
			p[ud].PB({nr, ns});
			q.push({{nr, ns}, ost - 1});
		}
	}
}

//ud -> ud
void expand_u_4(int ud){
	vii zd = p[ud];
	for(auto &x : p[ud - 1]) zd.PB(x);
	
	for(auto &x : zd){
		for(int k=0; k<4; k++){
			int nr = x.X + dx[k], ns = x.Y + dy[k];
			if(izvan(nr, ns)) continue;
			if(d[nr][ns] != -1) continue;
			d[nr][ns] = ud;
			p[ud].PB({nr, ns});
		}
	}
}

void solve(){
	int sx, sy, ex, ey;
	cin >> n >> m >> kv >> sx >> sy >> ex >> ey;

	for(int i=1; i<=n; i++){
		d[i].resize(m + 1, -1);
		mt[i].resize(m + 1, 1);
		for(int j=1; j<=m; j++){
			char x;
			cin >> x;
			if(x == '.') mt[i][j] = 0;
		}
	}
	
	d[sx][sy] = 0;
	p[0].PB({sx, sy});
	expand_na_bijele(0);
	
	for(int i=1; i<=n+m; i++){
		expand_kvadrat(i);
		expand_u_4(i);
		expand_na_bijele(i);
	}
	
	
	cout << d[ex][ey] << "\n";
}

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int tt = 1;
	//cin >> tt;
	while(tt--) solve();
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 179 ms 517260 KB Output is correct
2 Correct 138 ms 516876 KB Output is correct
3 Correct 114 ms 516928 KB Output is correct
4 Correct 118 ms 516944 KB Output is correct
5 Correct 147 ms 516844 KB Output is correct
6 Correct 165 ms 517000 KB Output is correct
7 Correct 132 ms 517084 KB Output is correct
8 Correct 246 ms 517220 KB Output is correct
9 Correct 163 ms 516952 KB Output is correct
10 Correct 118 ms 517052 KB Output is correct
11 Correct 148 ms 517016 KB Output is correct
12 Correct 114 ms 516880 KB Output is correct
13 Correct 164 ms 517064 KB Output is correct
14 Correct 155 ms 516884 KB Output is correct
15 Correct 168 ms 516944 KB Output is correct
16 Correct 154 ms 517092 KB Output is correct
17 Correct 158 ms 516992 KB Output is correct
18 Correct 175 ms 517084 KB Output is correct
19 Correct 170 ms 518224 KB Output is correct
20 Correct 187 ms 518284 KB Output is correct
21 Correct 159 ms 518400 KB Output is correct
22 Correct 176 ms 517832 KB Output is correct
23 Correct 166 ms 517768 KB Output is correct
24 Correct 187 ms 517972 KB Output is correct
25 Correct 173 ms 518880 KB Output is correct
26 Correct 165 ms 517836 KB Output is correct
27 Correct 160 ms 517712 KB Output is correct
28 Correct 163 ms 517968 KB Output is correct
29 Correct 178 ms 519316 KB Output is correct
30 Correct 172 ms 518040 KB Output is correct
31 Correct 193 ms 521924 KB Output is correct
32 Correct 170 ms 518948 KB Output is correct
33 Correct 138 ms 519344 KB Output is correct
34 Correct 179 ms 519288 KB Output is correct
35 Correct 208 ms 521984 KB Output is correct
36 Correct 189 ms 519808 KB Output is correct
37 Correct 172 ms 518800 KB Output is correct
38 Correct 187 ms 519068 KB Output is correct
39 Correct 250 ms 537720 KB Output is correct
40 Correct 128 ms 519648 KB Output is correct
41 Correct 137 ms 519868 KB Output is correct
42 Correct 128 ms 520528 KB Output is correct
43 Correct 171 ms 521216 KB Output is correct
44 Correct 183 ms 528556 KB Output is correct
45 Correct 274 ms 529968 KB Output is correct
46 Correct 220 ms 561172 KB Output is correct
47 Correct 260 ms 536160 KB Output is correct
48 Correct 229 ms 539232 KB Output is correct
49 Correct 321 ms 540204 KB Output is correct
50 Correct 338 ms 563960 KB Output is correct
51 Correct 285 ms 538188 KB Output is correct
52 Correct 291 ms 537660 KB Output is correct
53 Correct 229 ms 536612 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 177 ms 516944 KB Output is correct
2 Correct 166 ms 516860 KB Output is correct
3 Correct 185 ms 516832 KB Output is correct
4 Correct 157 ms 516816 KB Output is correct
5 Correct 152 ms 516888 KB Output is correct
6 Correct 157 ms 516916 KB Output is correct
7 Correct 171 ms 517260 KB Output is correct
8 Correct 158 ms 516912 KB Output is correct
9 Correct 159 ms 517004 KB Output is correct
10 Correct 166 ms 516956 KB Output is correct
11 Correct 171 ms 516868 KB Output is correct
12 Correct 158 ms 517112 KB Output is correct
13 Correct 157 ms 516948 KB Output is correct
14 Correct 168 ms 517204 KB Output is correct
15 Correct 156 ms 516988 KB Output is correct
16 Correct 170 ms 516840 KB Output is correct
17 Correct 163 ms 517088 KB Output is correct
18 Correct 158 ms 516948 KB Output is correct
19 Correct 167 ms 517100 KB Output is correct
20 Correct 159 ms 517040 KB Output is correct
21 Correct 167 ms 517028 KB Output is correct
22 Correct 166 ms 516864 KB Output is correct
23 Correct 156 ms 517040 KB Output is correct
24 Correct 180 ms 516948 KB Output is correct
25 Correct 161 ms 517060 KB Output is correct
26 Correct 114 ms 517064 KB Output is correct
27 Correct 195 ms 516944 KB Output is correct
28 Correct 161 ms 516852 KB Output is correct
29 Correct 112 ms 516828 KB Output is correct
30 Correct 201 ms 517008 KB Output is correct
31 Correct 157 ms 517088 KB Output is correct
32 Correct 134 ms 517008 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 188 ms 517064 KB Output is correct
2 Correct 112 ms 516940 KB Output is correct
3 Correct 194 ms 517072 KB Output is correct
4 Correct 115 ms 517060 KB Output is correct
5 Correct 188 ms 517064 KB Output is correct
6 Correct 160 ms 516948 KB Output is correct
7 Correct 160 ms 516856 KB Output is correct
8 Correct 158 ms 517148 KB Output is correct
9 Correct 161 ms 517108 KB Output is correct
10 Correct 190 ms 517000 KB Output is correct
11 Correct 171 ms 516928 KB Output is correct
12 Correct 114 ms 516952 KB Output is correct
13 Correct 112 ms 516864 KB Output is correct
14 Correct 114 ms 516944 KB Output is correct
15 Correct 124 ms 516896 KB Output is correct
16 Correct 114 ms 516972 KB Output is correct
17 Correct 127 ms 516936 KB Output is correct
18 Correct 168 ms 517064 KB Output is correct
19 Correct 167 ms 516948 KB Output is correct
20 Correct 157 ms 517064 KB Output is correct
21 Correct 167 ms 517092 KB Output is correct
22 Correct 168 ms 517092 KB Output is correct
23 Correct 156 ms 516948 KB Output is correct
24 Correct 134 ms 516948 KB Output is correct
25 Correct 183 ms 518228 KB Output is correct
26 Correct 167 ms 518752 KB Output is correct
27 Correct 161 ms 518436 KB Output is correct
28 Correct 162 ms 518752 KB Output is correct
29 Correct 179 ms 518868 KB Output is correct
30 Correct 174 ms 518868 KB Output is correct
31 Correct 162 ms 518348 KB Output is correct
32 Correct 175 ms 518008 KB Output is correct
33 Correct 176 ms 517796 KB Output is correct
34 Correct 214 ms 521672 KB Output is correct
35 Correct 170 ms 521772 KB Output is correct
36 Correct 128 ms 521640 KB Output is correct
37 Correct 133 ms 522000 KB Output is correct
38 Correct 144 ms 521884 KB Output is correct
39 Correct 218 ms 530304 KB Output is correct
40 Correct 333 ms 559020 KB Output is correct
41 Correct 230 ms 559884 KB Output is correct
42 Correct 251 ms 564956 KB Output is correct
43 Correct 325 ms 564692 KB Output is correct
44 Correct 351 ms 564120 KB Output is correct
45 Correct 333 ms 565020 KB Output is correct
46 Correct 370 ms 564780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 177 ms 516944 KB Output is correct
2 Correct 166 ms 516860 KB Output is correct
3 Correct 185 ms 516832 KB Output is correct
4 Correct 157 ms 516816 KB Output is correct
5 Correct 152 ms 516888 KB Output is correct
6 Correct 157 ms 516916 KB Output is correct
7 Correct 171 ms 517260 KB Output is correct
8 Correct 158 ms 516912 KB Output is correct
9 Correct 159 ms 517004 KB Output is correct
10 Correct 166 ms 516956 KB Output is correct
11 Correct 171 ms 516868 KB Output is correct
12 Correct 158 ms 517112 KB Output is correct
13 Correct 157 ms 516948 KB Output is correct
14 Correct 168 ms 517204 KB Output is correct
15 Correct 156 ms 516988 KB Output is correct
16 Correct 170 ms 516840 KB Output is correct
17 Correct 163 ms 517088 KB Output is correct
18 Correct 158 ms 516948 KB Output is correct
19 Correct 167 ms 517100 KB Output is correct
20 Correct 159 ms 517040 KB Output is correct
21 Correct 167 ms 517028 KB Output is correct
22 Correct 166 ms 516864 KB Output is correct
23 Correct 156 ms 517040 KB Output is correct
24 Correct 180 ms 516948 KB Output is correct
25 Correct 161 ms 517060 KB Output is correct
26 Correct 114 ms 517064 KB Output is correct
27 Correct 195 ms 516944 KB Output is correct
28 Correct 161 ms 516852 KB Output is correct
29 Correct 112 ms 516828 KB Output is correct
30 Correct 201 ms 517008 KB Output is correct
31 Correct 157 ms 517088 KB Output is correct
32 Correct 134 ms 517008 KB Output is correct
33 Correct 115 ms 517920 KB Output is correct
34 Correct 150 ms 516936 KB Output is correct
35 Correct 172 ms 516980 KB Output is correct
36 Correct 193 ms 517596 KB Output is correct
37 Correct 192 ms 518304 KB Output is correct
38 Correct 160 ms 518604 KB Output is correct
39 Correct 116 ms 518572 KB Output is correct
40 Correct 186 ms 517928 KB Output is correct
41 Correct 119 ms 517816 KB Output is correct
42 Correct 180 ms 518876 KB Output is correct
43 Correct 187 ms 518784 KB Output is correct
44 Correct 188 ms 518868 KB Output is correct
45 Correct 167 ms 517996 KB Output is correct
46 Correct 154 ms 518876 KB Output is correct
47 Correct 188 ms 517964 KB Output is correct
48 Correct 159 ms 518224 KB Output is correct
49 Correct 124 ms 517856 KB Output is correct
50 Correct 215 ms 517972 KB Output is correct
51 Correct 167 ms 518216 KB Output is correct
52 Correct 122 ms 517888 KB Output is correct
53 Correct 188 ms 517712 KB Output is correct
54 Correct 117 ms 517968 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 177 ms 516944 KB Output is correct
2 Correct 166 ms 516860 KB Output is correct
3 Correct 185 ms 516832 KB Output is correct
4 Correct 157 ms 516816 KB Output is correct
5 Correct 152 ms 516888 KB Output is correct
6 Correct 157 ms 516916 KB Output is correct
7 Correct 171 ms 517260 KB Output is correct
8 Correct 158 ms 516912 KB Output is correct
9 Correct 159 ms 517004 KB Output is correct
10 Correct 166 ms 516956 KB Output is correct
11 Correct 171 ms 516868 KB Output is correct
12 Correct 158 ms 517112 KB Output is correct
13 Correct 157 ms 516948 KB Output is correct
14 Correct 168 ms 517204 KB Output is correct
15 Correct 156 ms 516988 KB Output is correct
16 Correct 170 ms 516840 KB Output is correct
17 Correct 163 ms 517088 KB Output is correct
18 Correct 158 ms 516948 KB Output is correct
19 Correct 167 ms 517100 KB Output is correct
20 Correct 159 ms 517040 KB Output is correct
21 Correct 167 ms 517028 KB Output is correct
22 Correct 166 ms 516864 KB Output is correct
23 Correct 156 ms 517040 KB Output is correct
24 Correct 180 ms 516948 KB Output is correct
25 Correct 161 ms 517060 KB Output is correct
26 Correct 114 ms 517064 KB Output is correct
27 Correct 195 ms 516944 KB Output is correct
28 Correct 161 ms 516852 KB Output is correct
29 Correct 112 ms 516828 KB Output is correct
30 Correct 201 ms 517008 KB Output is correct
31 Correct 157 ms 517088 KB Output is correct
32 Correct 134 ms 517008 KB Output is correct
33 Correct 115 ms 517920 KB Output is correct
34 Correct 150 ms 516936 KB Output is correct
35 Correct 172 ms 516980 KB Output is correct
36 Correct 193 ms 517596 KB Output is correct
37 Correct 192 ms 518304 KB Output is correct
38 Correct 160 ms 518604 KB Output is correct
39 Correct 116 ms 518572 KB Output is correct
40 Correct 186 ms 517928 KB Output is correct
41 Correct 119 ms 517816 KB Output is correct
42 Correct 180 ms 518876 KB Output is correct
43 Correct 187 ms 518784 KB Output is correct
44 Correct 188 ms 518868 KB Output is correct
45 Correct 167 ms 517996 KB Output is correct
46 Correct 154 ms 518876 KB Output is correct
47 Correct 188 ms 517964 KB Output is correct
48 Correct 159 ms 518224 KB Output is correct
49 Correct 124 ms 517856 KB Output is correct
50 Correct 215 ms 517972 KB Output is correct
51 Correct 167 ms 518216 KB Output is correct
52 Correct 122 ms 517888 KB Output is correct
53 Correct 188 ms 517712 KB Output is correct
54 Correct 117 ms 517968 KB Output is correct
55 Correct 193 ms 519240 KB Output is correct
56 Correct 198 ms 518136 KB Output is correct
57 Correct 173 ms 521668 KB Output is correct
58 Correct 198 ms 519316 KB Output is correct
59 Correct 165 ms 521928 KB Output is correct
60 Correct 128 ms 519132 KB Output is correct
61 Correct 193 ms 519348 KB Output is correct
62 Correct 192 ms 521840 KB Output is correct
63 Correct 192 ms 522008 KB Output is correct
64 Correct 175 ms 522776 KB Output is correct
65 Correct 192 ms 519252 KB Output is correct
66 Correct 242 ms 521972 KB Output is correct
67 Correct 171 ms 519708 KB Output is correct
68 Correct 158 ms 519836 KB Output is correct
69 Correct 133 ms 520000 KB Output is correct
70 Correct 220 ms 519364 KB Output is correct
71 Correct 131 ms 519524 KB Output is correct
72 Correct 207 ms 519252 KB Output is correct
73 Correct 124 ms 518980 KB Output is correct
74 Correct 197 ms 519384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 179 ms 517260 KB Output is correct
2 Correct 138 ms 516876 KB Output is correct
3 Correct 114 ms 516928 KB Output is correct
4 Correct 118 ms 516944 KB Output is correct
5 Correct 147 ms 516844 KB Output is correct
6 Correct 165 ms 517000 KB Output is correct
7 Correct 132 ms 517084 KB Output is correct
8 Correct 246 ms 517220 KB Output is correct
9 Correct 163 ms 516952 KB Output is correct
10 Correct 118 ms 517052 KB Output is correct
11 Correct 148 ms 517016 KB Output is correct
12 Correct 114 ms 516880 KB Output is correct
13 Correct 164 ms 517064 KB Output is correct
14 Correct 155 ms 516884 KB Output is correct
15 Correct 168 ms 516944 KB Output is correct
16 Correct 154 ms 517092 KB Output is correct
17 Correct 158 ms 516992 KB Output is correct
18 Correct 175 ms 517084 KB Output is correct
19 Correct 170 ms 518224 KB Output is correct
20 Correct 187 ms 518284 KB Output is correct
21 Correct 159 ms 518400 KB Output is correct
22 Correct 176 ms 517832 KB Output is correct
23 Correct 166 ms 517768 KB Output is correct
24 Correct 187 ms 517972 KB Output is correct
25 Correct 173 ms 518880 KB Output is correct
26 Correct 165 ms 517836 KB Output is correct
27 Correct 160 ms 517712 KB Output is correct
28 Correct 163 ms 517968 KB Output is correct
29 Correct 178 ms 519316 KB Output is correct
30 Correct 172 ms 518040 KB Output is correct
31 Correct 193 ms 521924 KB Output is correct
32 Correct 170 ms 518948 KB Output is correct
33 Correct 138 ms 519344 KB Output is correct
34 Correct 179 ms 519288 KB Output is correct
35 Correct 208 ms 521984 KB Output is correct
36 Correct 189 ms 519808 KB Output is correct
37 Correct 172 ms 518800 KB Output is correct
38 Correct 187 ms 519068 KB Output is correct
39 Correct 250 ms 537720 KB Output is correct
40 Correct 128 ms 519648 KB Output is correct
41 Correct 137 ms 519868 KB Output is correct
42 Correct 128 ms 520528 KB Output is correct
43 Correct 171 ms 521216 KB Output is correct
44 Correct 183 ms 528556 KB Output is correct
45 Correct 274 ms 529968 KB Output is correct
46 Correct 220 ms 561172 KB Output is correct
47 Correct 260 ms 536160 KB Output is correct
48 Correct 229 ms 539232 KB Output is correct
49 Correct 321 ms 540204 KB Output is correct
50 Correct 338 ms 563960 KB Output is correct
51 Correct 285 ms 538188 KB Output is correct
52 Correct 291 ms 537660 KB Output is correct
53 Correct 229 ms 536612 KB Output is correct
54 Correct 177 ms 516944 KB Output is correct
55 Correct 166 ms 516860 KB Output is correct
56 Correct 185 ms 516832 KB Output is correct
57 Correct 157 ms 516816 KB Output is correct
58 Correct 152 ms 516888 KB Output is correct
59 Correct 157 ms 516916 KB Output is correct
60 Correct 171 ms 517260 KB Output is correct
61 Correct 158 ms 516912 KB Output is correct
62 Correct 159 ms 517004 KB Output is correct
63 Correct 166 ms 516956 KB Output is correct
64 Correct 171 ms 516868 KB Output is correct
65 Correct 158 ms 517112 KB Output is correct
66 Correct 157 ms 516948 KB Output is correct
67 Correct 168 ms 517204 KB Output is correct
68 Correct 156 ms 516988 KB Output is correct
69 Correct 170 ms 516840 KB Output is correct
70 Correct 163 ms 517088 KB Output is correct
71 Correct 158 ms 516948 KB Output is correct
72 Correct 167 ms 517100 KB Output is correct
73 Correct 159 ms 517040 KB Output is correct
74 Correct 167 ms 517028 KB Output is correct
75 Correct 166 ms 516864 KB Output is correct
76 Correct 156 ms 517040 KB Output is correct
77 Correct 180 ms 516948 KB Output is correct
78 Correct 161 ms 517060 KB Output is correct
79 Correct 114 ms 517064 KB Output is correct
80 Correct 195 ms 516944 KB Output is correct
81 Correct 161 ms 516852 KB Output is correct
82 Correct 112 ms 516828 KB Output is correct
83 Correct 201 ms 517008 KB Output is correct
84 Correct 157 ms 517088 KB Output is correct
85 Correct 134 ms 517008 KB Output is correct
86 Correct 188 ms 517064 KB Output is correct
87 Correct 112 ms 516940 KB Output is correct
88 Correct 194 ms 517072 KB Output is correct
89 Correct 115 ms 517060 KB Output is correct
90 Correct 188 ms 517064 KB Output is correct
91 Correct 160 ms 516948 KB Output is correct
92 Correct 160 ms 516856 KB Output is correct
93 Correct 158 ms 517148 KB Output is correct
94 Correct 161 ms 517108 KB Output is correct
95 Correct 190 ms 517000 KB Output is correct
96 Correct 171 ms 516928 KB Output is correct
97 Correct 114 ms 516952 KB Output is correct
98 Correct 112 ms 516864 KB Output is correct
99 Correct 114 ms 516944 KB Output is correct
100 Correct 124 ms 516896 KB Output is correct
101 Correct 114 ms 516972 KB Output is correct
102 Correct 127 ms 516936 KB Output is correct
103 Correct 168 ms 517064 KB Output is correct
104 Correct 167 ms 516948 KB Output is correct
105 Correct 157 ms 517064 KB Output is correct
106 Correct 167 ms 517092 KB Output is correct
107 Correct 168 ms 517092 KB Output is correct
108 Correct 156 ms 516948 KB Output is correct
109 Correct 134 ms 516948 KB Output is correct
110 Correct 183 ms 518228 KB Output is correct
111 Correct 167 ms 518752 KB Output is correct
112 Correct 161 ms 518436 KB Output is correct
113 Correct 162 ms 518752 KB Output is correct
114 Correct 179 ms 518868 KB Output is correct
115 Correct 174 ms 518868 KB Output is correct
116 Correct 162 ms 518348 KB Output is correct
117 Correct 175 ms 518008 KB Output is correct
118 Correct 176 ms 517796 KB Output is correct
119 Correct 214 ms 521672 KB Output is correct
120 Correct 170 ms 521772 KB Output is correct
121 Correct 128 ms 521640 KB Output is correct
122 Correct 133 ms 522000 KB Output is correct
123 Correct 144 ms 521884 KB Output is correct
124 Correct 218 ms 530304 KB Output is correct
125 Correct 333 ms 559020 KB Output is correct
126 Correct 230 ms 559884 KB Output is correct
127 Correct 251 ms 564956 KB Output is correct
128 Correct 325 ms 564692 KB Output is correct
129 Correct 351 ms 564120 KB Output is correct
130 Correct 333 ms 565020 KB Output is correct
131 Correct 370 ms 564780 KB Output is correct
132 Correct 115 ms 517920 KB Output is correct
133 Correct 150 ms 516936 KB Output is correct
134 Correct 172 ms 516980 KB Output is correct
135 Correct 193 ms 517596 KB Output is correct
136 Correct 192 ms 518304 KB Output is correct
137 Correct 160 ms 518604 KB Output is correct
138 Correct 116 ms 518572 KB Output is correct
139 Correct 186 ms 517928 KB Output is correct
140 Correct 119 ms 517816 KB Output is correct
141 Correct 180 ms 518876 KB Output is correct
142 Correct 187 ms 518784 KB Output is correct
143 Correct 188 ms 518868 KB Output is correct
144 Correct 167 ms 517996 KB Output is correct
145 Correct 154 ms 518876 KB Output is correct
146 Correct 188 ms 517964 KB Output is correct
147 Correct 159 ms 518224 KB Output is correct
148 Correct 124 ms 517856 KB Output is correct
149 Correct 215 ms 517972 KB Output is correct
150 Correct 167 ms 518216 KB Output is correct
151 Correct 122 ms 517888 KB Output is correct
152 Correct 188 ms 517712 KB Output is correct
153 Correct 117 ms 517968 KB Output is correct
154 Correct 193 ms 519240 KB Output is correct
155 Correct 198 ms 518136 KB Output is correct
156 Correct 173 ms 521668 KB Output is correct
157 Correct 198 ms 519316 KB Output is correct
158 Correct 165 ms 521928 KB Output is correct
159 Correct 128 ms 519132 KB Output is correct
160 Correct 193 ms 519348 KB Output is correct
161 Correct 192 ms 521840 KB Output is correct
162 Correct 192 ms 522008 KB Output is correct
163 Correct 175 ms 522776 KB Output is correct
164 Correct 192 ms 519252 KB Output is correct
165 Correct 242 ms 521972 KB Output is correct
166 Correct 171 ms 519708 KB Output is correct
167 Correct 158 ms 519836 KB Output is correct
168 Correct 133 ms 520000 KB Output is correct
169 Correct 220 ms 519364 KB Output is correct
170 Correct 131 ms 519524 KB Output is correct
171 Correct 207 ms 519252 KB Output is correct
172 Correct 124 ms 518980 KB Output is correct
173 Correct 197 ms 519384 KB Output is correct
174 Correct 137 ms 520308 KB Output is correct
175 Correct 234 ms 522516 KB Output is correct
176 Correct 264 ms 529756 KB Output is correct
177 Correct 237 ms 536732 KB Output is correct
178 Correct 311 ms 537168 KB Output is correct
179 Correct 366 ms 545188 KB Output is correct
180 Correct 377 ms 541192 KB Output is correct
181 Correct 316 ms 538568 KB Output is correct
182 Correct 299 ms 547340 KB Output is correct
183 Correct 281 ms 543360 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 179 ms 517260 KB Output is correct
2 Correct 138 ms 516876 KB Output is correct
3 Correct 114 ms 516928 KB Output is correct
4 Correct 118 ms 516944 KB Output is correct
5 Correct 147 ms 516844 KB Output is correct
6 Correct 165 ms 517000 KB Output is correct
7 Correct 132 ms 517084 KB Output is correct
8 Correct 246 ms 517220 KB Output is correct
9 Correct 163 ms 516952 KB Output is correct
10 Correct 118 ms 517052 KB Output is correct
11 Correct 148 ms 517016 KB Output is correct
12 Correct 114 ms 516880 KB Output is correct
13 Correct 164 ms 517064 KB Output is correct
14 Correct 155 ms 516884 KB Output is correct
15 Correct 168 ms 516944 KB Output is correct
16 Correct 154 ms 517092 KB Output is correct
17 Correct 158 ms 516992 KB Output is correct
18 Correct 175 ms 517084 KB Output is correct
19 Correct 170 ms 518224 KB Output is correct
20 Correct 187 ms 518284 KB Output is correct
21 Correct 159 ms 518400 KB Output is correct
22 Correct 176 ms 517832 KB Output is correct
23 Correct 166 ms 517768 KB Output is correct
24 Correct 187 ms 517972 KB Output is correct
25 Correct 173 ms 518880 KB Output is correct
26 Correct 165 ms 517836 KB Output is correct
27 Correct 160 ms 517712 KB Output is correct
28 Correct 163 ms 517968 KB Output is correct
29 Correct 178 ms 519316 KB Output is correct
30 Correct 172 ms 518040 KB Output is correct
31 Correct 193 ms 521924 KB Output is correct
32 Correct 170 ms 518948 KB Output is correct
33 Correct 138 ms 519344 KB Output is correct
34 Correct 179 ms 519288 KB Output is correct
35 Correct 208 ms 521984 KB Output is correct
36 Correct 189 ms 519808 KB Output is correct
37 Correct 172 ms 518800 KB Output is correct
38 Correct 187 ms 519068 KB Output is correct
39 Correct 250 ms 537720 KB Output is correct
40 Correct 128 ms 519648 KB Output is correct
41 Correct 137 ms 519868 KB Output is correct
42 Correct 128 ms 520528 KB Output is correct
43 Correct 171 ms 521216 KB Output is correct
44 Correct 183 ms 528556 KB Output is correct
45 Correct 274 ms 529968 KB Output is correct
46 Correct 220 ms 561172 KB Output is correct
47 Correct 260 ms 536160 KB Output is correct
48 Correct 229 ms 539232 KB Output is correct
49 Correct 321 ms 540204 KB Output is correct
50 Correct 338 ms 563960 KB Output is correct
51 Correct 285 ms 538188 KB Output is correct
52 Correct 291 ms 537660 KB Output is correct
53 Correct 229 ms 536612 KB Output is correct
54 Correct 177 ms 516944 KB Output is correct
55 Correct 166 ms 516860 KB Output is correct
56 Correct 185 ms 516832 KB Output is correct
57 Correct 157 ms 516816 KB Output is correct
58 Correct 152 ms 516888 KB Output is correct
59 Correct 157 ms 516916 KB Output is correct
60 Correct 171 ms 517260 KB Output is correct
61 Correct 158 ms 516912 KB Output is correct
62 Correct 159 ms 517004 KB Output is correct
63 Correct 166 ms 516956 KB Output is correct
64 Correct 171 ms 516868 KB Output is correct
65 Correct 158 ms 517112 KB Output is correct
66 Correct 157 ms 516948 KB Output is correct
67 Correct 168 ms 517204 KB Output is correct
68 Correct 156 ms 516988 KB Output is correct
69 Correct 170 ms 516840 KB Output is correct
70 Correct 163 ms 517088 KB Output is correct
71 Correct 158 ms 516948 KB Output is correct
72 Correct 167 ms 517100 KB Output is correct
73 Correct 159 ms 517040 KB Output is correct
74 Correct 167 ms 517028 KB Output is correct
75 Correct 166 ms 516864 KB Output is correct
76 Correct 156 ms 517040 KB Output is correct
77 Correct 180 ms 516948 KB Output is correct
78 Correct 161 ms 517060 KB Output is correct
79 Correct 114 ms 517064 KB Output is correct
80 Correct 195 ms 516944 KB Output is correct
81 Correct 161 ms 516852 KB Output is correct
82 Correct 112 ms 516828 KB Output is correct
83 Correct 201 ms 517008 KB Output is correct
84 Correct 157 ms 517088 KB Output is correct
85 Correct 134 ms 517008 KB Output is correct
86 Correct 188 ms 517064 KB Output is correct
87 Correct 112 ms 516940 KB Output is correct
88 Correct 194 ms 517072 KB Output is correct
89 Correct 115 ms 517060 KB Output is correct
90 Correct 188 ms 517064 KB Output is correct
91 Correct 160 ms 516948 KB Output is correct
92 Correct 160 ms 516856 KB Output is correct
93 Correct 158 ms 517148 KB Output is correct
94 Correct 161 ms 517108 KB Output is correct
95 Correct 190 ms 517000 KB Output is correct
96 Correct 171 ms 516928 KB Output is correct
97 Correct 114 ms 516952 KB Output is correct
98 Correct 112 ms 516864 KB Output is correct
99 Correct 114 ms 516944 KB Output is correct
100 Correct 124 ms 516896 KB Output is correct
101 Correct 114 ms 516972 KB Output is correct
102 Correct 127 ms 516936 KB Output is correct
103 Correct 168 ms 517064 KB Output is correct
104 Correct 167 ms 516948 KB Output is correct
105 Correct 157 ms 517064 KB Output is correct
106 Correct 167 ms 517092 KB Output is correct
107 Correct 168 ms 517092 KB Output is correct
108 Correct 156 ms 516948 KB Output is correct
109 Correct 134 ms 516948 KB Output is correct
110 Correct 183 ms 518228 KB Output is correct
111 Correct 167 ms 518752 KB Output is correct
112 Correct 161 ms 518436 KB Output is correct
113 Correct 162 ms 518752 KB Output is correct
114 Correct 179 ms 518868 KB Output is correct
115 Correct 174 ms 518868 KB Output is correct
116 Correct 162 ms 518348 KB Output is correct
117 Correct 175 ms 518008 KB Output is correct
118 Correct 176 ms 517796 KB Output is correct
119 Correct 214 ms 521672 KB Output is correct
120 Correct 170 ms 521772 KB Output is correct
121 Correct 128 ms 521640 KB Output is correct
122 Correct 133 ms 522000 KB Output is correct
123 Correct 144 ms 521884 KB Output is correct
124 Correct 218 ms 530304 KB Output is correct
125 Correct 333 ms 559020 KB Output is correct
126 Correct 230 ms 559884 KB Output is correct
127 Correct 251 ms 564956 KB Output is correct
128 Correct 325 ms 564692 KB Output is correct
129 Correct 351 ms 564120 KB Output is correct
130 Correct 333 ms 565020 KB Output is correct
131 Correct 370 ms 564780 KB Output is correct
132 Correct 115 ms 517920 KB Output is correct
133 Correct 150 ms 516936 KB Output is correct
134 Correct 172 ms 516980 KB Output is correct
135 Correct 193 ms 517596 KB Output is correct
136 Correct 192 ms 518304 KB Output is correct
137 Correct 160 ms 518604 KB Output is correct
138 Correct 116 ms 518572 KB Output is correct
139 Correct 186 ms 517928 KB Output is correct
140 Correct 119 ms 517816 KB Output is correct
141 Correct 180 ms 518876 KB Output is correct
142 Correct 187 ms 518784 KB Output is correct
143 Correct 188 ms 518868 KB Output is correct
144 Correct 167 ms 517996 KB Output is correct
145 Correct 154 ms 518876 KB Output is correct
146 Correct 188 ms 517964 KB Output is correct
147 Correct 159 ms 518224 KB Output is correct
148 Correct 124 ms 517856 KB Output is correct
149 Correct 215 ms 517972 KB Output is correct
150 Correct 167 ms 518216 KB Output is correct
151 Correct 122 ms 517888 KB Output is correct
152 Correct 188 ms 517712 KB Output is correct
153 Correct 117 ms 517968 KB Output is correct
154 Correct 193 ms 519240 KB Output is correct
155 Correct 198 ms 518136 KB Output is correct
156 Correct 173 ms 521668 KB Output is correct
157 Correct 198 ms 519316 KB Output is correct
158 Correct 165 ms 521928 KB Output is correct
159 Correct 128 ms 519132 KB Output is correct
160 Correct 193 ms 519348 KB Output is correct
161 Correct 192 ms 521840 KB Output is correct
162 Correct 192 ms 522008 KB Output is correct
163 Correct 175 ms 522776 KB Output is correct
164 Correct 192 ms 519252 KB Output is correct
165 Correct 242 ms 521972 KB Output is correct
166 Correct 171 ms 519708 KB Output is correct
167 Correct 158 ms 519836 KB Output is correct
168 Correct 133 ms 520000 KB Output is correct
169 Correct 220 ms 519364 KB Output is correct
170 Correct 131 ms 519524 KB Output is correct
171 Correct 207 ms 519252 KB Output is correct
172 Correct 124 ms 518980 KB Output is correct
173 Correct 197 ms 519384 KB Output is correct
174 Correct 137 ms 520308 KB Output is correct
175 Correct 234 ms 522516 KB Output is correct
176 Correct 264 ms 529756 KB Output is correct
177 Correct 237 ms 536732 KB Output is correct
178 Correct 311 ms 537168 KB Output is correct
179 Correct 366 ms 545188 KB Output is correct
180 Correct 377 ms 541192 KB Output is correct
181 Correct 316 ms 538568 KB Output is correct
182 Correct 299 ms 547340 KB Output is correct
183 Correct 281 ms 543360 KB Output is correct
184 Correct 303 ms 559860 KB Output is correct
185 Correct 420 ms 541476 KB Output is correct
186 Correct 322 ms 571684 KB Output is correct
187 Correct 321 ms 547072 KB Output is correct
188 Correct 439 ms 603580 KB Output is correct
189 Correct 385 ms 556096 KB Output is correct
190 Correct 503 ms 561312 KB Output is correct
191 Correct 461 ms 615936 KB Output is correct
192 Correct 633 ms 614944 KB Output is correct
193 Correct 526 ms 614908 KB Output is correct
194 Correct 461 ms 565160 KB Output is correct
195 Correct 640 ms 619744 KB Output is correct
196 Correct 515 ms 556120 KB Output is correct
197 Correct 528 ms 573068 KB Output is correct
198 Correct 599 ms 565028 KB Output is correct
199 Correct 498 ms 560036 KB Output is correct
200 Correct 406 ms 554668 KB Output is correct
201 Correct 395 ms 554500 KB Output is correct
202 Correct 285 ms 555524 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 179 ms 517260 KB Output is correct
2 Correct 138 ms 516876 KB Output is correct
3 Correct 114 ms 516928 KB Output is correct
4 Correct 118 ms 516944 KB Output is correct
5 Correct 147 ms 516844 KB Output is correct
6 Correct 165 ms 517000 KB Output is correct
7 Correct 132 ms 517084 KB Output is correct
8 Correct 246 ms 517220 KB Output is correct
9 Correct 163 ms 516952 KB Output is correct
10 Correct 118 ms 517052 KB Output is correct
11 Correct 148 ms 517016 KB Output is correct
12 Correct 114 ms 516880 KB Output is correct
13 Correct 164 ms 517064 KB Output is correct
14 Correct 155 ms 516884 KB Output is correct
15 Correct 168 ms 516944 KB Output is correct
16 Correct 154 ms 517092 KB Output is correct
17 Correct 158 ms 516992 KB Output is correct
18 Correct 175 ms 517084 KB Output is correct
19 Correct 170 ms 518224 KB Output is correct
20 Correct 187 ms 518284 KB Output is correct
21 Correct 159 ms 518400 KB Output is correct
22 Correct 176 ms 517832 KB Output is correct
23 Correct 166 ms 517768 KB Output is correct
24 Correct 187 ms 517972 KB Output is correct
25 Correct 173 ms 518880 KB Output is correct
26 Correct 165 ms 517836 KB Output is correct
27 Correct 160 ms 517712 KB Output is correct
28 Correct 163 ms 517968 KB Output is correct
29 Correct 178 ms 519316 KB Output is correct
30 Correct 172 ms 518040 KB Output is correct
31 Correct 193 ms 521924 KB Output is correct
32 Correct 170 ms 518948 KB Output is correct
33 Correct 138 ms 519344 KB Output is correct
34 Correct 179 ms 519288 KB Output is correct
35 Correct 208 ms 521984 KB Output is correct
36 Correct 189 ms 519808 KB Output is correct
37 Correct 172 ms 518800 KB Output is correct
38 Correct 187 ms 519068 KB Output is correct
39 Correct 250 ms 537720 KB Output is correct
40 Correct 128 ms 519648 KB Output is correct
41 Correct 137 ms 519868 KB Output is correct
42 Correct 128 ms 520528 KB Output is correct
43 Correct 171 ms 521216 KB Output is correct
44 Correct 183 ms 528556 KB Output is correct
45 Correct 274 ms 529968 KB Output is correct
46 Correct 220 ms 561172 KB Output is correct
47 Correct 260 ms 536160 KB Output is correct
48 Correct 229 ms 539232 KB Output is correct
49 Correct 321 ms 540204 KB Output is correct
50 Correct 338 ms 563960 KB Output is correct
51 Correct 285 ms 538188 KB Output is correct
52 Correct 291 ms 537660 KB Output is correct
53 Correct 229 ms 536612 KB Output is correct
54 Correct 177 ms 516944 KB Output is correct
55 Correct 166 ms 516860 KB Output is correct
56 Correct 185 ms 516832 KB Output is correct
57 Correct 157 ms 516816 KB Output is correct
58 Correct 152 ms 516888 KB Output is correct
59 Correct 157 ms 516916 KB Output is correct
60 Correct 171 ms 517260 KB Output is correct
61 Correct 158 ms 516912 KB Output is correct
62 Correct 159 ms 517004 KB Output is correct
63 Correct 166 ms 516956 KB Output is correct
64 Correct 171 ms 516868 KB Output is correct
65 Correct 158 ms 517112 KB Output is correct
66 Correct 157 ms 516948 KB Output is correct
67 Correct 168 ms 517204 KB Output is correct
68 Correct 156 ms 516988 KB Output is correct
69 Correct 170 ms 516840 KB Output is correct
70 Correct 163 ms 517088 KB Output is correct
71 Correct 158 ms 516948 KB Output is correct
72 Correct 167 ms 517100 KB Output is correct
73 Correct 159 ms 517040 KB Output is correct
74 Correct 167 ms 517028 KB Output is correct
75 Correct 166 ms 516864 KB Output is correct
76 Correct 156 ms 517040 KB Output is correct
77 Correct 180 ms 516948 KB Output is correct
78 Correct 161 ms 517060 KB Output is correct
79 Correct 114 ms 517064 KB Output is correct
80 Correct 195 ms 516944 KB Output is correct
81 Correct 161 ms 516852 KB Output is correct
82 Correct 112 ms 516828 KB Output is correct
83 Correct 201 ms 517008 KB Output is correct
84 Correct 157 ms 517088 KB Output is correct
85 Correct 134 ms 517008 KB Output is correct
86 Correct 188 ms 517064 KB Output is correct
87 Correct 112 ms 516940 KB Output is correct
88 Correct 194 ms 517072 KB Output is correct
89 Correct 115 ms 517060 KB Output is correct
90 Correct 188 ms 517064 KB Output is correct
91 Correct 160 ms 516948 KB Output is correct
92 Correct 160 ms 516856 KB Output is correct
93 Correct 158 ms 517148 KB Output is correct
94 Correct 161 ms 517108 KB Output is correct
95 Correct 190 ms 517000 KB Output is correct
96 Correct 171 ms 516928 KB Output is correct
97 Correct 114 ms 516952 KB Output is correct
98 Correct 112 ms 516864 KB Output is correct
99 Correct 114 ms 516944 KB Output is correct
100 Correct 124 ms 516896 KB Output is correct
101 Correct 114 ms 516972 KB Output is correct
102 Correct 127 ms 516936 KB Output is correct
103 Correct 168 ms 517064 KB Output is correct
104 Correct 167 ms 516948 KB Output is correct
105 Correct 157 ms 517064 KB Output is correct
106 Correct 167 ms 517092 KB Output is correct
107 Correct 168 ms 517092 KB Output is correct
108 Correct 156 ms 516948 KB Output is correct
109 Correct 134 ms 516948 KB Output is correct
110 Correct 183 ms 518228 KB Output is correct
111 Correct 167 ms 518752 KB Output is correct
112 Correct 161 ms 518436 KB Output is correct
113 Correct 162 ms 518752 KB Output is correct
114 Correct 179 ms 518868 KB Output is correct
115 Correct 174 ms 518868 KB Output is correct
116 Correct 162 ms 518348 KB Output is correct
117 Correct 175 ms 518008 KB Output is correct
118 Correct 176 ms 517796 KB Output is correct
119 Correct 214 ms 521672 KB Output is correct
120 Correct 170 ms 521772 KB Output is correct
121 Correct 128 ms 521640 KB Output is correct
122 Correct 133 ms 522000 KB Output is correct
123 Correct 144 ms 521884 KB Output is correct
124 Correct 218 ms 530304 KB Output is correct
125 Correct 333 ms 559020 KB Output is correct
126 Correct 230 ms 559884 KB Output is correct
127 Correct 251 ms 564956 KB Output is correct
128 Correct 325 ms 564692 KB Output is correct
129 Correct 351 ms 564120 KB Output is correct
130 Correct 333 ms 565020 KB Output is correct
131 Correct 370 ms 564780 KB Output is correct
132 Correct 115 ms 517920 KB Output is correct
133 Correct 150 ms 516936 KB Output is correct
134 Correct 172 ms 516980 KB Output is correct
135 Correct 193 ms 517596 KB Output is correct
136 Correct 192 ms 518304 KB Output is correct
137 Correct 160 ms 518604 KB Output is correct
138 Correct 116 ms 518572 KB Output is correct
139 Correct 186 ms 517928 KB Output is correct
140 Correct 119 ms 517816 KB Output is correct
141 Correct 180 ms 518876 KB Output is correct
142 Correct 187 ms 518784 KB Output is correct
143 Correct 188 ms 518868 KB Output is correct
144 Correct 167 ms 517996 KB Output is correct
145 Correct 154 ms 518876 KB Output is correct
146 Correct 188 ms 517964 KB Output is correct
147 Correct 159 ms 518224 KB Output is correct
148 Correct 124 ms 517856 KB Output is correct
149 Correct 215 ms 517972 KB Output is correct
150 Correct 167 ms 518216 KB Output is correct
151 Correct 122 ms 517888 KB Output is correct
152 Correct 188 ms 517712 KB Output is correct
153 Correct 117 ms 517968 KB Output is correct
154 Correct 193 ms 519240 KB Output is correct
155 Correct 198 ms 518136 KB Output is correct
156 Correct 173 ms 521668 KB Output is correct
157 Correct 198 ms 519316 KB Output is correct
158 Correct 165 ms 521928 KB Output is correct
159 Correct 128 ms 519132 KB Output is correct
160 Correct 193 ms 519348 KB Output is correct
161 Correct 192 ms 521840 KB Output is correct
162 Correct 192 ms 522008 KB Output is correct
163 Correct 175 ms 522776 KB Output is correct
164 Correct 192 ms 519252 KB Output is correct
165 Correct 242 ms 521972 KB Output is correct
166 Correct 171 ms 519708 KB Output is correct
167 Correct 158 ms 519836 KB Output is correct
168 Correct 133 ms 520000 KB Output is correct
169 Correct 220 ms 519364 KB Output is correct
170 Correct 131 ms 519524 KB Output is correct
171 Correct 207 ms 519252 KB Output is correct
172 Correct 124 ms 518980 KB Output is correct
173 Correct 197 ms 519384 KB Output is correct
174 Correct 137 ms 520308 KB Output is correct
175 Correct 234 ms 522516 KB Output is correct
176 Correct 264 ms 529756 KB Output is correct
177 Correct 237 ms 536732 KB Output is correct
178 Correct 311 ms 537168 KB Output is correct
179 Correct 366 ms 545188 KB Output is correct
180 Correct 377 ms 541192 KB Output is correct
181 Correct 316 ms 538568 KB Output is correct
182 Correct 299 ms 547340 KB Output is correct
183 Correct 281 ms 543360 KB Output is correct
184 Correct 303 ms 559860 KB Output is correct
185 Correct 420 ms 541476 KB Output is correct
186 Correct 322 ms 571684 KB Output is correct
187 Correct 321 ms 547072 KB Output is correct
188 Correct 439 ms 603580 KB Output is correct
189 Correct 385 ms 556096 KB Output is correct
190 Correct 503 ms 561312 KB Output is correct
191 Correct 461 ms 615936 KB Output is correct
192 Correct 633 ms 614944 KB Output is correct
193 Correct 526 ms 614908 KB Output is correct
194 Correct 461 ms 565160 KB Output is correct
195 Correct 640 ms 619744 KB Output is correct
196 Correct 515 ms 556120 KB Output is correct
197 Correct 528 ms 573068 KB Output is correct
198 Correct 599 ms 565028 KB Output is correct
199 Correct 498 ms 560036 KB Output is correct
200 Correct 406 ms 554668 KB Output is correct
201 Correct 395 ms 554500 KB Output is correct
202 Correct 285 ms 555524 KB Output is correct
203 Correct 546 ms 596452 KB Output is correct
204 Correct 460 ms 573088 KB Output is correct
205 Correct 593 ms 571072 KB Output is correct
206 Correct 583 ms 603592 KB Output is correct
207 Correct 699 ms 660004 KB Output is correct
208 Correct 778 ms 590412 KB Output is correct
209 Correct 548 ms 600080 KB Output is correct
210 Correct 775 ms 709020 KB Output is correct
211 Correct 1012 ms 682144 KB Output is correct
212 Correct 956 ms 682280 KB Output is correct
213 Correct 716 ms 609872 KB Output is correct
214 Correct 954 ms 650128 KB Output is correct
215 Correct 847 ms 609272 KB Output is correct
216 Correct 859 ms 597108 KB Output is correct
217 Correct 997 ms 631292 KB Output is correct
218 Correct 877 ms 614284 KB Output is correct
219 Correct 731 ms 632300 KB Output is correct
220 Correct 794 ms 665544 KB Output is correct
221 Correct 805 ms 711488 KB Output is correct
222 Correct 849 ms 708828 KB Output is correct
223 Correct 720 ms 607744 KB Output is correct
224 Correct 698 ms 594192 KB Output is correct
225 Correct 508 ms 592476 KB Output is correct