#include <bits/stdc++.h>
#define int long long
using namespace std;
template<class T> struct SegmentTree{
T comb(T &x, T &y){ return {max(y[0], x[0] + y[1]), x[1] + y[1]}; }
int n = 1, i; vector<T> a;
SegmentTree(int N){ while((n+=n)<N); a.resize(2*n); }
SegmentTree& operator[](int j){ i=j+n; return *this; }
void operator=(int v){
a[i] = {max(v, 0LL), v};
while(i/=2) a[i] = comb(a[2*i], a[2*i+1]);
}
T operator()(int l, int r){
T lx = {0, 0}, rx = lx;
for(l+=n, r+=n+1; l<r; l/=2, r/=2){
if(l & 1) lx = comb(lx, a[l++]);
if(r & 1) rx = comb(a[--r], rx);
}
return comb(lx, rx);
}
};
struct FenwickTree{
vector<int> a; int n;
FenwickTree(int N) : a((n=N)+1) {}
void add(int i, int v){
for(++i; i<=n; i+=i&-i) a[i] += v;
}
int get(int i){
int v = 0;
for(++i; i>=1; i-=i&-i) v += a[i];
return v;
}
int lower_bound(int v){
int i = 0, j = 1<<19;
while(j/=2)
if(i+j<=n && a[i+j]<v) v -= a[i+=j];
return i;
}
};
const int LIM = 2.5e5+1;
int n, m, q, groupAt[LIM], ans[LIM];
array<int, 3> a[LIM];
vector<int> qL[LIM], qR[LIM], b[LIM];
signed main(){
cin.tie(0)->sync_with_stdio(0);
cin >> n >> m >> q;
for(int i=0, t; i<q; ++i){
auto &[l, r, k] = a[i];
cin >> t >> l >> r;
if(t < 3){
qL[l].push_back(i);
qR[r].push_back(i);
}
if(t < 2){
cin >> groupAt[i] >> k;
}else if(t < 3){
cin >> k; k = -k;
}else{
b[l].push_back(i);
l = -1;
}
}
SegmentTree<array<int, 2>> st(q);
FenwickTree F(q);
for(int i=1; i<=n; ++i){
for(int &j : qR[i-1]){
st[j] = 0;
if(a[j][2] > 0) F.add(j,-a[j][2]);
}
for(int &j : qL[i]){
st[j] = a[j][2];
if(a[j][2] > 0) F.add(j, a[j][2]);
}
for(int &j : b[i]){
auto v = st(0, j);
if(v[0] >= a[j][1]){
ans[j] = groupAt[F.lower_bound(F.get(j) - v[0] + a[j][1])];
}
}
}
for(int i=0; i<q; ++i){
if(a[i][0] < 0) cout << ans[i] << '\n';
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
18032 KB |
Output is correct |
2 |
Correct |
12 ms |
18124 KB |
Output is correct |
3 |
Correct |
13 ms |
18032 KB |
Output is correct |
4 |
Correct |
12 ms |
18064 KB |
Output is correct |
5 |
Correct |
11 ms |
18124 KB |
Output is correct |
6 |
Correct |
11 ms |
18108 KB |
Output is correct |
7 |
Correct |
12 ms |
18124 KB |
Output is correct |
8 |
Correct |
12 ms |
18124 KB |
Output is correct |
9 |
Correct |
12 ms |
18052 KB |
Output is correct |
10 |
Correct |
12 ms |
18124 KB |
Output is correct |
11 |
Correct |
12 ms |
18124 KB |
Output is correct |
12 |
Correct |
12 ms |
18184 KB |
Output is correct |
13 |
Correct |
11 ms |
18124 KB |
Output is correct |
14 |
Correct |
11 ms |
18172 KB |
Output is correct |
15 |
Correct |
11 ms |
18040 KB |
Output is correct |
16 |
Correct |
11 ms |
18056 KB |
Output is correct |
17 |
Correct |
12 ms |
18152 KB |
Output is correct |
18 |
Correct |
12 ms |
18164 KB |
Output is correct |
19 |
Correct |
12 ms |
18168 KB |
Output is correct |
20 |
Correct |
13 ms |
18124 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
18032 KB |
Output is correct |
2 |
Correct |
12 ms |
18124 KB |
Output is correct |
3 |
Correct |
13 ms |
18032 KB |
Output is correct |
4 |
Correct |
12 ms |
18064 KB |
Output is correct |
5 |
Correct |
11 ms |
18124 KB |
Output is correct |
6 |
Correct |
11 ms |
18108 KB |
Output is correct |
7 |
Correct |
12 ms |
18124 KB |
Output is correct |
8 |
Correct |
12 ms |
18124 KB |
Output is correct |
9 |
Correct |
12 ms |
18052 KB |
Output is correct |
10 |
Correct |
12 ms |
18124 KB |
Output is correct |
11 |
Correct |
12 ms |
18124 KB |
Output is correct |
12 |
Correct |
12 ms |
18184 KB |
Output is correct |
13 |
Correct |
11 ms |
18124 KB |
Output is correct |
14 |
Correct |
11 ms |
18172 KB |
Output is correct |
15 |
Correct |
11 ms |
18040 KB |
Output is correct |
16 |
Correct |
11 ms |
18056 KB |
Output is correct |
17 |
Correct |
12 ms |
18152 KB |
Output is correct |
18 |
Correct |
12 ms |
18164 KB |
Output is correct |
19 |
Correct |
12 ms |
18168 KB |
Output is correct |
20 |
Correct |
13 ms |
18124 KB |
Output is correct |
21 |
Correct |
11 ms |
18124 KB |
Output is correct |
22 |
Correct |
11 ms |
18188 KB |
Output is correct |
23 |
Correct |
13 ms |
18088 KB |
Output is correct |
24 |
Correct |
14 ms |
18124 KB |
Output is correct |
25 |
Correct |
12 ms |
18132 KB |
Output is correct |
26 |
Correct |
12 ms |
18124 KB |
Output is correct |
27 |
Correct |
12 ms |
18092 KB |
Output is correct |
28 |
Correct |
12 ms |
18124 KB |
Output is correct |
29 |
Correct |
12 ms |
18124 KB |
Output is correct |
30 |
Correct |
12 ms |
18056 KB |
Output is correct |
31 |
Correct |
12 ms |
18124 KB |
Output is correct |
32 |
Correct |
13 ms |
18180 KB |
Output is correct |
33 |
Correct |
12 ms |
18052 KB |
Output is correct |
34 |
Correct |
12 ms |
18124 KB |
Output is correct |
35 |
Correct |
12 ms |
18132 KB |
Output is correct |
36 |
Correct |
12 ms |
18124 KB |
Output is correct |
37 |
Correct |
12 ms |
18100 KB |
Output is correct |
38 |
Correct |
12 ms |
18168 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
25208 KB |
Output is correct |
2 |
Correct |
79 ms |
25220 KB |
Output is correct |
3 |
Correct |
74 ms |
25156 KB |
Output is correct |
4 |
Correct |
77 ms |
25364 KB |
Output is correct |
5 |
Correct |
74 ms |
25316 KB |
Output is correct |
6 |
Correct |
77 ms |
25284 KB |
Output is correct |
7 |
Correct |
42 ms |
23928 KB |
Output is correct |
8 |
Correct |
42 ms |
24092 KB |
Output is correct |
9 |
Correct |
73 ms |
25100 KB |
Output is correct |
10 |
Correct |
79 ms |
25284 KB |
Output is correct |
11 |
Correct |
73 ms |
25140 KB |
Output is correct |
12 |
Correct |
83 ms |
25072 KB |
Output is correct |
13 |
Correct |
81 ms |
24900 KB |
Output is correct |
14 |
Correct |
74 ms |
25632 KB |
Output is correct |
15 |
Correct |
72 ms |
25264 KB |
Output is correct |
16 |
Correct |
85 ms |
25612 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
347 ms |
45864 KB |
Output is correct |
2 |
Correct |
264 ms |
41984 KB |
Output is correct |
3 |
Correct |
371 ms |
47684 KB |
Output is correct |
4 |
Correct |
273 ms |
42048 KB |
Output is correct |
5 |
Correct |
282 ms |
42116 KB |
Output is correct |
6 |
Correct |
384 ms |
47428 KB |
Output is correct |
7 |
Correct |
155 ms |
42132 KB |
Output is correct |
8 |
Correct |
159 ms |
42308 KB |
Output is correct |
9 |
Correct |
368 ms |
46920 KB |
Output is correct |
10 |
Correct |
374 ms |
46960 KB |
Output is correct |
11 |
Correct |
388 ms |
46212 KB |
Output is correct |
12 |
Correct |
381 ms |
47180 KB |
Output is correct |
13 |
Correct |
383 ms |
46276 KB |
Output is correct |
14 |
Correct |
392 ms |
47312 KB |
Output is correct |
15 |
Correct |
374 ms |
47172 KB |
Output is correct |
16 |
Correct |
394 ms |
47188 KB |
Output is correct |
17 |
Correct |
373 ms |
47184 KB |
Output is correct |
18 |
Correct |
372 ms |
46704 KB |
Output is correct |
19 |
Correct |
379 ms |
47232 KB |
Output is correct |
20 |
Correct |
373 ms |
46788 KB |
Output is correct |
21 |
Correct |
376 ms |
47300 KB |
Output is correct |
22 |
Correct |
398 ms |
47236 KB |
Output is correct |
23 |
Correct |
382 ms |
47300 KB |
Output is correct |
24 |
Correct |
386 ms |
47216 KB |
Output is correct |
25 |
Correct |
279 ms |
44484 KB |
Output is correct |
26 |
Correct |
297 ms |
44888 KB |
Output is correct |
27 |
Correct |
298 ms |
48312 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
18032 KB |
Output is correct |
2 |
Correct |
12 ms |
18124 KB |
Output is correct |
3 |
Correct |
13 ms |
18032 KB |
Output is correct |
4 |
Correct |
12 ms |
18064 KB |
Output is correct |
5 |
Correct |
11 ms |
18124 KB |
Output is correct |
6 |
Correct |
11 ms |
18108 KB |
Output is correct |
7 |
Correct |
12 ms |
18124 KB |
Output is correct |
8 |
Correct |
12 ms |
18124 KB |
Output is correct |
9 |
Correct |
12 ms |
18052 KB |
Output is correct |
10 |
Correct |
12 ms |
18124 KB |
Output is correct |
11 |
Correct |
12 ms |
18124 KB |
Output is correct |
12 |
Correct |
12 ms |
18184 KB |
Output is correct |
13 |
Correct |
11 ms |
18124 KB |
Output is correct |
14 |
Correct |
11 ms |
18172 KB |
Output is correct |
15 |
Correct |
11 ms |
18040 KB |
Output is correct |
16 |
Correct |
11 ms |
18056 KB |
Output is correct |
17 |
Correct |
12 ms |
18152 KB |
Output is correct |
18 |
Correct |
12 ms |
18164 KB |
Output is correct |
19 |
Correct |
12 ms |
18168 KB |
Output is correct |
20 |
Correct |
13 ms |
18124 KB |
Output is correct |
21 |
Correct |
94 ms |
25208 KB |
Output is correct |
22 |
Correct |
79 ms |
25220 KB |
Output is correct |
23 |
Correct |
74 ms |
25156 KB |
Output is correct |
24 |
Correct |
77 ms |
25364 KB |
Output is correct |
25 |
Correct |
74 ms |
25316 KB |
Output is correct |
26 |
Correct |
77 ms |
25284 KB |
Output is correct |
27 |
Correct |
42 ms |
23928 KB |
Output is correct |
28 |
Correct |
42 ms |
24092 KB |
Output is correct |
29 |
Correct |
73 ms |
25100 KB |
Output is correct |
30 |
Correct |
79 ms |
25284 KB |
Output is correct |
31 |
Correct |
73 ms |
25140 KB |
Output is correct |
32 |
Correct |
83 ms |
25072 KB |
Output is correct |
33 |
Correct |
81 ms |
24900 KB |
Output is correct |
34 |
Correct |
74 ms |
25632 KB |
Output is correct |
35 |
Correct |
72 ms |
25264 KB |
Output is correct |
36 |
Correct |
85 ms |
25612 KB |
Output is correct |
37 |
Correct |
67 ms |
25000 KB |
Output is correct |
38 |
Correct |
60 ms |
24376 KB |
Output is correct |
39 |
Correct |
40 ms |
23432 KB |
Output is correct |
40 |
Correct |
42 ms |
23992 KB |
Output is correct |
41 |
Correct |
81 ms |
25212 KB |
Output is correct |
42 |
Correct |
79 ms |
25464 KB |
Output is correct |
43 |
Correct |
86 ms |
25500 KB |
Output is correct |
44 |
Correct |
75 ms |
25408 KB |
Output is correct |
45 |
Correct |
81 ms |
25496 KB |
Output is correct |
46 |
Correct |
79 ms |
25540 KB |
Output is correct |
47 |
Correct |
53 ms |
24324 KB |
Output is correct |
48 |
Correct |
65 ms |
24848 KB |
Output is correct |
49 |
Correct |
51 ms |
23924 KB |
Output is correct |
50 |
Correct |
65 ms |
24812 KB |
Output is correct |
51 |
Correct |
79 ms |
25560 KB |
Output is correct |
52 |
Correct |
76 ms |
25616 KB |
Output is correct |
53 |
Correct |
64 ms |
24484 KB |
Output is correct |
54 |
Correct |
75 ms |
25556 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
76 ms |
24956 KB |
Output is correct |
2 |
Correct |
86 ms |
25472 KB |
Output is correct |
3 |
Correct |
104 ms |
25520 KB |
Output is correct |
4 |
Correct |
59 ms |
23860 KB |
Output is correct |
5 |
Correct |
69 ms |
24712 KB |
Output is correct |
6 |
Correct |
83 ms |
25420 KB |
Output is correct |
7 |
Correct |
46 ms |
23572 KB |
Output is correct |
8 |
Correct |
44 ms |
23392 KB |
Output is correct |
9 |
Correct |
60 ms |
24508 KB |
Output is correct |
10 |
Correct |
50 ms |
23380 KB |
Output is correct |
11 |
Correct |
70 ms |
24732 KB |
Output is correct |
12 |
Correct |
75 ms |
24692 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
18032 KB |
Output is correct |
2 |
Correct |
12 ms |
18124 KB |
Output is correct |
3 |
Correct |
13 ms |
18032 KB |
Output is correct |
4 |
Correct |
12 ms |
18064 KB |
Output is correct |
5 |
Correct |
11 ms |
18124 KB |
Output is correct |
6 |
Correct |
11 ms |
18108 KB |
Output is correct |
7 |
Correct |
12 ms |
18124 KB |
Output is correct |
8 |
Correct |
12 ms |
18124 KB |
Output is correct |
9 |
Correct |
12 ms |
18052 KB |
Output is correct |
10 |
Correct |
12 ms |
18124 KB |
Output is correct |
11 |
Correct |
12 ms |
18124 KB |
Output is correct |
12 |
Correct |
12 ms |
18184 KB |
Output is correct |
13 |
Correct |
11 ms |
18124 KB |
Output is correct |
14 |
Correct |
11 ms |
18172 KB |
Output is correct |
15 |
Correct |
11 ms |
18040 KB |
Output is correct |
16 |
Correct |
11 ms |
18056 KB |
Output is correct |
17 |
Correct |
12 ms |
18152 KB |
Output is correct |
18 |
Correct |
12 ms |
18164 KB |
Output is correct |
19 |
Correct |
12 ms |
18168 KB |
Output is correct |
20 |
Correct |
13 ms |
18124 KB |
Output is correct |
21 |
Correct |
11 ms |
18124 KB |
Output is correct |
22 |
Correct |
11 ms |
18188 KB |
Output is correct |
23 |
Correct |
13 ms |
18088 KB |
Output is correct |
24 |
Correct |
14 ms |
18124 KB |
Output is correct |
25 |
Correct |
12 ms |
18132 KB |
Output is correct |
26 |
Correct |
12 ms |
18124 KB |
Output is correct |
27 |
Correct |
12 ms |
18092 KB |
Output is correct |
28 |
Correct |
12 ms |
18124 KB |
Output is correct |
29 |
Correct |
12 ms |
18124 KB |
Output is correct |
30 |
Correct |
12 ms |
18056 KB |
Output is correct |
31 |
Correct |
12 ms |
18124 KB |
Output is correct |
32 |
Correct |
13 ms |
18180 KB |
Output is correct |
33 |
Correct |
12 ms |
18052 KB |
Output is correct |
34 |
Correct |
12 ms |
18124 KB |
Output is correct |
35 |
Correct |
12 ms |
18132 KB |
Output is correct |
36 |
Correct |
12 ms |
18124 KB |
Output is correct |
37 |
Correct |
12 ms |
18100 KB |
Output is correct |
38 |
Correct |
12 ms |
18168 KB |
Output is correct |
39 |
Correct |
94 ms |
25208 KB |
Output is correct |
40 |
Correct |
79 ms |
25220 KB |
Output is correct |
41 |
Correct |
74 ms |
25156 KB |
Output is correct |
42 |
Correct |
77 ms |
25364 KB |
Output is correct |
43 |
Correct |
74 ms |
25316 KB |
Output is correct |
44 |
Correct |
77 ms |
25284 KB |
Output is correct |
45 |
Correct |
42 ms |
23928 KB |
Output is correct |
46 |
Correct |
42 ms |
24092 KB |
Output is correct |
47 |
Correct |
73 ms |
25100 KB |
Output is correct |
48 |
Correct |
79 ms |
25284 KB |
Output is correct |
49 |
Correct |
73 ms |
25140 KB |
Output is correct |
50 |
Correct |
83 ms |
25072 KB |
Output is correct |
51 |
Correct |
81 ms |
24900 KB |
Output is correct |
52 |
Correct |
74 ms |
25632 KB |
Output is correct |
53 |
Correct |
72 ms |
25264 KB |
Output is correct |
54 |
Correct |
85 ms |
25612 KB |
Output is correct |
55 |
Correct |
67 ms |
25000 KB |
Output is correct |
56 |
Correct |
60 ms |
24376 KB |
Output is correct |
57 |
Correct |
40 ms |
23432 KB |
Output is correct |
58 |
Correct |
42 ms |
23992 KB |
Output is correct |
59 |
Correct |
81 ms |
25212 KB |
Output is correct |
60 |
Correct |
79 ms |
25464 KB |
Output is correct |
61 |
Correct |
86 ms |
25500 KB |
Output is correct |
62 |
Correct |
75 ms |
25408 KB |
Output is correct |
63 |
Correct |
81 ms |
25496 KB |
Output is correct |
64 |
Correct |
79 ms |
25540 KB |
Output is correct |
65 |
Correct |
53 ms |
24324 KB |
Output is correct |
66 |
Correct |
65 ms |
24848 KB |
Output is correct |
67 |
Correct |
51 ms |
23924 KB |
Output is correct |
68 |
Correct |
65 ms |
24812 KB |
Output is correct |
69 |
Correct |
79 ms |
25560 KB |
Output is correct |
70 |
Correct |
76 ms |
25616 KB |
Output is correct |
71 |
Correct |
64 ms |
24484 KB |
Output is correct |
72 |
Correct |
75 ms |
25556 KB |
Output is correct |
73 |
Correct |
76 ms |
24956 KB |
Output is correct |
74 |
Correct |
86 ms |
25472 KB |
Output is correct |
75 |
Correct |
104 ms |
25520 KB |
Output is correct |
76 |
Correct |
59 ms |
23860 KB |
Output is correct |
77 |
Correct |
69 ms |
24712 KB |
Output is correct |
78 |
Correct |
83 ms |
25420 KB |
Output is correct |
79 |
Correct |
46 ms |
23572 KB |
Output is correct |
80 |
Correct |
44 ms |
23392 KB |
Output is correct |
81 |
Correct |
60 ms |
24508 KB |
Output is correct |
82 |
Correct |
50 ms |
23380 KB |
Output is correct |
83 |
Correct |
70 ms |
24732 KB |
Output is correct |
84 |
Correct |
75 ms |
24692 KB |
Output is correct |
85 |
Correct |
72 ms |
25184 KB |
Output is correct |
86 |
Correct |
81 ms |
25644 KB |
Output is correct |
87 |
Correct |
72 ms |
24848 KB |
Output is correct |
88 |
Correct |
88 ms |
25552 KB |
Output is correct |
89 |
Correct |
55 ms |
23548 KB |
Output is correct |
90 |
Correct |
86 ms |
25492 KB |
Output is correct |
91 |
Correct |
68 ms |
24500 KB |
Output is correct |
92 |
Correct |
62 ms |
24288 KB |
Output is correct |
93 |
Correct |
80 ms |
25504 KB |
Output is correct |
94 |
Correct |
89 ms |
25312 KB |
Output is correct |
95 |
Correct |
77 ms |
25284 KB |
Output is correct |
96 |
Correct |
79 ms |
25460 KB |
Output is correct |
97 |
Correct |
81 ms |
25552 KB |
Output is correct |
98 |
Correct |
73 ms |
24644 KB |
Output is correct |
99 |
Correct |
55 ms |
24400 KB |
Output is correct |
100 |
Correct |
59 ms |
23904 KB |
Output is correct |
101 |
Correct |
71 ms |
24872 KB |
Output is correct |
102 |
Correct |
72 ms |
25796 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
18032 KB |
Output is correct |
2 |
Correct |
12 ms |
18124 KB |
Output is correct |
3 |
Correct |
13 ms |
18032 KB |
Output is correct |
4 |
Correct |
12 ms |
18064 KB |
Output is correct |
5 |
Correct |
11 ms |
18124 KB |
Output is correct |
6 |
Correct |
11 ms |
18108 KB |
Output is correct |
7 |
Correct |
12 ms |
18124 KB |
Output is correct |
8 |
Correct |
12 ms |
18124 KB |
Output is correct |
9 |
Correct |
12 ms |
18052 KB |
Output is correct |
10 |
Correct |
12 ms |
18124 KB |
Output is correct |
11 |
Correct |
12 ms |
18124 KB |
Output is correct |
12 |
Correct |
12 ms |
18184 KB |
Output is correct |
13 |
Correct |
11 ms |
18124 KB |
Output is correct |
14 |
Correct |
11 ms |
18172 KB |
Output is correct |
15 |
Correct |
11 ms |
18040 KB |
Output is correct |
16 |
Correct |
11 ms |
18056 KB |
Output is correct |
17 |
Correct |
12 ms |
18152 KB |
Output is correct |
18 |
Correct |
12 ms |
18164 KB |
Output is correct |
19 |
Correct |
12 ms |
18168 KB |
Output is correct |
20 |
Correct |
13 ms |
18124 KB |
Output is correct |
21 |
Correct |
11 ms |
18124 KB |
Output is correct |
22 |
Correct |
11 ms |
18188 KB |
Output is correct |
23 |
Correct |
13 ms |
18088 KB |
Output is correct |
24 |
Correct |
14 ms |
18124 KB |
Output is correct |
25 |
Correct |
12 ms |
18132 KB |
Output is correct |
26 |
Correct |
12 ms |
18124 KB |
Output is correct |
27 |
Correct |
12 ms |
18092 KB |
Output is correct |
28 |
Correct |
12 ms |
18124 KB |
Output is correct |
29 |
Correct |
12 ms |
18124 KB |
Output is correct |
30 |
Correct |
12 ms |
18056 KB |
Output is correct |
31 |
Correct |
12 ms |
18124 KB |
Output is correct |
32 |
Correct |
13 ms |
18180 KB |
Output is correct |
33 |
Correct |
12 ms |
18052 KB |
Output is correct |
34 |
Correct |
12 ms |
18124 KB |
Output is correct |
35 |
Correct |
12 ms |
18132 KB |
Output is correct |
36 |
Correct |
12 ms |
18124 KB |
Output is correct |
37 |
Correct |
12 ms |
18100 KB |
Output is correct |
38 |
Correct |
12 ms |
18168 KB |
Output is correct |
39 |
Correct |
94 ms |
25208 KB |
Output is correct |
40 |
Correct |
79 ms |
25220 KB |
Output is correct |
41 |
Correct |
74 ms |
25156 KB |
Output is correct |
42 |
Correct |
77 ms |
25364 KB |
Output is correct |
43 |
Correct |
74 ms |
25316 KB |
Output is correct |
44 |
Correct |
77 ms |
25284 KB |
Output is correct |
45 |
Correct |
42 ms |
23928 KB |
Output is correct |
46 |
Correct |
42 ms |
24092 KB |
Output is correct |
47 |
Correct |
73 ms |
25100 KB |
Output is correct |
48 |
Correct |
79 ms |
25284 KB |
Output is correct |
49 |
Correct |
73 ms |
25140 KB |
Output is correct |
50 |
Correct |
83 ms |
25072 KB |
Output is correct |
51 |
Correct |
81 ms |
24900 KB |
Output is correct |
52 |
Correct |
74 ms |
25632 KB |
Output is correct |
53 |
Correct |
72 ms |
25264 KB |
Output is correct |
54 |
Correct |
85 ms |
25612 KB |
Output is correct |
55 |
Correct |
347 ms |
45864 KB |
Output is correct |
56 |
Correct |
264 ms |
41984 KB |
Output is correct |
57 |
Correct |
371 ms |
47684 KB |
Output is correct |
58 |
Correct |
273 ms |
42048 KB |
Output is correct |
59 |
Correct |
282 ms |
42116 KB |
Output is correct |
60 |
Correct |
384 ms |
47428 KB |
Output is correct |
61 |
Correct |
155 ms |
42132 KB |
Output is correct |
62 |
Correct |
159 ms |
42308 KB |
Output is correct |
63 |
Correct |
368 ms |
46920 KB |
Output is correct |
64 |
Correct |
374 ms |
46960 KB |
Output is correct |
65 |
Correct |
388 ms |
46212 KB |
Output is correct |
66 |
Correct |
381 ms |
47180 KB |
Output is correct |
67 |
Correct |
383 ms |
46276 KB |
Output is correct |
68 |
Correct |
392 ms |
47312 KB |
Output is correct |
69 |
Correct |
374 ms |
47172 KB |
Output is correct |
70 |
Correct |
394 ms |
47188 KB |
Output is correct |
71 |
Correct |
373 ms |
47184 KB |
Output is correct |
72 |
Correct |
372 ms |
46704 KB |
Output is correct |
73 |
Correct |
379 ms |
47232 KB |
Output is correct |
74 |
Correct |
373 ms |
46788 KB |
Output is correct |
75 |
Correct |
376 ms |
47300 KB |
Output is correct |
76 |
Correct |
398 ms |
47236 KB |
Output is correct |
77 |
Correct |
382 ms |
47300 KB |
Output is correct |
78 |
Correct |
386 ms |
47216 KB |
Output is correct |
79 |
Correct |
279 ms |
44484 KB |
Output is correct |
80 |
Correct |
297 ms |
44888 KB |
Output is correct |
81 |
Correct |
298 ms |
48312 KB |
Output is correct |
82 |
Correct |
67 ms |
25000 KB |
Output is correct |
83 |
Correct |
60 ms |
24376 KB |
Output is correct |
84 |
Correct |
40 ms |
23432 KB |
Output is correct |
85 |
Correct |
42 ms |
23992 KB |
Output is correct |
86 |
Correct |
81 ms |
25212 KB |
Output is correct |
87 |
Correct |
79 ms |
25464 KB |
Output is correct |
88 |
Correct |
86 ms |
25500 KB |
Output is correct |
89 |
Correct |
75 ms |
25408 KB |
Output is correct |
90 |
Correct |
81 ms |
25496 KB |
Output is correct |
91 |
Correct |
79 ms |
25540 KB |
Output is correct |
92 |
Correct |
53 ms |
24324 KB |
Output is correct |
93 |
Correct |
65 ms |
24848 KB |
Output is correct |
94 |
Correct |
51 ms |
23924 KB |
Output is correct |
95 |
Correct |
65 ms |
24812 KB |
Output is correct |
96 |
Correct |
79 ms |
25560 KB |
Output is correct |
97 |
Correct |
76 ms |
25616 KB |
Output is correct |
98 |
Correct |
64 ms |
24484 KB |
Output is correct |
99 |
Correct |
75 ms |
25556 KB |
Output is correct |
100 |
Correct |
76 ms |
24956 KB |
Output is correct |
101 |
Correct |
86 ms |
25472 KB |
Output is correct |
102 |
Correct |
104 ms |
25520 KB |
Output is correct |
103 |
Correct |
59 ms |
23860 KB |
Output is correct |
104 |
Correct |
69 ms |
24712 KB |
Output is correct |
105 |
Correct |
83 ms |
25420 KB |
Output is correct |
106 |
Correct |
46 ms |
23572 KB |
Output is correct |
107 |
Correct |
44 ms |
23392 KB |
Output is correct |
108 |
Correct |
60 ms |
24508 KB |
Output is correct |
109 |
Correct |
50 ms |
23380 KB |
Output is correct |
110 |
Correct |
70 ms |
24732 KB |
Output is correct |
111 |
Correct |
75 ms |
24692 KB |
Output is correct |
112 |
Correct |
72 ms |
25184 KB |
Output is correct |
113 |
Correct |
81 ms |
25644 KB |
Output is correct |
114 |
Correct |
72 ms |
24848 KB |
Output is correct |
115 |
Correct |
88 ms |
25552 KB |
Output is correct |
116 |
Correct |
55 ms |
23548 KB |
Output is correct |
117 |
Correct |
86 ms |
25492 KB |
Output is correct |
118 |
Correct |
68 ms |
24500 KB |
Output is correct |
119 |
Correct |
62 ms |
24288 KB |
Output is correct |
120 |
Correct |
80 ms |
25504 KB |
Output is correct |
121 |
Correct |
89 ms |
25312 KB |
Output is correct |
122 |
Correct |
77 ms |
25284 KB |
Output is correct |
123 |
Correct |
79 ms |
25460 KB |
Output is correct |
124 |
Correct |
81 ms |
25552 KB |
Output is correct |
125 |
Correct |
73 ms |
24644 KB |
Output is correct |
126 |
Correct |
55 ms |
24400 KB |
Output is correct |
127 |
Correct |
59 ms |
23904 KB |
Output is correct |
128 |
Correct |
71 ms |
24872 KB |
Output is correct |
129 |
Correct |
72 ms |
25796 KB |
Output is correct |
130 |
Correct |
385 ms |
47764 KB |
Output is correct |
131 |
Correct |
282 ms |
42116 KB |
Output is correct |
132 |
Correct |
397 ms |
48048 KB |
Output is correct |
133 |
Correct |
383 ms |
46788 KB |
Output is correct |
134 |
Correct |
331 ms |
44652 KB |
Output is correct |
135 |
Correct |
411 ms |
47632 KB |
Output is correct |
136 |
Correct |
379 ms |
47380 KB |
Output is correct |
137 |
Correct |
376 ms |
47172 KB |
Output is correct |
138 |
Correct |
388 ms |
46416 KB |
Output is correct |
139 |
Correct |
374 ms |
47512 KB |
Output is correct |
140 |
Correct |
398 ms |
46664 KB |
Output is correct |
141 |
Correct |
383 ms |
47596 KB |
Output is correct |
142 |
Correct |
382 ms |
47660 KB |
Output is correct |
143 |
Correct |
395 ms |
47452 KB |
Output is correct |
144 |
Correct |
401 ms |
46912 KB |
Output is correct |
145 |
Correct |
386 ms |
47416 KB |
Output is correct |
146 |
Correct |
393 ms |
47044 KB |
Output is correct |
147 |
Correct |
415 ms |
47564 KB |
Output is correct |
148 |
Correct |
376 ms |
47444 KB |
Output is correct |
149 |
Correct |
395 ms |
47568 KB |
Output is correct |
150 |
Correct |
211 ms |
43072 KB |
Output is correct |
151 |
Correct |
300 ms |
45268 KB |
Output is correct |
152 |
Correct |
318 ms |
45268 KB |
Output is correct |
153 |
Correct |
306 ms |
48364 KB |
Output is correct |