//Sylwia Sapkowska
#include <bits/stdc++.h>
#pragma GCC optimize("O3", "unroll-loops")
using namespace std;
void __print(int x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(long double x) {cerr << x;}
void __print(char x) {cerr << "'" << x << "'";}
void __print(const char *x) {cerr << '"' << x << '"';}
void __print(const string &x) {cerr << '"' << x << '"';}
void __print(bool x) {cerr << (x ? "true" : "false");}
template<typename T, typename V>
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ", "; __print(x.second); cerr << '}';}
template<typename T>
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? ", " : ""), __print(i); cerr << "}";}
void _print() {cerr << "]\n";}
template <typename T, typename... V>
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
#ifdef LOCAL
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define int long long
typedef pair<int, int> T;
const int oo = 1e18, oo2 = 1e9+7, K = 30;
const int mod = 998244353;
void solve(){
int n, m, k; cin >> n >> m >> k;
T s, e; cin >> s.first >> s.second;
cin >> e.first >> e.second;
vector a(n+1, vector<char>(m+1));
for (int i = 1; i<=n; i++){
for (int j = 1; j<=m; j++){
cin >> a[i][j];
}
}
auto in = [&](T ss){
return ss.first >= 1 && ss.second >= 1 && ss.first <= n && ss.second <= m;
};
queue<T>q, q2;
vector<set<int>>tab(n+1);
for (int i = 1; i<=n; i++){
for (int j = 1; j<=m; j++){
tab[i].insert(j);
}
}
vector<int>X = {-1, 1, 0, 0};
vector<int>Y = {0, 0, -1, 1};
vector dist(n+1, vector<int>(m+1, oo));
dist[s.first][s.second] = 0;
q.push(s);
tab[s.first].erase(s.second);
while (dist[e.first][e.second] == oo){
while ((int)q.size()){
auto v = q.front(); q.pop();
for (int ck = 0; ck < 4; ck++){
T x = {v.first + X[ck], v.second + Y[ck]};
if (!in(x)) continue;
if (a[x.first][x.second] == '.'){
if (dist[x.first][x.second] == oo){
dist[x.first][x.second] = dist[v.first][v.second];
tab[x.first].erase(x.second);
q.push(x);
}
}
}
q2.push(v);
}
auto v = q2.front(); q2.pop();
debug(v);
//?opt - set aktywnych wierszy?
for (int i = max(1ll, v.first - k); i<=min(n, v.first+k); i++){
int from = (i == v.first - k || i == v.first + k ? max(1ll, v.second-k+1) : max(1ll, v.second-k));
int to = (i == v.first - k || i == v.first + k ? min(m, v.second+k-1) : min(m, v.second+k));
for (auto now = tab[i].lower_bound(from); now != tab[i].end() && *now <= to; now++){
dist[i][*now] = dist[v.first][v.second]+1;
q.push({i, *now});
}
while (1){
auto it2 = tab[i].lower_bound(from);
if (it2 == tab[i].end() || *it2 > to) break;
tab[i].erase(it2);
}
}
}
// for (int i = 1; i<=n; i++){
// for (int j = 1; j<=m; j++){
// cerr << dist[i][j] << " ";
// }
// cerr << "\n";
// }
cout << dist[e.first][e.second] << "\n";
}
int32_t main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
//cin >> t;
while (t--) solve();
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
324 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
13 ms |
3756 KB |
Output is correct |
20 |
Correct |
10 ms |
3668 KB |
Output is correct |
21 |
Correct |
13 ms |
3820 KB |
Output is correct |
22 |
Correct |
16 ms |
3764 KB |
Output is correct |
23 |
Correct |
12 ms |
3668 KB |
Output is correct |
24 |
Correct |
14 ms |
4680 KB |
Output is correct |
25 |
Correct |
16 ms |
4692 KB |
Output is correct |
26 |
Correct |
7 ms |
3796 KB |
Output is correct |
27 |
Correct |
6 ms |
3668 KB |
Output is correct |
28 |
Correct |
10 ms |
3652 KB |
Output is correct |
29 |
Correct |
36 ms |
8800 KB |
Output is correct |
30 |
Correct |
17 ms |
4308 KB |
Output is correct |
31 |
Correct |
32 ms |
8904 KB |
Output is correct |
32 |
Correct |
45 ms |
8876 KB |
Output is correct |
33 |
Correct |
36 ms |
8868 KB |
Output is correct |
34 |
Correct |
47 ms |
11324 KB |
Output is correct |
35 |
Correct |
52 ms |
11316 KB |
Output is correct |
36 |
Correct |
37 ms |
8980 KB |
Output is correct |
37 |
Correct |
39 ms |
8892 KB |
Output is correct |
38 |
Correct |
16 ms |
8832 KB |
Output is correct |
39 |
Correct |
515 ms |
85604 KB |
Output is correct |
40 |
Correct |
30 ms |
10108 KB |
Output is correct |
41 |
Correct |
44 ms |
13844 KB |
Output is correct |
42 |
Correct |
65 ms |
12504 KB |
Output is correct |
43 |
Correct |
71 ms |
16004 KB |
Output is correct |
44 |
Correct |
207 ms |
44492 KB |
Output is correct |
45 |
Correct |
201 ms |
48500 KB |
Output is correct |
46 |
Correct |
524 ms |
86100 KB |
Output is correct |
47 |
Correct |
485 ms |
85600 KB |
Output is correct |
48 |
Correct |
447 ms |
85536 KB |
Output is correct |
49 |
Correct |
500 ms |
110280 KB |
Output is correct |
50 |
Correct |
501 ms |
110524 KB |
Output is correct |
51 |
Correct |
456 ms |
85604 KB |
Output is correct |
52 |
Correct |
363 ms |
85668 KB |
Output is correct |
53 |
Correct |
484 ms |
85528 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
320 KB |
Output is correct |
2 |
Correct |
0 ms |
320 KB |
Output is correct |
3 |
Correct |
1 ms |
252 KB |
Output is correct |
4 |
Correct |
0 ms |
316 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
320 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
324 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
316 KB |
Output is correct |
16 |
Correct |
1 ms |
320 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
320 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
1 ms |
324 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
320 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
316 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
316 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
1 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
5 ms |
2388 KB |
Output is correct |
26 |
Correct |
11 ms |
3636 KB |
Output is correct |
27 |
Correct |
11 ms |
3804 KB |
Output is correct |
28 |
Correct |
10 ms |
3784 KB |
Output is correct |
29 |
Correct |
7 ms |
3780 KB |
Output is correct |
30 |
Correct |
7 ms |
3668 KB |
Output is correct |
31 |
Correct |
47 ms |
3752 KB |
Output is correct |
32 |
Correct |
8 ms |
3796 KB |
Output is correct |
33 |
Correct |
6 ms |
3668 KB |
Output is correct |
34 |
Correct |
30 ms |
7876 KB |
Output is correct |
35 |
Correct |
30 ms |
8912 KB |
Output is correct |
36 |
Correct |
33 ms |
8932 KB |
Output is correct |
37 |
Correct |
17 ms |
8820 KB |
Output is correct |
38 |
Correct |
17 ms |
8776 KB |
Output is correct |
39 |
Correct |
116 ms |
28324 KB |
Output is correct |
40 |
Correct |
388 ms |
81664 KB |
Output is correct |
41 |
Correct |
561 ms |
86120 KB |
Output is correct |
42 |
Correct |
520 ms |
86080 KB |
Output is correct |
43 |
Correct |
183 ms |
85536 KB |
Output is correct |
44 |
Correct |
184 ms |
85604 KB |
Output is correct |
45 |
Correct |
405 ms |
98252 KB |
Output is correct |
46 |
Correct |
406 ms |
98180 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
320 KB |
Output is correct |
2 |
Correct |
0 ms |
320 KB |
Output is correct |
3 |
Correct |
1 ms |
252 KB |
Output is correct |
4 |
Correct |
0 ms |
316 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
320 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
324 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
316 KB |
Output is correct |
16 |
Correct |
1 ms |
320 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
320 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
1 ms |
324 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
13 ms |
3744 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
596 KB |
Output is correct |
36 |
Correct |
5 ms |
2388 KB |
Output is correct |
37 |
Correct |
13 ms |
3668 KB |
Output is correct |
38 |
Correct |
11 ms |
3716 KB |
Output is correct |
39 |
Correct |
11 ms |
3796 KB |
Output is correct |
40 |
Correct |
16 ms |
3668 KB |
Output is correct |
41 |
Correct |
12 ms |
3748 KB |
Output is correct |
42 |
Correct |
11 ms |
3796 KB |
Output is correct |
43 |
Correct |
7 ms |
3668 KB |
Output is correct |
44 |
Correct |
7 ms |
3668 KB |
Output is correct |
45 |
Correct |
15 ms |
4692 KB |
Output is correct |
46 |
Correct |
17 ms |
4692 KB |
Output is correct |
47 |
Correct |
14 ms |
4164 KB |
Output is correct |
48 |
Correct |
37 ms |
3700 KB |
Output is correct |
49 |
Correct |
45 ms |
3732 KB |
Output is correct |
50 |
Correct |
80 ms |
3752 KB |
Output is correct |
51 |
Correct |
48 ms |
3744 KB |
Output is correct |
52 |
Correct |
6 ms |
3668 KB |
Output is correct |
53 |
Correct |
6 ms |
3768 KB |
Output is correct |
54 |
Correct |
13 ms |
3736 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
320 KB |
Output is correct |
2 |
Correct |
0 ms |
320 KB |
Output is correct |
3 |
Correct |
1 ms |
252 KB |
Output is correct |
4 |
Correct |
0 ms |
316 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
320 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
324 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
316 KB |
Output is correct |
16 |
Correct |
1 ms |
320 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
320 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
1 ms |
324 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
13 ms |
3744 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
596 KB |
Output is correct |
36 |
Correct |
5 ms |
2388 KB |
Output is correct |
37 |
Correct |
13 ms |
3668 KB |
Output is correct |
38 |
Correct |
11 ms |
3716 KB |
Output is correct |
39 |
Correct |
11 ms |
3796 KB |
Output is correct |
40 |
Correct |
16 ms |
3668 KB |
Output is correct |
41 |
Correct |
12 ms |
3748 KB |
Output is correct |
42 |
Correct |
11 ms |
3796 KB |
Output is correct |
43 |
Correct |
7 ms |
3668 KB |
Output is correct |
44 |
Correct |
7 ms |
3668 KB |
Output is correct |
45 |
Correct |
15 ms |
4692 KB |
Output is correct |
46 |
Correct |
17 ms |
4692 KB |
Output is correct |
47 |
Correct |
14 ms |
4164 KB |
Output is correct |
48 |
Correct |
37 ms |
3700 KB |
Output is correct |
49 |
Correct |
45 ms |
3732 KB |
Output is correct |
50 |
Correct |
80 ms |
3752 KB |
Output is correct |
51 |
Correct |
48 ms |
3744 KB |
Output is correct |
52 |
Correct |
6 ms |
3668 KB |
Output is correct |
53 |
Correct |
6 ms |
3768 KB |
Output is correct |
54 |
Correct |
13 ms |
3736 KB |
Output is correct |
55 |
Correct |
37 ms |
8788 KB |
Output is correct |
56 |
Correct |
17 ms |
4292 KB |
Output is correct |
57 |
Correct |
28 ms |
7884 KB |
Output is correct |
58 |
Correct |
44 ms |
8172 KB |
Output is correct |
59 |
Correct |
30 ms |
8908 KB |
Output is correct |
60 |
Correct |
45 ms |
8868 KB |
Output is correct |
61 |
Correct |
36 ms |
8856 KB |
Output is correct |
62 |
Correct |
31 ms |
8880 KB |
Output is correct |
63 |
Correct |
17 ms |
8836 KB |
Output is correct |
64 |
Correct |
17 ms |
8884 KB |
Output is correct |
65 |
Correct |
44 ms |
11328 KB |
Output is correct |
66 |
Correct |
50 ms |
11216 KB |
Output is correct |
67 |
Correct |
54 ms |
9952 KB |
Output is correct |
68 |
Correct |
115 ms |
8932 KB |
Output is correct |
69 |
Correct |
226 ms |
8896 KB |
Output is correct |
70 |
Correct |
334 ms |
8876 KB |
Output is correct |
71 |
Correct |
389 ms |
8916 KB |
Output is correct |
72 |
Correct |
38 ms |
8876 KB |
Output is correct |
73 |
Correct |
41 ms |
8880 KB |
Output is correct |
74 |
Correct |
18 ms |
8996 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
324 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
13 ms |
3756 KB |
Output is correct |
20 |
Correct |
10 ms |
3668 KB |
Output is correct |
21 |
Correct |
13 ms |
3820 KB |
Output is correct |
22 |
Correct |
16 ms |
3764 KB |
Output is correct |
23 |
Correct |
12 ms |
3668 KB |
Output is correct |
24 |
Correct |
14 ms |
4680 KB |
Output is correct |
25 |
Correct |
16 ms |
4692 KB |
Output is correct |
26 |
Correct |
7 ms |
3796 KB |
Output is correct |
27 |
Correct |
6 ms |
3668 KB |
Output is correct |
28 |
Correct |
10 ms |
3652 KB |
Output is correct |
29 |
Correct |
36 ms |
8800 KB |
Output is correct |
30 |
Correct |
17 ms |
4308 KB |
Output is correct |
31 |
Correct |
32 ms |
8904 KB |
Output is correct |
32 |
Correct |
45 ms |
8876 KB |
Output is correct |
33 |
Correct |
36 ms |
8868 KB |
Output is correct |
34 |
Correct |
47 ms |
11324 KB |
Output is correct |
35 |
Correct |
52 ms |
11316 KB |
Output is correct |
36 |
Correct |
37 ms |
8980 KB |
Output is correct |
37 |
Correct |
39 ms |
8892 KB |
Output is correct |
38 |
Correct |
16 ms |
8832 KB |
Output is correct |
39 |
Correct |
515 ms |
85604 KB |
Output is correct |
40 |
Correct |
30 ms |
10108 KB |
Output is correct |
41 |
Correct |
44 ms |
13844 KB |
Output is correct |
42 |
Correct |
65 ms |
12504 KB |
Output is correct |
43 |
Correct |
71 ms |
16004 KB |
Output is correct |
44 |
Correct |
207 ms |
44492 KB |
Output is correct |
45 |
Correct |
201 ms |
48500 KB |
Output is correct |
46 |
Correct |
524 ms |
86100 KB |
Output is correct |
47 |
Correct |
485 ms |
85600 KB |
Output is correct |
48 |
Correct |
447 ms |
85536 KB |
Output is correct |
49 |
Correct |
500 ms |
110280 KB |
Output is correct |
50 |
Correct |
501 ms |
110524 KB |
Output is correct |
51 |
Correct |
456 ms |
85604 KB |
Output is correct |
52 |
Correct |
363 ms |
85668 KB |
Output is correct |
53 |
Correct |
484 ms |
85528 KB |
Output is correct |
54 |
Correct |
1 ms |
320 KB |
Output is correct |
55 |
Correct |
0 ms |
320 KB |
Output is correct |
56 |
Correct |
1 ms |
252 KB |
Output is correct |
57 |
Correct |
0 ms |
316 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
1 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
320 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
324 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
316 KB |
Output is correct |
69 |
Correct |
1 ms |
320 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
1 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
320 KB |
Output is correct |
74 |
Correct |
1 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
1 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
212 KB |
Output is correct |
80 |
Correct |
1 ms |
324 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
320 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
316 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
316 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
1 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
340 KB |
Output is correct |
106 |
Correct |
1 ms |
340 KB |
Output is correct |
107 |
Correct |
1 ms |
340 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
5 ms |
2388 KB |
Output is correct |
111 |
Correct |
11 ms |
3636 KB |
Output is correct |
112 |
Correct |
11 ms |
3804 KB |
Output is correct |
113 |
Correct |
10 ms |
3784 KB |
Output is correct |
114 |
Correct |
7 ms |
3780 KB |
Output is correct |
115 |
Correct |
7 ms |
3668 KB |
Output is correct |
116 |
Correct |
47 ms |
3752 KB |
Output is correct |
117 |
Correct |
8 ms |
3796 KB |
Output is correct |
118 |
Correct |
6 ms |
3668 KB |
Output is correct |
119 |
Correct |
30 ms |
7876 KB |
Output is correct |
120 |
Correct |
30 ms |
8912 KB |
Output is correct |
121 |
Correct |
33 ms |
8932 KB |
Output is correct |
122 |
Correct |
17 ms |
8820 KB |
Output is correct |
123 |
Correct |
17 ms |
8776 KB |
Output is correct |
124 |
Correct |
116 ms |
28324 KB |
Output is correct |
125 |
Correct |
388 ms |
81664 KB |
Output is correct |
126 |
Correct |
561 ms |
86120 KB |
Output is correct |
127 |
Correct |
520 ms |
86080 KB |
Output is correct |
128 |
Correct |
183 ms |
85536 KB |
Output is correct |
129 |
Correct |
184 ms |
85604 KB |
Output is correct |
130 |
Correct |
405 ms |
98252 KB |
Output is correct |
131 |
Correct |
406 ms |
98180 KB |
Output is correct |
132 |
Correct |
13 ms |
3744 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
596 KB |
Output is correct |
135 |
Correct |
5 ms |
2388 KB |
Output is correct |
136 |
Correct |
13 ms |
3668 KB |
Output is correct |
137 |
Correct |
11 ms |
3716 KB |
Output is correct |
138 |
Correct |
11 ms |
3796 KB |
Output is correct |
139 |
Correct |
16 ms |
3668 KB |
Output is correct |
140 |
Correct |
12 ms |
3748 KB |
Output is correct |
141 |
Correct |
11 ms |
3796 KB |
Output is correct |
142 |
Correct |
7 ms |
3668 KB |
Output is correct |
143 |
Correct |
7 ms |
3668 KB |
Output is correct |
144 |
Correct |
15 ms |
4692 KB |
Output is correct |
145 |
Correct |
17 ms |
4692 KB |
Output is correct |
146 |
Correct |
14 ms |
4164 KB |
Output is correct |
147 |
Correct |
37 ms |
3700 KB |
Output is correct |
148 |
Correct |
45 ms |
3732 KB |
Output is correct |
149 |
Correct |
80 ms |
3752 KB |
Output is correct |
150 |
Correct |
48 ms |
3744 KB |
Output is correct |
151 |
Correct |
6 ms |
3668 KB |
Output is correct |
152 |
Correct |
6 ms |
3768 KB |
Output is correct |
153 |
Correct |
13 ms |
3736 KB |
Output is correct |
154 |
Correct |
37 ms |
8788 KB |
Output is correct |
155 |
Correct |
17 ms |
4292 KB |
Output is correct |
156 |
Correct |
28 ms |
7884 KB |
Output is correct |
157 |
Correct |
44 ms |
8172 KB |
Output is correct |
158 |
Correct |
30 ms |
8908 KB |
Output is correct |
159 |
Correct |
45 ms |
8868 KB |
Output is correct |
160 |
Correct |
36 ms |
8856 KB |
Output is correct |
161 |
Correct |
31 ms |
8880 KB |
Output is correct |
162 |
Correct |
17 ms |
8836 KB |
Output is correct |
163 |
Correct |
17 ms |
8884 KB |
Output is correct |
164 |
Correct |
44 ms |
11328 KB |
Output is correct |
165 |
Correct |
50 ms |
11216 KB |
Output is correct |
166 |
Correct |
54 ms |
9952 KB |
Output is correct |
167 |
Correct |
115 ms |
8932 KB |
Output is correct |
168 |
Correct |
226 ms |
8896 KB |
Output is correct |
169 |
Correct |
334 ms |
8876 KB |
Output is correct |
170 |
Correct |
389 ms |
8916 KB |
Output is correct |
171 |
Correct |
38 ms |
8876 KB |
Output is correct |
172 |
Correct |
41 ms |
8880 KB |
Output is correct |
173 |
Correct |
18 ms |
8996 KB |
Output is correct |
174 |
Correct |
41 ms |
11640 KB |
Output is correct |
175 |
Correct |
570 ms |
19432 KB |
Output is correct |
176 |
Correct |
197 ms |
47808 KB |
Output is correct |
177 |
Correct |
847 ms |
58076 KB |
Output is correct |
178 |
Correct |
271 ms |
75216 KB |
Output is correct |
179 |
Execution timed out |
2072 ms |
86056 KB |
Time limit exceeded |
180 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
324 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
13 ms |
3756 KB |
Output is correct |
20 |
Correct |
10 ms |
3668 KB |
Output is correct |
21 |
Correct |
13 ms |
3820 KB |
Output is correct |
22 |
Correct |
16 ms |
3764 KB |
Output is correct |
23 |
Correct |
12 ms |
3668 KB |
Output is correct |
24 |
Correct |
14 ms |
4680 KB |
Output is correct |
25 |
Correct |
16 ms |
4692 KB |
Output is correct |
26 |
Correct |
7 ms |
3796 KB |
Output is correct |
27 |
Correct |
6 ms |
3668 KB |
Output is correct |
28 |
Correct |
10 ms |
3652 KB |
Output is correct |
29 |
Correct |
36 ms |
8800 KB |
Output is correct |
30 |
Correct |
17 ms |
4308 KB |
Output is correct |
31 |
Correct |
32 ms |
8904 KB |
Output is correct |
32 |
Correct |
45 ms |
8876 KB |
Output is correct |
33 |
Correct |
36 ms |
8868 KB |
Output is correct |
34 |
Correct |
47 ms |
11324 KB |
Output is correct |
35 |
Correct |
52 ms |
11316 KB |
Output is correct |
36 |
Correct |
37 ms |
8980 KB |
Output is correct |
37 |
Correct |
39 ms |
8892 KB |
Output is correct |
38 |
Correct |
16 ms |
8832 KB |
Output is correct |
39 |
Correct |
515 ms |
85604 KB |
Output is correct |
40 |
Correct |
30 ms |
10108 KB |
Output is correct |
41 |
Correct |
44 ms |
13844 KB |
Output is correct |
42 |
Correct |
65 ms |
12504 KB |
Output is correct |
43 |
Correct |
71 ms |
16004 KB |
Output is correct |
44 |
Correct |
207 ms |
44492 KB |
Output is correct |
45 |
Correct |
201 ms |
48500 KB |
Output is correct |
46 |
Correct |
524 ms |
86100 KB |
Output is correct |
47 |
Correct |
485 ms |
85600 KB |
Output is correct |
48 |
Correct |
447 ms |
85536 KB |
Output is correct |
49 |
Correct |
500 ms |
110280 KB |
Output is correct |
50 |
Correct |
501 ms |
110524 KB |
Output is correct |
51 |
Correct |
456 ms |
85604 KB |
Output is correct |
52 |
Correct |
363 ms |
85668 KB |
Output is correct |
53 |
Correct |
484 ms |
85528 KB |
Output is correct |
54 |
Correct |
1 ms |
320 KB |
Output is correct |
55 |
Correct |
0 ms |
320 KB |
Output is correct |
56 |
Correct |
1 ms |
252 KB |
Output is correct |
57 |
Correct |
0 ms |
316 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
1 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
320 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
324 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
316 KB |
Output is correct |
69 |
Correct |
1 ms |
320 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
1 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
320 KB |
Output is correct |
74 |
Correct |
1 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
1 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
212 KB |
Output is correct |
80 |
Correct |
1 ms |
324 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
320 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
316 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
316 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
1 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
340 KB |
Output is correct |
106 |
Correct |
1 ms |
340 KB |
Output is correct |
107 |
Correct |
1 ms |
340 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
5 ms |
2388 KB |
Output is correct |
111 |
Correct |
11 ms |
3636 KB |
Output is correct |
112 |
Correct |
11 ms |
3804 KB |
Output is correct |
113 |
Correct |
10 ms |
3784 KB |
Output is correct |
114 |
Correct |
7 ms |
3780 KB |
Output is correct |
115 |
Correct |
7 ms |
3668 KB |
Output is correct |
116 |
Correct |
47 ms |
3752 KB |
Output is correct |
117 |
Correct |
8 ms |
3796 KB |
Output is correct |
118 |
Correct |
6 ms |
3668 KB |
Output is correct |
119 |
Correct |
30 ms |
7876 KB |
Output is correct |
120 |
Correct |
30 ms |
8912 KB |
Output is correct |
121 |
Correct |
33 ms |
8932 KB |
Output is correct |
122 |
Correct |
17 ms |
8820 KB |
Output is correct |
123 |
Correct |
17 ms |
8776 KB |
Output is correct |
124 |
Correct |
116 ms |
28324 KB |
Output is correct |
125 |
Correct |
388 ms |
81664 KB |
Output is correct |
126 |
Correct |
561 ms |
86120 KB |
Output is correct |
127 |
Correct |
520 ms |
86080 KB |
Output is correct |
128 |
Correct |
183 ms |
85536 KB |
Output is correct |
129 |
Correct |
184 ms |
85604 KB |
Output is correct |
130 |
Correct |
405 ms |
98252 KB |
Output is correct |
131 |
Correct |
406 ms |
98180 KB |
Output is correct |
132 |
Correct |
13 ms |
3744 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
596 KB |
Output is correct |
135 |
Correct |
5 ms |
2388 KB |
Output is correct |
136 |
Correct |
13 ms |
3668 KB |
Output is correct |
137 |
Correct |
11 ms |
3716 KB |
Output is correct |
138 |
Correct |
11 ms |
3796 KB |
Output is correct |
139 |
Correct |
16 ms |
3668 KB |
Output is correct |
140 |
Correct |
12 ms |
3748 KB |
Output is correct |
141 |
Correct |
11 ms |
3796 KB |
Output is correct |
142 |
Correct |
7 ms |
3668 KB |
Output is correct |
143 |
Correct |
7 ms |
3668 KB |
Output is correct |
144 |
Correct |
15 ms |
4692 KB |
Output is correct |
145 |
Correct |
17 ms |
4692 KB |
Output is correct |
146 |
Correct |
14 ms |
4164 KB |
Output is correct |
147 |
Correct |
37 ms |
3700 KB |
Output is correct |
148 |
Correct |
45 ms |
3732 KB |
Output is correct |
149 |
Correct |
80 ms |
3752 KB |
Output is correct |
150 |
Correct |
48 ms |
3744 KB |
Output is correct |
151 |
Correct |
6 ms |
3668 KB |
Output is correct |
152 |
Correct |
6 ms |
3768 KB |
Output is correct |
153 |
Correct |
13 ms |
3736 KB |
Output is correct |
154 |
Correct |
37 ms |
8788 KB |
Output is correct |
155 |
Correct |
17 ms |
4292 KB |
Output is correct |
156 |
Correct |
28 ms |
7884 KB |
Output is correct |
157 |
Correct |
44 ms |
8172 KB |
Output is correct |
158 |
Correct |
30 ms |
8908 KB |
Output is correct |
159 |
Correct |
45 ms |
8868 KB |
Output is correct |
160 |
Correct |
36 ms |
8856 KB |
Output is correct |
161 |
Correct |
31 ms |
8880 KB |
Output is correct |
162 |
Correct |
17 ms |
8836 KB |
Output is correct |
163 |
Correct |
17 ms |
8884 KB |
Output is correct |
164 |
Correct |
44 ms |
11328 KB |
Output is correct |
165 |
Correct |
50 ms |
11216 KB |
Output is correct |
166 |
Correct |
54 ms |
9952 KB |
Output is correct |
167 |
Correct |
115 ms |
8932 KB |
Output is correct |
168 |
Correct |
226 ms |
8896 KB |
Output is correct |
169 |
Correct |
334 ms |
8876 KB |
Output is correct |
170 |
Correct |
389 ms |
8916 KB |
Output is correct |
171 |
Correct |
38 ms |
8876 KB |
Output is correct |
172 |
Correct |
41 ms |
8880 KB |
Output is correct |
173 |
Correct |
18 ms |
8996 KB |
Output is correct |
174 |
Correct |
41 ms |
11640 KB |
Output is correct |
175 |
Correct |
570 ms |
19432 KB |
Output is correct |
176 |
Correct |
197 ms |
47808 KB |
Output is correct |
177 |
Correct |
847 ms |
58076 KB |
Output is correct |
178 |
Correct |
271 ms |
75216 KB |
Output is correct |
179 |
Execution timed out |
2072 ms |
86056 KB |
Time limit exceeded |
180 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
324 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
316 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
320 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
13 ms |
3756 KB |
Output is correct |
20 |
Correct |
10 ms |
3668 KB |
Output is correct |
21 |
Correct |
13 ms |
3820 KB |
Output is correct |
22 |
Correct |
16 ms |
3764 KB |
Output is correct |
23 |
Correct |
12 ms |
3668 KB |
Output is correct |
24 |
Correct |
14 ms |
4680 KB |
Output is correct |
25 |
Correct |
16 ms |
4692 KB |
Output is correct |
26 |
Correct |
7 ms |
3796 KB |
Output is correct |
27 |
Correct |
6 ms |
3668 KB |
Output is correct |
28 |
Correct |
10 ms |
3652 KB |
Output is correct |
29 |
Correct |
36 ms |
8800 KB |
Output is correct |
30 |
Correct |
17 ms |
4308 KB |
Output is correct |
31 |
Correct |
32 ms |
8904 KB |
Output is correct |
32 |
Correct |
45 ms |
8876 KB |
Output is correct |
33 |
Correct |
36 ms |
8868 KB |
Output is correct |
34 |
Correct |
47 ms |
11324 KB |
Output is correct |
35 |
Correct |
52 ms |
11316 KB |
Output is correct |
36 |
Correct |
37 ms |
8980 KB |
Output is correct |
37 |
Correct |
39 ms |
8892 KB |
Output is correct |
38 |
Correct |
16 ms |
8832 KB |
Output is correct |
39 |
Correct |
515 ms |
85604 KB |
Output is correct |
40 |
Correct |
30 ms |
10108 KB |
Output is correct |
41 |
Correct |
44 ms |
13844 KB |
Output is correct |
42 |
Correct |
65 ms |
12504 KB |
Output is correct |
43 |
Correct |
71 ms |
16004 KB |
Output is correct |
44 |
Correct |
207 ms |
44492 KB |
Output is correct |
45 |
Correct |
201 ms |
48500 KB |
Output is correct |
46 |
Correct |
524 ms |
86100 KB |
Output is correct |
47 |
Correct |
485 ms |
85600 KB |
Output is correct |
48 |
Correct |
447 ms |
85536 KB |
Output is correct |
49 |
Correct |
500 ms |
110280 KB |
Output is correct |
50 |
Correct |
501 ms |
110524 KB |
Output is correct |
51 |
Correct |
456 ms |
85604 KB |
Output is correct |
52 |
Correct |
363 ms |
85668 KB |
Output is correct |
53 |
Correct |
484 ms |
85528 KB |
Output is correct |
54 |
Correct |
1 ms |
320 KB |
Output is correct |
55 |
Correct |
0 ms |
320 KB |
Output is correct |
56 |
Correct |
1 ms |
252 KB |
Output is correct |
57 |
Correct |
0 ms |
316 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
1 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
320 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
324 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
316 KB |
Output is correct |
69 |
Correct |
1 ms |
320 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
1 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
320 KB |
Output is correct |
74 |
Correct |
1 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
1 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
1 ms |
212 KB |
Output is correct |
79 |
Correct |
1 ms |
212 KB |
Output is correct |
80 |
Correct |
1 ms |
324 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
1 ms |
212 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
320 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
212 KB |
Output is correct |
99 |
Correct |
1 ms |
316 KB |
Output is correct |
100 |
Correct |
1 ms |
212 KB |
Output is correct |
101 |
Correct |
1 ms |
316 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
1 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
1 ms |
340 KB |
Output is correct |
106 |
Correct |
1 ms |
340 KB |
Output is correct |
107 |
Correct |
1 ms |
340 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
5 ms |
2388 KB |
Output is correct |
111 |
Correct |
11 ms |
3636 KB |
Output is correct |
112 |
Correct |
11 ms |
3804 KB |
Output is correct |
113 |
Correct |
10 ms |
3784 KB |
Output is correct |
114 |
Correct |
7 ms |
3780 KB |
Output is correct |
115 |
Correct |
7 ms |
3668 KB |
Output is correct |
116 |
Correct |
47 ms |
3752 KB |
Output is correct |
117 |
Correct |
8 ms |
3796 KB |
Output is correct |
118 |
Correct |
6 ms |
3668 KB |
Output is correct |
119 |
Correct |
30 ms |
7876 KB |
Output is correct |
120 |
Correct |
30 ms |
8912 KB |
Output is correct |
121 |
Correct |
33 ms |
8932 KB |
Output is correct |
122 |
Correct |
17 ms |
8820 KB |
Output is correct |
123 |
Correct |
17 ms |
8776 KB |
Output is correct |
124 |
Correct |
116 ms |
28324 KB |
Output is correct |
125 |
Correct |
388 ms |
81664 KB |
Output is correct |
126 |
Correct |
561 ms |
86120 KB |
Output is correct |
127 |
Correct |
520 ms |
86080 KB |
Output is correct |
128 |
Correct |
183 ms |
85536 KB |
Output is correct |
129 |
Correct |
184 ms |
85604 KB |
Output is correct |
130 |
Correct |
405 ms |
98252 KB |
Output is correct |
131 |
Correct |
406 ms |
98180 KB |
Output is correct |
132 |
Correct |
13 ms |
3744 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
596 KB |
Output is correct |
135 |
Correct |
5 ms |
2388 KB |
Output is correct |
136 |
Correct |
13 ms |
3668 KB |
Output is correct |
137 |
Correct |
11 ms |
3716 KB |
Output is correct |
138 |
Correct |
11 ms |
3796 KB |
Output is correct |
139 |
Correct |
16 ms |
3668 KB |
Output is correct |
140 |
Correct |
12 ms |
3748 KB |
Output is correct |
141 |
Correct |
11 ms |
3796 KB |
Output is correct |
142 |
Correct |
7 ms |
3668 KB |
Output is correct |
143 |
Correct |
7 ms |
3668 KB |
Output is correct |
144 |
Correct |
15 ms |
4692 KB |
Output is correct |
145 |
Correct |
17 ms |
4692 KB |
Output is correct |
146 |
Correct |
14 ms |
4164 KB |
Output is correct |
147 |
Correct |
37 ms |
3700 KB |
Output is correct |
148 |
Correct |
45 ms |
3732 KB |
Output is correct |
149 |
Correct |
80 ms |
3752 KB |
Output is correct |
150 |
Correct |
48 ms |
3744 KB |
Output is correct |
151 |
Correct |
6 ms |
3668 KB |
Output is correct |
152 |
Correct |
6 ms |
3768 KB |
Output is correct |
153 |
Correct |
13 ms |
3736 KB |
Output is correct |
154 |
Correct |
37 ms |
8788 KB |
Output is correct |
155 |
Correct |
17 ms |
4292 KB |
Output is correct |
156 |
Correct |
28 ms |
7884 KB |
Output is correct |
157 |
Correct |
44 ms |
8172 KB |
Output is correct |
158 |
Correct |
30 ms |
8908 KB |
Output is correct |
159 |
Correct |
45 ms |
8868 KB |
Output is correct |
160 |
Correct |
36 ms |
8856 KB |
Output is correct |
161 |
Correct |
31 ms |
8880 KB |
Output is correct |
162 |
Correct |
17 ms |
8836 KB |
Output is correct |
163 |
Correct |
17 ms |
8884 KB |
Output is correct |
164 |
Correct |
44 ms |
11328 KB |
Output is correct |
165 |
Correct |
50 ms |
11216 KB |
Output is correct |
166 |
Correct |
54 ms |
9952 KB |
Output is correct |
167 |
Correct |
115 ms |
8932 KB |
Output is correct |
168 |
Correct |
226 ms |
8896 KB |
Output is correct |
169 |
Correct |
334 ms |
8876 KB |
Output is correct |
170 |
Correct |
389 ms |
8916 KB |
Output is correct |
171 |
Correct |
38 ms |
8876 KB |
Output is correct |
172 |
Correct |
41 ms |
8880 KB |
Output is correct |
173 |
Correct |
18 ms |
8996 KB |
Output is correct |
174 |
Correct |
41 ms |
11640 KB |
Output is correct |
175 |
Correct |
570 ms |
19432 KB |
Output is correct |
176 |
Correct |
197 ms |
47808 KB |
Output is correct |
177 |
Correct |
847 ms |
58076 KB |
Output is correct |
178 |
Correct |
271 ms |
75216 KB |
Output is correct |
179 |
Execution timed out |
2072 ms |
86056 KB |
Time limit exceeded |
180 |
Halted |
0 ms |
0 KB |
- |