Submission #927687

# Submission time Handle Problem Language Result Execution time Memory
927687 2024-02-15T08:42:26 Z jcelin Maze (JOI23_ho_t3) C++14
100 / 100
1083 ms 716088 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 188 ms 516944 KB Output is correct
2 Correct 109 ms 516820 KB Output is correct
3 Correct 110 ms 516964 KB Output is correct
4 Correct 117 ms 516944 KB Output is correct
5 Correct 107 ms 516944 KB Output is correct
6 Correct 112 ms 517084 KB Output is correct
7 Correct 109 ms 517084 KB Output is correct
8 Correct 110 ms 516948 KB Output is correct
9 Correct 107 ms 516948 KB Output is correct
10 Correct 111 ms 517072 KB Output is correct
11 Correct 108 ms 516920 KB Output is correct
12 Correct 108 ms 516944 KB Output is correct
13 Correct 111 ms 517116 KB Output is correct
14 Correct 114 ms 517204 KB Output is correct
15 Correct 110 ms 516984 KB Output is correct
16 Correct 109 ms 516948 KB Output is correct
17 Correct 109 ms 516996 KB Output is correct
18 Correct 112 ms 517204 KB Output is correct
19 Correct 113 ms 517972 KB Output is correct
20 Correct 119 ms 518484 KB Output is correct
21 Correct 112 ms 518536 KB Output is correct
22 Correct 115 ms 517968 KB Output is correct
23 Correct 114 ms 517972 KB Output is correct
24 Correct 117 ms 517968 KB Output is correct
25 Correct 125 ms 518972 KB Output is correct
26 Correct 117 ms 518148 KB Output is correct
27 Correct 114 ms 517968 KB Output is correct
28 Correct 113 ms 518032 KB Output is correct
29 Correct 117 ms 519364 KB Output is correct
30 Correct 120 ms 518112 KB Output is correct
31 Correct 122 ms 521924 KB Output is correct
32 Correct 124 ms 519256 KB Output is correct
33 Correct 118 ms 519440 KB Output is correct
34 Correct 135 ms 519332 KB Output is correct
35 Correct 133 ms 522168 KB Output is correct
36 Correct 122 ms 519260 KB Output is correct
37 Correct 137 ms 518992 KB Output is correct
38 Correct 129 ms 519640 KB Output is correct
39 Correct 211 ms 539288 KB Output is correct
40 Correct 131 ms 519764 KB Output is correct
41 Correct 139 ms 520076 KB Output is correct
42 Correct 128 ms 520816 KB Output is correct
43 Correct 142 ms 521552 KB Output is correct
44 Correct 179 ms 529092 KB Output is correct
45 Correct 264 ms 530940 KB Output is correct
46 Correct 260 ms 562544 KB Output is correct
47 Correct 239 ms 537492 KB Output is correct
48 Correct 199 ms 540620 KB Output is correct
49 Correct 325 ms 541672 KB Output is correct
50 Correct 386 ms 565208 KB Output is correct
51 Correct 300 ms 539776 KB Output is correct
52 Correct 292 ms 539256 KB Output is correct
53 Correct 203 ms 538188 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 162 ms 517024 KB Output is correct
2 Correct 156 ms 516956 KB Output is correct
3 Correct 165 ms 517232 KB Output is correct
4 Correct 161 ms 516992 KB Output is correct
5 Correct 159 ms 516892 KB Output is correct
6 Correct 164 ms 516948 KB Output is correct
7 Correct 188 ms 517012 KB Output is correct
8 Correct 161 ms 516948 KB Output is correct
9 Correct 175 ms 517048 KB Output is correct
10 Correct 163 ms 516864 KB Output is correct
11 Correct 183 ms 516840 KB Output is correct
12 Correct 162 ms 516984 KB Output is correct
13 Correct 174 ms 517112 KB Output is correct
14 Correct 162 ms 517116 KB Output is correct
15 Correct 164 ms 517088 KB Output is correct
16 Correct 169 ms 516932 KB Output is correct
17 Correct 154 ms 516944 KB Output is correct
18 Correct 198 ms 516872 KB Output is correct
19 Correct 128 ms 517104 KB Output is correct
20 Correct 110 ms 516944 KB Output is correct
21 Correct 139 ms 516984 KB Output is correct
22 Correct 165 ms 516964 KB Output is correct
23 Correct 183 ms 517084 KB Output is correct
24 Correct 179 ms 517204 KB Output is correct
25 Correct 159 ms 516948 KB Output is correct
26 Correct 177 ms 516948 KB Output is correct
27 Correct 162 ms 516948 KB Output is correct
28 Correct 111 ms 516944 KB Output is correct
29 Correct 124 ms 516844 KB Output is correct
30 Correct 114 ms 516944 KB Output is correct
31 Correct 118 ms 516944 KB Output is correct
32 Correct 114 ms 517084 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 127 ms 516984 KB Output is correct
2 Correct 186 ms 517068 KB Output is correct
3 Correct 118 ms 516948 KB Output is correct
4 Correct 114 ms 516864 KB Output is correct
5 Correct 198 ms 517064 KB Output is correct
6 Correct 164 ms 516952 KB Output is correct
7 Correct 157 ms 516956 KB Output is correct
8 Correct 113 ms 517072 KB Output is correct
9 Correct 190 ms 517000 KB Output is correct
10 Correct 114 ms 516996 KB Output is correct
11 Correct 172 ms 516944 KB Output is correct
12 Correct 172 ms 516952 KB Output is correct
13 Correct 116 ms 517072 KB Output is correct
14 Correct 203 ms 517020 KB Output is correct
15 Correct 176 ms 516868 KB Output is correct
16 Correct 150 ms 516900 KB Output is correct
17 Correct 190 ms 517076 KB Output is correct
18 Correct 138 ms 516860 KB Output is correct
19 Correct 165 ms 516948 KB Output is correct
20 Correct 158 ms 516840 KB Output is correct
21 Correct 173 ms 516948 KB Output is correct
22 Correct 160 ms 517096 KB Output is correct
23 Correct 157 ms 517076 KB Output is correct
24 Correct 137 ms 517168 KB Output is correct
25 Correct 167 ms 517716 KB Output is correct
26 Correct 162 ms 518860 KB Output is correct
27 Correct 183 ms 518612 KB Output is correct
28 Correct 172 ms 518908 KB Output is correct
29 Correct 169 ms 518872 KB Output is correct
30 Correct 160 ms 518872 KB Output is correct
31 Correct 165 ms 518388 KB Output is correct
32 Correct 164 ms 518004 KB Output is correct
33 Correct 181 ms 517724 KB Output is correct
34 Correct 176 ms 521772 KB Output is correct
35 Correct 168 ms 522084 KB Output is correct
36 Correct 160 ms 521988 KB Output is correct
37 Correct 194 ms 522260 KB Output is correct
38 Correct 204 ms 522424 KB Output is correct
39 Correct 212 ms 531124 KB Output is correct
40 Correct 291 ms 558508 KB Output is correct
41 Correct 280 ms 562400 KB Output is correct
42 Correct 247 ms 566288 KB Output is correct
43 Correct 370 ms 565508 KB Output is correct
44 Correct 354 ms 567612 KB Output is correct
45 Correct 370 ms 565844 KB Output is correct
46 Correct 308 ms 566680 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 162 ms 517024 KB Output is correct
2 Correct 156 ms 516956 KB Output is correct
3 Correct 165 ms 517232 KB Output is correct
4 Correct 161 ms 516992 KB Output is correct
5 Correct 159 ms 516892 KB Output is correct
6 Correct 164 ms 516948 KB Output is correct
7 Correct 188 ms 517012 KB Output is correct
8 Correct 161 ms 516948 KB Output is correct
9 Correct 175 ms 517048 KB Output is correct
10 Correct 163 ms 516864 KB Output is correct
11 Correct 183 ms 516840 KB Output is correct
12 Correct 162 ms 516984 KB Output is correct
13 Correct 174 ms 517112 KB Output is correct
14 Correct 162 ms 517116 KB Output is correct
15 Correct 164 ms 517088 KB Output is correct
16 Correct 169 ms 516932 KB Output is correct
17 Correct 154 ms 516944 KB Output is correct
18 Correct 198 ms 516872 KB Output is correct
19 Correct 128 ms 517104 KB Output is correct
20 Correct 110 ms 516944 KB Output is correct
21 Correct 139 ms 516984 KB Output is correct
22 Correct 165 ms 516964 KB Output is correct
23 Correct 183 ms 517084 KB Output is correct
24 Correct 179 ms 517204 KB Output is correct
25 Correct 159 ms 516948 KB Output is correct
26 Correct 177 ms 516948 KB Output is correct
27 Correct 162 ms 516948 KB Output is correct
28 Correct 111 ms 516944 KB Output is correct
29 Correct 124 ms 516844 KB Output is correct
30 Correct 114 ms 516944 KB Output is correct
31 Correct 118 ms 516944 KB Output is correct
32 Correct 114 ms 517084 KB Output is correct
33 Correct 162 ms 517968 KB Output is correct
34 Correct 162 ms 516952 KB Output is correct
35 Correct 159 ms 517076 KB Output is correct
36 Correct 163 ms 517528 KB Output is correct
37 Correct 195 ms 518352 KB Output is correct
38 Correct 158 ms 518860 KB Output is correct
39 Correct 125 ms 518600 KB Output is correct
40 Correct 122 ms 518024 KB Output is correct
41 Correct 118 ms 518040 KB Output is correct
42 Correct 162 ms 518924 KB Output is correct
43 Correct 132 ms 518868 KB Output is correct
44 Correct 169 ms 518916 KB Output is correct
45 Correct 170 ms 517972 KB Output is correct
46 Correct 179 ms 519048 KB Output is correct
47 Correct 172 ms 518004 KB Output is correct
48 Correct 170 ms 518092 KB Output is correct
49 Correct 168 ms 518124 KB Output is correct
50 Correct 172 ms 517972 KB Output is correct
51 Correct 166 ms 518728 KB Output is correct
52 Correct 180 ms 517888 KB Output is correct
53 Correct 166 ms 517720 KB Output is correct
54 Correct 162 ms 517956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 162 ms 517024 KB Output is correct
2 Correct 156 ms 516956 KB Output is correct
3 Correct 165 ms 517232 KB Output is correct
4 Correct 161 ms 516992 KB Output is correct
5 Correct 159 ms 516892 KB Output is correct
6 Correct 164 ms 516948 KB Output is correct
7 Correct 188 ms 517012 KB Output is correct
8 Correct 161 ms 516948 KB Output is correct
9 Correct 175 ms 517048 KB Output is correct
10 Correct 163 ms 516864 KB Output is correct
11 Correct 183 ms 516840 KB Output is correct
12 Correct 162 ms 516984 KB Output is correct
13 Correct 174 ms 517112 KB Output is correct
14 Correct 162 ms 517116 KB Output is correct
15 Correct 164 ms 517088 KB Output is correct
16 Correct 169 ms 516932 KB Output is correct
17 Correct 154 ms 516944 KB Output is correct
18 Correct 198 ms 516872 KB Output is correct
19 Correct 128 ms 517104 KB Output is correct
20 Correct 110 ms 516944 KB Output is correct
21 Correct 139 ms 516984 KB Output is correct
22 Correct 165 ms 516964 KB Output is correct
23 Correct 183 ms 517084 KB Output is correct
24 Correct 179 ms 517204 KB Output is correct
25 Correct 159 ms 516948 KB Output is correct
26 Correct 177 ms 516948 KB Output is correct
27 Correct 162 ms 516948 KB Output is correct
28 Correct 111 ms 516944 KB Output is correct
29 Correct 124 ms 516844 KB Output is correct
30 Correct 114 ms 516944 KB Output is correct
31 Correct 118 ms 516944 KB Output is correct
32 Correct 114 ms 517084 KB Output is correct
33 Correct 162 ms 517968 KB Output is correct
34 Correct 162 ms 516952 KB Output is correct
35 Correct 159 ms 517076 KB Output is correct
36 Correct 163 ms 517528 KB Output is correct
37 Correct 195 ms 518352 KB Output is correct
38 Correct 158 ms 518860 KB Output is correct
39 Correct 125 ms 518600 KB Output is correct
40 Correct 122 ms 518024 KB Output is correct
41 Correct 118 ms 518040 KB Output is correct
42 Correct 162 ms 518924 KB Output is correct
43 Correct 132 ms 518868 KB Output is correct
44 Correct 169 ms 518916 KB Output is correct
45 Correct 170 ms 517972 KB Output is correct
46 Correct 179 ms 519048 KB Output is correct
47 Correct 172 ms 518004 KB Output is correct
48 Correct 170 ms 518092 KB Output is correct
49 Correct 168 ms 518124 KB Output is correct
50 Correct 172 ms 517972 KB Output is correct
51 Correct 166 ms 518728 KB Output is correct
52 Correct 180 ms 517888 KB Output is correct
53 Correct 166 ms 517720 KB Output is correct
54 Correct 162 ms 517956 KB Output is correct
55 Correct 177 ms 519384 KB Output is correct
56 Correct 163 ms 518000 KB Output is correct
57 Correct 172 ms 521760 KB Output is correct
58 Correct 186 ms 519452 KB Output is correct
59 Correct 178 ms 522024 KB Output is correct
60 Correct 203 ms 519280 KB Output is correct
61 Correct 176 ms 519624 KB Output is correct
62 Correct 129 ms 521920 KB Output is correct
63 Correct 136 ms 523156 KB Output is correct
64 Correct 134 ms 522252 KB Output is correct
65 Correct 183 ms 519336 KB Output is correct
66 Correct 179 ms 522064 KB Output is correct
67 Correct 140 ms 519648 KB Output is correct
68 Correct 206 ms 519764 KB Output is correct
69 Correct 199 ms 519704 KB Output is correct
70 Correct 206 ms 519376 KB Output is correct
71 Correct 187 ms 519420 KB Output is correct
72 Correct 133 ms 519280 KB Output is correct
73 Correct 215 ms 519216 KB Output is correct
74 Correct 159 ms 519248 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 188 ms 516944 KB Output is correct
2 Correct 109 ms 516820 KB Output is correct
3 Correct 110 ms 516964 KB Output is correct
4 Correct 117 ms 516944 KB Output is correct
5 Correct 107 ms 516944 KB Output is correct
6 Correct 112 ms 517084 KB Output is correct
7 Correct 109 ms 517084 KB Output is correct
8 Correct 110 ms 516948 KB Output is correct
9 Correct 107 ms 516948 KB Output is correct
10 Correct 111 ms 517072 KB Output is correct
11 Correct 108 ms 516920 KB Output is correct
12 Correct 108 ms 516944 KB Output is correct
13 Correct 111 ms 517116 KB Output is correct
14 Correct 114 ms 517204 KB Output is correct
15 Correct 110 ms 516984 KB Output is correct
16 Correct 109 ms 516948 KB Output is correct
17 Correct 109 ms 516996 KB Output is correct
18 Correct 112 ms 517204 KB Output is correct
19 Correct 113 ms 517972 KB Output is correct
20 Correct 119 ms 518484 KB Output is correct
21 Correct 112 ms 518536 KB Output is correct
22 Correct 115 ms 517968 KB Output is correct
23 Correct 114 ms 517972 KB Output is correct
24 Correct 117 ms 517968 KB Output is correct
25 Correct 125 ms 518972 KB Output is correct
26 Correct 117 ms 518148 KB Output is correct
27 Correct 114 ms 517968 KB Output is correct
28 Correct 113 ms 518032 KB Output is correct
29 Correct 117 ms 519364 KB Output is correct
30 Correct 120 ms 518112 KB Output is correct
31 Correct 122 ms 521924 KB Output is correct
32 Correct 124 ms 519256 KB Output is correct
33 Correct 118 ms 519440 KB Output is correct
34 Correct 135 ms 519332 KB Output is correct
35 Correct 133 ms 522168 KB Output is correct
36 Correct 122 ms 519260 KB Output is correct
37 Correct 137 ms 518992 KB Output is correct
38 Correct 129 ms 519640 KB Output is correct
39 Correct 211 ms 539288 KB Output is correct
40 Correct 131 ms 519764 KB Output is correct
41 Correct 139 ms 520076 KB Output is correct
42 Correct 128 ms 520816 KB Output is correct
43 Correct 142 ms 521552 KB Output is correct
44 Correct 179 ms 529092 KB Output is correct
45 Correct 264 ms 530940 KB Output is correct
46 Correct 260 ms 562544 KB Output is correct
47 Correct 239 ms 537492 KB Output is correct
48 Correct 199 ms 540620 KB Output is correct
49 Correct 325 ms 541672 KB Output is correct
50 Correct 386 ms 565208 KB Output is correct
51 Correct 300 ms 539776 KB Output is correct
52 Correct 292 ms 539256 KB Output is correct
53 Correct 203 ms 538188 KB Output is correct
54 Correct 162 ms 517024 KB Output is correct
55 Correct 156 ms 516956 KB Output is correct
56 Correct 165 ms 517232 KB Output is correct
57 Correct 161 ms 516992 KB Output is correct
58 Correct 159 ms 516892 KB Output is correct
59 Correct 164 ms 516948 KB Output is correct
60 Correct 188 ms 517012 KB Output is correct
61 Correct 161 ms 516948 KB Output is correct
62 Correct 175 ms 517048 KB Output is correct
63 Correct 163 ms 516864 KB Output is correct
64 Correct 183 ms 516840 KB Output is correct
65 Correct 162 ms 516984 KB Output is correct
66 Correct 174 ms 517112 KB Output is correct
67 Correct 162 ms 517116 KB Output is correct
68 Correct 164 ms 517088 KB Output is correct
69 Correct 169 ms 516932 KB Output is correct
70 Correct 154 ms 516944 KB Output is correct
71 Correct 198 ms 516872 KB Output is correct
72 Correct 128 ms 517104 KB Output is correct
73 Correct 110 ms 516944 KB Output is correct
74 Correct 139 ms 516984 KB Output is correct
75 Correct 165 ms 516964 KB Output is correct
76 Correct 183 ms 517084 KB Output is correct
77 Correct 179 ms 517204 KB Output is correct
78 Correct 159 ms 516948 KB Output is correct
79 Correct 177 ms 516948 KB Output is correct
80 Correct 162 ms 516948 KB Output is correct
81 Correct 111 ms 516944 KB Output is correct
82 Correct 124 ms 516844 KB Output is correct
83 Correct 114 ms 516944 KB Output is correct
84 Correct 118 ms 516944 KB Output is correct
85 Correct 114 ms 517084 KB Output is correct
86 Correct 127 ms 516984 KB Output is correct
87 Correct 186 ms 517068 KB Output is correct
88 Correct 118 ms 516948 KB Output is correct
89 Correct 114 ms 516864 KB Output is correct
90 Correct 198 ms 517064 KB Output is correct
91 Correct 164 ms 516952 KB Output is correct
92 Correct 157 ms 516956 KB Output is correct
93 Correct 113 ms 517072 KB Output is correct
94 Correct 190 ms 517000 KB Output is correct
95 Correct 114 ms 516996 KB Output is correct
96 Correct 172 ms 516944 KB Output is correct
97 Correct 172 ms 516952 KB Output is correct
98 Correct 116 ms 517072 KB Output is correct
99 Correct 203 ms 517020 KB Output is correct
100 Correct 176 ms 516868 KB Output is correct
101 Correct 150 ms 516900 KB Output is correct
102 Correct 190 ms 517076 KB Output is correct
103 Correct 138 ms 516860 KB Output is correct
104 Correct 165 ms 516948 KB Output is correct
105 Correct 158 ms 516840 KB Output is correct
106 Correct 173 ms 516948 KB Output is correct
107 Correct 160 ms 517096 KB Output is correct
108 Correct 157 ms 517076 KB Output is correct
109 Correct 137 ms 517168 KB Output is correct
110 Correct 167 ms 517716 KB Output is correct
111 Correct 162 ms 518860 KB Output is correct
112 Correct 183 ms 518612 KB Output is correct
113 Correct 172 ms 518908 KB Output is correct
114 Correct 169 ms 518872 KB Output is correct
115 Correct 160 ms 518872 KB Output is correct
116 Correct 165 ms 518388 KB Output is correct
117 Correct 164 ms 518004 KB Output is correct
118 Correct 181 ms 517724 KB Output is correct
119 Correct 176 ms 521772 KB Output is correct
120 Correct 168 ms 522084 KB Output is correct
121 Correct 160 ms 521988 KB Output is correct
122 Correct 194 ms 522260 KB Output is correct
123 Correct 204 ms 522424 KB Output is correct
124 Correct 212 ms 531124 KB Output is correct
125 Correct 291 ms 558508 KB Output is correct
126 Correct 280 ms 562400 KB Output is correct
127 Correct 247 ms 566288 KB Output is correct
128 Correct 370 ms 565508 KB Output is correct
129 Correct 354 ms 567612 KB Output is correct
130 Correct 370 ms 565844 KB Output is correct
131 Correct 308 ms 566680 KB Output is correct
132 Correct 162 ms 517968 KB Output is correct
133 Correct 162 ms 516952 KB Output is correct
134 Correct 159 ms 517076 KB Output is correct
135 Correct 163 ms 517528 KB Output is correct
136 Correct 195 ms 518352 KB Output is correct
137 Correct 158 ms 518860 KB Output is correct
138 Correct 125 ms 518600 KB Output is correct
139 Correct 122 ms 518024 KB Output is correct
140 Correct 118 ms 518040 KB Output is correct
141 Correct 162 ms 518924 KB Output is correct
142 Correct 132 ms 518868 KB Output is correct
143 Correct 169 ms 518916 KB Output is correct
144 Correct 170 ms 517972 KB Output is correct
145 Correct 179 ms 519048 KB Output is correct
146 Correct 172 ms 518004 KB Output is correct
147 Correct 170 ms 518092 KB Output is correct
148 Correct 168 ms 518124 KB Output is correct
149 Correct 172 ms 517972 KB Output is correct
150 Correct 166 ms 518728 KB Output is correct
151 Correct 180 ms 517888 KB Output is correct
152 Correct 166 ms 517720 KB Output is correct
153 Correct 162 ms 517956 KB Output is correct
154 Correct 177 ms 519384 KB Output is correct
155 Correct 163 ms 518000 KB Output is correct
156 Correct 172 ms 521760 KB Output is correct
157 Correct 186 ms 519452 KB Output is correct
158 Correct 178 ms 522024 KB Output is correct
159 Correct 203 ms 519280 KB Output is correct
160 Correct 176 ms 519624 KB Output is correct
161 Correct 129 ms 521920 KB Output is correct
162 Correct 136 ms 523156 KB Output is correct
163 Correct 134 ms 522252 KB Output is correct
164 Correct 183 ms 519336 KB Output is correct
165 Correct 179 ms 522064 KB Output is correct
166 Correct 140 ms 519648 KB Output is correct
167 Correct 206 ms 519764 KB Output is correct
168 Correct 199 ms 519704 KB Output is correct
169 Correct 206 ms 519376 KB Output is correct
170 Correct 187 ms 519420 KB Output is correct
171 Correct 133 ms 519280 KB Output is correct
172 Correct 215 ms 519216 KB Output is correct
173 Correct 159 ms 519248 KB Output is correct
174 Correct 137 ms 520396 KB Output is correct
175 Correct 154 ms 522456 KB Output is correct
176 Correct 248 ms 530052 KB Output is correct
177 Correct 246 ms 536872 KB Output is correct
178 Correct 293 ms 537756 KB Output is correct
179 Correct 345 ms 545556 KB Output is correct
180 Correct 303 ms 541552 KB Output is correct
181 Correct 316 ms 538924 KB Output is correct
182 Correct 295 ms 547836 KB Output is correct
183 Correct 285 ms 543468 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 188 ms 516944 KB Output is correct
2 Correct 109 ms 516820 KB Output is correct
3 Correct 110 ms 516964 KB Output is correct
4 Correct 117 ms 516944 KB Output is correct
5 Correct 107 ms 516944 KB Output is correct
6 Correct 112 ms 517084 KB Output is correct
7 Correct 109 ms 517084 KB Output is correct
8 Correct 110 ms 516948 KB Output is correct
9 Correct 107 ms 516948 KB Output is correct
10 Correct 111 ms 517072 KB Output is correct
11 Correct 108 ms 516920 KB Output is correct
12 Correct 108 ms 516944 KB Output is correct
13 Correct 111 ms 517116 KB Output is correct
14 Correct 114 ms 517204 KB Output is correct
15 Correct 110 ms 516984 KB Output is correct
16 Correct 109 ms 516948 KB Output is correct
17 Correct 109 ms 516996 KB Output is correct
18 Correct 112 ms 517204 KB Output is correct
19 Correct 113 ms 517972 KB Output is correct
20 Correct 119 ms 518484 KB Output is correct
21 Correct 112 ms 518536 KB Output is correct
22 Correct 115 ms 517968 KB Output is correct
23 Correct 114 ms 517972 KB Output is correct
24 Correct 117 ms 517968 KB Output is correct
25 Correct 125 ms 518972 KB Output is correct
26 Correct 117 ms 518148 KB Output is correct
27 Correct 114 ms 517968 KB Output is correct
28 Correct 113 ms 518032 KB Output is correct
29 Correct 117 ms 519364 KB Output is correct
30 Correct 120 ms 518112 KB Output is correct
31 Correct 122 ms 521924 KB Output is correct
32 Correct 124 ms 519256 KB Output is correct
33 Correct 118 ms 519440 KB Output is correct
34 Correct 135 ms 519332 KB Output is correct
35 Correct 133 ms 522168 KB Output is correct
36 Correct 122 ms 519260 KB Output is correct
37 Correct 137 ms 518992 KB Output is correct
38 Correct 129 ms 519640 KB Output is correct
39 Correct 211 ms 539288 KB Output is correct
40 Correct 131 ms 519764 KB Output is correct
41 Correct 139 ms 520076 KB Output is correct
42 Correct 128 ms 520816 KB Output is correct
43 Correct 142 ms 521552 KB Output is correct
44 Correct 179 ms 529092 KB Output is correct
45 Correct 264 ms 530940 KB Output is correct
46 Correct 260 ms 562544 KB Output is correct
47 Correct 239 ms 537492 KB Output is correct
48 Correct 199 ms 540620 KB Output is correct
49 Correct 325 ms 541672 KB Output is correct
50 Correct 386 ms 565208 KB Output is correct
51 Correct 300 ms 539776 KB Output is correct
52 Correct 292 ms 539256 KB Output is correct
53 Correct 203 ms 538188 KB Output is correct
54 Correct 162 ms 517024 KB Output is correct
55 Correct 156 ms 516956 KB Output is correct
56 Correct 165 ms 517232 KB Output is correct
57 Correct 161 ms 516992 KB Output is correct
58 Correct 159 ms 516892 KB Output is correct
59 Correct 164 ms 516948 KB Output is correct
60 Correct 188 ms 517012 KB Output is correct
61 Correct 161 ms 516948 KB Output is correct
62 Correct 175 ms 517048 KB Output is correct
63 Correct 163 ms 516864 KB Output is correct
64 Correct 183 ms 516840 KB Output is correct
65 Correct 162 ms 516984 KB Output is correct
66 Correct 174 ms 517112 KB Output is correct
67 Correct 162 ms 517116 KB Output is correct
68 Correct 164 ms 517088 KB Output is correct
69 Correct 169 ms 516932 KB Output is correct
70 Correct 154 ms 516944 KB Output is correct
71 Correct 198 ms 516872 KB Output is correct
72 Correct 128 ms 517104 KB Output is correct
73 Correct 110 ms 516944 KB Output is correct
74 Correct 139 ms 516984 KB Output is correct
75 Correct 165 ms 516964 KB Output is correct
76 Correct 183 ms 517084 KB Output is correct
77 Correct 179 ms 517204 KB Output is correct
78 Correct 159 ms 516948 KB Output is correct
79 Correct 177 ms 516948 KB Output is correct
80 Correct 162 ms 516948 KB Output is correct
81 Correct 111 ms 516944 KB Output is correct
82 Correct 124 ms 516844 KB Output is correct
83 Correct 114 ms 516944 KB Output is correct
84 Correct 118 ms 516944 KB Output is correct
85 Correct 114 ms 517084 KB Output is correct
86 Correct 127 ms 516984 KB Output is correct
87 Correct 186 ms 517068 KB Output is correct
88 Correct 118 ms 516948 KB Output is correct
89 Correct 114 ms 516864 KB Output is correct
90 Correct 198 ms 517064 KB Output is correct
91 Correct 164 ms 516952 KB Output is correct
92 Correct 157 ms 516956 KB Output is correct
93 Correct 113 ms 517072 KB Output is correct
94 Correct 190 ms 517000 KB Output is correct
95 Correct 114 ms 516996 KB Output is correct
96 Correct 172 ms 516944 KB Output is correct
97 Correct 172 ms 516952 KB Output is correct
98 Correct 116 ms 517072 KB Output is correct
99 Correct 203 ms 517020 KB Output is correct
100 Correct 176 ms 516868 KB Output is correct
101 Correct 150 ms 516900 KB Output is correct
102 Correct 190 ms 517076 KB Output is correct
103 Correct 138 ms 516860 KB Output is correct
104 Correct 165 ms 516948 KB Output is correct
105 Correct 158 ms 516840 KB Output is correct
106 Correct 173 ms 516948 KB Output is correct
107 Correct 160 ms 517096 KB Output is correct
108 Correct 157 ms 517076 KB Output is correct
109 Correct 137 ms 517168 KB Output is correct
110 Correct 167 ms 517716 KB Output is correct
111 Correct 162 ms 518860 KB Output is correct
112 Correct 183 ms 518612 KB Output is correct
113 Correct 172 ms 518908 KB Output is correct
114 Correct 169 ms 518872 KB Output is correct
115 Correct 160 ms 518872 KB Output is correct
116 Correct 165 ms 518388 KB Output is correct
117 Correct 164 ms 518004 KB Output is correct
118 Correct 181 ms 517724 KB Output is correct
119 Correct 176 ms 521772 KB Output is correct
120 Correct 168 ms 522084 KB Output is correct
121 Correct 160 ms 521988 KB Output is correct
122 Correct 194 ms 522260 KB Output is correct
123 Correct 204 ms 522424 KB Output is correct
124 Correct 212 ms 531124 KB Output is correct
125 Correct 291 ms 558508 KB Output is correct
126 Correct 280 ms 562400 KB Output is correct
127 Correct 247 ms 566288 KB Output is correct
128 Correct 370 ms 565508 KB Output is correct
129 Correct 354 ms 567612 KB Output is correct
130 Correct 370 ms 565844 KB Output is correct
131 Correct 308 ms 566680 KB Output is correct
132 Correct 162 ms 517968 KB Output is correct
133 Correct 162 ms 516952 KB Output is correct
134 Correct 159 ms 517076 KB Output is correct
135 Correct 163 ms 517528 KB Output is correct
136 Correct 195 ms 518352 KB Output is correct
137 Correct 158 ms 518860 KB Output is correct
138 Correct 125 ms 518600 KB Output is correct
139 Correct 122 ms 518024 KB Output is correct
140 Correct 118 ms 518040 KB Output is correct
141 Correct 162 ms 518924 KB Output is correct
142 Correct 132 ms 518868 KB Output is correct
143 Correct 169 ms 518916 KB Output is correct
144 Correct 170 ms 517972 KB Output is correct
145 Correct 179 ms 519048 KB Output is correct
146 Correct 172 ms 518004 KB Output is correct
147 Correct 170 ms 518092 KB Output is correct
148 Correct 168 ms 518124 KB Output is correct
149 Correct 172 ms 517972 KB Output is correct
150 Correct 166 ms 518728 KB Output is correct
151 Correct 180 ms 517888 KB Output is correct
152 Correct 166 ms 517720 KB Output is correct
153 Correct 162 ms 517956 KB Output is correct
154 Correct 177 ms 519384 KB Output is correct
155 Correct 163 ms 518000 KB Output is correct
156 Correct 172 ms 521760 KB Output is correct
157 Correct 186 ms 519452 KB Output is correct
158 Correct 178 ms 522024 KB Output is correct
159 Correct 203 ms 519280 KB Output is correct
160 Correct 176 ms 519624 KB Output is correct
161 Correct 129 ms 521920 KB Output is correct
162 Correct 136 ms 523156 KB Output is correct
163 Correct 134 ms 522252 KB Output is correct
164 Correct 183 ms 519336 KB Output is correct
165 Correct 179 ms 522064 KB Output is correct
166 Correct 140 ms 519648 KB Output is correct
167 Correct 206 ms 519764 KB Output is correct
168 Correct 199 ms 519704 KB Output is correct
169 Correct 206 ms 519376 KB Output is correct
170 Correct 187 ms 519420 KB Output is correct
171 Correct 133 ms 519280 KB Output is correct
172 Correct 215 ms 519216 KB Output is correct
173 Correct 159 ms 519248 KB Output is correct
174 Correct 137 ms 520396 KB Output is correct
175 Correct 154 ms 522456 KB Output is correct
176 Correct 248 ms 530052 KB Output is correct
177 Correct 246 ms 536872 KB Output is correct
178 Correct 293 ms 537756 KB Output is correct
179 Correct 345 ms 545556 KB Output is correct
180 Correct 303 ms 541552 KB Output is correct
181 Correct 316 ms 538924 KB Output is correct
182 Correct 295 ms 547836 KB Output is correct
183 Correct 285 ms 543468 KB Output is correct
184 Correct 356 ms 560968 KB Output is correct
185 Correct 305 ms 542168 KB Output is correct
186 Correct 350 ms 573884 KB Output is correct
187 Correct 336 ms 547900 KB Output is correct
188 Correct 363 ms 606836 KB Output is correct
189 Correct 380 ms 557200 KB Output is correct
190 Correct 305 ms 562476 KB Output is correct
191 Correct 485 ms 617396 KB Output is correct
192 Correct 623 ms 618608 KB Output is correct
193 Correct 521 ms 616228 KB Output is correct
194 Correct 480 ms 566300 KB Output is correct
195 Correct 641 ms 622664 KB Output is correct
196 Correct 538 ms 559144 KB Output is correct
197 Correct 498 ms 575844 KB Output is correct
198 Correct 493 ms 567972 KB Output is correct
199 Correct 492 ms 562924 KB Output is correct
200 Correct 409 ms 557536 KB Output is correct
201 Correct 449 ms 557384 KB Output is correct
202 Correct 349 ms 558584 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 188 ms 516944 KB Output is correct
2 Correct 109 ms 516820 KB Output is correct
3 Correct 110 ms 516964 KB Output is correct
4 Correct 117 ms 516944 KB Output is correct
5 Correct 107 ms 516944 KB Output is correct
6 Correct 112 ms 517084 KB Output is correct
7 Correct 109 ms 517084 KB Output is correct
8 Correct 110 ms 516948 KB Output is correct
9 Correct 107 ms 516948 KB Output is correct
10 Correct 111 ms 517072 KB Output is correct
11 Correct 108 ms 516920 KB Output is correct
12 Correct 108 ms 516944 KB Output is correct
13 Correct 111 ms 517116 KB Output is correct
14 Correct 114 ms 517204 KB Output is correct
15 Correct 110 ms 516984 KB Output is correct
16 Correct 109 ms 516948 KB Output is correct
17 Correct 109 ms 516996 KB Output is correct
18 Correct 112 ms 517204 KB Output is correct
19 Correct 113 ms 517972 KB Output is correct
20 Correct 119 ms 518484 KB Output is correct
21 Correct 112 ms 518536 KB Output is correct
22 Correct 115 ms 517968 KB Output is correct
23 Correct 114 ms 517972 KB Output is correct
24 Correct 117 ms 517968 KB Output is correct
25 Correct 125 ms 518972 KB Output is correct
26 Correct 117 ms 518148 KB Output is correct
27 Correct 114 ms 517968 KB Output is correct
28 Correct 113 ms 518032 KB Output is correct
29 Correct 117 ms 519364 KB Output is correct
30 Correct 120 ms 518112 KB Output is correct
31 Correct 122 ms 521924 KB Output is correct
32 Correct 124 ms 519256 KB Output is correct
33 Correct 118 ms 519440 KB Output is correct
34 Correct 135 ms 519332 KB Output is correct
35 Correct 133 ms 522168 KB Output is correct
36 Correct 122 ms 519260 KB Output is correct
37 Correct 137 ms 518992 KB Output is correct
38 Correct 129 ms 519640 KB Output is correct
39 Correct 211 ms 539288 KB Output is correct
40 Correct 131 ms 519764 KB Output is correct
41 Correct 139 ms 520076 KB Output is correct
42 Correct 128 ms 520816 KB Output is correct
43 Correct 142 ms 521552 KB Output is correct
44 Correct 179 ms 529092 KB Output is correct
45 Correct 264 ms 530940 KB Output is correct
46 Correct 260 ms 562544 KB Output is correct
47 Correct 239 ms 537492 KB Output is correct
48 Correct 199 ms 540620 KB Output is correct
49 Correct 325 ms 541672 KB Output is correct
50 Correct 386 ms 565208 KB Output is correct
51 Correct 300 ms 539776 KB Output is correct
52 Correct 292 ms 539256 KB Output is correct
53 Correct 203 ms 538188 KB Output is correct
54 Correct 162 ms 517024 KB Output is correct
55 Correct 156 ms 516956 KB Output is correct
56 Correct 165 ms 517232 KB Output is correct
57 Correct 161 ms 516992 KB Output is correct
58 Correct 159 ms 516892 KB Output is correct
59 Correct 164 ms 516948 KB Output is correct
60 Correct 188 ms 517012 KB Output is correct
61 Correct 161 ms 516948 KB Output is correct
62 Correct 175 ms 517048 KB Output is correct
63 Correct 163 ms 516864 KB Output is correct
64 Correct 183 ms 516840 KB Output is correct
65 Correct 162 ms 516984 KB Output is correct
66 Correct 174 ms 517112 KB Output is correct
67 Correct 162 ms 517116 KB Output is correct
68 Correct 164 ms 517088 KB Output is correct
69 Correct 169 ms 516932 KB Output is correct
70 Correct 154 ms 516944 KB Output is correct
71 Correct 198 ms 516872 KB Output is correct
72 Correct 128 ms 517104 KB Output is correct
73 Correct 110 ms 516944 KB Output is correct
74 Correct 139 ms 516984 KB Output is correct
75 Correct 165 ms 516964 KB Output is correct
76 Correct 183 ms 517084 KB Output is correct
77 Correct 179 ms 517204 KB Output is correct
78 Correct 159 ms 516948 KB Output is correct
79 Correct 177 ms 516948 KB Output is correct
80 Correct 162 ms 516948 KB Output is correct
81 Correct 111 ms 516944 KB Output is correct
82 Correct 124 ms 516844 KB Output is correct
83 Correct 114 ms 516944 KB Output is correct
84 Correct 118 ms 516944 KB Output is correct
85 Correct 114 ms 517084 KB Output is correct
86 Correct 127 ms 516984 KB Output is correct
87 Correct 186 ms 517068 KB Output is correct
88 Correct 118 ms 516948 KB Output is correct
89 Correct 114 ms 516864 KB Output is correct
90 Correct 198 ms 517064 KB Output is correct
91 Correct 164 ms 516952 KB Output is correct
92 Correct 157 ms 516956 KB Output is correct
93 Correct 113 ms 517072 KB Output is correct
94 Correct 190 ms 517000 KB Output is correct
95 Correct 114 ms 516996 KB Output is correct
96 Correct 172 ms 516944 KB Output is correct
97 Correct 172 ms 516952 KB Output is correct
98 Correct 116 ms 517072 KB Output is correct
99 Correct 203 ms 517020 KB Output is correct
100 Correct 176 ms 516868 KB Output is correct
101 Correct 150 ms 516900 KB Output is correct
102 Correct 190 ms 517076 KB Output is correct
103 Correct 138 ms 516860 KB Output is correct
104 Correct 165 ms 516948 KB Output is correct
105 Correct 158 ms 516840 KB Output is correct
106 Correct 173 ms 516948 KB Output is correct
107 Correct 160 ms 517096 KB Output is correct
108 Correct 157 ms 517076 KB Output is correct
109 Correct 137 ms 517168 KB Output is correct
110 Correct 167 ms 517716 KB Output is correct
111 Correct 162 ms 518860 KB Output is correct
112 Correct 183 ms 518612 KB Output is correct
113 Correct 172 ms 518908 KB Output is correct
114 Correct 169 ms 518872 KB Output is correct
115 Correct 160 ms 518872 KB Output is correct
116 Correct 165 ms 518388 KB Output is correct
117 Correct 164 ms 518004 KB Output is correct
118 Correct 181 ms 517724 KB Output is correct
119 Correct 176 ms 521772 KB Output is correct
120 Correct 168 ms 522084 KB Output is correct
121 Correct 160 ms 521988 KB Output is correct
122 Correct 194 ms 522260 KB Output is correct
123 Correct 204 ms 522424 KB Output is correct
124 Correct 212 ms 531124 KB Output is correct
125 Correct 291 ms 558508 KB Output is correct
126 Correct 280 ms 562400 KB Output is correct
127 Correct 247 ms 566288 KB Output is correct
128 Correct 370 ms 565508 KB Output is correct
129 Correct 354 ms 567612 KB Output is correct
130 Correct 370 ms 565844 KB Output is correct
131 Correct 308 ms 566680 KB Output is correct
132 Correct 162 ms 517968 KB Output is correct
133 Correct 162 ms 516952 KB Output is correct
134 Correct 159 ms 517076 KB Output is correct
135 Correct 163 ms 517528 KB Output is correct
136 Correct 195 ms 518352 KB Output is correct
137 Correct 158 ms 518860 KB Output is correct
138 Correct 125 ms 518600 KB Output is correct
139 Correct 122 ms 518024 KB Output is correct
140 Correct 118 ms 518040 KB Output is correct
141 Correct 162 ms 518924 KB Output is correct
142 Correct 132 ms 518868 KB Output is correct
143 Correct 169 ms 518916 KB Output is correct
144 Correct 170 ms 517972 KB Output is correct
145 Correct 179 ms 519048 KB Output is correct
146 Correct 172 ms 518004 KB Output is correct
147 Correct 170 ms 518092 KB Output is correct
148 Correct 168 ms 518124 KB Output is correct
149 Correct 172 ms 517972 KB Output is correct
150 Correct 166 ms 518728 KB Output is correct
151 Correct 180 ms 517888 KB Output is correct
152 Correct 166 ms 517720 KB Output is correct
153 Correct 162 ms 517956 KB Output is correct
154 Correct 177 ms 519384 KB Output is correct
155 Correct 163 ms 518000 KB Output is correct
156 Correct 172 ms 521760 KB Output is correct
157 Correct 186 ms 519452 KB Output is correct
158 Correct 178 ms 522024 KB Output is correct
159 Correct 203 ms 519280 KB Output is correct
160 Correct 176 ms 519624 KB Output is correct
161 Correct 129 ms 521920 KB Output is correct
162 Correct 136 ms 523156 KB Output is correct
163 Correct 134 ms 522252 KB Output is correct
164 Correct 183 ms 519336 KB Output is correct
165 Correct 179 ms 522064 KB Output is correct
166 Correct 140 ms 519648 KB Output is correct
167 Correct 206 ms 519764 KB Output is correct
168 Correct 199 ms 519704 KB Output is correct
169 Correct 206 ms 519376 KB Output is correct
170 Correct 187 ms 519420 KB Output is correct
171 Correct 133 ms 519280 KB Output is correct
172 Correct 215 ms 519216 KB Output is correct
173 Correct 159 ms 519248 KB Output is correct
174 Correct 137 ms 520396 KB Output is correct
175 Correct 154 ms 522456 KB Output is correct
176 Correct 248 ms 530052 KB Output is correct
177 Correct 246 ms 536872 KB Output is correct
178 Correct 293 ms 537756 KB Output is correct
179 Correct 345 ms 545556 KB Output is correct
180 Correct 303 ms 541552 KB Output is correct
181 Correct 316 ms 538924 KB Output is correct
182 Correct 295 ms 547836 KB Output is correct
183 Correct 285 ms 543468 KB Output is correct
184 Correct 356 ms 560968 KB Output is correct
185 Correct 305 ms 542168 KB Output is correct
186 Correct 350 ms 573884 KB Output is correct
187 Correct 336 ms 547900 KB Output is correct
188 Correct 363 ms 606836 KB Output is correct
189 Correct 380 ms 557200 KB Output is correct
190 Correct 305 ms 562476 KB Output is correct
191 Correct 485 ms 617396 KB Output is correct
192 Correct 623 ms 618608 KB Output is correct
193 Correct 521 ms 616228 KB Output is correct
194 Correct 480 ms 566300 KB Output is correct
195 Correct 641 ms 622664 KB Output is correct
196 Correct 538 ms 559144 KB Output is correct
197 Correct 498 ms 575844 KB Output is correct
198 Correct 493 ms 567972 KB Output is correct
199 Correct 492 ms 562924 KB Output is correct
200 Correct 409 ms 557536 KB Output is correct
201 Correct 449 ms 557384 KB Output is correct
202 Correct 349 ms 558584 KB Output is correct
203 Correct 620 ms 602728 KB Output is correct
204 Correct 533 ms 576096 KB Output is correct
205 Correct 683 ms 574640 KB Output is correct
206 Correct 645 ms 609356 KB Output is correct
207 Correct 611 ms 665552 KB Output is correct
208 Correct 827 ms 596388 KB Output is correct
209 Correct 743 ms 605796 KB Output is correct
210 Correct 851 ms 716088 KB Output is correct
211 Correct 998 ms 688116 KB Output is correct
212 Correct 1039 ms 688020 KB Output is correct
213 Correct 728 ms 615772 KB Output is correct
214 Correct 1083 ms 655980 KB Output is correct
215 Correct 916 ms 614696 KB Output is correct
216 Correct 930 ms 603236 KB Output is correct
217 Correct 1014 ms 637164 KB Output is correct
218 Correct 966 ms 620768 KB Output is correct
219 Correct 837 ms 634392 KB Output is correct
220 Correct 1045 ms 670856 KB Output is correct
221 Correct 871 ms 712544 KB Output is correct
222 Correct 935 ms 713548 KB Output is correct
223 Correct 722 ms 613832 KB Output is correct
224 Correct 737 ms 600028 KB Output is correct
225 Correct 571 ms 598304 KB Output is correct