#include <bits/stdc++.h>
#define int long long
#define mid ((deb + fin) >> 1)
using namespace std;
struct Node {
int nbCl, infLen, addLen;
};
struct Req {
bool isUpd;
int id, add, req;
};
const int M = 1 << 18, N = 2 * M, INF = 1e18 + 42, MOD = 1e9 + 7;
Node node[N];
vector<Req> req[M];
int n, m, q, id[M], ans[M];
void addFin(int i, int add) {
i += M;
int j = i;
while(i) {
node[i].nbCl += add;
i >>= 1;
}
i = j;
node[i].addLen += add;
while(i >>= 1) {
node[i].addLen = node[i*2].addLen + node[i*2+1].addLen;
node[i].infLen = max(node[i*2].infLen + node[i*2+1].addLen, node[i*2+1].infLen);
}
}
void dimLen(int i, int add) {
i += M;
node[i].addLen += add;
while(i >>= 1) {
node[i].addLen = node[i*2].addLen + node[i*2+1].addLen;
node[i].infLen = max(node[i*2].infLen + node[i*2+1].addLen, node[i*2+1].infLen);
}
}
int getVal(int i) {
i += M;
int sum = node[i].nbCl;
while(i) {
if(i & 1)
sum += node[i-1].nbCl;
i >>= 1;
}
return sum;
}
int getLen(int i) {
i += M;
int infLen = node[i].infLen,
addLen = node[i].addLen;
while(i) {
if(i & 1) {
infLen = max(node[i-1].infLen + addLen, infLen);
addLen += node[i-1].addLen;
}
i >>= 1;
}
return max(addLen, infLen);
}
int getId(int i, int deb, int fin, int val) {
if(fin - deb == 1)
return i - M;
if(node[i*2].nbCl < val)
return getId(i*2+1, mid, fin, val - node[i*2].nbCl);
return getId(i*2, deb, mid, val);
}
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> n >> m >> q;
for(int i = 0; i < q; i++) {
int typ; cin >> typ;
ans[i] = -INF;
if(typ == 1) {
int l, r, c, k;
cin >> l >> r >> c >> k;
l--;
id[i] = c;
req[l].push_back({true, i, k, 0});
req[r].push_back({true, -i-1, -k, 0});
} else if(typ == 2) {
int l, r, k;
cin >> l >> r >> k;
l--;
req[l].push_back({true, i, -k, 0});
req[r].push_back({true, -i-1, k, 0});
} else {
int a, b;
cin >> a >> b;
a--;
req[a].push_back({false, i, 0, b});
}
}
for(int i = 0; i < n; i++) {
for(Req query : req[i]) {
if(query.isUpd) {
if(query.id >= 0) {
if(query.add > 0)
addFin(query.id, query.add);
else
dimLen(query.id, query.add);
} else {
if(query.add < 0)
addFin(-query.id-1, query.add);
else
dimLen(-query.id-1, query.add);
}
} else {
int fin = getVal(query.id),
len = getLen(query.id);
if(len < query.req)
ans[query.id] = 0;
else {
ans[query.id] = id[getId(1, 0, M, fin - len + query.req)];
}
}
}
}
for(int i = 0; i < q; i++)
if(ans[i] != -INF)
cout << ans[i] << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
6740 KB |
Output is correct |
2 |
Correct |
7 ms |
6736 KB |
Output is correct |
3 |
Correct |
4 ms |
6740 KB |
Output is correct |
4 |
Correct |
5 ms |
6868 KB |
Output is correct |
5 |
Correct |
4 ms |
6740 KB |
Output is correct |
6 |
Correct |
4 ms |
6740 KB |
Output is correct |
7 |
Correct |
6 ms |
6868 KB |
Output is correct |
8 |
Correct |
7 ms |
6868 KB |
Output is correct |
9 |
Correct |
7 ms |
6760 KB |
Output is correct |
10 |
Correct |
6 ms |
6868 KB |
Output is correct |
11 |
Correct |
5 ms |
6756 KB |
Output is correct |
12 |
Correct |
5 ms |
6868 KB |
Output is correct |
13 |
Correct |
4 ms |
6832 KB |
Output is correct |
14 |
Correct |
5 ms |
6996 KB |
Output is correct |
15 |
Correct |
5 ms |
6756 KB |
Output is correct |
16 |
Correct |
5 ms |
6868 KB |
Output is correct |
17 |
Correct |
5 ms |
6740 KB |
Output is correct |
18 |
Correct |
5 ms |
6868 KB |
Output is correct |
19 |
Correct |
7 ms |
6756 KB |
Output is correct |
20 |
Correct |
5 ms |
6756 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
6740 KB |
Output is correct |
2 |
Correct |
7 ms |
6736 KB |
Output is correct |
3 |
Correct |
4 ms |
6740 KB |
Output is correct |
4 |
Correct |
5 ms |
6868 KB |
Output is correct |
5 |
Correct |
4 ms |
6740 KB |
Output is correct |
6 |
Correct |
4 ms |
6740 KB |
Output is correct |
7 |
Correct |
6 ms |
6868 KB |
Output is correct |
8 |
Correct |
7 ms |
6868 KB |
Output is correct |
9 |
Correct |
7 ms |
6760 KB |
Output is correct |
10 |
Correct |
6 ms |
6868 KB |
Output is correct |
11 |
Correct |
5 ms |
6756 KB |
Output is correct |
12 |
Correct |
5 ms |
6868 KB |
Output is correct |
13 |
Correct |
4 ms |
6832 KB |
Output is correct |
14 |
Correct |
5 ms |
6996 KB |
Output is correct |
15 |
Correct |
5 ms |
6756 KB |
Output is correct |
16 |
Correct |
5 ms |
6868 KB |
Output is correct |
17 |
Correct |
5 ms |
6740 KB |
Output is correct |
18 |
Correct |
5 ms |
6868 KB |
Output is correct |
19 |
Correct |
7 ms |
6756 KB |
Output is correct |
20 |
Correct |
5 ms |
6756 KB |
Output is correct |
21 |
Correct |
5 ms |
6760 KB |
Output is correct |
22 |
Correct |
6 ms |
6760 KB |
Output is correct |
23 |
Correct |
7 ms |
6740 KB |
Output is correct |
24 |
Correct |
6 ms |
6888 KB |
Output is correct |
25 |
Correct |
5 ms |
6868 KB |
Output is correct |
26 |
Correct |
4 ms |
6868 KB |
Output is correct |
27 |
Correct |
5 ms |
6756 KB |
Output is correct |
28 |
Correct |
5 ms |
6868 KB |
Output is correct |
29 |
Correct |
6 ms |
6868 KB |
Output is correct |
30 |
Correct |
5 ms |
6868 KB |
Output is correct |
31 |
Correct |
7 ms |
6868 KB |
Output is correct |
32 |
Correct |
6 ms |
6796 KB |
Output is correct |
33 |
Correct |
5 ms |
6868 KB |
Output is correct |
34 |
Correct |
5 ms |
6868 KB |
Output is correct |
35 |
Correct |
5 ms |
6760 KB |
Output is correct |
36 |
Correct |
6 ms |
6868 KB |
Output is correct |
37 |
Correct |
6 ms |
6780 KB |
Output is correct |
38 |
Correct |
5 ms |
6868 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
66 ms |
16596 KB |
Output is correct |
2 |
Correct |
73 ms |
16904 KB |
Output is correct |
3 |
Correct |
69 ms |
16600 KB |
Output is correct |
4 |
Correct |
86 ms |
16584 KB |
Output is correct |
5 |
Correct |
69 ms |
16900 KB |
Output is correct |
6 |
Correct |
59 ms |
16852 KB |
Output is correct |
7 |
Correct |
39 ms |
14492 KB |
Output is correct |
8 |
Correct |
34 ms |
14372 KB |
Output is correct |
9 |
Correct |
76 ms |
16708 KB |
Output is correct |
10 |
Correct |
67 ms |
16844 KB |
Output is correct |
11 |
Correct |
66 ms |
16816 KB |
Output is correct |
12 |
Correct |
57 ms |
16900 KB |
Output is correct |
13 |
Correct |
50 ms |
15576 KB |
Output is correct |
14 |
Correct |
72 ms |
16588 KB |
Output is correct |
15 |
Correct |
80 ms |
17232 KB |
Output is correct |
16 |
Correct |
77 ms |
17232 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
317 ms |
43384 KB |
Output is correct |
2 |
Correct |
303 ms |
35804 KB |
Output is correct |
3 |
Correct |
409 ms |
46708 KB |
Output is correct |
4 |
Correct |
317 ms |
36060 KB |
Output is correct |
5 |
Correct |
261 ms |
36948 KB |
Output is correct |
6 |
Correct |
382 ms |
47876 KB |
Output is correct |
7 |
Correct |
145 ms |
39700 KB |
Output is correct |
8 |
Correct |
136 ms |
39656 KB |
Output is correct |
9 |
Correct |
340 ms |
45008 KB |
Output is correct |
10 |
Correct |
356 ms |
45108 KB |
Output is correct |
11 |
Correct |
401 ms |
46704 KB |
Output is correct |
12 |
Correct |
360 ms |
47780 KB |
Output is correct |
13 |
Correct |
361 ms |
46664 KB |
Output is correct |
14 |
Correct |
384 ms |
47592 KB |
Output is correct |
15 |
Correct |
369 ms |
47516 KB |
Output is correct |
16 |
Correct |
365 ms |
47640 KB |
Output is correct |
17 |
Correct |
369 ms |
47588 KB |
Output is correct |
18 |
Correct |
341 ms |
47104 KB |
Output is correct |
19 |
Correct |
378 ms |
47712 KB |
Output is correct |
20 |
Correct |
364 ms |
47140 KB |
Output is correct |
21 |
Correct |
353 ms |
47644 KB |
Output is correct |
22 |
Correct |
354 ms |
47608 KB |
Output is correct |
23 |
Correct |
371 ms |
47656 KB |
Output is correct |
24 |
Correct |
351 ms |
47644 KB |
Output is correct |
25 |
Correct |
245 ms |
48920 KB |
Output is correct |
26 |
Correct |
310 ms |
49936 KB |
Output is correct |
27 |
Correct |
284 ms |
49484 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
6740 KB |
Output is correct |
2 |
Correct |
7 ms |
6736 KB |
Output is correct |
3 |
Correct |
4 ms |
6740 KB |
Output is correct |
4 |
Correct |
5 ms |
6868 KB |
Output is correct |
5 |
Correct |
4 ms |
6740 KB |
Output is correct |
6 |
Correct |
4 ms |
6740 KB |
Output is correct |
7 |
Correct |
6 ms |
6868 KB |
Output is correct |
8 |
Correct |
7 ms |
6868 KB |
Output is correct |
9 |
Correct |
7 ms |
6760 KB |
Output is correct |
10 |
Correct |
6 ms |
6868 KB |
Output is correct |
11 |
Correct |
5 ms |
6756 KB |
Output is correct |
12 |
Correct |
5 ms |
6868 KB |
Output is correct |
13 |
Correct |
4 ms |
6832 KB |
Output is correct |
14 |
Correct |
5 ms |
6996 KB |
Output is correct |
15 |
Correct |
5 ms |
6756 KB |
Output is correct |
16 |
Correct |
5 ms |
6868 KB |
Output is correct |
17 |
Correct |
5 ms |
6740 KB |
Output is correct |
18 |
Correct |
5 ms |
6868 KB |
Output is correct |
19 |
Correct |
7 ms |
6756 KB |
Output is correct |
20 |
Correct |
5 ms |
6756 KB |
Output is correct |
21 |
Correct |
66 ms |
16596 KB |
Output is correct |
22 |
Correct |
73 ms |
16904 KB |
Output is correct |
23 |
Correct |
69 ms |
16600 KB |
Output is correct |
24 |
Correct |
86 ms |
16584 KB |
Output is correct |
25 |
Correct |
69 ms |
16900 KB |
Output is correct |
26 |
Correct |
59 ms |
16852 KB |
Output is correct |
27 |
Correct |
39 ms |
14492 KB |
Output is correct |
28 |
Correct |
34 ms |
14372 KB |
Output is correct |
29 |
Correct |
76 ms |
16708 KB |
Output is correct |
30 |
Correct |
67 ms |
16844 KB |
Output is correct |
31 |
Correct |
66 ms |
16816 KB |
Output is correct |
32 |
Correct |
57 ms |
16900 KB |
Output is correct |
33 |
Correct |
50 ms |
15576 KB |
Output is correct |
34 |
Correct |
72 ms |
16588 KB |
Output is correct |
35 |
Correct |
80 ms |
17232 KB |
Output is correct |
36 |
Correct |
77 ms |
17232 KB |
Output is correct |
37 |
Correct |
67 ms |
15412 KB |
Output is correct |
38 |
Correct |
54 ms |
14620 KB |
Output is correct |
39 |
Correct |
33 ms |
13624 KB |
Output is correct |
40 |
Correct |
30 ms |
14376 KB |
Output is correct |
41 |
Correct |
63 ms |
16460 KB |
Output is correct |
42 |
Correct |
74 ms |
16824 KB |
Output is correct |
43 |
Correct |
56 ms |
16700 KB |
Output is correct |
44 |
Correct |
82 ms |
16640 KB |
Output is correct |
45 |
Correct |
58 ms |
16812 KB |
Output is correct |
46 |
Correct |
66 ms |
16696 KB |
Output is correct |
47 |
Correct |
44 ms |
15200 KB |
Output is correct |
48 |
Correct |
62 ms |
17256 KB |
Output is correct |
49 |
Correct |
55 ms |
13816 KB |
Output is correct |
50 |
Correct |
63 ms |
15236 KB |
Output is correct |
51 |
Correct |
70 ms |
16864 KB |
Output is correct |
52 |
Correct |
65 ms |
16816 KB |
Output is correct |
53 |
Correct |
45 ms |
14776 KB |
Output is correct |
54 |
Correct |
72 ms |
17228 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
75 ms |
15472 KB |
Output is correct |
2 |
Correct |
75 ms |
16524 KB |
Output is correct |
3 |
Correct |
79 ms |
16672 KB |
Output is correct |
4 |
Correct |
51 ms |
13552 KB |
Output is correct |
5 |
Correct |
57 ms |
15196 KB |
Output is correct |
6 |
Correct |
83 ms |
16600 KB |
Output is correct |
7 |
Correct |
43 ms |
14204 KB |
Output is correct |
8 |
Correct |
38 ms |
13732 KB |
Output is correct |
9 |
Correct |
52 ms |
15800 KB |
Output is correct |
10 |
Correct |
39 ms |
13900 KB |
Output is correct |
11 |
Correct |
62 ms |
16500 KB |
Output is correct |
12 |
Correct |
65 ms |
16676 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
6740 KB |
Output is correct |
2 |
Correct |
7 ms |
6736 KB |
Output is correct |
3 |
Correct |
4 ms |
6740 KB |
Output is correct |
4 |
Correct |
5 ms |
6868 KB |
Output is correct |
5 |
Correct |
4 ms |
6740 KB |
Output is correct |
6 |
Correct |
4 ms |
6740 KB |
Output is correct |
7 |
Correct |
6 ms |
6868 KB |
Output is correct |
8 |
Correct |
7 ms |
6868 KB |
Output is correct |
9 |
Correct |
7 ms |
6760 KB |
Output is correct |
10 |
Correct |
6 ms |
6868 KB |
Output is correct |
11 |
Correct |
5 ms |
6756 KB |
Output is correct |
12 |
Correct |
5 ms |
6868 KB |
Output is correct |
13 |
Correct |
4 ms |
6832 KB |
Output is correct |
14 |
Correct |
5 ms |
6996 KB |
Output is correct |
15 |
Correct |
5 ms |
6756 KB |
Output is correct |
16 |
Correct |
5 ms |
6868 KB |
Output is correct |
17 |
Correct |
5 ms |
6740 KB |
Output is correct |
18 |
Correct |
5 ms |
6868 KB |
Output is correct |
19 |
Correct |
7 ms |
6756 KB |
Output is correct |
20 |
Correct |
5 ms |
6756 KB |
Output is correct |
21 |
Correct |
5 ms |
6760 KB |
Output is correct |
22 |
Correct |
6 ms |
6760 KB |
Output is correct |
23 |
Correct |
7 ms |
6740 KB |
Output is correct |
24 |
Correct |
6 ms |
6888 KB |
Output is correct |
25 |
Correct |
5 ms |
6868 KB |
Output is correct |
26 |
Correct |
4 ms |
6868 KB |
Output is correct |
27 |
Correct |
5 ms |
6756 KB |
Output is correct |
28 |
Correct |
5 ms |
6868 KB |
Output is correct |
29 |
Correct |
6 ms |
6868 KB |
Output is correct |
30 |
Correct |
5 ms |
6868 KB |
Output is correct |
31 |
Correct |
7 ms |
6868 KB |
Output is correct |
32 |
Correct |
6 ms |
6796 KB |
Output is correct |
33 |
Correct |
5 ms |
6868 KB |
Output is correct |
34 |
Correct |
5 ms |
6868 KB |
Output is correct |
35 |
Correct |
5 ms |
6760 KB |
Output is correct |
36 |
Correct |
6 ms |
6868 KB |
Output is correct |
37 |
Correct |
6 ms |
6780 KB |
Output is correct |
38 |
Correct |
5 ms |
6868 KB |
Output is correct |
39 |
Correct |
66 ms |
16596 KB |
Output is correct |
40 |
Correct |
73 ms |
16904 KB |
Output is correct |
41 |
Correct |
69 ms |
16600 KB |
Output is correct |
42 |
Correct |
86 ms |
16584 KB |
Output is correct |
43 |
Correct |
69 ms |
16900 KB |
Output is correct |
44 |
Correct |
59 ms |
16852 KB |
Output is correct |
45 |
Correct |
39 ms |
14492 KB |
Output is correct |
46 |
Correct |
34 ms |
14372 KB |
Output is correct |
47 |
Correct |
76 ms |
16708 KB |
Output is correct |
48 |
Correct |
67 ms |
16844 KB |
Output is correct |
49 |
Correct |
66 ms |
16816 KB |
Output is correct |
50 |
Correct |
57 ms |
16900 KB |
Output is correct |
51 |
Correct |
50 ms |
15576 KB |
Output is correct |
52 |
Correct |
72 ms |
16588 KB |
Output is correct |
53 |
Correct |
80 ms |
17232 KB |
Output is correct |
54 |
Correct |
77 ms |
17232 KB |
Output is correct |
55 |
Correct |
67 ms |
15412 KB |
Output is correct |
56 |
Correct |
54 ms |
14620 KB |
Output is correct |
57 |
Correct |
33 ms |
13624 KB |
Output is correct |
58 |
Correct |
30 ms |
14376 KB |
Output is correct |
59 |
Correct |
63 ms |
16460 KB |
Output is correct |
60 |
Correct |
74 ms |
16824 KB |
Output is correct |
61 |
Correct |
56 ms |
16700 KB |
Output is correct |
62 |
Correct |
82 ms |
16640 KB |
Output is correct |
63 |
Correct |
58 ms |
16812 KB |
Output is correct |
64 |
Correct |
66 ms |
16696 KB |
Output is correct |
65 |
Correct |
44 ms |
15200 KB |
Output is correct |
66 |
Correct |
62 ms |
17256 KB |
Output is correct |
67 |
Correct |
55 ms |
13816 KB |
Output is correct |
68 |
Correct |
63 ms |
15236 KB |
Output is correct |
69 |
Correct |
70 ms |
16864 KB |
Output is correct |
70 |
Correct |
65 ms |
16816 KB |
Output is correct |
71 |
Correct |
45 ms |
14776 KB |
Output is correct |
72 |
Correct |
72 ms |
17228 KB |
Output is correct |
73 |
Correct |
75 ms |
15472 KB |
Output is correct |
74 |
Correct |
75 ms |
16524 KB |
Output is correct |
75 |
Correct |
79 ms |
16672 KB |
Output is correct |
76 |
Correct |
51 ms |
13552 KB |
Output is correct |
77 |
Correct |
57 ms |
15196 KB |
Output is correct |
78 |
Correct |
83 ms |
16600 KB |
Output is correct |
79 |
Correct |
43 ms |
14204 KB |
Output is correct |
80 |
Correct |
38 ms |
13732 KB |
Output is correct |
81 |
Correct |
52 ms |
15800 KB |
Output is correct |
82 |
Correct |
39 ms |
13900 KB |
Output is correct |
83 |
Correct |
62 ms |
16500 KB |
Output is correct |
84 |
Correct |
65 ms |
16676 KB |
Output is correct |
85 |
Correct |
86 ms |
16048 KB |
Output is correct |
86 |
Correct |
84 ms |
17008 KB |
Output is correct |
87 |
Correct |
57 ms |
15988 KB |
Output is correct |
88 |
Correct |
61 ms |
17388 KB |
Output is correct |
89 |
Correct |
42 ms |
13496 KB |
Output is correct |
90 |
Correct |
66 ms |
17264 KB |
Output is correct |
91 |
Correct |
56 ms |
15380 KB |
Output is correct |
92 |
Correct |
47 ms |
14860 KB |
Output is correct |
93 |
Correct |
62 ms |
17308 KB |
Output is correct |
94 |
Correct |
64 ms |
17192 KB |
Output is correct |
95 |
Correct |
78 ms |
17104 KB |
Output is correct |
96 |
Correct |
77 ms |
17232 KB |
Output is correct |
97 |
Correct |
73 ms |
17276 KB |
Output is correct |
98 |
Correct |
53 ms |
15740 KB |
Output is correct |
99 |
Correct |
43 ms |
15756 KB |
Output is correct |
100 |
Correct |
44 ms |
15436 KB |
Output is correct |
101 |
Correct |
58 ms |
17804 KB |
Output is correct |
102 |
Correct |
66 ms |
17836 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
6740 KB |
Output is correct |
2 |
Correct |
7 ms |
6736 KB |
Output is correct |
3 |
Correct |
4 ms |
6740 KB |
Output is correct |
4 |
Correct |
5 ms |
6868 KB |
Output is correct |
5 |
Correct |
4 ms |
6740 KB |
Output is correct |
6 |
Correct |
4 ms |
6740 KB |
Output is correct |
7 |
Correct |
6 ms |
6868 KB |
Output is correct |
8 |
Correct |
7 ms |
6868 KB |
Output is correct |
9 |
Correct |
7 ms |
6760 KB |
Output is correct |
10 |
Correct |
6 ms |
6868 KB |
Output is correct |
11 |
Correct |
5 ms |
6756 KB |
Output is correct |
12 |
Correct |
5 ms |
6868 KB |
Output is correct |
13 |
Correct |
4 ms |
6832 KB |
Output is correct |
14 |
Correct |
5 ms |
6996 KB |
Output is correct |
15 |
Correct |
5 ms |
6756 KB |
Output is correct |
16 |
Correct |
5 ms |
6868 KB |
Output is correct |
17 |
Correct |
5 ms |
6740 KB |
Output is correct |
18 |
Correct |
5 ms |
6868 KB |
Output is correct |
19 |
Correct |
7 ms |
6756 KB |
Output is correct |
20 |
Correct |
5 ms |
6756 KB |
Output is correct |
21 |
Correct |
5 ms |
6760 KB |
Output is correct |
22 |
Correct |
6 ms |
6760 KB |
Output is correct |
23 |
Correct |
7 ms |
6740 KB |
Output is correct |
24 |
Correct |
6 ms |
6888 KB |
Output is correct |
25 |
Correct |
5 ms |
6868 KB |
Output is correct |
26 |
Correct |
4 ms |
6868 KB |
Output is correct |
27 |
Correct |
5 ms |
6756 KB |
Output is correct |
28 |
Correct |
5 ms |
6868 KB |
Output is correct |
29 |
Correct |
6 ms |
6868 KB |
Output is correct |
30 |
Correct |
5 ms |
6868 KB |
Output is correct |
31 |
Correct |
7 ms |
6868 KB |
Output is correct |
32 |
Correct |
6 ms |
6796 KB |
Output is correct |
33 |
Correct |
5 ms |
6868 KB |
Output is correct |
34 |
Correct |
5 ms |
6868 KB |
Output is correct |
35 |
Correct |
5 ms |
6760 KB |
Output is correct |
36 |
Correct |
6 ms |
6868 KB |
Output is correct |
37 |
Correct |
6 ms |
6780 KB |
Output is correct |
38 |
Correct |
5 ms |
6868 KB |
Output is correct |
39 |
Correct |
66 ms |
16596 KB |
Output is correct |
40 |
Correct |
73 ms |
16904 KB |
Output is correct |
41 |
Correct |
69 ms |
16600 KB |
Output is correct |
42 |
Correct |
86 ms |
16584 KB |
Output is correct |
43 |
Correct |
69 ms |
16900 KB |
Output is correct |
44 |
Correct |
59 ms |
16852 KB |
Output is correct |
45 |
Correct |
39 ms |
14492 KB |
Output is correct |
46 |
Correct |
34 ms |
14372 KB |
Output is correct |
47 |
Correct |
76 ms |
16708 KB |
Output is correct |
48 |
Correct |
67 ms |
16844 KB |
Output is correct |
49 |
Correct |
66 ms |
16816 KB |
Output is correct |
50 |
Correct |
57 ms |
16900 KB |
Output is correct |
51 |
Correct |
50 ms |
15576 KB |
Output is correct |
52 |
Correct |
72 ms |
16588 KB |
Output is correct |
53 |
Correct |
80 ms |
17232 KB |
Output is correct |
54 |
Correct |
77 ms |
17232 KB |
Output is correct |
55 |
Correct |
317 ms |
43384 KB |
Output is correct |
56 |
Correct |
303 ms |
35804 KB |
Output is correct |
57 |
Correct |
409 ms |
46708 KB |
Output is correct |
58 |
Correct |
317 ms |
36060 KB |
Output is correct |
59 |
Correct |
261 ms |
36948 KB |
Output is correct |
60 |
Correct |
382 ms |
47876 KB |
Output is correct |
61 |
Correct |
145 ms |
39700 KB |
Output is correct |
62 |
Correct |
136 ms |
39656 KB |
Output is correct |
63 |
Correct |
340 ms |
45008 KB |
Output is correct |
64 |
Correct |
356 ms |
45108 KB |
Output is correct |
65 |
Correct |
401 ms |
46704 KB |
Output is correct |
66 |
Correct |
360 ms |
47780 KB |
Output is correct |
67 |
Correct |
361 ms |
46664 KB |
Output is correct |
68 |
Correct |
384 ms |
47592 KB |
Output is correct |
69 |
Correct |
369 ms |
47516 KB |
Output is correct |
70 |
Correct |
365 ms |
47640 KB |
Output is correct |
71 |
Correct |
369 ms |
47588 KB |
Output is correct |
72 |
Correct |
341 ms |
47104 KB |
Output is correct |
73 |
Correct |
378 ms |
47712 KB |
Output is correct |
74 |
Correct |
364 ms |
47140 KB |
Output is correct |
75 |
Correct |
353 ms |
47644 KB |
Output is correct |
76 |
Correct |
354 ms |
47608 KB |
Output is correct |
77 |
Correct |
371 ms |
47656 KB |
Output is correct |
78 |
Correct |
351 ms |
47644 KB |
Output is correct |
79 |
Correct |
245 ms |
48920 KB |
Output is correct |
80 |
Correct |
310 ms |
49936 KB |
Output is correct |
81 |
Correct |
284 ms |
49484 KB |
Output is correct |
82 |
Correct |
67 ms |
15412 KB |
Output is correct |
83 |
Correct |
54 ms |
14620 KB |
Output is correct |
84 |
Correct |
33 ms |
13624 KB |
Output is correct |
85 |
Correct |
30 ms |
14376 KB |
Output is correct |
86 |
Correct |
63 ms |
16460 KB |
Output is correct |
87 |
Correct |
74 ms |
16824 KB |
Output is correct |
88 |
Correct |
56 ms |
16700 KB |
Output is correct |
89 |
Correct |
82 ms |
16640 KB |
Output is correct |
90 |
Correct |
58 ms |
16812 KB |
Output is correct |
91 |
Correct |
66 ms |
16696 KB |
Output is correct |
92 |
Correct |
44 ms |
15200 KB |
Output is correct |
93 |
Correct |
62 ms |
17256 KB |
Output is correct |
94 |
Correct |
55 ms |
13816 KB |
Output is correct |
95 |
Correct |
63 ms |
15236 KB |
Output is correct |
96 |
Correct |
70 ms |
16864 KB |
Output is correct |
97 |
Correct |
65 ms |
16816 KB |
Output is correct |
98 |
Correct |
45 ms |
14776 KB |
Output is correct |
99 |
Correct |
72 ms |
17228 KB |
Output is correct |
100 |
Correct |
75 ms |
15472 KB |
Output is correct |
101 |
Correct |
75 ms |
16524 KB |
Output is correct |
102 |
Correct |
79 ms |
16672 KB |
Output is correct |
103 |
Correct |
51 ms |
13552 KB |
Output is correct |
104 |
Correct |
57 ms |
15196 KB |
Output is correct |
105 |
Correct |
83 ms |
16600 KB |
Output is correct |
106 |
Correct |
43 ms |
14204 KB |
Output is correct |
107 |
Correct |
38 ms |
13732 KB |
Output is correct |
108 |
Correct |
52 ms |
15800 KB |
Output is correct |
109 |
Correct |
39 ms |
13900 KB |
Output is correct |
110 |
Correct |
62 ms |
16500 KB |
Output is correct |
111 |
Correct |
65 ms |
16676 KB |
Output is correct |
112 |
Correct |
86 ms |
16048 KB |
Output is correct |
113 |
Correct |
84 ms |
17008 KB |
Output is correct |
114 |
Correct |
57 ms |
15988 KB |
Output is correct |
115 |
Correct |
61 ms |
17388 KB |
Output is correct |
116 |
Correct |
42 ms |
13496 KB |
Output is correct |
117 |
Correct |
66 ms |
17264 KB |
Output is correct |
118 |
Correct |
56 ms |
15380 KB |
Output is correct |
119 |
Correct |
47 ms |
14860 KB |
Output is correct |
120 |
Correct |
62 ms |
17308 KB |
Output is correct |
121 |
Correct |
64 ms |
17192 KB |
Output is correct |
122 |
Correct |
78 ms |
17104 KB |
Output is correct |
123 |
Correct |
77 ms |
17232 KB |
Output is correct |
124 |
Correct |
73 ms |
17276 KB |
Output is correct |
125 |
Correct |
53 ms |
15740 KB |
Output is correct |
126 |
Correct |
43 ms |
15756 KB |
Output is correct |
127 |
Correct |
44 ms |
15436 KB |
Output is correct |
128 |
Correct |
58 ms |
17804 KB |
Output is correct |
129 |
Correct |
66 ms |
17836 KB |
Output is correct |
130 |
Correct |
333 ms |
47352 KB |
Output is correct |
131 |
Correct |
236 ms |
36108 KB |
Output is correct |
132 |
Correct |
320 ms |
47232 KB |
Output is correct |
133 |
Correct |
344 ms |
46816 KB |
Output is correct |
134 |
Correct |
293 ms |
42088 KB |
Output is correct |
135 |
Correct |
365 ms |
48556 KB |
Output is correct |
136 |
Correct |
331 ms |
45960 KB |
Output is correct |
137 |
Correct |
330 ms |
46004 KB |
Output is correct |
138 |
Correct |
360 ms |
47412 KB |
Output is correct |
139 |
Correct |
362 ms |
48304 KB |
Output is correct |
140 |
Correct |
375 ms |
47460 KB |
Output is correct |
141 |
Correct |
347 ms |
48284 KB |
Output is correct |
142 |
Correct |
331 ms |
48264 KB |
Output is correct |
143 |
Correct |
317 ms |
48188 KB |
Output is correct |
144 |
Correct |
340 ms |
47824 KB |
Output is correct |
145 |
Correct |
325 ms |
48256 KB |
Output is correct |
146 |
Correct |
324 ms |
48036 KB |
Output is correct |
147 |
Correct |
330 ms |
48264 KB |
Output is correct |
148 |
Correct |
347 ms |
48196 KB |
Output is correct |
149 |
Correct |
314 ms |
48244 KB |
Output is correct |
150 |
Correct |
172 ms |
42412 KB |
Output is correct |
151 |
Correct |
246 ms |
50696 KB |
Output is correct |
152 |
Correct |
237 ms |
50788 KB |
Output is correct |
153 |
Correct |
271 ms |
50244 KB |
Output is correct |