# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
767023 |
2023-06-26T10:21:43 Z |
sysia |
Maze (JOI23_ho_t3) |
C++17 |
|
2000 ms |
478772 KB |
//Sylwia Sapkowska
#include <bits/stdc++.h>
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
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
typedef pair<int, int> T;
const int oo = 1e9+7;
const int mx = 2455;
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<bitset<mx>>tab(m+1);
for (int j = 1; j<=m; j++){
for (int i = 1; i<=n; i++){
tab[j][i] = 1;
}
}
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.second].set(s.first, 0);
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];
if (x == e) {
cout << dist[x.first][x.second];
exit(0);
}
tab[x.second][x.first] = 0;
q.push(x);
}
}
}
q2.push(v);
}
while ((int)q2.size()){
auto v = q2.front(); q2.pop();
debug(v);
for (int i = max(1, v.second - k); i<=min(m, v.second+k); i++){
int from = (i == v.second - k || i == v.second + k ? max(1, v.first-k+1) : max(1, v.first-k));
int to = (i == v.second - k || i == v.second + k ? min(n, v.first+k-1) : min(n, v.first+k));
debug(i, from, to);
for (int now = tab[i]._Find_next(from-1); now <= to; now = tab[i]._Find_next(now)){
debug(now);
dist[now][i] = dist[v.first][v.second]+1;
if (T{now, i} == e) {
cout << dist[now][i] << "\n";
exit(0);
}
tab[i][now] = 0;
q.push({now, i});
}
}
}
}
// 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);
solve();
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
4 ms |
596 KB |
Output is correct |
20 |
Correct |
13 ms |
15076 KB |
Output is correct |
21 |
Correct |
3 ms |
1108 KB |
Output is correct |
22 |
Correct |
7 ms |
720 KB |
Output is correct |
23 |
Correct |
3 ms |
596 KB |
Output is correct |
24 |
Correct |
15 ms |
19412 KB |
Output is correct |
25 |
Correct |
12 ms |
19412 KB |
Output is correct |
26 |
Correct |
1 ms |
724 KB |
Output is correct |
27 |
Correct |
2 ms |
596 KB |
Output is correct |
28 |
Correct |
3 ms |
596 KB |
Output is correct |
29 |
Correct |
12 ms |
1212 KB |
Output is correct |
30 |
Correct |
9 ms |
10312 KB |
Output is correct |
31 |
Correct |
5 ms |
2288 KB |
Output is correct |
32 |
Correct |
14 ms |
1232 KB |
Output is correct |
33 |
Correct |
7 ms |
1108 KB |
Output is correct |
34 |
Correct |
42 ms |
48056 KB |
Output is correct |
35 |
Correct |
31 ms |
48064 KB |
Output is correct |
36 |
Correct |
8 ms |
1248 KB |
Output is correct |
37 |
Correct |
11 ms |
1236 KB |
Output is correct |
38 |
Correct |
3 ms |
1108 KB |
Output is correct |
39 |
Correct |
85 ms |
8152 KB |
Output is correct |
40 |
Correct |
8 ms |
4512 KB |
Output is correct |
41 |
Correct |
35 ms |
59112 KB |
Output is correct |
42 |
Correct |
22 ms |
1764 KB |
Output is correct |
43 |
Correct |
33 ms |
39592 KB |
Output is correct |
44 |
Correct |
45 ms |
42884 KB |
Output is correct |
45 |
Correct |
52 ms |
54616 KB |
Output is correct |
46 |
Correct |
27 ms |
10928 KB |
Output is correct |
47 |
Correct |
150 ms |
8200 KB |
Output is correct |
48 |
Correct |
68 ms |
8148 KB |
Output is correct |
49 |
Correct |
281 ms |
478772 KB |
Output is correct |
50 |
Correct |
301 ms |
478708 KB |
Output is correct |
51 |
Correct |
104 ms |
8580 KB |
Output is correct |
52 |
Correct |
75 ms |
8308 KB |
Output is correct |
53 |
Correct |
91 ms |
8200 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
596 KB |
Output is correct |
16 |
Correct |
1 ms |
596 KB |
Output is correct |
17 |
Correct |
1 ms |
468 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
212 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
0 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
212 KB |
Output is correct |
31 |
Correct |
0 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
288 KB |
Output is correct |
11 |
Correct |
0 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
596 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
212 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
0 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
1 ms |
596 KB |
Output is correct |
26 |
Correct |
2 ms |
1236 KB |
Output is correct |
27 |
Correct |
2 ms |
1108 KB |
Output is correct |
28 |
Correct |
2 ms |
980 KB |
Output is correct |
29 |
Correct |
1 ms |
724 KB |
Output is correct |
30 |
Correct |
2 ms |
1108 KB |
Output is correct |
31 |
Correct |
40 ms |
956 KB |
Output is correct |
32 |
Correct |
1 ms |
724 KB |
Output is correct |
33 |
Correct |
1 ms |
724 KB |
Output is correct |
34 |
Correct |
4 ms |
1620 KB |
Output is correct |
35 |
Correct |
5 ms |
2260 KB |
Output is correct |
36 |
Correct |
5 ms |
2132 KB |
Output is correct |
37 |
Correct |
3 ms |
1492 KB |
Output is correct |
38 |
Correct |
3 ms |
2260 KB |
Output is correct |
39 |
Correct |
14 ms |
4324 KB |
Output is correct |
40 |
Correct |
51 ms |
16968 KB |
Output is correct |
41 |
Correct |
27 ms |
10956 KB |
Output is correct |
42 |
Correct |
55 ms |
18360 KB |
Output is correct |
43 |
Correct |
24 ms |
12792 KB |
Output is correct |
44 |
Correct |
35 ms |
19648 KB |
Output is correct |
45 |
Correct |
58 ms |
20272 KB |
Output is correct |
46 |
Correct |
50 ms |
17308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
596 KB |
Output is correct |
16 |
Correct |
1 ms |
596 KB |
Output is correct |
17 |
Correct |
1 ms |
468 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
212 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
0 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
212 KB |
Output is correct |
31 |
Correct |
0 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
212 KB |
Output is correct |
33 |
Correct |
4 ms |
708 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
980 KB |
Output is correct |
36 |
Correct |
1 ms |
596 KB |
Output is correct |
37 |
Correct |
9 ms |
15004 KB |
Output is correct |
38 |
Correct |
2 ms |
1236 KB |
Output is correct |
39 |
Correct |
2 ms |
1108 KB |
Output is correct |
40 |
Correct |
6 ms |
644 KB |
Output is correct |
41 |
Correct |
3 ms |
596 KB |
Output is correct |
42 |
Correct |
2 ms |
980 KB |
Output is correct |
43 |
Correct |
1 ms |
724 KB |
Output is correct |
44 |
Correct |
2 ms |
1108 KB |
Output is correct |
45 |
Correct |
14 ms |
19464 KB |
Output is correct |
46 |
Correct |
12 ms |
19540 KB |
Output is correct |
47 |
Correct |
10 ms |
10068 KB |
Output is correct |
48 |
Correct |
20 ms |
1876 KB |
Output is correct |
49 |
Correct |
24 ms |
1364 KB |
Output is correct |
50 |
Correct |
71 ms |
1108 KB |
Output is correct |
51 |
Correct |
34 ms |
972 KB |
Output is correct |
52 |
Correct |
1 ms |
724 KB |
Output is correct |
53 |
Correct |
1 ms |
724 KB |
Output is correct |
54 |
Correct |
3 ms |
596 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
596 KB |
Output is correct |
16 |
Correct |
1 ms |
596 KB |
Output is correct |
17 |
Correct |
1 ms |
468 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
212 KB |
Output is correct |
22 |
Correct |
0 ms |
212 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
0 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
212 KB |
Output is correct |
31 |
Correct |
0 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
212 KB |
Output is correct |
33 |
Correct |
4 ms |
708 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
980 KB |
Output is correct |
36 |
Correct |
1 ms |
596 KB |
Output is correct |
37 |
Correct |
9 ms |
15004 KB |
Output is correct |
38 |
Correct |
2 ms |
1236 KB |
Output is correct |
39 |
Correct |
2 ms |
1108 KB |
Output is correct |
40 |
Correct |
6 ms |
644 KB |
Output is correct |
41 |
Correct |
3 ms |
596 KB |
Output is correct |
42 |
Correct |
2 ms |
980 KB |
Output is correct |
43 |
Correct |
1 ms |
724 KB |
Output is correct |
44 |
Correct |
2 ms |
1108 KB |
Output is correct |
45 |
Correct |
14 ms |
19464 KB |
Output is correct |
46 |
Correct |
12 ms |
19540 KB |
Output is correct |
47 |
Correct |
10 ms |
10068 KB |
Output is correct |
48 |
Correct |
20 ms |
1876 KB |
Output is correct |
49 |
Correct |
24 ms |
1364 KB |
Output is correct |
50 |
Correct |
71 ms |
1108 KB |
Output is correct |
51 |
Correct |
34 ms |
972 KB |
Output is correct |
52 |
Correct |
1 ms |
724 KB |
Output is correct |
53 |
Correct |
1 ms |
724 KB |
Output is correct |
54 |
Correct |
3 ms |
596 KB |
Output is correct |
55 |
Correct |
12 ms |
1208 KB |
Output is correct |
56 |
Correct |
8 ms |
10312 KB |
Output is correct |
57 |
Correct |
5 ms |
1620 KB |
Output is correct |
58 |
Correct |
16 ms |
4308 KB |
Output is correct |
59 |
Correct |
5 ms |
2260 KB |
Output is correct |
60 |
Correct |
15 ms |
1232 KB |
Output is correct |
61 |
Correct |
8 ms |
1108 KB |
Output is correct |
62 |
Correct |
5 ms |
2176 KB |
Output is correct |
63 |
Correct |
3 ms |
1492 KB |
Output is correct |
64 |
Correct |
4 ms |
2260 KB |
Output is correct |
65 |
Correct |
41 ms |
48064 KB |
Output is correct |
66 |
Correct |
35 ms |
48144 KB |
Output is correct |
67 |
Correct |
29 ms |
24648 KB |
Output is correct |
68 |
Correct |
105 ms |
3280 KB |
Output is correct |
69 |
Correct |
133 ms |
2492 KB |
Output is correct |
70 |
Correct |
212 ms |
2004 KB |
Output is correct |
71 |
Correct |
253 ms |
1788 KB |
Output is correct |
72 |
Correct |
8 ms |
1324 KB |
Output is correct |
73 |
Correct |
11 ms |
1236 KB |
Output is correct |
74 |
Correct |
2 ms |
1108 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
4 ms |
596 KB |
Output is correct |
20 |
Correct |
13 ms |
15076 KB |
Output is correct |
21 |
Correct |
3 ms |
1108 KB |
Output is correct |
22 |
Correct |
7 ms |
720 KB |
Output is correct |
23 |
Correct |
3 ms |
596 KB |
Output is correct |
24 |
Correct |
15 ms |
19412 KB |
Output is correct |
25 |
Correct |
12 ms |
19412 KB |
Output is correct |
26 |
Correct |
1 ms |
724 KB |
Output is correct |
27 |
Correct |
2 ms |
596 KB |
Output is correct |
28 |
Correct |
3 ms |
596 KB |
Output is correct |
29 |
Correct |
12 ms |
1212 KB |
Output is correct |
30 |
Correct |
9 ms |
10312 KB |
Output is correct |
31 |
Correct |
5 ms |
2288 KB |
Output is correct |
32 |
Correct |
14 ms |
1232 KB |
Output is correct |
33 |
Correct |
7 ms |
1108 KB |
Output is correct |
34 |
Correct |
42 ms |
48056 KB |
Output is correct |
35 |
Correct |
31 ms |
48064 KB |
Output is correct |
36 |
Correct |
8 ms |
1248 KB |
Output is correct |
37 |
Correct |
11 ms |
1236 KB |
Output is correct |
38 |
Correct |
3 ms |
1108 KB |
Output is correct |
39 |
Correct |
85 ms |
8152 KB |
Output is correct |
40 |
Correct |
8 ms |
4512 KB |
Output is correct |
41 |
Correct |
35 ms |
59112 KB |
Output is correct |
42 |
Correct |
22 ms |
1764 KB |
Output is correct |
43 |
Correct |
33 ms |
39592 KB |
Output is correct |
44 |
Correct |
45 ms |
42884 KB |
Output is correct |
45 |
Correct |
52 ms |
54616 KB |
Output is correct |
46 |
Correct |
27 ms |
10928 KB |
Output is correct |
47 |
Correct |
150 ms |
8200 KB |
Output is correct |
48 |
Correct |
68 ms |
8148 KB |
Output is correct |
49 |
Correct |
281 ms |
478772 KB |
Output is correct |
50 |
Correct |
301 ms |
478708 KB |
Output is correct |
51 |
Correct |
104 ms |
8580 KB |
Output is correct |
52 |
Correct |
75 ms |
8308 KB |
Output is correct |
53 |
Correct |
91 ms |
8200 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
0 ms |
212 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
0 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
0 ms |
596 KB |
Output is correct |
69 |
Correct |
1 ms |
596 KB |
Output is correct |
70 |
Correct |
1 ms |
468 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
0 ms |
340 KB |
Output is correct |
73 |
Correct |
0 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
212 KB |
Output is correct |
76 |
Correct |
0 ms |
212 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
0 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
340 KB |
Output is correct |
80 |
Correct |
0 ms |
340 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
0 ms |
212 KB |
Output is correct |
83 |
Correct |
0 ms |
212 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
212 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
0 ms |
340 KB |
Output is correct |
93 |
Correct |
0 ms |
212 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
288 KB |
Output is correct |
96 |
Correct |
0 ms |
340 KB |
Output is correct |
97 |
Correct |
0 ms |
596 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
0 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
340 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
340 KB |
Output is correct |
107 |
Correct |
0 ms |
340 KB |
Output is correct |
108 |
Correct |
0 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
1 ms |
596 KB |
Output is correct |
111 |
Correct |
2 ms |
1236 KB |
Output is correct |
112 |
Correct |
2 ms |
1108 KB |
Output is correct |
113 |
Correct |
2 ms |
980 KB |
Output is correct |
114 |
Correct |
1 ms |
724 KB |
Output is correct |
115 |
Correct |
2 ms |
1108 KB |
Output is correct |
116 |
Correct |
40 ms |
956 KB |
Output is correct |
117 |
Correct |
1 ms |
724 KB |
Output is correct |
118 |
Correct |
1 ms |
724 KB |
Output is correct |
119 |
Correct |
4 ms |
1620 KB |
Output is correct |
120 |
Correct |
5 ms |
2260 KB |
Output is correct |
121 |
Correct |
5 ms |
2132 KB |
Output is correct |
122 |
Correct |
3 ms |
1492 KB |
Output is correct |
123 |
Correct |
3 ms |
2260 KB |
Output is correct |
124 |
Correct |
14 ms |
4324 KB |
Output is correct |
125 |
Correct |
51 ms |
16968 KB |
Output is correct |
126 |
Correct |
27 ms |
10956 KB |
Output is correct |
127 |
Correct |
55 ms |
18360 KB |
Output is correct |
128 |
Correct |
24 ms |
12792 KB |
Output is correct |
129 |
Correct |
35 ms |
19648 KB |
Output is correct |
130 |
Correct |
58 ms |
20272 KB |
Output is correct |
131 |
Correct |
50 ms |
17308 KB |
Output is correct |
132 |
Correct |
4 ms |
708 KB |
Output is correct |
133 |
Correct |
0 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
980 KB |
Output is correct |
135 |
Correct |
1 ms |
596 KB |
Output is correct |
136 |
Correct |
9 ms |
15004 KB |
Output is correct |
137 |
Correct |
2 ms |
1236 KB |
Output is correct |
138 |
Correct |
2 ms |
1108 KB |
Output is correct |
139 |
Correct |
6 ms |
644 KB |
Output is correct |
140 |
Correct |
3 ms |
596 KB |
Output is correct |
141 |
Correct |
2 ms |
980 KB |
Output is correct |
142 |
Correct |
1 ms |
724 KB |
Output is correct |
143 |
Correct |
2 ms |
1108 KB |
Output is correct |
144 |
Correct |
14 ms |
19464 KB |
Output is correct |
145 |
Correct |
12 ms |
19540 KB |
Output is correct |
146 |
Correct |
10 ms |
10068 KB |
Output is correct |
147 |
Correct |
20 ms |
1876 KB |
Output is correct |
148 |
Correct |
24 ms |
1364 KB |
Output is correct |
149 |
Correct |
71 ms |
1108 KB |
Output is correct |
150 |
Correct |
34 ms |
972 KB |
Output is correct |
151 |
Correct |
1 ms |
724 KB |
Output is correct |
152 |
Correct |
1 ms |
724 KB |
Output is correct |
153 |
Correct |
3 ms |
596 KB |
Output is correct |
154 |
Correct |
12 ms |
1208 KB |
Output is correct |
155 |
Correct |
8 ms |
10312 KB |
Output is correct |
156 |
Correct |
5 ms |
1620 KB |
Output is correct |
157 |
Correct |
16 ms |
4308 KB |
Output is correct |
158 |
Correct |
5 ms |
2260 KB |
Output is correct |
159 |
Correct |
15 ms |
1232 KB |
Output is correct |
160 |
Correct |
8 ms |
1108 KB |
Output is correct |
161 |
Correct |
5 ms |
2176 KB |
Output is correct |
162 |
Correct |
3 ms |
1492 KB |
Output is correct |
163 |
Correct |
4 ms |
2260 KB |
Output is correct |
164 |
Correct |
41 ms |
48064 KB |
Output is correct |
165 |
Correct |
35 ms |
48144 KB |
Output is correct |
166 |
Correct |
29 ms |
24648 KB |
Output is correct |
167 |
Correct |
105 ms |
3280 KB |
Output is correct |
168 |
Correct |
133 ms |
2492 KB |
Output is correct |
169 |
Correct |
212 ms |
2004 KB |
Output is correct |
170 |
Correct |
253 ms |
1788 KB |
Output is correct |
171 |
Correct |
8 ms |
1324 KB |
Output is correct |
172 |
Correct |
11 ms |
1236 KB |
Output is correct |
173 |
Correct |
2 ms |
1108 KB |
Output is correct |
174 |
Correct |
10 ms |
5972 KB |
Output is correct |
175 |
Correct |
233 ms |
3960 KB |
Output is correct |
176 |
Correct |
63 ms |
83780 KB |
Output is correct |
177 |
Correct |
229 ms |
19540 KB |
Output is correct |
178 |
Correct |
43 ms |
17872 KB |
Output is correct |
179 |
Correct |
936 ms |
18136 KB |
Output is correct |
180 |
Execution timed out |
2072 ms |
14164 KB |
Time limit exceeded |
181 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
4 ms |
596 KB |
Output is correct |
20 |
Correct |
13 ms |
15076 KB |
Output is correct |
21 |
Correct |
3 ms |
1108 KB |
Output is correct |
22 |
Correct |
7 ms |
720 KB |
Output is correct |
23 |
Correct |
3 ms |
596 KB |
Output is correct |
24 |
Correct |
15 ms |
19412 KB |
Output is correct |
25 |
Correct |
12 ms |
19412 KB |
Output is correct |
26 |
Correct |
1 ms |
724 KB |
Output is correct |
27 |
Correct |
2 ms |
596 KB |
Output is correct |
28 |
Correct |
3 ms |
596 KB |
Output is correct |
29 |
Correct |
12 ms |
1212 KB |
Output is correct |
30 |
Correct |
9 ms |
10312 KB |
Output is correct |
31 |
Correct |
5 ms |
2288 KB |
Output is correct |
32 |
Correct |
14 ms |
1232 KB |
Output is correct |
33 |
Correct |
7 ms |
1108 KB |
Output is correct |
34 |
Correct |
42 ms |
48056 KB |
Output is correct |
35 |
Correct |
31 ms |
48064 KB |
Output is correct |
36 |
Correct |
8 ms |
1248 KB |
Output is correct |
37 |
Correct |
11 ms |
1236 KB |
Output is correct |
38 |
Correct |
3 ms |
1108 KB |
Output is correct |
39 |
Correct |
85 ms |
8152 KB |
Output is correct |
40 |
Correct |
8 ms |
4512 KB |
Output is correct |
41 |
Correct |
35 ms |
59112 KB |
Output is correct |
42 |
Correct |
22 ms |
1764 KB |
Output is correct |
43 |
Correct |
33 ms |
39592 KB |
Output is correct |
44 |
Correct |
45 ms |
42884 KB |
Output is correct |
45 |
Correct |
52 ms |
54616 KB |
Output is correct |
46 |
Correct |
27 ms |
10928 KB |
Output is correct |
47 |
Correct |
150 ms |
8200 KB |
Output is correct |
48 |
Correct |
68 ms |
8148 KB |
Output is correct |
49 |
Correct |
281 ms |
478772 KB |
Output is correct |
50 |
Correct |
301 ms |
478708 KB |
Output is correct |
51 |
Correct |
104 ms |
8580 KB |
Output is correct |
52 |
Correct |
75 ms |
8308 KB |
Output is correct |
53 |
Correct |
91 ms |
8200 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
0 ms |
212 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
0 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
0 ms |
596 KB |
Output is correct |
69 |
Correct |
1 ms |
596 KB |
Output is correct |
70 |
Correct |
1 ms |
468 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
0 ms |
340 KB |
Output is correct |
73 |
Correct |
0 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
212 KB |
Output is correct |
76 |
Correct |
0 ms |
212 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
0 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
340 KB |
Output is correct |
80 |
Correct |
0 ms |
340 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
0 ms |
212 KB |
Output is correct |
83 |
Correct |
0 ms |
212 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
212 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
0 ms |
340 KB |
Output is correct |
93 |
Correct |
0 ms |
212 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
288 KB |
Output is correct |
96 |
Correct |
0 ms |
340 KB |
Output is correct |
97 |
Correct |
0 ms |
596 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
0 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
340 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
340 KB |
Output is correct |
107 |
Correct |
0 ms |
340 KB |
Output is correct |
108 |
Correct |
0 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
1 ms |
596 KB |
Output is correct |
111 |
Correct |
2 ms |
1236 KB |
Output is correct |
112 |
Correct |
2 ms |
1108 KB |
Output is correct |
113 |
Correct |
2 ms |
980 KB |
Output is correct |
114 |
Correct |
1 ms |
724 KB |
Output is correct |
115 |
Correct |
2 ms |
1108 KB |
Output is correct |
116 |
Correct |
40 ms |
956 KB |
Output is correct |
117 |
Correct |
1 ms |
724 KB |
Output is correct |
118 |
Correct |
1 ms |
724 KB |
Output is correct |
119 |
Correct |
4 ms |
1620 KB |
Output is correct |
120 |
Correct |
5 ms |
2260 KB |
Output is correct |
121 |
Correct |
5 ms |
2132 KB |
Output is correct |
122 |
Correct |
3 ms |
1492 KB |
Output is correct |
123 |
Correct |
3 ms |
2260 KB |
Output is correct |
124 |
Correct |
14 ms |
4324 KB |
Output is correct |
125 |
Correct |
51 ms |
16968 KB |
Output is correct |
126 |
Correct |
27 ms |
10956 KB |
Output is correct |
127 |
Correct |
55 ms |
18360 KB |
Output is correct |
128 |
Correct |
24 ms |
12792 KB |
Output is correct |
129 |
Correct |
35 ms |
19648 KB |
Output is correct |
130 |
Correct |
58 ms |
20272 KB |
Output is correct |
131 |
Correct |
50 ms |
17308 KB |
Output is correct |
132 |
Correct |
4 ms |
708 KB |
Output is correct |
133 |
Correct |
0 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
980 KB |
Output is correct |
135 |
Correct |
1 ms |
596 KB |
Output is correct |
136 |
Correct |
9 ms |
15004 KB |
Output is correct |
137 |
Correct |
2 ms |
1236 KB |
Output is correct |
138 |
Correct |
2 ms |
1108 KB |
Output is correct |
139 |
Correct |
6 ms |
644 KB |
Output is correct |
140 |
Correct |
3 ms |
596 KB |
Output is correct |
141 |
Correct |
2 ms |
980 KB |
Output is correct |
142 |
Correct |
1 ms |
724 KB |
Output is correct |
143 |
Correct |
2 ms |
1108 KB |
Output is correct |
144 |
Correct |
14 ms |
19464 KB |
Output is correct |
145 |
Correct |
12 ms |
19540 KB |
Output is correct |
146 |
Correct |
10 ms |
10068 KB |
Output is correct |
147 |
Correct |
20 ms |
1876 KB |
Output is correct |
148 |
Correct |
24 ms |
1364 KB |
Output is correct |
149 |
Correct |
71 ms |
1108 KB |
Output is correct |
150 |
Correct |
34 ms |
972 KB |
Output is correct |
151 |
Correct |
1 ms |
724 KB |
Output is correct |
152 |
Correct |
1 ms |
724 KB |
Output is correct |
153 |
Correct |
3 ms |
596 KB |
Output is correct |
154 |
Correct |
12 ms |
1208 KB |
Output is correct |
155 |
Correct |
8 ms |
10312 KB |
Output is correct |
156 |
Correct |
5 ms |
1620 KB |
Output is correct |
157 |
Correct |
16 ms |
4308 KB |
Output is correct |
158 |
Correct |
5 ms |
2260 KB |
Output is correct |
159 |
Correct |
15 ms |
1232 KB |
Output is correct |
160 |
Correct |
8 ms |
1108 KB |
Output is correct |
161 |
Correct |
5 ms |
2176 KB |
Output is correct |
162 |
Correct |
3 ms |
1492 KB |
Output is correct |
163 |
Correct |
4 ms |
2260 KB |
Output is correct |
164 |
Correct |
41 ms |
48064 KB |
Output is correct |
165 |
Correct |
35 ms |
48144 KB |
Output is correct |
166 |
Correct |
29 ms |
24648 KB |
Output is correct |
167 |
Correct |
105 ms |
3280 KB |
Output is correct |
168 |
Correct |
133 ms |
2492 KB |
Output is correct |
169 |
Correct |
212 ms |
2004 KB |
Output is correct |
170 |
Correct |
253 ms |
1788 KB |
Output is correct |
171 |
Correct |
8 ms |
1324 KB |
Output is correct |
172 |
Correct |
11 ms |
1236 KB |
Output is correct |
173 |
Correct |
2 ms |
1108 KB |
Output is correct |
174 |
Correct |
10 ms |
5972 KB |
Output is correct |
175 |
Correct |
233 ms |
3960 KB |
Output is correct |
176 |
Correct |
63 ms |
83780 KB |
Output is correct |
177 |
Correct |
229 ms |
19540 KB |
Output is correct |
178 |
Correct |
43 ms |
17872 KB |
Output is correct |
179 |
Correct |
936 ms |
18136 KB |
Output is correct |
180 |
Execution timed out |
2072 ms |
14164 KB |
Time limit exceeded |
181 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 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 |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
0 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
4 ms |
596 KB |
Output is correct |
20 |
Correct |
13 ms |
15076 KB |
Output is correct |
21 |
Correct |
3 ms |
1108 KB |
Output is correct |
22 |
Correct |
7 ms |
720 KB |
Output is correct |
23 |
Correct |
3 ms |
596 KB |
Output is correct |
24 |
Correct |
15 ms |
19412 KB |
Output is correct |
25 |
Correct |
12 ms |
19412 KB |
Output is correct |
26 |
Correct |
1 ms |
724 KB |
Output is correct |
27 |
Correct |
2 ms |
596 KB |
Output is correct |
28 |
Correct |
3 ms |
596 KB |
Output is correct |
29 |
Correct |
12 ms |
1212 KB |
Output is correct |
30 |
Correct |
9 ms |
10312 KB |
Output is correct |
31 |
Correct |
5 ms |
2288 KB |
Output is correct |
32 |
Correct |
14 ms |
1232 KB |
Output is correct |
33 |
Correct |
7 ms |
1108 KB |
Output is correct |
34 |
Correct |
42 ms |
48056 KB |
Output is correct |
35 |
Correct |
31 ms |
48064 KB |
Output is correct |
36 |
Correct |
8 ms |
1248 KB |
Output is correct |
37 |
Correct |
11 ms |
1236 KB |
Output is correct |
38 |
Correct |
3 ms |
1108 KB |
Output is correct |
39 |
Correct |
85 ms |
8152 KB |
Output is correct |
40 |
Correct |
8 ms |
4512 KB |
Output is correct |
41 |
Correct |
35 ms |
59112 KB |
Output is correct |
42 |
Correct |
22 ms |
1764 KB |
Output is correct |
43 |
Correct |
33 ms |
39592 KB |
Output is correct |
44 |
Correct |
45 ms |
42884 KB |
Output is correct |
45 |
Correct |
52 ms |
54616 KB |
Output is correct |
46 |
Correct |
27 ms |
10928 KB |
Output is correct |
47 |
Correct |
150 ms |
8200 KB |
Output is correct |
48 |
Correct |
68 ms |
8148 KB |
Output is correct |
49 |
Correct |
281 ms |
478772 KB |
Output is correct |
50 |
Correct |
301 ms |
478708 KB |
Output is correct |
51 |
Correct |
104 ms |
8580 KB |
Output is correct |
52 |
Correct |
75 ms |
8308 KB |
Output is correct |
53 |
Correct |
91 ms |
8200 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
0 ms |
212 KB |
Output is correct |
58 |
Correct |
0 ms |
212 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
0 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
0 ms |
596 KB |
Output is correct |
69 |
Correct |
1 ms |
596 KB |
Output is correct |
70 |
Correct |
1 ms |
468 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
0 ms |
340 KB |
Output is correct |
73 |
Correct |
0 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
212 KB |
Output is correct |
76 |
Correct |
0 ms |
212 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
0 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
340 KB |
Output is correct |
80 |
Correct |
0 ms |
340 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
0 ms |
212 KB |
Output is correct |
83 |
Correct |
0 ms |
212 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
212 KB |
Output is correct |
86 |
Correct |
0 ms |
212 KB |
Output is correct |
87 |
Correct |
0 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 |
0 ms |
212 KB |
Output is correct |
92 |
Correct |
0 ms |
340 KB |
Output is correct |
93 |
Correct |
0 ms |
212 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
288 KB |
Output is correct |
96 |
Correct |
0 ms |
340 KB |
Output is correct |
97 |
Correct |
0 ms |
596 KB |
Output is correct |
98 |
Correct |
0 ms |
212 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
0 ms |
212 KB |
Output is correct |
101 |
Correct |
0 ms |
212 KB |
Output is correct |
102 |
Correct |
0 ms |
340 KB |
Output is correct |
103 |
Correct |
0 ms |
212 KB |
Output is correct |
104 |
Correct |
1 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
340 KB |
Output is correct |
107 |
Correct |
0 ms |
340 KB |
Output is correct |
108 |
Correct |
0 ms |
212 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
1 ms |
596 KB |
Output is correct |
111 |
Correct |
2 ms |
1236 KB |
Output is correct |
112 |
Correct |
2 ms |
1108 KB |
Output is correct |
113 |
Correct |
2 ms |
980 KB |
Output is correct |
114 |
Correct |
1 ms |
724 KB |
Output is correct |
115 |
Correct |
2 ms |
1108 KB |
Output is correct |
116 |
Correct |
40 ms |
956 KB |
Output is correct |
117 |
Correct |
1 ms |
724 KB |
Output is correct |
118 |
Correct |
1 ms |
724 KB |
Output is correct |
119 |
Correct |
4 ms |
1620 KB |
Output is correct |
120 |
Correct |
5 ms |
2260 KB |
Output is correct |
121 |
Correct |
5 ms |
2132 KB |
Output is correct |
122 |
Correct |
3 ms |
1492 KB |
Output is correct |
123 |
Correct |
3 ms |
2260 KB |
Output is correct |
124 |
Correct |
14 ms |
4324 KB |
Output is correct |
125 |
Correct |
51 ms |
16968 KB |
Output is correct |
126 |
Correct |
27 ms |
10956 KB |
Output is correct |
127 |
Correct |
55 ms |
18360 KB |
Output is correct |
128 |
Correct |
24 ms |
12792 KB |
Output is correct |
129 |
Correct |
35 ms |
19648 KB |
Output is correct |
130 |
Correct |
58 ms |
20272 KB |
Output is correct |
131 |
Correct |
50 ms |
17308 KB |
Output is correct |
132 |
Correct |
4 ms |
708 KB |
Output is correct |
133 |
Correct |
0 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
980 KB |
Output is correct |
135 |
Correct |
1 ms |
596 KB |
Output is correct |
136 |
Correct |
9 ms |
15004 KB |
Output is correct |
137 |
Correct |
2 ms |
1236 KB |
Output is correct |
138 |
Correct |
2 ms |
1108 KB |
Output is correct |
139 |
Correct |
6 ms |
644 KB |
Output is correct |
140 |
Correct |
3 ms |
596 KB |
Output is correct |
141 |
Correct |
2 ms |
980 KB |
Output is correct |
142 |
Correct |
1 ms |
724 KB |
Output is correct |
143 |
Correct |
2 ms |
1108 KB |
Output is correct |
144 |
Correct |
14 ms |
19464 KB |
Output is correct |
145 |
Correct |
12 ms |
19540 KB |
Output is correct |
146 |
Correct |
10 ms |
10068 KB |
Output is correct |
147 |
Correct |
20 ms |
1876 KB |
Output is correct |
148 |
Correct |
24 ms |
1364 KB |
Output is correct |
149 |
Correct |
71 ms |
1108 KB |
Output is correct |
150 |
Correct |
34 ms |
972 KB |
Output is correct |
151 |
Correct |
1 ms |
724 KB |
Output is correct |
152 |
Correct |
1 ms |
724 KB |
Output is correct |
153 |
Correct |
3 ms |
596 KB |
Output is correct |
154 |
Correct |
12 ms |
1208 KB |
Output is correct |
155 |
Correct |
8 ms |
10312 KB |
Output is correct |
156 |
Correct |
5 ms |
1620 KB |
Output is correct |
157 |
Correct |
16 ms |
4308 KB |
Output is correct |
158 |
Correct |
5 ms |
2260 KB |
Output is correct |
159 |
Correct |
15 ms |
1232 KB |
Output is correct |
160 |
Correct |
8 ms |
1108 KB |
Output is correct |
161 |
Correct |
5 ms |
2176 KB |
Output is correct |
162 |
Correct |
3 ms |
1492 KB |
Output is correct |
163 |
Correct |
4 ms |
2260 KB |
Output is correct |
164 |
Correct |
41 ms |
48064 KB |
Output is correct |
165 |
Correct |
35 ms |
48144 KB |
Output is correct |
166 |
Correct |
29 ms |
24648 KB |
Output is correct |
167 |
Correct |
105 ms |
3280 KB |
Output is correct |
168 |
Correct |
133 ms |
2492 KB |
Output is correct |
169 |
Correct |
212 ms |
2004 KB |
Output is correct |
170 |
Correct |
253 ms |
1788 KB |
Output is correct |
171 |
Correct |
8 ms |
1324 KB |
Output is correct |
172 |
Correct |
11 ms |
1236 KB |
Output is correct |
173 |
Correct |
2 ms |
1108 KB |
Output is correct |
174 |
Correct |
10 ms |
5972 KB |
Output is correct |
175 |
Correct |
233 ms |
3960 KB |
Output is correct |
176 |
Correct |
63 ms |
83780 KB |
Output is correct |
177 |
Correct |
229 ms |
19540 KB |
Output is correct |
178 |
Correct |
43 ms |
17872 KB |
Output is correct |
179 |
Correct |
936 ms |
18136 KB |
Output is correct |
180 |
Execution timed out |
2072 ms |
14164 KB |
Time limit exceeded |
181 |
Halted |
0 ms |
0 KB |
- |