# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
986005 |
2024-05-19T15:23:48 Z |
VinhLuu |
Maze (JOI23_ho_t3) |
C++17 |
|
694 ms |
335596 KB |
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include <bits/stdc++.h>
//#define int long long
//#define ll long long
#define fi first
#define se second
#define pb push_back
#define all(lmao) lmao.begin(), lmao.end()
using namespace std;
typedef pair<int,int> pii;
typedef tuple<int,int,int> tp;
const int N = 3e6 + 5;
const int oo = 1e9 + 1;
const int mod = 1e9 + 7;
int block = 316;
//const ll oo = 5e18;
const int ha[4] = {1, -1, 0, 0};
const int co[4] = {0, 0, 1, -1};
const int tx[4] = {1, 1, -1, -1};
const int ty[4] = {1, -1, -1, 1};
int m, n, k, xt, yt, xs, ys;
vector<int> f[N], a[N], ph[N], pc[N];
bool kt(int x,int y){
return x >= 1 && x <= m && y >= 1 && y <= n;
}
int row(int u,int v){
// cerr << u << " " << v << " t\n";
return (ph[u][v] == v ? v : ph[u][v] = row(u, ph[u][v]));
}
int col(int u,int v){
// cerr << u << " " << v << " " << pc[u][v] << " w\n";
// if(pc[u][v] == u) return u;
return (pc[u][v] == u ? u : pc[u][v] = col(pc[u][v], v));
}
signed main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define task "v"
if(fopen(task ".inp","r")){
freopen(task ".inp","r",stdin);
freopen(task ".out","w",stdout);
}
cin >> m >> n >> k;
cin >> xs >> ys >> xt >> yt;
for(int i = 1; i <= m; i ++){
string s; cin >> s;
f[i].pb(oo);
a[i].pb(0);
ph[i].pb(0);
pc[i].pb(0);
for(int j = 0; j < n; j ++){
f[i].pb(oo);
pc[i].pb(0);
ph[i].pb(j + 1);
if(s[j] == '.') a[i].pb(0);
else a[i].pb(1);
}
f[i].pb(oo);
a[i].pb(0);
ph[i].pb(0);
pc[i].pb(0);
}
for(int i = 1; i <= n + 1; i ++) pc[0].pb(0);
for(int i = 1; i <= n; i ++){
for(int j = 1; j <= m; j ++){
pc[j][i] = j;
}
}
// for(int i = 1; i <= m; i ++){
// for(int j = 1; j <= n; j ++) cout << a[i][j] << " ";
// cout << "\n";
// }
priority_queue<tp, vector<tp>, greater<tp>> q;
f[xs][ys] = 0;
q.push({0, xs, ys});
int ans = oo;
while(!q.empty()){
int val, x, y; tie(val, x, y) = q.top();
// int x = q.front().fi;
// int y = q.front().se;
// cerr << x << " " << y << " y\n";
q.pop();
if(val > f[x][y]) continue;
if(x == xt && y == yt) ans = min(ans, f[x][y]);
// cerr << x << " " << y << " " << f[x][y] << " " << val << " ff\n";
// cerr << pc[5][1] << " uuu\n";
for(int d = 0; d < 4; d ++){
int u = x + ha[d];
int v = y + co[d];
// cerr << u << " " << v << " t\n";
if(!kt(u, v) || f[u][v] <= f[x][y] + a[u][v]) continue;
f[u][v] = f[x][y] + a[u][v];
q.push({f[u][v], u, v});
if(ph[u][v]){
ph[u][v]--;
ph[u][v] = row(u, ph[u][v]);
}
if(pc[u][v]){
pc[u][v]--;
pc[u][v] = col(pc[u][v], v);
}
}
int l = max(1, x - k + 1), r = min(m, x + k - 1), a = max(1, y - k + 1), b = min(n, y + k - 1);
if(xt >= l && xt <= r && yt >= a && yt <= b) ans = min(ans, f[x][y] + 1);
// for(int d = 0; d < 4; d ++){
// int u = x + d * (k - 1); u = max(u, 1), u = min(u, m);
// int v = y + d * (k - 1); v = max(v, 1), v = min(v, n);
// if(f[u][v] > f[x][y] + 1){
// q.push({u, v});
// f[u][v] = f[x][y] + 1;
// ph[u][v] = le[u][v];
// ph[u][v] = row(u, ph[u][v]);
// pc[u][v] = up[u][v];
// pc[u][v] = col(pc[u][v], v);
// }
// }
// cerr << " done\n";
if(l - 1 >= 1){
int lx = l - 1, g = b;
while(ph[lx][g] >= a){
g = ph[lx][g];
// if(x == 4 && y == 4) cerr << lx << " " << g << " " << f[lx][g] << " t\n";
if(f[lx][g] > f[x][y] + 1) f[lx][g] = f[x][y] + 1, q.push({f[lx][g], lx, g});
if(!ph[lx][g]) break;
ph[lx][g]--;
ph[lx][g] = row(lx, ph[lx][g]);
}
}
if(r + 1 <= m){
int lx = r + 1, g = b;
while(ph[lx][g] >= a){
g = ph[lx][g];
// if(x == 4 && y == 4) cerr << lx << " " << g << " " << f[lx][g] << " t\n";
if(f[lx][g] > f[x][y] + 1) f[lx][g] = f[x][y] + 1, q.push({f[lx][g], lx, g});
if(!ph[lx][g]) break;
ph[lx][g]--;
ph[lx][g] = row(lx, ph[lx][g]);
}
}
if(a - 1 >= 1){
int g = r, ly = a - 1;
while(pc[g][ly] >= l){
g = pc[g][ly];
// if(x == 4 && y == 4) cerr << g << " " << ly << " " << f[g][ly] << " " << pc[g][ly] << " t\n";
if(f[g][ly] > f[x][y] + 1) f[g][ly] = f[x][y] + 1, q.push({f[g][ly], g, ly});
if(!pc[g][ly]) break;
pc[g][ly]--;
pc[g][ly] = col(pc[g][ly], ly);
}
}
if(b + 1 <= n){
int g = r, ly = b + 1;
while(pc[g][ly] >= l){
g = pc[g][ly];
if(f[g][ly] > f[x][y] + 1) f[g][ly] = f[x][y] + 1, q.push({f[g][ly], g, ly});
if(!pc[g][ly]) break;
pc[g][ly]--;
pc[g][ly] = col(pc[g][ly], ly);
}
}
}
cout << min(ans, f[xt][yt]);
}
/*
6 6 3
5 4
2 1
###.#.
#..#..
...###
###.##
..####
#.#...
*/
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:50:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | freopen(task ".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:51:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | freopen(task ".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
180 ms |
282024 KB |
Output is correct |
2 |
Correct |
85 ms |
282132 KB |
Output is correct |
3 |
Correct |
83 ms |
282192 KB |
Output is correct |
4 |
Correct |
84 ms |
282196 KB |
Output is correct |
5 |
Correct |
81 ms |
282192 KB |
Output is correct |
6 |
Correct |
83 ms |
282088 KB |
Output is correct |
7 |
Correct |
82 ms |
282192 KB |
Output is correct |
8 |
Correct |
81 ms |
282072 KB |
Output is correct |
9 |
Correct |
86 ms |
282192 KB |
Output is correct |
10 |
Correct |
83 ms |
282044 KB |
Output is correct |
11 |
Correct |
82 ms |
282088 KB |
Output is correct |
12 |
Correct |
82 ms |
282196 KB |
Output is correct |
13 |
Correct |
81 ms |
282124 KB |
Output is correct |
14 |
Correct |
83 ms |
282188 KB |
Output is correct |
15 |
Correct |
82 ms |
282192 KB |
Output is correct |
16 |
Correct |
83 ms |
282196 KB |
Output is correct |
17 |
Correct |
82 ms |
282136 KB |
Output is correct |
18 |
Correct |
81 ms |
282192 KB |
Output is correct |
19 |
Correct |
91 ms |
283224 KB |
Output is correct |
20 |
Correct |
83 ms |
283208 KB |
Output is correct |
21 |
Correct |
90 ms |
283108 KB |
Output is correct |
22 |
Correct |
92 ms |
283220 KB |
Output is correct |
23 |
Correct |
93 ms |
283216 KB |
Output is correct |
24 |
Correct |
84 ms |
283540 KB |
Output is correct |
25 |
Correct |
85 ms |
283560 KB |
Output is correct |
26 |
Correct |
93 ms |
283216 KB |
Output is correct |
27 |
Correct |
95 ms |
283320 KB |
Output is correct |
28 |
Correct |
89 ms |
283220 KB |
Output is correct |
29 |
Correct |
106 ms |
285268 KB |
Output is correct |
30 |
Correct |
88 ms |
283524 KB |
Output is correct |
31 |
Correct |
102 ms |
285520 KB |
Output is correct |
32 |
Correct |
114 ms |
285208 KB |
Output is correct |
33 |
Correct |
103 ms |
285268 KB |
Output is correct |
34 |
Correct |
91 ms |
286012 KB |
Output is correct |
35 |
Correct |
90 ms |
285916 KB |
Output is correct |
36 |
Correct |
113 ms |
285476 KB |
Output is correct |
37 |
Correct |
111 ms |
285524 KB |
Output is correct |
38 |
Correct |
105 ms |
285308 KB |
Output is correct |
39 |
Correct |
362 ms |
321872 KB |
Output is correct |
40 |
Correct |
107 ms |
285524 KB |
Output is correct |
41 |
Correct |
92 ms |
286536 KB |
Output is correct |
42 |
Correct |
117 ms |
288232 KB |
Output is correct |
43 |
Correct |
104 ms |
287176 KB |
Output is correct |
44 |
Correct |
202 ms |
295508 KB |
Output is correct |
45 |
Correct |
163 ms |
298304 KB |
Output is correct |
46 |
Correct |
314 ms |
321872 KB |
Output is correct |
47 |
Correct |
385 ms |
321620 KB |
Output is correct |
48 |
Correct |
358 ms |
321672 KB |
Output is correct |
49 |
Correct |
155 ms |
318084 KB |
Output is correct |
50 |
Correct |
157 ms |
318000 KB |
Output is correct |
51 |
Correct |
422 ms |
322288 KB |
Output is correct |
52 |
Correct |
400 ms |
321876 KB |
Output is correct |
53 |
Correct |
358 ms |
321620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
83 ms |
282236 KB |
Output is correct |
2 |
Correct |
86 ms |
282236 KB |
Output is correct |
3 |
Correct |
83 ms |
282232 KB |
Output is correct |
4 |
Correct |
82 ms |
282196 KB |
Output is correct |
5 |
Correct |
82 ms |
282076 KB |
Output is correct |
6 |
Correct |
84 ms |
282232 KB |
Output is correct |
7 |
Correct |
81 ms |
282196 KB |
Output is correct |
8 |
Correct |
85 ms |
282352 KB |
Output is correct |
9 |
Correct |
82 ms |
282116 KB |
Output is correct |
10 |
Correct |
84 ms |
282192 KB |
Output is correct |
11 |
Correct |
89 ms |
282120 KB |
Output is correct |
12 |
Correct |
88 ms |
282200 KB |
Output is correct |
13 |
Correct |
84 ms |
282196 KB |
Output is correct |
14 |
Correct |
82 ms |
282196 KB |
Output is correct |
15 |
Correct |
83 ms |
282020 KB |
Output is correct |
16 |
Correct |
83 ms |
282272 KB |
Output is correct |
17 |
Correct |
83 ms |
282260 KB |
Output is correct |
18 |
Correct |
82 ms |
282196 KB |
Output is correct |
19 |
Correct |
82 ms |
282100 KB |
Output is correct |
20 |
Correct |
82 ms |
282192 KB |
Output is correct |
21 |
Correct |
84 ms |
282204 KB |
Output is correct |
22 |
Correct |
82 ms |
282192 KB |
Output is correct |
23 |
Correct |
82 ms |
282032 KB |
Output is correct |
24 |
Correct |
83 ms |
282160 KB |
Output is correct |
25 |
Correct |
83 ms |
282192 KB |
Output is correct |
26 |
Correct |
84 ms |
282252 KB |
Output is correct |
27 |
Correct |
81 ms |
282192 KB |
Output is correct |
28 |
Correct |
85 ms |
282036 KB |
Output is correct |
29 |
Correct |
82 ms |
282192 KB |
Output is correct |
30 |
Correct |
82 ms |
282048 KB |
Output is correct |
31 |
Correct |
81 ms |
282196 KB |
Output is correct |
32 |
Correct |
82 ms |
282240 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
83 ms |
281980 KB |
Output is correct |
2 |
Correct |
83 ms |
282092 KB |
Output is correct |
3 |
Correct |
81 ms |
282192 KB |
Output is correct |
4 |
Correct |
83 ms |
282196 KB |
Output is correct |
5 |
Correct |
84 ms |
282192 KB |
Output is correct |
6 |
Correct |
83 ms |
282196 KB |
Output is correct |
7 |
Correct |
81 ms |
282140 KB |
Output is correct |
8 |
Correct |
81 ms |
282196 KB |
Output is correct |
9 |
Correct |
81 ms |
282192 KB |
Output is correct |
10 |
Correct |
82 ms |
282192 KB |
Output is correct |
11 |
Correct |
85 ms |
282172 KB |
Output is correct |
12 |
Correct |
82 ms |
282448 KB |
Output is correct |
13 |
Correct |
82 ms |
282208 KB |
Output is correct |
14 |
Correct |
81 ms |
282196 KB |
Output is correct |
15 |
Correct |
81 ms |
282192 KB |
Output is correct |
16 |
Correct |
86 ms |
282124 KB |
Output is correct |
17 |
Correct |
92 ms |
282196 KB |
Output is correct |
18 |
Correct |
84 ms |
282236 KB |
Output is correct |
19 |
Correct |
84 ms |
282192 KB |
Output is correct |
20 |
Correct |
85 ms |
282192 KB |
Output is correct |
21 |
Correct |
85 ms |
282364 KB |
Output is correct |
22 |
Correct |
84 ms |
282196 KB |
Output is correct |
23 |
Correct |
88 ms |
282192 KB |
Output is correct |
24 |
Correct |
82 ms |
282092 KB |
Output is correct |
25 |
Correct |
90 ms |
283160 KB |
Output is correct |
26 |
Correct |
97 ms |
284504 KB |
Output is correct |
27 |
Correct |
90 ms |
283224 KB |
Output is correct |
28 |
Correct |
89 ms |
283220 KB |
Output is correct |
29 |
Correct |
96 ms |
283216 KB |
Output is correct |
30 |
Correct |
92 ms |
283332 KB |
Output is correct |
31 |
Correct |
93 ms |
283476 KB |
Output is correct |
32 |
Correct |
95 ms |
283424 KB |
Output is correct |
33 |
Correct |
95 ms |
283372 KB |
Output is correct |
34 |
Correct |
120 ms |
287308 KB |
Output is correct |
35 |
Correct |
103 ms |
285524 KB |
Output is correct |
36 |
Correct |
103 ms |
285328 KB |
Output is correct |
37 |
Correct |
107 ms |
285520 KB |
Output is correct |
38 |
Correct |
107 ms |
285776 KB |
Output is correct |
39 |
Correct |
227 ms |
298592 KB |
Output is correct |
40 |
Correct |
576 ms |
329956 KB |
Output is correct |
41 |
Correct |
305 ms |
323352 KB |
Output is correct |
42 |
Correct |
308 ms |
323672 KB |
Output is correct |
43 |
Correct |
394 ms |
323364 KB |
Output is correct |
44 |
Correct |
378 ms |
322988 KB |
Output is correct |
45 |
Correct |
694 ms |
335596 KB |
Output is correct |
46 |
Correct |
666 ms |
334132 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
83 ms |
282236 KB |
Output is correct |
2 |
Correct |
86 ms |
282236 KB |
Output is correct |
3 |
Correct |
83 ms |
282232 KB |
Output is correct |
4 |
Correct |
82 ms |
282196 KB |
Output is correct |
5 |
Correct |
82 ms |
282076 KB |
Output is correct |
6 |
Correct |
84 ms |
282232 KB |
Output is correct |
7 |
Correct |
81 ms |
282196 KB |
Output is correct |
8 |
Correct |
85 ms |
282352 KB |
Output is correct |
9 |
Correct |
82 ms |
282116 KB |
Output is correct |
10 |
Correct |
84 ms |
282192 KB |
Output is correct |
11 |
Correct |
89 ms |
282120 KB |
Output is correct |
12 |
Correct |
88 ms |
282200 KB |
Output is correct |
13 |
Correct |
84 ms |
282196 KB |
Output is correct |
14 |
Correct |
82 ms |
282196 KB |
Output is correct |
15 |
Correct |
83 ms |
282020 KB |
Output is correct |
16 |
Correct |
83 ms |
282272 KB |
Output is correct |
17 |
Correct |
83 ms |
282260 KB |
Output is correct |
18 |
Correct |
82 ms |
282196 KB |
Output is correct |
19 |
Correct |
82 ms |
282100 KB |
Output is correct |
20 |
Correct |
82 ms |
282192 KB |
Output is correct |
21 |
Correct |
84 ms |
282204 KB |
Output is correct |
22 |
Correct |
82 ms |
282192 KB |
Output is correct |
23 |
Correct |
82 ms |
282032 KB |
Output is correct |
24 |
Correct |
83 ms |
282160 KB |
Output is correct |
25 |
Correct |
83 ms |
282192 KB |
Output is correct |
26 |
Correct |
84 ms |
282252 KB |
Output is correct |
27 |
Correct |
81 ms |
282192 KB |
Output is correct |
28 |
Correct |
85 ms |
282036 KB |
Output is correct |
29 |
Correct |
82 ms |
282192 KB |
Output is correct |
30 |
Correct |
82 ms |
282048 KB |
Output is correct |
31 |
Correct |
81 ms |
282196 KB |
Output is correct |
32 |
Correct |
82 ms |
282240 KB |
Output is correct |
33 |
Correct |
89 ms |
283220 KB |
Output is correct |
34 |
Correct |
82 ms |
282412 KB |
Output is correct |
35 |
Correct |
82 ms |
282244 KB |
Output is correct |
36 |
Correct |
93 ms |
283136 KB |
Output is correct |
37 |
Correct |
84 ms |
283416 KB |
Output is correct |
38 |
Correct |
100 ms |
284508 KB |
Output is correct |
39 |
Correct |
93 ms |
283216 KB |
Output is correct |
40 |
Correct |
96 ms |
283220 KB |
Output is correct |
41 |
Correct |
90 ms |
283264 KB |
Output is correct |
42 |
Correct |
91 ms |
283220 KB |
Output is correct |
43 |
Correct |
95 ms |
283168 KB |
Output is correct |
44 |
Correct |
91 ms |
283220 KB |
Output is correct |
45 |
Correct |
84 ms |
283624 KB |
Output is correct |
46 |
Correct |
86 ms |
283568 KB |
Output is correct |
47 |
Correct |
88 ms |
283656 KB |
Output is correct |
48 |
Correct |
89 ms |
283220 KB |
Output is correct |
49 |
Correct |
91 ms |
283652 KB |
Output is correct |
50 |
Correct |
90 ms |
283732 KB |
Output is correct |
51 |
Correct |
98 ms |
283476 KB |
Output is correct |
52 |
Correct |
93 ms |
283224 KB |
Output is correct |
53 |
Correct |
102 ms |
283220 KB |
Output is correct |
54 |
Correct |
89 ms |
283216 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
83 ms |
282236 KB |
Output is correct |
2 |
Correct |
86 ms |
282236 KB |
Output is correct |
3 |
Correct |
83 ms |
282232 KB |
Output is correct |
4 |
Correct |
82 ms |
282196 KB |
Output is correct |
5 |
Correct |
82 ms |
282076 KB |
Output is correct |
6 |
Correct |
84 ms |
282232 KB |
Output is correct |
7 |
Correct |
81 ms |
282196 KB |
Output is correct |
8 |
Correct |
85 ms |
282352 KB |
Output is correct |
9 |
Correct |
82 ms |
282116 KB |
Output is correct |
10 |
Correct |
84 ms |
282192 KB |
Output is correct |
11 |
Correct |
89 ms |
282120 KB |
Output is correct |
12 |
Correct |
88 ms |
282200 KB |
Output is correct |
13 |
Correct |
84 ms |
282196 KB |
Output is correct |
14 |
Correct |
82 ms |
282196 KB |
Output is correct |
15 |
Correct |
83 ms |
282020 KB |
Output is correct |
16 |
Correct |
83 ms |
282272 KB |
Output is correct |
17 |
Correct |
83 ms |
282260 KB |
Output is correct |
18 |
Correct |
82 ms |
282196 KB |
Output is correct |
19 |
Correct |
82 ms |
282100 KB |
Output is correct |
20 |
Correct |
82 ms |
282192 KB |
Output is correct |
21 |
Correct |
84 ms |
282204 KB |
Output is correct |
22 |
Correct |
82 ms |
282192 KB |
Output is correct |
23 |
Correct |
82 ms |
282032 KB |
Output is correct |
24 |
Correct |
83 ms |
282160 KB |
Output is correct |
25 |
Correct |
83 ms |
282192 KB |
Output is correct |
26 |
Correct |
84 ms |
282252 KB |
Output is correct |
27 |
Correct |
81 ms |
282192 KB |
Output is correct |
28 |
Correct |
85 ms |
282036 KB |
Output is correct |
29 |
Correct |
82 ms |
282192 KB |
Output is correct |
30 |
Correct |
82 ms |
282048 KB |
Output is correct |
31 |
Correct |
81 ms |
282196 KB |
Output is correct |
32 |
Correct |
82 ms |
282240 KB |
Output is correct |
33 |
Correct |
89 ms |
283220 KB |
Output is correct |
34 |
Correct |
82 ms |
282412 KB |
Output is correct |
35 |
Correct |
82 ms |
282244 KB |
Output is correct |
36 |
Correct |
93 ms |
283136 KB |
Output is correct |
37 |
Correct |
84 ms |
283416 KB |
Output is correct |
38 |
Correct |
100 ms |
284508 KB |
Output is correct |
39 |
Correct |
93 ms |
283216 KB |
Output is correct |
40 |
Correct |
96 ms |
283220 KB |
Output is correct |
41 |
Correct |
90 ms |
283264 KB |
Output is correct |
42 |
Correct |
91 ms |
283220 KB |
Output is correct |
43 |
Correct |
95 ms |
283168 KB |
Output is correct |
44 |
Correct |
91 ms |
283220 KB |
Output is correct |
45 |
Correct |
84 ms |
283624 KB |
Output is correct |
46 |
Correct |
86 ms |
283568 KB |
Output is correct |
47 |
Correct |
88 ms |
283656 KB |
Output is correct |
48 |
Correct |
89 ms |
283220 KB |
Output is correct |
49 |
Correct |
91 ms |
283652 KB |
Output is correct |
50 |
Correct |
90 ms |
283732 KB |
Output is correct |
51 |
Correct |
98 ms |
283476 KB |
Output is correct |
52 |
Correct |
93 ms |
283224 KB |
Output is correct |
53 |
Correct |
102 ms |
283220 KB |
Output is correct |
54 |
Correct |
89 ms |
283216 KB |
Output is correct |
55 |
Correct |
102 ms |
285520 KB |
Output is correct |
56 |
Correct |
88 ms |
283472 KB |
Output is correct |
57 |
Correct |
120 ms |
287180 KB |
Output is correct |
58 |
Correct |
105 ms |
285100 KB |
Output is correct |
59 |
Correct |
100 ms |
285392 KB |
Output is correct |
60 |
Correct |
108 ms |
285520 KB |
Output is correct |
61 |
Correct |
102 ms |
285528 KB |
Output is correct |
62 |
Correct |
99 ms |
285576 KB |
Output is correct |
63 |
Correct |
109 ms |
285416 KB |
Output is correct |
64 |
Correct |
101 ms |
285544 KB |
Output is correct |
65 |
Correct |
88 ms |
286116 KB |
Output is correct |
66 |
Correct |
89 ms |
286116 KB |
Output is correct |
67 |
Correct |
99 ms |
286012 KB |
Output is correct |
68 |
Correct |
106 ms |
285368 KB |
Output is correct |
69 |
Correct |
104 ms |
285604 KB |
Output is correct |
70 |
Correct |
107 ms |
285780 KB |
Output is correct |
71 |
Correct |
109 ms |
286012 KB |
Output is correct |
72 |
Correct |
113 ms |
285524 KB |
Output is correct |
73 |
Correct |
113 ms |
285524 KB |
Output is correct |
74 |
Correct |
104 ms |
285552 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
180 ms |
282024 KB |
Output is correct |
2 |
Correct |
85 ms |
282132 KB |
Output is correct |
3 |
Correct |
83 ms |
282192 KB |
Output is correct |
4 |
Correct |
84 ms |
282196 KB |
Output is correct |
5 |
Correct |
81 ms |
282192 KB |
Output is correct |
6 |
Correct |
83 ms |
282088 KB |
Output is correct |
7 |
Correct |
82 ms |
282192 KB |
Output is correct |
8 |
Correct |
81 ms |
282072 KB |
Output is correct |
9 |
Correct |
86 ms |
282192 KB |
Output is correct |
10 |
Correct |
83 ms |
282044 KB |
Output is correct |
11 |
Correct |
82 ms |
282088 KB |
Output is correct |
12 |
Correct |
82 ms |
282196 KB |
Output is correct |
13 |
Correct |
81 ms |
282124 KB |
Output is correct |
14 |
Correct |
83 ms |
282188 KB |
Output is correct |
15 |
Correct |
82 ms |
282192 KB |
Output is correct |
16 |
Correct |
83 ms |
282196 KB |
Output is correct |
17 |
Correct |
82 ms |
282136 KB |
Output is correct |
18 |
Correct |
81 ms |
282192 KB |
Output is correct |
19 |
Correct |
91 ms |
283224 KB |
Output is correct |
20 |
Correct |
83 ms |
283208 KB |
Output is correct |
21 |
Correct |
90 ms |
283108 KB |
Output is correct |
22 |
Correct |
92 ms |
283220 KB |
Output is correct |
23 |
Correct |
93 ms |
283216 KB |
Output is correct |
24 |
Correct |
84 ms |
283540 KB |
Output is correct |
25 |
Correct |
85 ms |
283560 KB |
Output is correct |
26 |
Correct |
93 ms |
283216 KB |
Output is correct |
27 |
Correct |
95 ms |
283320 KB |
Output is correct |
28 |
Correct |
89 ms |
283220 KB |
Output is correct |
29 |
Correct |
106 ms |
285268 KB |
Output is correct |
30 |
Correct |
88 ms |
283524 KB |
Output is correct |
31 |
Correct |
102 ms |
285520 KB |
Output is correct |
32 |
Correct |
114 ms |
285208 KB |
Output is correct |
33 |
Correct |
103 ms |
285268 KB |
Output is correct |
34 |
Correct |
91 ms |
286012 KB |
Output is correct |
35 |
Correct |
90 ms |
285916 KB |
Output is correct |
36 |
Correct |
113 ms |
285476 KB |
Output is correct |
37 |
Correct |
111 ms |
285524 KB |
Output is correct |
38 |
Correct |
105 ms |
285308 KB |
Output is correct |
39 |
Correct |
362 ms |
321872 KB |
Output is correct |
40 |
Correct |
107 ms |
285524 KB |
Output is correct |
41 |
Correct |
92 ms |
286536 KB |
Output is correct |
42 |
Correct |
117 ms |
288232 KB |
Output is correct |
43 |
Correct |
104 ms |
287176 KB |
Output is correct |
44 |
Correct |
202 ms |
295508 KB |
Output is correct |
45 |
Correct |
163 ms |
298304 KB |
Output is correct |
46 |
Correct |
314 ms |
321872 KB |
Output is correct |
47 |
Correct |
385 ms |
321620 KB |
Output is correct |
48 |
Correct |
358 ms |
321672 KB |
Output is correct |
49 |
Correct |
155 ms |
318084 KB |
Output is correct |
50 |
Correct |
157 ms |
318000 KB |
Output is correct |
51 |
Correct |
422 ms |
322288 KB |
Output is correct |
52 |
Correct |
400 ms |
321876 KB |
Output is correct |
53 |
Correct |
358 ms |
321620 KB |
Output is correct |
54 |
Correct |
83 ms |
282236 KB |
Output is correct |
55 |
Correct |
86 ms |
282236 KB |
Output is correct |
56 |
Correct |
83 ms |
282232 KB |
Output is correct |
57 |
Correct |
82 ms |
282196 KB |
Output is correct |
58 |
Correct |
82 ms |
282076 KB |
Output is correct |
59 |
Correct |
84 ms |
282232 KB |
Output is correct |
60 |
Correct |
81 ms |
282196 KB |
Output is correct |
61 |
Correct |
85 ms |
282352 KB |
Output is correct |
62 |
Correct |
82 ms |
282116 KB |
Output is correct |
63 |
Correct |
84 ms |
282192 KB |
Output is correct |
64 |
Correct |
89 ms |
282120 KB |
Output is correct |
65 |
Correct |
88 ms |
282200 KB |
Output is correct |
66 |
Correct |
84 ms |
282196 KB |
Output is correct |
67 |
Correct |
82 ms |
282196 KB |
Output is correct |
68 |
Correct |
83 ms |
282020 KB |
Output is correct |
69 |
Correct |
83 ms |
282272 KB |
Output is correct |
70 |
Correct |
83 ms |
282260 KB |
Output is correct |
71 |
Correct |
82 ms |
282196 KB |
Output is correct |
72 |
Correct |
82 ms |
282100 KB |
Output is correct |
73 |
Correct |
82 ms |
282192 KB |
Output is correct |
74 |
Correct |
84 ms |
282204 KB |
Output is correct |
75 |
Correct |
82 ms |
282192 KB |
Output is correct |
76 |
Correct |
82 ms |
282032 KB |
Output is correct |
77 |
Correct |
83 ms |
282160 KB |
Output is correct |
78 |
Correct |
83 ms |
282192 KB |
Output is correct |
79 |
Correct |
84 ms |
282252 KB |
Output is correct |
80 |
Correct |
81 ms |
282192 KB |
Output is correct |
81 |
Correct |
85 ms |
282036 KB |
Output is correct |
82 |
Correct |
82 ms |
282192 KB |
Output is correct |
83 |
Correct |
82 ms |
282048 KB |
Output is correct |
84 |
Correct |
81 ms |
282196 KB |
Output is correct |
85 |
Correct |
82 ms |
282240 KB |
Output is correct |
86 |
Correct |
83 ms |
281980 KB |
Output is correct |
87 |
Correct |
83 ms |
282092 KB |
Output is correct |
88 |
Correct |
81 ms |
282192 KB |
Output is correct |
89 |
Correct |
83 ms |
282196 KB |
Output is correct |
90 |
Correct |
84 ms |
282192 KB |
Output is correct |
91 |
Correct |
83 ms |
282196 KB |
Output is correct |
92 |
Correct |
81 ms |
282140 KB |
Output is correct |
93 |
Correct |
81 ms |
282196 KB |
Output is correct |
94 |
Correct |
81 ms |
282192 KB |
Output is correct |
95 |
Correct |
82 ms |
282192 KB |
Output is correct |
96 |
Correct |
85 ms |
282172 KB |
Output is correct |
97 |
Correct |
82 ms |
282448 KB |
Output is correct |
98 |
Correct |
82 ms |
282208 KB |
Output is correct |
99 |
Correct |
81 ms |
282196 KB |
Output is correct |
100 |
Correct |
81 ms |
282192 KB |
Output is correct |
101 |
Correct |
86 ms |
282124 KB |
Output is correct |
102 |
Correct |
92 ms |
282196 KB |
Output is correct |
103 |
Correct |
84 ms |
282236 KB |
Output is correct |
104 |
Correct |
84 ms |
282192 KB |
Output is correct |
105 |
Correct |
85 ms |
282192 KB |
Output is correct |
106 |
Correct |
85 ms |
282364 KB |
Output is correct |
107 |
Correct |
84 ms |
282196 KB |
Output is correct |
108 |
Correct |
88 ms |
282192 KB |
Output is correct |
109 |
Correct |
82 ms |
282092 KB |
Output is correct |
110 |
Correct |
90 ms |
283160 KB |
Output is correct |
111 |
Correct |
97 ms |
284504 KB |
Output is correct |
112 |
Correct |
90 ms |
283224 KB |
Output is correct |
113 |
Correct |
89 ms |
283220 KB |
Output is correct |
114 |
Correct |
96 ms |
283216 KB |
Output is correct |
115 |
Correct |
92 ms |
283332 KB |
Output is correct |
116 |
Correct |
93 ms |
283476 KB |
Output is correct |
117 |
Correct |
95 ms |
283424 KB |
Output is correct |
118 |
Correct |
95 ms |
283372 KB |
Output is correct |
119 |
Correct |
120 ms |
287308 KB |
Output is correct |
120 |
Correct |
103 ms |
285524 KB |
Output is correct |
121 |
Correct |
103 ms |
285328 KB |
Output is correct |
122 |
Correct |
107 ms |
285520 KB |
Output is correct |
123 |
Correct |
107 ms |
285776 KB |
Output is correct |
124 |
Correct |
227 ms |
298592 KB |
Output is correct |
125 |
Correct |
576 ms |
329956 KB |
Output is correct |
126 |
Correct |
305 ms |
323352 KB |
Output is correct |
127 |
Correct |
308 ms |
323672 KB |
Output is correct |
128 |
Correct |
394 ms |
323364 KB |
Output is correct |
129 |
Correct |
378 ms |
322988 KB |
Output is correct |
130 |
Correct |
694 ms |
335596 KB |
Output is correct |
131 |
Correct |
666 ms |
334132 KB |
Output is correct |
132 |
Correct |
89 ms |
283220 KB |
Output is correct |
133 |
Correct |
82 ms |
282412 KB |
Output is correct |
134 |
Correct |
82 ms |
282244 KB |
Output is correct |
135 |
Correct |
93 ms |
283136 KB |
Output is correct |
136 |
Correct |
84 ms |
283416 KB |
Output is correct |
137 |
Correct |
100 ms |
284508 KB |
Output is correct |
138 |
Correct |
93 ms |
283216 KB |
Output is correct |
139 |
Correct |
96 ms |
283220 KB |
Output is correct |
140 |
Correct |
90 ms |
283264 KB |
Output is correct |
141 |
Correct |
91 ms |
283220 KB |
Output is correct |
142 |
Correct |
95 ms |
283168 KB |
Output is correct |
143 |
Correct |
91 ms |
283220 KB |
Output is correct |
144 |
Correct |
84 ms |
283624 KB |
Output is correct |
145 |
Correct |
86 ms |
283568 KB |
Output is correct |
146 |
Correct |
88 ms |
283656 KB |
Output is correct |
147 |
Correct |
89 ms |
283220 KB |
Output is correct |
148 |
Correct |
91 ms |
283652 KB |
Output is correct |
149 |
Correct |
90 ms |
283732 KB |
Output is correct |
150 |
Correct |
98 ms |
283476 KB |
Output is correct |
151 |
Correct |
93 ms |
283224 KB |
Output is correct |
152 |
Correct |
102 ms |
283220 KB |
Output is correct |
153 |
Correct |
89 ms |
283216 KB |
Output is correct |
154 |
Correct |
102 ms |
285520 KB |
Output is correct |
155 |
Correct |
88 ms |
283472 KB |
Output is correct |
156 |
Correct |
120 ms |
287180 KB |
Output is correct |
157 |
Correct |
105 ms |
285100 KB |
Output is correct |
158 |
Correct |
100 ms |
285392 KB |
Output is correct |
159 |
Correct |
108 ms |
285520 KB |
Output is correct |
160 |
Correct |
102 ms |
285528 KB |
Output is correct |
161 |
Correct |
99 ms |
285576 KB |
Output is correct |
162 |
Correct |
109 ms |
285416 KB |
Output is correct |
163 |
Correct |
101 ms |
285544 KB |
Output is correct |
164 |
Correct |
88 ms |
286116 KB |
Output is correct |
165 |
Correct |
89 ms |
286116 KB |
Output is correct |
166 |
Correct |
99 ms |
286012 KB |
Output is correct |
167 |
Correct |
106 ms |
285368 KB |
Output is correct |
168 |
Correct |
104 ms |
285604 KB |
Output is correct |
169 |
Correct |
107 ms |
285780 KB |
Output is correct |
170 |
Correct |
109 ms |
286012 KB |
Output is correct |
171 |
Correct |
113 ms |
285524 KB |
Output is correct |
172 |
Correct |
113 ms |
285524 KB |
Output is correct |
173 |
Correct |
104 ms |
285552 KB |
Output is correct |
174 |
Correct |
126 ms |
285900 KB |
Output is correct |
175 |
Correct |
139 ms |
289108 KB |
Output is correct |
176 |
Incorrect |
173 ms |
297476 KB |
Output isn't correct |
177 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
180 ms |
282024 KB |
Output is correct |
2 |
Correct |
85 ms |
282132 KB |
Output is correct |
3 |
Correct |
83 ms |
282192 KB |
Output is correct |
4 |
Correct |
84 ms |
282196 KB |
Output is correct |
5 |
Correct |
81 ms |
282192 KB |
Output is correct |
6 |
Correct |
83 ms |
282088 KB |
Output is correct |
7 |
Correct |
82 ms |
282192 KB |
Output is correct |
8 |
Correct |
81 ms |
282072 KB |
Output is correct |
9 |
Correct |
86 ms |
282192 KB |
Output is correct |
10 |
Correct |
83 ms |
282044 KB |
Output is correct |
11 |
Correct |
82 ms |
282088 KB |
Output is correct |
12 |
Correct |
82 ms |
282196 KB |
Output is correct |
13 |
Correct |
81 ms |
282124 KB |
Output is correct |
14 |
Correct |
83 ms |
282188 KB |
Output is correct |
15 |
Correct |
82 ms |
282192 KB |
Output is correct |
16 |
Correct |
83 ms |
282196 KB |
Output is correct |
17 |
Correct |
82 ms |
282136 KB |
Output is correct |
18 |
Correct |
81 ms |
282192 KB |
Output is correct |
19 |
Correct |
91 ms |
283224 KB |
Output is correct |
20 |
Correct |
83 ms |
283208 KB |
Output is correct |
21 |
Correct |
90 ms |
283108 KB |
Output is correct |
22 |
Correct |
92 ms |
283220 KB |
Output is correct |
23 |
Correct |
93 ms |
283216 KB |
Output is correct |
24 |
Correct |
84 ms |
283540 KB |
Output is correct |
25 |
Correct |
85 ms |
283560 KB |
Output is correct |
26 |
Correct |
93 ms |
283216 KB |
Output is correct |
27 |
Correct |
95 ms |
283320 KB |
Output is correct |
28 |
Correct |
89 ms |
283220 KB |
Output is correct |
29 |
Correct |
106 ms |
285268 KB |
Output is correct |
30 |
Correct |
88 ms |
283524 KB |
Output is correct |
31 |
Correct |
102 ms |
285520 KB |
Output is correct |
32 |
Correct |
114 ms |
285208 KB |
Output is correct |
33 |
Correct |
103 ms |
285268 KB |
Output is correct |
34 |
Correct |
91 ms |
286012 KB |
Output is correct |
35 |
Correct |
90 ms |
285916 KB |
Output is correct |
36 |
Correct |
113 ms |
285476 KB |
Output is correct |
37 |
Correct |
111 ms |
285524 KB |
Output is correct |
38 |
Correct |
105 ms |
285308 KB |
Output is correct |
39 |
Correct |
362 ms |
321872 KB |
Output is correct |
40 |
Correct |
107 ms |
285524 KB |
Output is correct |
41 |
Correct |
92 ms |
286536 KB |
Output is correct |
42 |
Correct |
117 ms |
288232 KB |
Output is correct |
43 |
Correct |
104 ms |
287176 KB |
Output is correct |
44 |
Correct |
202 ms |
295508 KB |
Output is correct |
45 |
Correct |
163 ms |
298304 KB |
Output is correct |
46 |
Correct |
314 ms |
321872 KB |
Output is correct |
47 |
Correct |
385 ms |
321620 KB |
Output is correct |
48 |
Correct |
358 ms |
321672 KB |
Output is correct |
49 |
Correct |
155 ms |
318084 KB |
Output is correct |
50 |
Correct |
157 ms |
318000 KB |
Output is correct |
51 |
Correct |
422 ms |
322288 KB |
Output is correct |
52 |
Correct |
400 ms |
321876 KB |
Output is correct |
53 |
Correct |
358 ms |
321620 KB |
Output is correct |
54 |
Correct |
83 ms |
282236 KB |
Output is correct |
55 |
Correct |
86 ms |
282236 KB |
Output is correct |
56 |
Correct |
83 ms |
282232 KB |
Output is correct |
57 |
Correct |
82 ms |
282196 KB |
Output is correct |
58 |
Correct |
82 ms |
282076 KB |
Output is correct |
59 |
Correct |
84 ms |
282232 KB |
Output is correct |
60 |
Correct |
81 ms |
282196 KB |
Output is correct |
61 |
Correct |
85 ms |
282352 KB |
Output is correct |
62 |
Correct |
82 ms |
282116 KB |
Output is correct |
63 |
Correct |
84 ms |
282192 KB |
Output is correct |
64 |
Correct |
89 ms |
282120 KB |
Output is correct |
65 |
Correct |
88 ms |
282200 KB |
Output is correct |
66 |
Correct |
84 ms |
282196 KB |
Output is correct |
67 |
Correct |
82 ms |
282196 KB |
Output is correct |
68 |
Correct |
83 ms |
282020 KB |
Output is correct |
69 |
Correct |
83 ms |
282272 KB |
Output is correct |
70 |
Correct |
83 ms |
282260 KB |
Output is correct |
71 |
Correct |
82 ms |
282196 KB |
Output is correct |
72 |
Correct |
82 ms |
282100 KB |
Output is correct |
73 |
Correct |
82 ms |
282192 KB |
Output is correct |
74 |
Correct |
84 ms |
282204 KB |
Output is correct |
75 |
Correct |
82 ms |
282192 KB |
Output is correct |
76 |
Correct |
82 ms |
282032 KB |
Output is correct |
77 |
Correct |
83 ms |
282160 KB |
Output is correct |
78 |
Correct |
83 ms |
282192 KB |
Output is correct |
79 |
Correct |
84 ms |
282252 KB |
Output is correct |
80 |
Correct |
81 ms |
282192 KB |
Output is correct |
81 |
Correct |
85 ms |
282036 KB |
Output is correct |
82 |
Correct |
82 ms |
282192 KB |
Output is correct |
83 |
Correct |
82 ms |
282048 KB |
Output is correct |
84 |
Correct |
81 ms |
282196 KB |
Output is correct |
85 |
Correct |
82 ms |
282240 KB |
Output is correct |
86 |
Correct |
83 ms |
281980 KB |
Output is correct |
87 |
Correct |
83 ms |
282092 KB |
Output is correct |
88 |
Correct |
81 ms |
282192 KB |
Output is correct |
89 |
Correct |
83 ms |
282196 KB |
Output is correct |
90 |
Correct |
84 ms |
282192 KB |
Output is correct |
91 |
Correct |
83 ms |
282196 KB |
Output is correct |
92 |
Correct |
81 ms |
282140 KB |
Output is correct |
93 |
Correct |
81 ms |
282196 KB |
Output is correct |
94 |
Correct |
81 ms |
282192 KB |
Output is correct |
95 |
Correct |
82 ms |
282192 KB |
Output is correct |
96 |
Correct |
85 ms |
282172 KB |
Output is correct |
97 |
Correct |
82 ms |
282448 KB |
Output is correct |
98 |
Correct |
82 ms |
282208 KB |
Output is correct |
99 |
Correct |
81 ms |
282196 KB |
Output is correct |
100 |
Correct |
81 ms |
282192 KB |
Output is correct |
101 |
Correct |
86 ms |
282124 KB |
Output is correct |
102 |
Correct |
92 ms |
282196 KB |
Output is correct |
103 |
Correct |
84 ms |
282236 KB |
Output is correct |
104 |
Correct |
84 ms |
282192 KB |
Output is correct |
105 |
Correct |
85 ms |
282192 KB |
Output is correct |
106 |
Correct |
85 ms |
282364 KB |
Output is correct |
107 |
Correct |
84 ms |
282196 KB |
Output is correct |
108 |
Correct |
88 ms |
282192 KB |
Output is correct |
109 |
Correct |
82 ms |
282092 KB |
Output is correct |
110 |
Correct |
90 ms |
283160 KB |
Output is correct |
111 |
Correct |
97 ms |
284504 KB |
Output is correct |
112 |
Correct |
90 ms |
283224 KB |
Output is correct |
113 |
Correct |
89 ms |
283220 KB |
Output is correct |
114 |
Correct |
96 ms |
283216 KB |
Output is correct |
115 |
Correct |
92 ms |
283332 KB |
Output is correct |
116 |
Correct |
93 ms |
283476 KB |
Output is correct |
117 |
Correct |
95 ms |
283424 KB |
Output is correct |
118 |
Correct |
95 ms |
283372 KB |
Output is correct |
119 |
Correct |
120 ms |
287308 KB |
Output is correct |
120 |
Correct |
103 ms |
285524 KB |
Output is correct |
121 |
Correct |
103 ms |
285328 KB |
Output is correct |
122 |
Correct |
107 ms |
285520 KB |
Output is correct |
123 |
Correct |
107 ms |
285776 KB |
Output is correct |
124 |
Correct |
227 ms |
298592 KB |
Output is correct |
125 |
Correct |
576 ms |
329956 KB |
Output is correct |
126 |
Correct |
305 ms |
323352 KB |
Output is correct |
127 |
Correct |
308 ms |
323672 KB |
Output is correct |
128 |
Correct |
394 ms |
323364 KB |
Output is correct |
129 |
Correct |
378 ms |
322988 KB |
Output is correct |
130 |
Correct |
694 ms |
335596 KB |
Output is correct |
131 |
Correct |
666 ms |
334132 KB |
Output is correct |
132 |
Correct |
89 ms |
283220 KB |
Output is correct |
133 |
Correct |
82 ms |
282412 KB |
Output is correct |
134 |
Correct |
82 ms |
282244 KB |
Output is correct |
135 |
Correct |
93 ms |
283136 KB |
Output is correct |
136 |
Correct |
84 ms |
283416 KB |
Output is correct |
137 |
Correct |
100 ms |
284508 KB |
Output is correct |
138 |
Correct |
93 ms |
283216 KB |
Output is correct |
139 |
Correct |
96 ms |
283220 KB |
Output is correct |
140 |
Correct |
90 ms |
283264 KB |
Output is correct |
141 |
Correct |
91 ms |
283220 KB |
Output is correct |
142 |
Correct |
95 ms |
283168 KB |
Output is correct |
143 |
Correct |
91 ms |
283220 KB |
Output is correct |
144 |
Correct |
84 ms |
283624 KB |
Output is correct |
145 |
Correct |
86 ms |
283568 KB |
Output is correct |
146 |
Correct |
88 ms |
283656 KB |
Output is correct |
147 |
Correct |
89 ms |
283220 KB |
Output is correct |
148 |
Correct |
91 ms |
283652 KB |
Output is correct |
149 |
Correct |
90 ms |
283732 KB |
Output is correct |
150 |
Correct |
98 ms |
283476 KB |
Output is correct |
151 |
Correct |
93 ms |
283224 KB |
Output is correct |
152 |
Correct |
102 ms |
283220 KB |
Output is correct |
153 |
Correct |
89 ms |
283216 KB |
Output is correct |
154 |
Correct |
102 ms |
285520 KB |
Output is correct |
155 |
Correct |
88 ms |
283472 KB |
Output is correct |
156 |
Correct |
120 ms |
287180 KB |
Output is correct |
157 |
Correct |
105 ms |
285100 KB |
Output is correct |
158 |
Correct |
100 ms |
285392 KB |
Output is correct |
159 |
Correct |
108 ms |
285520 KB |
Output is correct |
160 |
Correct |
102 ms |
285528 KB |
Output is correct |
161 |
Correct |
99 ms |
285576 KB |
Output is correct |
162 |
Correct |
109 ms |
285416 KB |
Output is correct |
163 |
Correct |
101 ms |
285544 KB |
Output is correct |
164 |
Correct |
88 ms |
286116 KB |
Output is correct |
165 |
Correct |
89 ms |
286116 KB |
Output is correct |
166 |
Correct |
99 ms |
286012 KB |
Output is correct |
167 |
Correct |
106 ms |
285368 KB |
Output is correct |
168 |
Correct |
104 ms |
285604 KB |
Output is correct |
169 |
Correct |
107 ms |
285780 KB |
Output is correct |
170 |
Correct |
109 ms |
286012 KB |
Output is correct |
171 |
Correct |
113 ms |
285524 KB |
Output is correct |
172 |
Correct |
113 ms |
285524 KB |
Output is correct |
173 |
Correct |
104 ms |
285552 KB |
Output is correct |
174 |
Correct |
126 ms |
285900 KB |
Output is correct |
175 |
Correct |
139 ms |
289108 KB |
Output is correct |
176 |
Incorrect |
173 ms |
297476 KB |
Output isn't correct |
177 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
180 ms |
282024 KB |
Output is correct |
2 |
Correct |
85 ms |
282132 KB |
Output is correct |
3 |
Correct |
83 ms |
282192 KB |
Output is correct |
4 |
Correct |
84 ms |
282196 KB |
Output is correct |
5 |
Correct |
81 ms |
282192 KB |
Output is correct |
6 |
Correct |
83 ms |
282088 KB |
Output is correct |
7 |
Correct |
82 ms |
282192 KB |
Output is correct |
8 |
Correct |
81 ms |
282072 KB |
Output is correct |
9 |
Correct |
86 ms |
282192 KB |
Output is correct |
10 |
Correct |
83 ms |
282044 KB |
Output is correct |
11 |
Correct |
82 ms |
282088 KB |
Output is correct |
12 |
Correct |
82 ms |
282196 KB |
Output is correct |
13 |
Correct |
81 ms |
282124 KB |
Output is correct |
14 |
Correct |
83 ms |
282188 KB |
Output is correct |
15 |
Correct |
82 ms |
282192 KB |
Output is correct |
16 |
Correct |
83 ms |
282196 KB |
Output is correct |
17 |
Correct |
82 ms |
282136 KB |
Output is correct |
18 |
Correct |
81 ms |
282192 KB |
Output is correct |
19 |
Correct |
91 ms |
283224 KB |
Output is correct |
20 |
Correct |
83 ms |
283208 KB |
Output is correct |
21 |
Correct |
90 ms |
283108 KB |
Output is correct |
22 |
Correct |
92 ms |
283220 KB |
Output is correct |
23 |
Correct |
93 ms |
283216 KB |
Output is correct |
24 |
Correct |
84 ms |
283540 KB |
Output is correct |
25 |
Correct |
85 ms |
283560 KB |
Output is correct |
26 |
Correct |
93 ms |
283216 KB |
Output is correct |
27 |
Correct |
95 ms |
283320 KB |
Output is correct |
28 |
Correct |
89 ms |
283220 KB |
Output is correct |
29 |
Correct |
106 ms |
285268 KB |
Output is correct |
30 |
Correct |
88 ms |
283524 KB |
Output is correct |
31 |
Correct |
102 ms |
285520 KB |
Output is correct |
32 |
Correct |
114 ms |
285208 KB |
Output is correct |
33 |
Correct |
103 ms |
285268 KB |
Output is correct |
34 |
Correct |
91 ms |
286012 KB |
Output is correct |
35 |
Correct |
90 ms |
285916 KB |
Output is correct |
36 |
Correct |
113 ms |
285476 KB |
Output is correct |
37 |
Correct |
111 ms |
285524 KB |
Output is correct |
38 |
Correct |
105 ms |
285308 KB |
Output is correct |
39 |
Correct |
362 ms |
321872 KB |
Output is correct |
40 |
Correct |
107 ms |
285524 KB |
Output is correct |
41 |
Correct |
92 ms |
286536 KB |
Output is correct |
42 |
Correct |
117 ms |
288232 KB |
Output is correct |
43 |
Correct |
104 ms |
287176 KB |
Output is correct |
44 |
Correct |
202 ms |
295508 KB |
Output is correct |
45 |
Correct |
163 ms |
298304 KB |
Output is correct |
46 |
Correct |
314 ms |
321872 KB |
Output is correct |
47 |
Correct |
385 ms |
321620 KB |
Output is correct |
48 |
Correct |
358 ms |
321672 KB |
Output is correct |
49 |
Correct |
155 ms |
318084 KB |
Output is correct |
50 |
Correct |
157 ms |
318000 KB |
Output is correct |
51 |
Correct |
422 ms |
322288 KB |
Output is correct |
52 |
Correct |
400 ms |
321876 KB |
Output is correct |
53 |
Correct |
358 ms |
321620 KB |
Output is correct |
54 |
Correct |
83 ms |
282236 KB |
Output is correct |
55 |
Correct |
86 ms |
282236 KB |
Output is correct |
56 |
Correct |
83 ms |
282232 KB |
Output is correct |
57 |
Correct |
82 ms |
282196 KB |
Output is correct |
58 |
Correct |
82 ms |
282076 KB |
Output is correct |
59 |
Correct |
84 ms |
282232 KB |
Output is correct |
60 |
Correct |
81 ms |
282196 KB |
Output is correct |
61 |
Correct |
85 ms |
282352 KB |
Output is correct |
62 |
Correct |
82 ms |
282116 KB |
Output is correct |
63 |
Correct |
84 ms |
282192 KB |
Output is correct |
64 |
Correct |
89 ms |
282120 KB |
Output is correct |
65 |
Correct |
88 ms |
282200 KB |
Output is correct |
66 |
Correct |
84 ms |
282196 KB |
Output is correct |
67 |
Correct |
82 ms |
282196 KB |
Output is correct |
68 |
Correct |
83 ms |
282020 KB |
Output is correct |
69 |
Correct |
83 ms |
282272 KB |
Output is correct |
70 |
Correct |
83 ms |
282260 KB |
Output is correct |
71 |
Correct |
82 ms |
282196 KB |
Output is correct |
72 |
Correct |
82 ms |
282100 KB |
Output is correct |
73 |
Correct |
82 ms |
282192 KB |
Output is correct |
74 |
Correct |
84 ms |
282204 KB |
Output is correct |
75 |
Correct |
82 ms |
282192 KB |
Output is correct |
76 |
Correct |
82 ms |
282032 KB |
Output is correct |
77 |
Correct |
83 ms |
282160 KB |
Output is correct |
78 |
Correct |
83 ms |
282192 KB |
Output is correct |
79 |
Correct |
84 ms |
282252 KB |
Output is correct |
80 |
Correct |
81 ms |
282192 KB |
Output is correct |
81 |
Correct |
85 ms |
282036 KB |
Output is correct |
82 |
Correct |
82 ms |
282192 KB |
Output is correct |
83 |
Correct |
82 ms |
282048 KB |
Output is correct |
84 |
Correct |
81 ms |
282196 KB |
Output is correct |
85 |
Correct |
82 ms |
282240 KB |
Output is correct |
86 |
Correct |
83 ms |
281980 KB |
Output is correct |
87 |
Correct |
83 ms |
282092 KB |
Output is correct |
88 |
Correct |
81 ms |
282192 KB |
Output is correct |
89 |
Correct |
83 ms |
282196 KB |
Output is correct |
90 |
Correct |
84 ms |
282192 KB |
Output is correct |
91 |
Correct |
83 ms |
282196 KB |
Output is correct |
92 |
Correct |
81 ms |
282140 KB |
Output is correct |
93 |
Correct |
81 ms |
282196 KB |
Output is correct |
94 |
Correct |
81 ms |
282192 KB |
Output is correct |
95 |
Correct |
82 ms |
282192 KB |
Output is correct |
96 |
Correct |
85 ms |
282172 KB |
Output is correct |
97 |
Correct |
82 ms |
282448 KB |
Output is correct |
98 |
Correct |
82 ms |
282208 KB |
Output is correct |
99 |
Correct |
81 ms |
282196 KB |
Output is correct |
100 |
Correct |
81 ms |
282192 KB |
Output is correct |
101 |
Correct |
86 ms |
282124 KB |
Output is correct |
102 |
Correct |
92 ms |
282196 KB |
Output is correct |
103 |
Correct |
84 ms |
282236 KB |
Output is correct |
104 |
Correct |
84 ms |
282192 KB |
Output is correct |
105 |
Correct |
85 ms |
282192 KB |
Output is correct |
106 |
Correct |
85 ms |
282364 KB |
Output is correct |
107 |
Correct |
84 ms |
282196 KB |
Output is correct |
108 |
Correct |
88 ms |
282192 KB |
Output is correct |
109 |
Correct |
82 ms |
282092 KB |
Output is correct |
110 |
Correct |
90 ms |
283160 KB |
Output is correct |
111 |
Correct |
97 ms |
284504 KB |
Output is correct |
112 |
Correct |
90 ms |
283224 KB |
Output is correct |
113 |
Correct |
89 ms |
283220 KB |
Output is correct |
114 |
Correct |
96 ms |
283216 KB |
Output is correct |
115 |
Correct |
92 ms |
283332 KB |
Output is correct |
116 |
Correct |
93 ms |
283476 KB |
Output is correct |
117 |
Correct |
95 ms |
283424 KB |
Output is correct |
118 |
Correct |
95 ms |
283372 KB |
Output is correct |
119 |
Correct |
120 ms |
287308 KB |
Output is correct |
120 |
Correct |
103 ms |
285524 KB |
Output is correct |
121 |
Correct |
103 ms |
285328 KB |
Output is correct |
122 |
Correct |
107 ms |
285520 KB |
Output is correct |
123 |
Correct |
107 ms |
285776 KB |
Output is correct |
124 |
Correct |
227 ms |
298592 KB |
Output is correct |
125 |
Correct |
576 ms |
329956 KB |
Output is correct |
126 |
Correct |
305 ms |
323352 KB |
Output is correct |
127 |
Correct |
308 ms |
323672 KB |
Output is correct |
128 |
Correct |
394 ms |
323364 KB |
Output is correct |
129 |
Correct |
378 ms |
322988 KB |
Output is correct |
130 |
Correct |
694 ms |
335596 KB |
Output is correct |
131 |
Correct |
666 ms |
334132 KB |
Output is correct |
132 |
Correct |
89 ms |
283220 KB |
Output is correct |
133 |
Correct |
82 ms |
282412 KB |
Output is correct |
134 |
Correct |
82 ms |
282244 KB |
Output is correct |
135 |
Correct |
93 ms |
283136 KB |
Output is correct |
136 |
Correct |
84 ms |
283416 KB |
Output is correct |
137 |
Correct |
100 ms |
284508 KB |
Output is correct |
138 |
Correct |
93 ms |
283216 KB |
Output is correct |
139 |
Correct |
96 ms |
283220 KB |
Output is correct |
140 |
Correct |
90 ms |
283264 KB |
Output is correct |
141 |
Correct |
91 ms |
283220 KB |
Output is correct |
142 |
Correct |
95 ms |
283168 KB |
Output is correct |
143 |
Correct |
91 ms |
283220 KB |
Output is correct |
144 |
Correct |
84 ms |
283624 KB |
Output is correct |
145 |
Correct |
86 ms |
283568 KB |
Output is correct |
146 |
Correct |
88 ms |
283656 KB |
Output is correct |
147 |
Correct |
89 ms |
283220 KB |
Output is correct |
148 |
Correct |
91 ms |
283652 KB |
Output is correct |
149 |
Correct |
90 ms |
283732 KB |
Output is correct |
150 |
Correct |
98 ms |
283476 KB |
Output is correct |
151 |
Correct |
93 ms |
283224 KB |
Output is correct |
152 |
Correct |
102 ms |
283220 KB |
Output is correct |
153 |
Correct |
89 ms |
283216 KB |
Output is correct |
154 |
Correct |
102 ms |
285520 KB |
Output is correct |
155 |
Correct |
88 ms |
283472 KB |
Output is correct |
156 |
Correct |
120 ms |
287180 KB |
Output is correct |
157 |
Correct |
105 ms |
285100 KB |
Output is correct |
158 |
Correct |
100 ms |
285392 KB |
Output is correct |
159 |
Correct |
108 ms |
285520 KB |
Output is correct |
160 |
Correct |
102 ms |
285528 KB |
Output is correct |
161 |
Correct |
99 ms |
285576 KB |
Output is correct |
162 |
Correct |
109 ms |
285416 KB |
Output is correct |
163 |
Correct |
101 ms |
285544 KB |
Output is correct |
164 |
Correct |
88 ms |
286116 KB |
Output is correct |
165 |
Correct |
89 ms |
286116 KB |
Output is correct |
166 |
Correct |
99 ms |
286012 KB |
Output is correct |
167 |
Correct |
106 ms |
285368 KB |
Output is correct |
168 |
Correct |
104 ms |
285604 KB |
Output is correct |
169 |
Correct |
107 ms |
285780 KB |
Output is correct |
170 |
Correct |
109 ms |
286012 KB |
Output is correct |
171 |
Correct |
113 ms |
285524 KB |
Output is correct |
172 |
Correct |
113 ms |
285524 KB |
Output is correct |
173 |
Correct |
104 ms |
285552 KB |
Output is correct |
174 |
Correct |
126 ms |
285900 KB |
Output is correct |
175 |
Correct |
139 ms |
289108 KB |
Output is correct |
176 |
Incorrect |
173 ms |
297476 KB |
Output isn't correct |
177 |
Halted |
0 ms |
0 KB |
- |