#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pii pair<int, int>
#define all(x) x.begin(), x.end()
#define rep(i, a, b) for (int i = (int)a; i <= (int)b; ++i)
#define rep1(i, a, b) for (int i = (int)a; i >= (int)b; --i)
#define mp make_pair
const int N = 2e5 + 5;
const int k = 19;
int L[N][20], R[N][20], higher[N][20], h[N];
int my_size;
bool sub1 = 1;
void cal_LR() {
rep(i, 1, my_size) if (h[i] != i) {
sub1 = 0;
break;
}
if (sub1) return;
stack<int> st;
rep(i, 1, my_size) {
while (!st.empty() && h[st.top()] < h[i]) st.pop();
if (!st.empty()) L[i][0] = st.top();
st.push(i);
}
while (!st.empty()) st.pop();
rep1(i, my_size, 1) {
while (!st.empty() && h[st.top()] < h[i]) st.pop();
if (!st.empty()) R[i][0] = st.top();
st.push(i);
}
rep(i, 1, my_size) {
if (h[L[i][0]] > h[R[i][0]]) higher[i][0] = L[i][0];
else higher[i][0] = R[i][0];
}
rep(u, 1, k) {
rep(i, 1, my_size) {
L[i][u] = L[L[i][u - 1]][u - 1];
R[i][u] = R[R[i][u - 1]][u - 1];
higher[i][u] = higher[higher[i][u - 1]][u - 1];
}
}
}
int minimum_jumps_sub1234(int a, int b, int c, int d) {
if (sub1) return c - b;
++a, ++b, ++c, ++d;
queue<pii> q;
vector<bool> vst(my_size + 1);
vst[0] = 1;
rep(i, a, b) q.push({i, 0}), vst[i] = 1;
while (!q.empty()) {
auto [u, w] = q.front();
q.pop();
if (c <= u && u <= d) return w;
int v = L[u][0];
if (!vst[v]) {
q.push({v, w + 1});
vst[v] = 1;
}
v = R[u][0];
if (!vst[v]) {
q.push({v, w + 1});
vst[v] = 1;
}
}
return -1;
}
int minimum_jumps_sub5(int s, int t) {
++s, ++t;
int ans = 0;
//cout << "s,H,L,R="<<s<<' '<<higher[s][0] << ' ' << L[s][0] << ' ' << R[s][0] << '\n';
rep1(u, k, 0) {
if (higher[s][u] != 0 && h[higher[s][u]] <= h[t]) {
ans += (1 << u);
s = higher[s][u];
}
}
if (s != t) {
//cout << "s,ans,R0="<<s<<' '<<ans<<' '<<R[s][0]<<'\n';
rep1(u, k, 0) {
if (R[s][u] != 0 && h[R[s][u]] <= h[t]) {
ans += (1 << u);
s = R[s][u];
}
}
}
if (s != t) {
return -1;
}
else return ans;
}
int minimum_jumps(int a, int b, int c, int d) {
//if (a == b && c == d) return minimum_jumps_sub5(a, c);
return minimum_jumps_sub1234(a, b, c, d);
}
void init(int sz, vector<int> array) {
my_size = sz;
rep(i, 1, my_size) h[i] = array[i - 1];
cal_LR();
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
127 ms |
2068 KB |
Output is correct |
4 |
Correct |
998 ms |
2608 KB |
Output is correct |
5 |
Correct |
892 ms |
1472 KB |
Output is correct |
6 |
Correct |
1054 ms |
2588 KB |
Output is correct |
7 |
Correct |
828 ms |
1852 KB |
Output is correct |
8 |
Correct |
1083 ms |
2592 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
0 ms |
200 KB |
Output is correct |
4 |
Correct |
0 ms |
200 KB |
Output is correct |
5 |
Correct |
1 ms |
328 KB |
Output is correct |
6 |
Correct |
3 ms |
328 KB |
Output is correct |
7 |
Correct |
2 ms |
328 KB |
Output is correct |
8 |
Correct |
3 ms |
328 KB |
Output is correct |
9 |
Correct |
1 ms |
328 KB |
Output is correct |
10 |
Correct |
3 ms |
328 KB |
Output is correct |
11 |
Correct |
2 ms |
200 KB |
Output is correct |
12 |
Correct |
3 ms |
328 KB |
Output is correct |
13 |
Correct |
3 ms |
328 KB |
Output is correct |
14 |
Correct |
3 ms |
328 KB |
Output is correct |
15 |
Correct |
3 ms |
328 KB |
Output is correct |
16 |
Correct |
3 ms |
328 KB |
Output is correct |
17 |
Correct |
3 ms |
328 KB |
Output is correct |
18 |
Correct |
0 ms |
200 KB |
Output is correct |
19 |
Correct |
1 ms |
328 KB |
Output is correct |
20 |
Correct |
2 ms |
328 KB |
Output is correct |
21 |
Correct |
3 ms |
328 KB |
Output is correct |
22 |
Correct |
2 ms |
328 KB |
Output is correct |
23 |
Correct |
3 ms |
328 KB |
Output is correct |
24 |
Correct |
3 ms |
328 KB |
Output is correct |
25 |
Correct |
0 ms |
328 KB |
Output is correct |
26 |
Correct |
0 ms |
200 KB |
Output is correct |
27 |
Correct |
2 ms |
200 KB |
Output is correct |
28 |
Correct |
2 ms |
328 KB |
Output is correct |
29 |
Correct |
3 ms |
328 KB |
Output is correct |
30 |
Correct |
3 ms |
328 KB |
Output is correct |
31 |
Correct |
3 ms |
328 KB |
Output is correct |
32 |
Correct |
3 ms |
328 KB |
Output is correct |
33 |
Correct |
0 ms |
200 KB |
Output is correct |
34 |
Correct |
1 ms |
328 KB |
Output is correct |
35 |
Correct |
1 ms |
328 KB |
Output is correct |
36 |
Correct |
1 ms |
328 KB |
Output is correct |
37 |
Correct |
1 ms |
328 KB |
Output is correct |
38 |
Correct |
1 ms |
328 KB |
Output is correct |
39 |
Correct |
1 ms |
328 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
0 ms |
200 KB |
Output is correct |
4 |
Correct |
0 ms |
200 KB |
Output is correct |
5 |
Correct |
1 ms |
328 KB |
Output is correct |
6 |
Correct |
3 ms |
328 KB |
Output is correct |
7 |
Correct |
2 ms |
328 KB |
Output is correct |
8 |
Correct |
3 ms |
328 KB |
Output is correct |
9 |
Correct |
1 ms |
328 KB |
Output is correct |
10 |
Correct |
3 ms |
328 KB |
Output is correct |
11 |
Correct |
2 ms |
200 KB |
Output is correct |
12 |
Correct |
3 ms |
328 KB |
Output is correct |
13 |
Correct |
3 ms |
328 KB |
Output is correct |
14 |
Correct |
3 ms |
328 KB |
Output is correct |
15 |
Correct |
3 ms |
328 KB |
Output is correct |
16 |
Correct |
3 ms |
328 KB |
Output is correct |
17 |
Correct |
3 ms |
328 KB |
Output is correct |
18 |
Correct |
0 ms |
200 KB |
Output is correct |
19 |
Correct |
1 ms |
328 KB |
Output is correct |
20 |
Correct |
2 ms |
328 KB |
Output is correct |
21 |
Correct |
3 ms |
328 KB |
Output is correct |
22 |
Correct |
2 ms |
328 KB |
Output is correct |
23 |
Correct |
3 ms |
328 KB |
Output is correct |
24 |
Correct |
3 ms |
328 KB |
Output is correct |
25 |
Correct |
0 ms |
328 KB |
Output is correct |
26 |
Correct |
0 ms |
200 KB |
Output is correct |
27 |
Correct |
2 ms |
200 KB |
Output is correct |
28 |
Correct |
2 ms |
328 KB |
Output is correct |
29 |
Correct |
3 ms |
328 KB |
Output is correct |
30 |
Correct |
3 ms |
328 KB |
Output is correct |
31 |
Correct |
3 ms |
328 KB |
Output is correct |
32 |
Correct |
3 ms |
328 KB |
Output is correct |
33 |
Correct |
0 ms |
200 KB |
Output is correct |
34 |
Correct |
1 ms |
328 KB |
Output is correct |
35 |
Correct |
1 ms |
328 KB |
Output is correct |
36 |
Correct |
1 ms |
328 KB |
Output is correct |
37 |
Correct |
1 ms |
328 KB |
Output is correct |
38 |
Correct |
1 ms |
328 KB |
Output is correct |
39 |
Correct |
1 ms |
328 KB |
Output is correct |
40 |
Correct |
1 ms |
200 KB |
Output is correct |
41 |
Correct |
0 ms |
200 KB |
Output is correct |
42 |
Correct |
0 ms |
328 KB |
Output is correct |
43 |
Correct |
0 ms |
200 KB |
Output is correct |
44 |
Correct |
2 ms |
200 KB |
Output is correct |
45 |
Correct |
3 ms |
328 KB |
Output is correct |
46 |
Correct |
2 ms |
328 KB |
Output is correct |
47 |
Correct |
3 ms |
328 KB |
Output is correct |
48 |
Correct |
1 ms |
328 KB |
Output is correct |
49 |
Correct |
3 ms |
328 KB |
Output is correct |
50 |
Correct |
2 ms |
200 KB |
Output is correct |
51 |
Correct |
3 ms |
328 KB |
Output is correct |
52 |
Correct |
3 ms |
328 KB |
Output is correct |
53 |
Correct |
4 ms |
328 KB |
Output is correct |
54 |
Correct |
4 ms |
328 KB |
Output is correct |
55 |
Correct |
4 ms |
328 KB |
Output is correct |
56 |
Correct |
3 ms |
328 KB |
Output is correct |
57 |
Correct |
1 ms |
328 KB |
Output is correct |
58 |
Correct |
29 ms |
712 KB |
Output is correct |
59 |
Correct |
44 ms |
712 KB |
Output is correct |
60 |
Correct |
7 ms |
660 KB |
Output is correct |
61 |
Correct |
46 ms |
712 KB |
Output is correct |
62 |
Correct |
14 ms |
328 KB |
Output is correct |
63 |
Correct |
42 ms |
712 KB |
Output is correct |
64 |
Correct |
17 ms |
200 KB |
Output is correct |
65 |
Correct |
58 ms |
712 KB |
Output is correct |
66 |
Correct |
47 ms |
712 KB |
Output is correct |
67 |
Correct |
43 ms |
712 KB |
Output is correct |
68 |
Correct |
58 ms |
712 KB |
Output is correct |
69 |
Correct |
41 ms |
712 KB |
Output is correct |
70 |
Correct |
36 ms |
712 KB |
Output is correct |
71 |
Correct |
0 ms |
200 KB |
Output is correct |
72 |
Correct |
1 ms |
328 KB |
Output is correct |
73 |
Correct |
3 ms |
328 KB |
Output is correct |
74 |
Correct |
3 ms |
328 KB |
Output is correct |
75 |
Correct |
3 ms |
328 KB |
Output is correct |
76 |
Correct |
3 ms |
328 KB |
Output is correct |
77 |
Correct |
3 ms |
328 KB |
Output is correct |
78 |
Correct |
0 ms |
328 KB |
Output is correct |
79 |
Correct |
0 ms |
200 KB |
Output is correct |
80 |
Correct |
2 ms |
200 KB |
Output is correct |
81 |
Correct |
3 ms |
328 KB |
Output is correct |
82 |
Correct |
3 ms |
328 KB |
Output is correct |
83 |
Correct |
3 ms |
328 KB |
Output is correct |
84 |
Correct |
3 ms |
328 KB |
Output is correct |
85 |
Correct |
3 ms |
328 KB |
Output is correct |
86 |
Correct |
0 ms |
200 KB |
Output is correct |
87 |
Correct |
0 ms |
328 KB |
Output is correct |
88 |
Correct |
1 ms |
328 KB |
Output is correct |
89 |
Correct |
1 ms |
328 KB |
Output is correct |
90 |
Correct |
1 ms |
328 KB |
Output is correct |
91 |
Correct |
1 ms |
328 KB |
Output is correct |
92 |
Correct |
1 ms |
328 KB |
Output is correct |
93 |
Correct |
0 ms |
328 KB |
Output is correct |
94 |
Correct |
4 ms |
328 KB |
Output is correct |
95 |
Correct |
43 ms |
820 KB |
Output is correct |
96 |
Correct |
55 ms |
712 KB |
Output is correct |
97 |
Correct |
43 ms |
820 KB |
Output is correct |
98 |
Correct |
57 ms |
712 KB |
Output is correct |
99 |
Correct |
49 ms |
712 KB |
Output is correct |
100 |
Correct |
0 ms |
328 KB |
Output is correct |
101 |
Correct |
1 ms |
456 KB |
Output is correct |
102 |
Correct |
23 ms |
712 KB |
Output is correct |
103 |
Correct |
44 ms |
712 KB |
Output is correct |
104 |
Correct |
19 ms |
712 KB |
Output is correct |
105 |
Correct |
42 ms |
712 KB |
Output is correct |
106 |
Correct |
36 ms |
712 KB |
Output is correct |
107 |
Correct |
0 ms |
328 KB |
Output is correct |
108 |
Correct |
1 ms |
456 KB |
Output is correct |
109 |
Correct |
1 ms |
712 KB |
Output is correct |
110 |
Correct |
1 ms |
712 KB |
Output is correct |
111 |
Correct |
1 ms |
712 KB |
Output is correct |
112 |
Correct |
1 ms |
712 KB |
Output is correct |
113 |
Correct |
1 ms |
712 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
1 ms |
200 KB |
Output is correct |
4 |
Correct |
0 ms |
200 KB |
Output is correct |
5 |
Correct |
99 ms |
39972 KB |
Output is correct |
6 |
Correct |
117 ms |
49580 KB |
Output is correct |
7 |
Correct |
59 ms |
25504 KB |
Output is correct |
8 |
Correct |
117 ms |
50320 KB |
Output is correct |
9 |
Correct |
12 ms |
7752 KB |
Output is correct |
10 |
Correct |
117 ms |
49568 KB |
Output is correct |
11 |
Correct |
21 ms |
2624 KB |
Output is correct |
12 |
Correct |
119 ms |
50332 KB |
Output is correct |
13 |
Correct |
120 ms |
50200 KB |
Output is correct |
14 |
Correct |
114 ms |
49564 KB |
Output is correct |
15 |
Correct |
141 ms |
49960 KB |
Output is correct |
16 |
Correct |
119 ms |
50308 KB |
Output is correct |
17 |
Correct |
122 ms |
50240 KB |
Output is correct |
18 |
Correct |
1 ms |
200 KB |
Output is correct |
19 |
Correct |
0 ms |
328 KB |
Output is correct |
20 |
Correct |
1 ms |
328 KB |
Output is correct |
21 |
Correct |
1 ms |
328 KB |
Output is correct |
22 |
Correct |
1 ms |
328 KB |
Output is correct |
23 |
Correct |
1 ms |
328 KB |
Output is correct |
24 |
Correct |
1 ms |
328 KB |
Output is correct |
25 |
Correct |
0 ms |
328 KB |
Output is correct |
26 |
Correct |
1 ms |
456 KB |
Output is correct |
27 |
Correct |
1 ms |
712 KB |
Output is correct |
28 |
Correct |
1 ms |
712 KB |
Output is correct |
29 |
Correct |
1 ms |
820 KB |
Output is correct |
30 |
Correct |
1 ms |
712 KB |
Output is correct |
31 |
Correct |
1 ms |
712 KB |
Output is correct |
32 |
Correct |
0 ms |
200 KB |
Output is correct |
33 |
Correct |
120 ms |
49436 KB |
Output is correct |
34 |
Correct |
120 ms |
49568 KB |
Output is correct |
35 |
Correct |
126 ms |
50204 KB |
Output is correct |
36 |
Correct |
118 ms |
49608 KB |
Output is correct |
37 |
Correct |
150 ms |
49932 KB |
Output is correct |
38 |
Correct |
125 ms |
50448 KB |
Output is correct |
39 |
Correct |
0 ms |
200 KB |
Output is correct |
40 |
Correct |
65 ms |
28828 KB |
Output is correct |
41 |
Correct |
124 ms |
49588 KB |
Output is correct |
42 |
Correct |
120 ms |
50212 KB |
Output is correct |
43 |
Correct |
122 ms |
49600 KB |
Output is correct |
44 |
Correct |
154 ms |
49932 KB |
Output is correct |
45 |
Correct |
121 ms |
50444 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
1 ms |
200 KB |
Output is correct |
4 |
Correct |
361 ms |
22812 KB |
Output is correct |
5 |
Correct |
1257 ms |
49568 KB |
Output is correct |
6 |
Correct |
769 ms |
8392 KB |
Output is correct |
7 |
Correct |
1061 ms |
49564 KB |
Output is correct |
8 |
Correct |
762 ms |
17252 KB |
Output is correct |
9 |
Correct |
1432 ms |
49596 KB |
Output is correct |
10 |
Correct |
920 ms |
2624 KB |
Output is correct |
11 |
Execution timed out |
4013 ms |
50240 KB |
Time limit exceeded |
12 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
1 ms |
200 KB |
Output is correct |
4 |
Correct |
361 ms |
22812 KB |
Output is correct |
5 |
Correct |
1257 ms |
49568 KB |
Output is correct |
6 |
Correct |
769 ms |
8392 KB |
Output is correct |
7 |
Correct |
1061 ms |
49564 KB |
Output is correct |
8 |
Correct |
762 ms |
17252 KB |
Output is correct |
9 |
Correct |
1432 ms |
49596 KB |
Output is correct |
10 |
Correct |
920 ms |
2624 KB |
Output is correct |
11 |
Execution timed out |
4013 ms |
50240 KB |
Time limit exceeded |
12 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
127 ms |
2068 KB |
Output is correct |
4 |
Correct |
998 ms |
2608 KB |
Output is correct |
5 |
Correct |
892 ms |
1472 KB |
Output is correct |
6 |
Correct |
1054 ms |
2588 KB |
Output is correct |
7 |
Correct |
828 ms |
1852 KB |
Output is correct |
8 |
Correct |
1083 ms |
2592 KB |
Output is correct |
9 |
Correct |
0 ms |
200 KB |
Output is correct |
10 |
Correct |
0 ms |
200 KB |
Output is correct |
11 |
Correct |
0 ms |
200 KB |
Output is correct |
12 |
Correct |
0 ms |
200 KB |
Output is correct |
13 |
Correct |
1 ms |
328 KB |
Output is correct |
14 |
Correct |
3 ms |
328 KB |
Output is correct |
15 |
Correct |
2 ms |
328 KB |
Output is correct |
16 |
Correct |
3 ms |
328 KB |
Output is correct |
17 |
Correct |
1 ms |
328 KB |
Output is correct |
18 |
Correct |
3 ms |
328 KB |
Output is correct |
19 |
Correct |
2 ms |
200 KB |
Output is correct |
20 |
Correct |
3 ms |
328 KB |
Output is correct |
21 |
Correct |
3 ms |
328 KB |
Output is correct |
22 |
Correct |
3 ms |
328 KB |
Output is correct |
23 |
Correct |
3 ms |
328 KB |
Output is correct |
24 |
Correct |
3 ms |
328 KB |
Output is correct |
25 |
Correct |
3 ms |
328 KB |
Output is correct |
26 |
Correct |
0 ms |
200 KB |
Output is correct |
27 |
Correct |
1 ms |
328 KB |
Output is correct |
28 |
Correct |
2 ms |
328 KB |
Output is correct |
29 |
Correct |
3 ms |
328 KB |
Output is correct |
30 |
Correct |
2 ms |
328 KB |
Output is correct |
31 |
Correct |
3 ms |
328 KB |
Output is correct |
32 |
Correct |
3 ms |
328 KB |
Output is correct |
33 |
Correct |
0 ms |
328 KB |
Output is correct |
34 |
Correct |
0 ms |
200 KB |
Output is correct |
35 |
Correct |
2 ms |
200 KB |
Output is correct |
36 |
Correct |
2 ms |
328 KB |
Output is correct |
37 |
Correct |
3 ms |
328 KB |
Output is correct |
38 |
Correct |
3 ms |
328 KB |
Output is correct |
39 |
Correct |
3 ms |
328 KB |
Output is correct |
40 |
Correct |
3 ms |
328 KB |
Output is correct |
41 |
Correct |
0 ms |
200 KB |
Output is correct |
42 |
Correct |
1 ms |
328 KB |
Output is correct |
43 |
Correct |
1 ms |
328 KB |
Output is correct |
44 |
Correct |
1 ms |
328 KB |
Output is correct |
45 |
Correct |
1 ms |
328 KB |
Output is correct |
46 |
Correct |
1 ms |
328 KB |
Output is correct |
47 |
Correct |
1 ms |
328 KB |
Output is correct |
48 |
Correct |
1 ms |
200 KB |
Output is correct |
49 |
Correct |
0 ms |
200 KB |
Output is correct |
50 |
Correct |
0 ms |
328 KB |
Output is correct |
51 |
Correct |
0 ms |
200 KB |
Output is correct |
52 |
Correct |
2 ms |
200 KB |
Output is correct |
53 |
Correct |
3 ms |
328 KB |
Output is correct |
54 |
Correct |
2 ms |
328 KB |
Output is correct |
55 |
Correct |
3 ms |
328 KB |
Output is correct |
56 |
Correct |
1 ms |
328 KB |
Output is correct |
57 |
Correct |
3 ms |
328 KB |
Output is correct |
58 |
Correct |
2 ms |
200 KB |
Output is correct |
59 |
Correct |
3 ms |
328 KB |
Output is correct |
60 |
Correct |
3 ms |
328 KB |
Output is correct |
61 |
Correct |
4 ms |
328 KB |
Output is correct |
62 |
Correct |
4 ms |
328 KB |
Output is correct |
63 |
Correct |
4 ms |
328 KB |
Output is correct |
64 |
Correct |
3 ms |
328 KB |
Output is correct |
65 |
Correct |
1 ms |
328 KB |
Output is correct |
66 |
Correct |
29 ms |
712 KB |
Output is correct |
67 |
Correct |
44 ms |
712 KB |
Output is correct |
68 |
Correct |
7 ms |
660 KB |
Output is correct |
69 |
Correct |
46 ms |
712 KB |
Output is correct |
70 |
Correct |
14 ms |
328 KB |
Output is correct |
71 |
Correct |
42 ms |
712 KB |
Output is correct |
72 |
Correct |
17 ms |
200 KB |
Output is correct |
73 |
Correct |
58 ms |
712 KB |
Output is correct |
74 |
Correct |
47 ms |
712 KB |
Output is correct |
75 |
Correct |
43 ms |
712 KB |
Output is correct |
76 |
Correct |
58 ms |
712 KB |
Output is correct |
77 |
Correct |
41 ms |
712 KB |
Output is correct |
78 |
Correct |
36 ms |
712 KB |
Output is correct |
79 |
Correct |
0 ms |
200 KB |
Output is correct |
80 |
Correct |
1 ms |
328 KB |
Output is correct |
81 |
Correct |
3 ms |
328 KB |
Output is correct |
82 |
Correct |
3 ms |
328 KB |
Output is correct |
83 |
Correct |
3 ms |
328 KB |
Output is correct |
84 |
Correct |
3 ms |
328 KB |
Output is correct |
85 |
Correct |
3 ms |
328 KB |
Output is correct |
86 |
Correct |
0 ms |
328 KB |
Output is correct |
87 |
Correct |
0 ms |
200 KB |
Output is correct |
88 |
Correct |
2 ms |
200 KB |
Output is correct |
89 |
Correct |
3 ms |
328 KB |
Output is correct |
90 |
Correct |
3 ms |
328 KB |
Output is correct |
91 |
Correct |
3 ms |
328 KB |
Output is correct |
92 |
Correct |
3 ms |
328 KB |
Output is correct |
93 |
Correct |
3 ms |
328 KB |
Output is correct |
94 |
Correct |
0 ms |
200 KB |
Output is correct |
95 |
Correct |
0 ms |
328 KB |
Output is correct |
96 |
Correct |
1 ms |
328 KB |
Output is correct |
97 |
Correct |
1 ms |
328 KB |
Output is correct |
98 |
Correct |
1 ms |
328 KB |
Output is correct |
99 |
Correct |
1 ms |
328 KB |
Output is correct |
100 |
Correct |
1 ms |
328 KB |
Output is correct |
101 |
Correct |
0 ms |
328 KB |
Output is correct |
102 |
Correct |
4 ms |
328 KB |
Output is correct |
103 |
Correct |
43 ms |
820 KB |
Output is correct |
104 |
Correct |
55 ms |
712 KB |
Output is correct |
105 |
Correct |
43 ms |
820 KB |
Output is correct |
106 |
Correct |
57 ms |
712 KB |
Output is correct |
107 |
Correct |
49 ms |
712 KB |
Output is correct |
108 |
Correct |
0 ms |
328 KB |
Output is correct |
109 |
Correct |
1 ms |
456 KB |
Output is correct |
110 |
Correct |
23 ms |
712 KB |
Output is correct |
111 |
Correct |
44 ms |
712 KB |
Output is correct |
112 |
Correct |
19 ms |
712 KB |
Output is correct |
113 |
Correct |
42 ms |
712 KB |
Output is correct |
114 |
Correct |
36 ms |
712 KB |
Output is correct |
115 |
Correct |
0 ms |
328 KB |
Output is correct |
116 |
Correct |
1 ms |
456 KB |
Output is correct |
117 |
Correct |
1 ms |
712 KB |
Output is correct |
118 |
Correct |
1 ms |
712 KB |
Output is correct |
119 |
Correct |
1 ms |
712 KB |
Output is correct |
120 |
Correct |
1 ms |
712 KB |
Output is correct |
121 |
Correct |
1 ms |
712 KB |
Output is correct |
122 |
Correct |
0 ms |
200 KB |
Output is correct |
123 |
Correct |
0 ms |
200 KB |
Output is correct |
124 |
Correct |
1 ms |
200 KB |
Output is correct |
125 |
Correct |
0 ms |
200 KB |
Output is correct |
126 |
Correct |
99 ms |
39972 KB |
Output is correct |
127 |
Correct |
117 ms |
49580 KB |
Output is correct |
128 |
Correct |
59 ms |
25504 KB |
Output is correct |
129 |
Correct |
117 ms |
50320 KB |
Output is correct |
130 |
Correct |
12 ms |
7752 KB |
Output is correct |
131 |
Correct |
117 ms |
49568 KB |
Output is correct |
132 |
Correct |
21 ms |
2624 KB |
Output is correct |
133 |
Correct |
119 ms |
50332 KB |
Output is correct |
134 |
Correct |
120 ms |
50200 KB |
Output is correct |
135 |
Correct |
114 ms |
49564 KB |
Output is correct |
136 |
Correct |
141 ms |
49960 KB |
Output is correct |
137 |
Correct |
119 ms |
50308 KB |
Output is correct |
138 |
Correct |
122 ms |
50240 KB |
Output is correct |
139 |
Correct |
1 ms |
200 KB |
Output is correct |
140 |
Correct |
0 ms |
328 KB |
Output is correct |
141 |
Correct |
1 ms |
328 KB |
Output is correct |
142 |
Correct |
1 ms |
328 KB |
Output is correct |
143 |
Correct |
1 ms |
328 KB |
Output is correct |
144 |
Correct |
1 ms |
328 KB |
Output is correct |
145 |
Correct |
1 ms |
328 KB |
Output is correct |
146 |
Correct |
0 ms |
328 KB |
Output is correct |
147 |
Correct |
1 ms |
456 KB |
Output is correct |
148 |
Correct |
1 ms |
712 KB |
Output is correct |
149 |
Correct |
1 ms |
712 KB |
Output is correct |
150 |
Correct |
1 ms |
820 KB |
Output is correct |
151 |
Correct |
1 ms |
712 KB |
Output is correct |
152 |
Correct |
1 ms |
712 KB |
Output is correct |
153 |
Correct |
0 ms |
200 KB |
Output is correct |
154 |
Correct |
120 ms |
49436 KB |
Output is correct |
155 |
Correct |
120 ms |
49568 KB |
Output is correct |
156 |
Correct |
126 ms |
50204 KB |
Output is correct |
157 |
Correct |
118 ms |
49608 KB |
Output is correct |
158 |
Correct |
150 ms |
49932 KB |
Output is correct |
159 |
Correct |
125 ms |
50448 KB |
Output is correct |
160 |
Correct |
0 ms |
200 KB |
Output is correct |
161 |
Correct |
65 ms |
28828 KB |
Output is correct |
162 |
Correct |
124 ms |
49588 KB |
Output is correct |
163 |
Correct |
120 ms |
50212 KB |
Output is correct |
164 |
Correct |
122 ms |
49600 KB |
Output is correct |
165 |
Correct |
154 ms |
49932 KB |
Output is correct |
166 |
Correct |
121 ms |
50444 KB |
Output is correct |
167 |
Correct |
1 ms |
200 KB |
Output is correct |
168 |
Correct |
0 ms |
200 KB |
Output is correct |
169 |
Correct |
1 ms |
200 KB |
Output is correct |
170 |
Correct |
361 ms |
22812 KB |
Output is correct |
171 |
Correct |
1257 ms |
49568 KB |
Output is correct |
172 |
Correct |
769 ms |
8392 KB |
Output is correct |
173 |
Correct |
1061 ms |
49564 KB |
Output is correct |
174 |
Correct |
762 ms |
17252 KB |
Output is correct |
175 |
Correct |
1432 ms |
49596 KB |
Output is correct |
176 |
Correct |
920 ms |
2624 KB |
Output is correct |
177 |
Execution timed out |
4013 ms |
50240 KB |
Time limit exceeded |
178 |
Halted |
0 ms |
0 KB |
- |