#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pii;
const ll INF = 1e18;
const int N = 3e5+10;
// value in point queries
// max(a_i+x, b) for (x, b) on [L, R] updates
struct maxtree {
vector<ll> t;
vector<pii> lz;
void init(int k) {
int sz=1;
while (sz < 4*k) sz*=2;
t.resize(sz), lz.resize(sz);
}
void push(int v) {
lz[2*v] = {
lz[v].first+lz[2*v].first,
max(lz[v].first+lz[2*v].second, lz[v].second)
}, t[2*v]=max(t[2*v]+lz[v].first, lz[v].second);
lz[2*v+1] = {
lz[v].first+lz[2*v+1].first,
max(lz[v].first+lz[2*v+1].second, lz[v].second)
}, t[2*v+1]=max(t[2*v+1]+lz[v].first, lz[v].second);
lz[v]={0, 0};
}
void upd(int v, int l, int r, int ql, int qr, ll val) {
if (l > qr || r < ql) return;
if (l >= ql && r <= qr) {
if (l < r) push(v);
lz[v].first+=val;
t[v]=max(t[v]+val, 0ll);
if (l < r) push(v);
return;
} int m=(l+r)/2; push(v);
upd(2*v, l, m, ql, qr, val), upd(2*v+1, m+1, r, ql, qr, val);
}
ll que(int v, int l, int r, int p) {
if (l == r) return t[v];
ll m=(l+r)/2;
push(v);
if (p <= m) return que(2*v, l, m, p);
return que(2*v+1, m+1, r, p);
}
};
ll tp[N], l[N], r[N], c[N], k[N], lft[N], x[N], ans[N];
struct segtree {
vector<pii> t;
void init(int sz) {
int k=1;
while (k < 4*sz) k*=2;
t.resize(k);
}
pii mrg(pii l, pii r) {
return make_pair(l.first+r.first, l.second+r.second);
}
void upd(int v, int l, int r, int p, pii val) {
if (l == r) {
t[v]=val;
return;
} int m=(l+r)/2;
if (p <= m) upd(2*v, l, m, p, val);
else upd(2*v+1, m+1, r, p, val);
t[v]=mrg(t[2*v], t[2*v+1]);
}
int que(int v, int l, int r, ll x) {
if (l == r) return t[v].second;
int m=(l+r)/2;
if (t[2*v].first >= x) return que(2*v, l, m, x);
return que(2*v+1, m+1, r, x-t[2*v].first);
}
};
vector<int> add[N], rem[N];
vector<int> qx[N];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
cout.tie(NULL);
int n, m, q; cin>>n>>m>>q;
maxtree mx, mx2; mx.init(n+10), mx2.init(n+10);
segtree t; t.init(q+10);
for (int i=1; i<=q; ++i) {
cin>>tp[i];
if (tp[i] == 1) {
cin>>l[i]>>r[i]>>c[i]>>k[i];
mx.upd(1, 1, n, l[i], r[i], k[i]);
mx2.upd(1, 1, n, l[i], r[i], k[i]);
add[l[i]].push_back(i);
rem[r[i]+1].push_back(i);
} else if (tp[i] == 2) {
cin>>l[i]>>r[i]>>k[i];
mx.upd(1, 1, n, l[i], r[i], -k[i]);
} else {
cin>>l[i]>>r[i];
lft[i]=mx.que(1, 1, n, l[i]);
x[i]=r[i]+(mx2.que(1, 1, n, l[i])-lft[i]);
if (lft[i] < r[i]) ans[i]=-1;
qx[l[i]].push_back(i);
}
}
for (int i=1; i<=n; ++i) {
for (auto j : add[i]) t.upd(1, 1, q, j, {k[j], c[j]});
for (auto j : rem[i]) t.upd(1, 1, q, j, {0, 0});
for (auto j : qx[i]) {
if (ans[j] == -1) continue;
ans[j]=t.que(1, 1, q, x[j]);
}
}
for (int i=1; i<=q; ++i) {
if (tp[i] != 3) continue;
if (ans[i] == -1) cout<<0<<"\n";
else cout<<ans[i]<<"\n";
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
37980 KB |
Output is correct |
2 |
Correct |
9 ms |
37988 KB |
Output is correct |
3 |
Correct |
8 ms |
37980 KB |
Output is correct |
4 |
Correct |
8 ms |
38060 KB |
Output is correct |
5 |
Correct |
7 ms |
37720 KB |
Output is correct |
6 |
Correct |
8 ms |
37720 KB |
Output is correct |
7 |
Correct |
8 ms |
38064 KB |
Output is correct |
8 |
Correct |
10 ms |
37976 KB |
Output is correct |
9 |
Correct |
9 ms |
37980 KB |
Output is correct |
10 |
Correct |
9 ms |
37980 KB |
Output is correct |
11 |
Correct |
8 ms |
38064 KB |
Output is correct |
12 |
Correct |
9 ms |
37976 KB |
Output is correct |
13 |
Correct |
8 ms |
37980 KB |
Output is correct |
14 |
Correct |
9 ms |
38152 KB |
Output is correct |
15 |
Correct |
8 ms |
38236 KB |
Output is correct |
16 |
Correct |
8 ms |
38092 KB |
Output is correct |
17 |
Correct |
8 ms |
38068 KB |
Output is correct |
18 |
Correct |
9 ms |
37976 KB |
Output is correct |
19 |
Correct |
9 ms |
37980 KB |
Output is correct |
20 |
Correct |
8 ms |
38188 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
37980 KB |
Output is correct |
2 |
Correct |
9 ms |
37988 KB |
Output is correct |
3 |
Correct |
8 ms |
37980 KB |
Output is correct |
4 |
Correct |
8 ms |
38060 KB |
Output is correct |
5 |
Correct |
7 ms |
37720 KB |
Output is correct |
6 |
Correct |
8 ms |
37720 KB |
Output is correct |
7 |
Correct |
8 ms |
38064 KB |
Output is correct |
8 |
Correct |
10 ms |
37976 KB |
Output is correct |
9 |
Correct |
9 ms |
37980 KB |
Output is correct |
10 |
Correct |
9 ms |
37980 KB |
Output is correct |
11 |
Correct |
8 ms |
38064 KB |
Output is correct |
12 |
Correct |
9 ms |
37976 KB |
Output is correct |
13 |
Correct |
8 ms |
37980 KB |
Output is correct |
14 |
Correct |
9 ms |
38152 KB |
Output is correct |
15 |
Correct |
8 ms |
38236 KB |
Output is correct |
16 |
Correct |
8 ms |
38092 KB |
Output is correct |
17 |
Correct |
8 ms |
38068 KB |
Output is correct |
18 |
Correct |
9 ms |
37976 KB |
Output is correct |
19 |
Correct |
9 ms |
37980 KB |
Output is correct |
20 |
Correct |
8 ms |
38188 KB |
Output is correct |
21 |
Correct |
9 ms |
37980 KB |
Output is correct |
22 |
Correct |
9 ms |
37980 KB |
Output is correct |
23 |
Correct |
8 ms |
37980 KB |
Output is correct |
24 |
Correct |
9 ms |
37976 KB |
Output is correct |
25 |
Correct |
7 ms |
37724 KB |
Output is correct |
26 |
Correct |
7 ms |
37980 KB |
Output is correct |
27 |
Correct |
9 ms |
37980 KB |
Output is correct |
28 |
Correct |
9 ms |
37980 KB |
Output is correct |
29 |
Correct |
10 ms |
37980 KB |
Output is correct |
30 |
Correct |
9 ms |
37976 KB |
Output is correct |
31 |
Correct |
9 ms |
37980 KB |
Output is correct |
32 |
Correct |
9 ms |
37980 KB |
Output is correct |
33 |
Correct |
8 ms |
37980 KB |
Output is correct |
34 |
Correct |
8 ms |
37980 KB |
Output is correct |
35 |
Correct |
9 ms |
38176 KB |
Output is correct |
36 |
Correct |
10 ms |
37980 KB |
Output is correct |
37 |
Correct |
9 ms |
37980 KB |
Output is correct |
38 |
Correct |
9 ms |
38208 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
74 ms |
58448 KB |
Output is correct |
2 |
Correct |
80 ms |
59352 KB |
Output is correct |
3 |
Correct |
89 ms |
58960 KB |
Output is correct |
4 |
Correct |
96 ms |
58964 KB |
Output is correct |
5 |
Correct |
112 ms |
59352 KB |
Output is correct |
6 |
Correct |
83 ms |
59328 KB |
Output is correct |
7 |
Correct |
23 ms |
44892 KB |
Output is correct |
8 |
Correct |
24 ms |
44892 KB |
Output is correct |
9 |
Correct |
81 ms |
58960 KB |
Output is correct |
10 |
Correct |
103 ms |
58788 KB |
Output is correct |
11 |
Correct |
81 ms |
58872 KB |
Output is correct |
12 |
Correct |
76 ms |
58920 KB |
Output is correct |
13 |
Correct |
72 ms |
58820 KB |
Output is correct |
14 |
Correct |
90 ms |
59528 KB |
Output is correct |
15 |
Correct |
110 ms |
59312 KB |
Output is correct |
16 |
Correct |
89 ms |
59728 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
434 ms |
114516 KB |
Output is correct |
2 |
Correct |
321 ms |
114260 KB |
Output is correct |
3 |
Correct |
510 ms |
118164 KB |
Output is correct |
4 |
Correct |
438 ms |
115280 KB |
Output is correct |
5 |
Correct |
384 ms |
115284 KB |
Output is correct |
6 |
Correct |
543 ms |
119124 KB |
Output is correct |
7 |
Correct |
81 ms |
61748 KB |
Output is correct |
8 |
Correct |
87 ms |
61828 KB |
Output is correct |
9 |
Correct |
533 ms |
120116 KB |
Output is correct |
10 |
Correct |
536 ms |
120012 KB |
Output is correct |
11 |
Correct |
494 ms |
117940 KB |
Output is correct |
12 |
Correct |
474 ms |
117844 KB |
Output is correct |
13 |
Correct |
502 ms |
117760 KB |
Output is correct |
14 |
Correct |
515 ms |
117752 KB |
Output is correct |
15 |
Correct |
484 ms |
117844 KB |
Output is correct |
16 |
Correct |
483 ms |
117740 KB |
Output is correct |
17 |
Correct |
510 ms |
117804 KB |
Output is correct |
18 |
Correct |
487 ms |
117664 KB |
Output is correct |
19 |
Correct |
493 ms |
117848 KB |
Output is correct |
20 |
Correct |
515 ms |
117956 KB |
Output is correct |
21 |
Correct |
474 ms |
117844 KB |
Output is correct |
22 |
Correct |
491 ms |
117796 KB |
Output is correct |
23 |
Correct |
518 ms |
117792 KB |
Output is correct |
24 |
Correct |
511 ms |
117588 KB |
Output is correct |
25 |
Correct |
349 ms |
114508 KB |
Output is correct |
26 |
Correct |
352 ms |
114768 KB |
Output is correct |
27 |
Correct |
381 ms |
121600 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
37980 KB |
Output is correct |
2 |
Correct |
9 ms |
37988 KB |
Output is correct |
3 |
Correct |
8 ms |
37980 KB |
Output is correct |
4 |
Correct |
8 ms |
38060 KB |
Output is correct |
5 |
Correct |
7 ms |
37720 KB |
Output is correct |
6 |
Correct |
8 ms |
37720 KB |
Output is correct |
7 |
Correct |
8 ms |
38064 KB |
Output is correct |
8 |
Correct |
10 ms |
37976 KB |
Output is correct |
9 |
Correct |
9 ms |
37980 KB |
Output is correct |
10 |
Correct |
9 ms |
37980 KB |
Output is correct |
11 |
Correct |
8 ms |
38064 KB |
Output is correct |
12 |
Correct |
9 ms |
37976 KB |
Output is correct |
13 |
Correct |
8 ms |
37980 KB |
Output is correct |
14 |
Correct |
9 ms |
38152 KB |
Output is correct |
15 |
Correct |
8 ms |
38236 KB |
Output is correct |
16 |
Correct |
8 ms |
38092 KB |
Output is correct |
17 |
Correct |
8 ms |
38068 KB |
Output is correct |
18 |
Correct |
9 ms |
37976 KB |
Output is correct |
19 |
Correct |
9 ms |
37980 KB |
Output is correct |
20 |
Correct |
8 ms |
38188 KB |
Output is correct |
21 |
Correct |
74 ms |
58448 KB |
Output is correct |
22 |
Correct |
80 ms |
59352 KB |
Output is correct |
23 |
Correct |
89 ms |
58960 KB |
Output is correct |
24 |
Correct |
96 ms |
58964 KB |
Output is correct |
25 |
Correct |
112 ms |
59352 KB |
Output is correct |
26 |
Correct |
83 ms |
59328 KB |
Output is correct |
27 |
Correct |
23 ms |
44892 KB |
Output is correct |
28 |
Correct |
24 ms |
44892 KB |
Output is correct |
29 |
Correct |
81 ms |
58960 KB |
Output is correct |
30 |
Correct |
103 ms |
58788 KB |
Output is correct |
31 |
Correct |
81 ms |
58872 KB |
Output is correct |
32 |
Correct |
76 ms |
58920 KB |
Output is correct |
33 |
Correct |
72 ms |
58820 KB |
Output is correct |
34 |
Correct |
90 ms |
59528 KB |
Output is correct |
35 |
Correct |
110 ms |
59312 KB |
Output is correct |
36 |
Correct |
89 ms |
59728 KB |
Output is correct |
37 |
Correct |
92 ms |
58308 KB |
Output is correct |
38 |
Correct |
83 ms |
58432 KB |
Output is correct |
39 |
Correct |
20 ms |
44632 KB |
Output is correct |
40 |
Correct |
26 ms |
44652 KB |
Output is correct |
41 |
Correct |
96 ms |
58572 KB |
Output is correct |
42 |
Correct |
103 ms |
58660 KB |
Output is correct |
43 |
Correct |
98 ms |
58708 KB |
Output is correct |
44 |
Correct |
106 ms |
58808 KB |
Output is correct |
45 |
Correct |
98 ms |
58552 KB |
Output is correct |
46 |
Correct |
97 ms |
58704 KB |
Output is correct |
47 |
Correct |
41 ms |
57656 KB |
Output is correct |
48 |
Correct |
81 ms |
57880 KB |
Output is correct |
49 |
Correct |
74 ms |
57928 KB |
Output is correct |
50 |
Correct |
90 ms |
58312 KB |
Output is correct |
51 |
Correct |
103 ms |
59124 KB |
Output is correct |
52 |
Correct |
92 ms |
58704 KB |
Output is correct |
53 |
Correct |
73 ms |
58960 KB |
Output is correct |
54 |
Correct |
96 ms |
59696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
111 ms |
58596 KB |
Output is correct |
2 |
Correct |
98 ms |
58192 KB |
Output is correct |
3 |
Correct |
117 ms |
58520 KB |
Output is correct |
4 |
Correct |
77 ms |
57684 KB |
Output is correct |
5 |
Correct |
106 ms |
58224 KB |
Output is correct |
6 |
Correct |
100 ms |
58356 KB |
Output is correct |
7 |
Correct |
27 ms |
44380 KB |
Output is correct |
8 |
Correct |
26 ms |
44376 KB |
Output is correct |
9 |
Correct |
56 ms |
57340 KB |
Output is correct |
10 |
Correct |
71 ms |
56820 KB |
Output is correct |
11 |
Correct |
97 ms |
57296 KB |
Output is correct |
12 |
Correct |
94 ms |
57172 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
37980 KB |
Output is correct |
2 |
Correct |
9 ms |
37988 KB |
Output is correct |
3 |
Correct |
8 ms |
37980 KB |
Output is correct |
4 |
Correct |
8 ms |
38060 KB |
Output is correct |
5 |
Correct |
7 ms |
37720 KB |
Output is correct |
6 |
Correct |
8 ms |
37720 KB |
Output is correct |
7 |
Correct |
8 ms |
38064 KB |
Output is correct |
8 |
Correct |
10 ms |
37976 KB |
Output is correct |
9 |
Correct |
9 ms |
37980 KB |
Output is correct |
10 |
Correct |
9 ms |
37980 KB |
Output is correct |
11 |
Correct |
8 ms |
38064 KB |
Output is correct |
12 |
Correct |
9 ms |
37976 KB |
Output is correct |
13 |
Correct |
8 ms |
37980 KB |
Output is correct |
14 |
Correct |
9 ms |
38152 KB |
Output is correct |
15 |
Correct |
8 ms |
38236 KB |
Output is correct |
16 |
Correct |
8 ms |
38092 KB |
Output is correct |
17 |
Correct |
8 ms |
38068 KB |
Output is correct |
18 |
Correct |
9 ms |
37976 KB |
Output is correct |
19 |
Correct |
9 ms |
37980 KB |
Output is correct |
20 |
Correct |
8 ms |
38188 KB |
Output is correct |
21 |
Correct |
9 ms |
37980 KB |
Output is correct |
22 |
Correct |
9 ms |
37980 KB |
Output is correct |
23 |
Correct |
8 ms |
37980 KB |
Output is correct |
24 |
Correct |
9 ms |
37976 KB |
Output is correct |
25 |
Correct |
7 ms |
37724 KB |
Output is correct |
26 |
Correct |
7 ms |
37980 KB |
Output is correct |
27 |
Correct |
9 ms |
37980 KB |
Output is correct |
28 |
Correct |
9 ms |
37980 KB |
Output is correct |
29 |
Correct |
10 ms |
37980 KB |
Output is correct |
30 |
Correct |
9 ms |
37976 KB |
Output is correct |
31 |
Correct |
9 ms |
37980 KB |
Output is correct |
32 |
Correct |
9 ms |
37980 KB |
Output is correct |
33 |
Correct |
8 ms |
37980 KB |
Output is correct |
34 |
Correct |
8 ms |
37980 KB |
Output is correct |
35 |
Correct |
9 ms |
38176 KB |
Output is correct |
36 |
Correct |
10 ms |
37980 KB |
Output is correct |
37 |
Correct |
9 ms |
37980 KB |
Output is correct |
38 |
Correct |
9 ms |
38208 KB |
Output is correct |
39 |
Correct |
74 ms |
58448 KB |
Output is correct |
40 |
Correct |
80 ms |
59352 KB |
Output is correct |
41 |
Correct |
89 ms |
58960 KB |
Output is correct |
42 |
Correct |
96 ms |
58964 KB |
Output is correct |
43 |
Correct |
112 ms |
59352 KB |
Output is correct |
44 |
Correct |
83 ms |
59328 KB |
Output is correct |
45 |
Correct |
23 ms |
44892 KB |
Output is correct |
46 |
Correct |
24 ms |
44892 KB |
Output is correct |
47 |
Correct |
81 ms |
58960 KB |
Output is correct |
48 |
Correct |
103 ms |
58788 KB |
Output is correct |
49 |
Correct |
81 ms |
58872 KB |
Output is correct |
50 |
Correct |
76 ms |
58920 KB |
Output is correct |
51 |
Correct |
72 ms |
58820 KB |
Output is correct |
52 |
Correct |
90 ms |
59528 KB |
Output is correct |
53 |
Correct |
110 ms |
59312 KB |
Output is correct |
54 |
Correct |
89 ms |
59728 KB |
Output is correct |
55 |
Correct |
92 ms |
58308 KB |
Output is correct |
56 |
Correct |
83 ms |
58432 KB |
Output is correct |
57 |
Correct |
20 ms |
44632 KB |
Output is correct |
58 |
Correct |
26 ms |
44652 KB |
Output is correct |
59 |
Correct |
96 ms |
58572 KB |
Output is correct |
60 |
Correct |
103 ms |
58660 KB |
Output is correct |
61 |
Correct |
98 ms |
58708 KB |
Output is correct |
62 |
Correct |
106 ms |
58808 KB |
Output is correct |
63 |
Correct |
98 ms |
58552 KB |
Output is correct |
64 |
Correct |
97 ms |
58704 KB |
Output is correct |
65 |
Correct |
41 ms |
57656 KB |
Output is correct |
66 |
Correct |
81 ms |
57880 KB |
Output is correct |
67 |
Correct |
74 ms |
57928 KB |
Output is correct |
68 |
Correct |
90 ms |
58312 KB |
Output is correct |
69 |
Correct |
103 ms |
59124 KB |
Output is correct |
70 |
Correct |
92 ms |
58704 KB |
Output is correct |
71 |
Correct |
73 ms |
58960 KB |
Output is correct |
72 |
Correct |
96 ms |
59696 KB |
Output is correct |
73 |
Correct |
111 ms |
58596 KB |
Output is correct |
74 |
Correct |
98 ms |
58192 KB |
Output is correct |
75 |
Correct |
117 ms |
58520 KB |
Output is correct |
76 |
Correct |
77 ms |
57684 KB |
Output is correct |
77 |
Correct |
106 ms |
58224 KB |
Output is correct |
78 |
Correct |
100 ms |
58356 KB |
Output is correct |
79 |
Correct |
27 ms |
44380 KB |
Output is correct |
80 |
Correct |
26 ms |
44376 KB |
Output is correct |
81 |
Correct |
56 ms |
57340 KB |
Output is correct |
82 |
Correct |
71 ms |
56820 KB |
Output is correct |
83 |
Correct |
97 ms |
57296 KB |
Output is correct |
84 |
Correct |
94 ms |
57172 KB |
Output is correct |
85 |
Correct |
82 ms |
58960 KB |
Output is correct |
86 |
Correct |
108 ms |
59244 KB |
Output is correct |
87 |
Correct |
91 ms |
58968 KB |
Output is correct |
88 |
Correct |
102 ms |
59764 KB |
Output is correct |
89 |
Correct |
65 ms |
58104 KB |
Output is correct |
90 |
Correct |
108 ms |
59724 KB |
Output is correct |
91 |
Correct |
78 ms |
58452 KB |
Output is correct |
92 |
Correct |
72 ms |
58392 KB |
Output is correct |
93 |
Correct |
97 ms |
59188 KB |
Output is correct |
94 |
Correct |
97 ms |
59216 KB |
Output is correct |
95 |
Correct |
109 ms |
59300 KB |
Output is correct |
96 |
Correct |
95 ms |
59216 KB |
Output is correct |
97 |
Correct |
109 ms |
59260 KB |
Output is correct |
98 |
Correct |
86 ms |
58688 KB |
Output is correct |
99 |
Correct |
50 ms |
58312 KB |
Output is correct |
100 |
Correct |
71 ms |
58032 KB |
Output is correct |
101 |
Correct |
86 ms |
58452 KB |
Output is correct |
102 |
Correct |
80 ms |
60244 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
37980 KB |
Output is correct |
2 |
Correct |
9 ms |
37988 KB |
Output is correct |
3 |
Correct |
8 ms |
37980 KB |
Output is correct |
4 |
Correct |
8 ms |
38060 KB |
Output is correct |
5 |
Correct |
7 ms |
37720 KB |
Output is correct |
6 |
Correct |
8 ms |
37720 KB |
Output is correct |
7 |
Correct |
8 ms |
38064 KB |
Output is correct |
8 |
Correct |
10 ms |
37976 KB |
Output is correct |
9 |
Correct |
9 ms |
37980 KB |
Output is correct |
10 |
Correct |
9 ms |
37980 KB |
Output is correct |
11 |
Correct |
8 ms |
38064 KB |
Output is correct |
12 |
Correct |
9 ms |
37976 KB |
Output is correct |
13 |
Correct |
8 ms |
37980 KB |
Output is correct |
14 |
Correct |
9 ms |
38152 KB |
Output is correct |
15 |
Correct |
8 ms |
38236 KB |
Output is correct |
16 |
Correct |
8 ms |
38092 KB |
Output is correct |
17 |
Correct |
8 ms |
38068 KB |
Output is correct |
18 |
Correct |
9 ms |
37976 KB |
Output is correct |
19 |
Correct |
9 ms |
37980 KB |
Output is correct |
20 |
Correct |
8 ms |
38188 KB |
Output is correct |
21 |
Correct |
9 ms |
37980 KB |
Output is correct |
22 |
Correct |
9 ms |
37980 KB |
Output is correct |
23 |
Correct |
8 ms |
37980 KB |
Output is correct |
24 |
Correct |
9 ms |
37976 KB |
Output is correct |
25 |
Correct |
7 ms |
37724 KB |
Output is correct |
26 |
Correct |
7 ms |
37980 KB |
Output is correct |
27 |
Correct |
9 ms |
37980 KB |
Output is correct |
28 |
Correct |
9 ms |
37980 KB |
Output is correct |
29 |
Correct |
10 ms |
37980 KB |
Output is correct |
30 |
Correct |
9 ms |
37976 KB |
Output is correct |
31 |
Correct |
9 ms |
37980 KB |
Output is correct |
32 |
Correct |
9 ms |
37980 KB |
Output is correct |
33 |
Correct |
8 ms |
37980 KB |
Output is correct |
34 |
Correct |
8 ms |
37980 KB |
Output is correct |
35 |
Correct |
9 ms |
38176 KB |
Output is correct |
36 |
Correct |
10 ms |
37980 KB |
Output is correct |
37 |
Correct |
9 ms |
37980 KB |
Output is correct |
38 |
Correct |
9 ms |
38208 KB |
Output is correct |
39 |
Correct |
74 ms |
58448 KB |
Output is correct |
40 |
Correct |
80 ms |
59352 KB |
Output is correct |
41 |
Correct |
89 ms |
58960 KB |
Output is correct |
42 |
Correct |
96 ms |
58964 KB |
Output is correct |
43 |
Correct |
112 ms |
59352 KB |
Output is correct |
44 |
Correct |
83 ms |
59328 KB |
Output is correct |
45 |
Correct |
23 ms |
44892 KB |
Output is correct |
46 |
Correct |
24 ms |
44892 KB |
Output is correct |
47 |
Correct |
81 ms |
58960 KB |
Output is correct |
48 |
Correct |
103 ms |
58788 KB |
Output is correct |
49 |
Correct |
81 ms |
58872 KB |
Output is correct |
50 |
Correct |
76 ms |
58920 KB |
Output is correct |
51 |
Correct |
72 ms |
58820 KB |
Output is correct |
52 |
Correct |
90 ms |
59528 KB |
Output is correct |
53 |
Correct |
110 ms |
59312 KB |
Output is correct |
54 |
Correct |
89 ms |
59728 KB |
Output is correct |
55 |
Correct |
434 ms |
114516 KB |
Output is correct |
56 |
Correct |
321 ms |
114260 KB |
Output is correct |
57 |
Correct |
510 ms |
118164 KB |
Output is correct |
58 |
Correct |
438 ms |
115280 KB |
Output is correct |
59 |
Correct |
384 ms |
115284 KB |
Output is correct |
60 |
Correct |
543 ms |
119124 KB |
Output is correct |
61 |
Correct |
81 ms |
61748 KB |
Output is correct |
62 |
Correct |
87 ms |
61828 KB |
Output is correct |
63 |
Correct |
533 ms |
120116 KB |
Output is correct |
64 |
Correct |
536 ms |
120012 KB |
Output is correct |
65 |
Correct |
494 ms |
117940 KB |
Output is correct |
66 |
Correct |
474 ms |
117844 KB |
Output is correct |
67 |
Correct |
502 ms |
117760 KB |
Output is correct |
68 |
Correct |
515 ms |
117752 KB |
Output is correct |
69 |
Correct |
484 ms |
117844 KB |
Output is correct |
70 |
Correct |
483 ms |
117740 KB |
Output is correct |
71 |
Correct |
510 ms |
117804 KB |
Output is correct |
72 |
Correct |
487 ms |
117664 KB |
Output is correct |
73 |
Correct |
493 ms |
117848 KB |
Output is correct |
74 |
Correct |
515 ms |
117956 KB |
Output is correct |
75 |
Correct |
474 ms |
117844 KB |
Output is correct |
76 |
Correct |
491 ms |
117796 KB |
Output is correct |
77 |
Correct |
518 ms |
117792 KB |
Output is correct |
78 |
Correct |
511 ms |
117588 KB |
Output is correct |
79 |
Correct |
349 ms |
114508 KB |
Output is correct |
80 |
Correct |
352 ms |
114768 KB |
Output is correct |
81 |
Correct |
381 ms |
121600 KB |
Output is correct |
82 |
Correct |
92 ms |
58308 KB |
Output is correct |
83 |
Correct |
83 ms |
58432 KB |
Output is correct |
84 |
Correct |
20 ms |
44632 KB |
Output is correct |
85 |
Correct |
26 ms |
44652 KB |
Output is correct |
86 |
Correct |
96 ms |
58572 KB |
Output is correct |
87 |
Correct |
103 ms |
58660 KB |
Output is correct |
88 |
Correct |
98 ms |
58708 KB |
Output is correct |
89 |
Correct |
106 ms |
58808 KB |
Output is correct |
90 |
Correct |
98 ms |
58552 KB |
Output is correct |
91 |
Correct |
97 ms |
58704 KB |
Output is correct |
92 |
Correct |
41 ms |
57656 KB |
Output is correct |
93 |
Correct |
81 ms |
57880 KB |
Output is correct |
94 |
Correct |
74 ms |
57928 KB |
Output is correct |
95 |
Correct |
90 ms |
58312 KB |
Output is correct |
96 |
Correct |
103 ms |
59124 KB |
Output is correct |
97 |
Correct |
92 ms |
58704 KB |
Output is correct |
98 |
Correct |
73 ms |
58960 KB |
Output is correct |
99 |
Correct |
96 ms |
59696 KB |
Output is correct |
100 |
Correct |
111 ms |
58596 KB |
Output is correct |
101 |
Correct |
98 ms |
58192 KB |
Output is correct |
102 |
Correct |
117 ms |
58520 KB |
Output is correct |
103 |
Correct |
77 ms |
57684 KB |
Output is correct |
104 |
Correct |
106 ms |
58224 KB |
Output is correct |
105 |
Correct |
100 ms |
58356 KB |
Output is correct |
106 |
Correct |
27 ms |
44380 KB |
Output is correct |
107 |
Correct |
26 ms |
44376 KB |
Output is correct |
108 |
Correct |
56 ms |
57340 KB |
Output is correct |
109 |
Correct |
71 ms |
56820 KB |
Output is correct |
110 |
Correct |
97 ms |
57296 KB |
Output is correct |
111 |
Correct |
94 ms |
57172 KB |
Output is correct |
112 |
Correct |
82 ms |
58960 KB |
Output is correct |
113 |
Correct |
108 ms |
59244 KB |
Output is correct |
114 |
Correct |
91 ms |
58968 KB |
Output is correct |
115 |
Correct |
102 ms |
59764 KB |
Output is correct |
116 |
Correct |
65 ms |
58104 KB |
Output is correct |
117 |
Correct |
108 ms |
59724 KB |
Output is correct |
118 |
Correct |
78 ms |
58452 KB |
Output is correct |
119 |
Correct |
72 ms |
58392 KB |
Output is correct |
120 |
Correct |
97 ms |
59188 KB |
Output is correct |
121 |
Correct |
97 ms |
59216 KB |
Output is correct |
122 |
Correct |
109 ms |
59300 KB |
Output is correct |
123 |
Correct |
95 ms |
59216 KB |
Output is correct |
124 |
Correct |
109 ms |
59260 KB |
Output is correct |
125 |
Correct |
86 ms |
58688 KB |
Output is correct |
126 |
Correct |
50 ms |
58312 KB |
Output is correct |
127 |
Correct |
71 ms |
58032 KB |
Output is correct |
128 |
Correct |
86 ms |
58452 KB |
Output is correct |
129 |
Correct |
80 ms |
60244 KB |
Output is correct |
130 |
Correct |
493 ms |
117228 KB |
Output is correct |
131 |
Correct |
318 ms |
111460 KB |
Output is correct |
132 |
Correct |
497 ms |
117644 KB |
Output is correct |
133 |
Correct |
556 ms |
117092 KB |
Output is correct |
134 |
Correct |
455 ms |
114488 KB |
Output is correct |
135 |
Correct |
565 ms |
118524 KB |
Output is correct |
136 |
Correct |
603 ms |
121536 KB |
Output is correct |
137 |
Correct |
577 ms |
121172 KB |
Output is correct |
138 |
Correct |
446 ms |
118564 KB |
Output is correct |
139 |
Correct |
510 ms |
118600 KB |
Output is correct |
140 |
Correct |
483 ms |
118356 KB |
Output is correct |
141 |
Correct |
510 ms |
118348 KB |
Output is correct |
142 |
Correct |
491 ms |
118536 KB |
Output is correct |
143 |
Correct |
486 ms |
118308 KB |
Output is correct |
144 |
Correct |
481 ms |
118448 KB |
Output is correct |
145 |
Correct |
542 ms |
118364 KB |
Output is correct |
146 |
Correct |
505 ms |
118540 KB |
Output is correct |
147 |
Correct |
479 ms |
118356 KB |
Output is correct |
148 |
Correct |
540 ms |
118364 KB |
Output is correct |
149 |
Correct |
493 ms |
118352 KB |
Output is correct |
150 |
Correct |
177 ms |
114496 KB |
Output is correct |
151 |
Correct |
376 ms |
115344 KB |
Output is correct |
152 |
Correct |
376 ms |
115432 KB |
Output is correct |
153 |
Correct |
374 ms |
122392 KB |
Output is correct |