#include <bits/stdc++.h>
using namespace std;
struct aaa {
int t, c;
long long k;
};
const int MAX_N = 3e5;
int group[MAX_N];
struct SegTree {
struct info {
long long tot, sum, minn;
info operator+( info &x ) {
info ans;
ans.tot = tot + x.tot;
ans.minn = min( minn, sum + x.minn );
ans.sum = sum + x.sum;
return ans;
}
};
info lazy[4 * MAX_N];
long long size[4 * MAX_N];
vector<aaa> q[4 * MAX_N];
void propag( int v, int l, int r ) {
if ( l != r ) {
lazy[v * 2 + 1] = lazy[v * 2 + 1] + lazy[v];
lazy[v * 2 + 2] = lazy[v * 2 + 2] + lazy[v];
lazy[v] = { 0, 0 };
}
}
void init( int v, int l, int r ) {
q[v].push_back( { -1, 0, 0 } );
if ( l == r )
return;
int mid = (l + r) / 2;
init( v * 2 + 1, l, mid );
init( v * 2 + 2, mid + 1, r );
}
void update( int v, int l, int r, int lu, int ru, int k, int c, int t ) {
propag( v, l, r );
if ( l > ru || r < lu )
return;
if ( lu <= l && r <= ru ) {
if ( k > 0 ) {
size[v] += k;
q[v].push_back( { t, c, size[v] } );
}
info add = { max( k, 0 ), k, min( k, 0 ) };
lazy[v] = lazy[v] + add;
propag( v, l, r );
return;
}
int mid = (l + r) / 2;
update( v * 2 + 1, l, mid, lu, ru, k, c, t );
update( v * 2 + 2, mid + 1, r, lu, ru, k, c, t );
}
vector<int> ans;
long long tot = 0;
long long query( int v, int l, int r, int p ) {
if ( v == 0 )
ans.clear();
ans.push_back( v );
propag( v, l, r );
if ( l == r ) {
tot = lazy[v].tot;
return lazy[v].tot - (lazy[v].sum - lazy[v].minn);
}
int mid = (l + r) / 2;
if ( p <= mid )
return query( v * 2 + 1, l, mid, p );
return query( v * 2 + 2, mid + 1, r, p );
}
} qs;
signed main() {
ios_base::sync_with_stdio( false );
cin.tie( NULL );
cout.tie( NULL );
int n, m, q;
cin >> n >> m >> q;
qs.init( 0, 1, n );
for ( int t = 0; t < q; t++ ) {
int type;
cin >> type;
if ( type == 1 ) {
int l, r, c, k;
cin >> l >> r >> c >> k;
qs.update( 0, 1, n, l, r, k, c, t );
group[t] = c;
} else if ( type == 2 ) {
int l, r, k;
cin >> l >> r >> k;
qs.update( 0, 1, n, l, r, -k, 0, t );
} else {
int p;
long long x;
cin >> p >> x;
x += qs.query( 0, 1, n, p );
vector<int> vert = qs.ans;
if ( m == 1 ) {
cout << (x <= qs.tot) << "\n";
continue;
}
int l = -1, r = t;
while ( r - l > 1 ) {
int mid = (l + r) / 2;
long long k = 0;
for ( int v: vert ) {
int lp = 0, rp = qs.q[v].size();
while ( rp - lp > 1 ) {
int mp = (lp + rp) / 2;
if ( qs.q[v][mp].t > mid )
rp = mp;
else
lp = mp;
}
k += qs.q[v][lp].k;
}
if ( k >= x )
r = mid;
else
l = mid;
}
cout << group[r] << "\n";
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
29532 KB |
Output is correct |
2 |
Correct |
9 ms |
29532 KB |
Output is correct |
3 |
Correct |
8 ms |
29532 KB |
Output is correct |
4 |
Correct |
11 ms |
29532 KB |
Output is correct |
5 |
Correct |
7 ms |
29020 KB |
Output is correct |
6 |
Correct |
8 ms |
29160 KB |
Output is correct |
7 |
Correct |
9 ms |
29532 KB |
Output is correct |
8 |
Correct |
9 ms |
29532 KB |
Output is correct |
9 |
Correct |
9 ms |
29784 KB |
Output is correct |
10 |
Correct |
9 ms |
29532 KB |
Output is correct |
11 |
Correct |
9 ms |
29412 KB |
Output is correct |
12 |
Correct |
9 ms |
29532 KB |
Output is correct |
13 |
Correct |
7 ms |
29276 KB |
Output is correct |
14 |
Correct |
9 ms |
29276 KB |
Output is correct |
15 |
Correct |
8 ms |
29532 KB |
Output is correct |
16 |
Correct |
8 ms |
29664 KB |
Output is correct |
17 |
Correct |
8 ms |
29532 KB |
Output is correct |
18 |
Correct |
10 ms |
29600 KB |
Output is correct |
19 |
Correct |
8 ms |
29528 KB |
Output is correct |
20 |
Correct |
9 ms |
29528 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
29532 KB |
Output is correct |
2 |
Correct |
9 ms |
29532 KB |
Output is correct |
3 |
Correct |
8 ms |
29532 KB |
Output is correct |
4 |
Correct |
11 ms |
29532 KB |
Output is correct |
5 |
Correct |
7 ms |
29020 KB |
Output is correct |
6 |
Correct |
8 ms |
29160 KB |
Output is correct |
7 |
Correct |
9 ms |
29532 KB |
Output is correct |
8 |
Correct |
9 ms |
29532 KB |
Output is correct |
9 |
Correct |
9 ms |
29784 KB |
Output is correct |
10 |
Correct |
9 ms |
29532 KB |
Output is correct |
11 |
Correct |
9 ms |
29412 KB |
Output is correct |
12 |
Correct |
9 ms |
29532 KB |
Output is correct |
13 |
Correct |
7 ms |
29276 KB |
Output is correct |
14 |
Correct |
9 ms |
29276 KB |
Output is correct |
15 |
Correct |
8 ms |
29532 KB |
Output is correct |
16 |
Correct |
8 ms |
29664 KB |
Output is correct |
17 |
Correct |
8 ms |
29532 KB |
Output is correct |
18 |
Correct |
10 ms |
29600 KB |
Output is correct |
19 |
Correct |
8 ms |
29528 KB |
Output is correct |
20 |
Correct |
9 ms |
29528 KB |
Output is correct |
21 |
Correct |
9 ms |
29532 KB |
Output is correct |
22 |
Correct |
9 ms |
29616 KB |
Output is correct |
23 |
Correct |
9 ms |
29520 KB |
Output is correct |
24 |
Correct |
9 ms |
29532 KB |
Output is correct |
25 |
Correct |
7 ms |
29020 KB |
Output is correct |
26 |
Correct |
7 ms |
29128 KB |
Output is correct |
27 |
Correct |
9 ms |
29632 KB |
Output is correct |
28 |
Correct |
9 ms |
29532 KB |
Output is correct |
29 |
Correct |
10 ms |
29528 KB |
Output is correct |
30 |
Correct |
9 ms |
29532 KB |
Output is correct |
31 |
Correct |
9 ms |
29532 KB |
Output is correct |
32 |
Correct |
9 ms |
29532 KB |
Output is correct |
33 |
Correct |
7 ms |
29276 KB |
Output is correct |
34 |
Correct |
8 ms |
29276 KB |
Output is correct |
35 |
Correct |
11 ms |
29784 KB |
Output is correct |
36 |
Correct |
9 ms |
29532 KB |
Output is correct |
37 |
Correct |
7 ms |
29532 KB |
Output is correct |
38 |
Correct |
8 ms |
29532 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
97 ms |
39248 KB |
Output is correct |
2 |
Correct |
97 ms |
39760 KB |
Output is correct |
3 |
Correct |
90 ms |
39760 KB |
Output is correct |
4 |
Correct |
111 ms |
39644 KB |
Output is correct |
5 |
Correct |
110 ms |
40528 KB |
Output is correct |
6 |
Correct |
97 ms |
40640 KB |
Output is correct |
7 |
Correct |
39 ms |
29908 KB |
Output is correct |
8 |
Correct |
53 ms |
29932 KB |
Output is correct |
9 |
Correct |
87 ms |
39332 KB |
Output is correct |
10 |
Correct |
77 ms |
39264 KB |
Output is correct |
11 |
Correct |
83 ms |
39292 KB |
Output is correct |
12 |
Correct |
94 ms |
39460 KB |
Output is correct |
13 |
Correct |
90 ms |
38592 KB |
Output is correct |
14 |
Correct |
89 ms |
40252 KB |
Output is correct |
15 |
Correct |
83 ms |
39936 KB |
Output is correct |
16 |
Correct |
89 ms |
41204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
509 ms |
87808 KB |
Output is correct |
2 |
Correct |
434 ms |
83808 KB |
Output is correct |
3 |
Correct |
544 ms |
98484 KB |
Output is correct |
4 |
Correct |
483 ms |
99936 KB |
Output is correct |
5 |
Correct |
455 ms |
95980 KB |
Output is correct |
6 |
Correct |
664 ms |
114504 KB |
Output is correct |
7 |
Correct |
66 ms |
35788 KB |
Output is correct |
8 |
Correct |
71 ms |
35792 KB |
Output is correct |
9 |
Correct |
586 ms |
113496 KB |
Output is correct |
10 |
Correct |
548 ms |
113660 KB |
Output is correct |
11 |
Correct |
539 ms |
102988 KB |
Output is correct |
12 |
Correct |
564 ms |
103636 KB |
Output is correct |
13 |
Correct |
527 ms |
103204 KB |
Output is correct |
14 |
Correct |
574 ms |
103452 KB |
Output is correct |
15 |
Correct |
582 ms |
103216 KB |
Output is correct |
16 |
Correct |
619 ms |
103356 KB |
Output is correct |
17 |
Correct |
588 ms |
103204 KB |
Output is correct |
18 |
Correct |
554 ms |
103028 KB |
Output is correct |
19 |
Correct |
585 ms |
103640 KB |
Output is correct |
20 |
Correct |
616 ms |
103280 KB |
Output is correct |
21 |
Correct |
623 ms |
103148 KB |
Output is correct |
22 |
Correct |
604 ms |
103200 KB |
Output is correct |
23 |
Correct |
635 ms |
103668 KB |
Output is correct |
24 |
Correct |
582 ms |
103336 KB |
Output is correct |
25 |
Correct |
341 ms |
93384 KB |
Output is correct |
26 |
Correct |
344 ms |
99620 KB |
Output is correct |
27 |
Correct |
380 ms |
88328 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
29532 KB |
Output is correct |
2 |
Correct |
9 ms |
29532 KB |
Output is correct |
3 |
Correct |
8 ms |
29532 KB |
Output is correct |
4 |
Correct |
11 ms |
29532 KB |
Output is correct |
5 |
Correct |
7 ms |
29020 KB |
Output is correct |
6 |
Correct |
8 ms |
29160 KB |
Output is correct |
7 |
Correct |
9 ms |
29532 KB |
Output is correct |
8 |
Correct |
9 ms |
29532 KB |
Output is correct |
9 |
Correct |
9 ms |
29784 KB |
Output is correct |
10 |
Correct |
9 ms |
29532 KB |
Output is correct |
11 |
Correct |
9 ms |
29412 KB |
Output is correct |
12 |
Correct |
9 ms |
29532 KB |
Output is correct |
13 |
Correct |
7 ms |
29276 KB |
Output is correct |
14 |
Correct |
9 ms |
29276 KB |
Output is correct |
15 |
Correct |
8 ms |
29532 KB |
Output is correct |
16 |
Correct |
8 ms |
29664 KB |
Output is correct |
17 |
Correct |
8 ms |
29532 KB |
Output is correct |
18 |
Correct |
10 ms |
29600 KB |
Output is correct |
19 |
Correct |
8 ms |
29528 KB |
Output is correct |
20 |
Correct |
9 ms |
29528 KB |
Output is correct |
21 |
Correct |
97 ms |
39248 KB |
Output is correct |
22 |
Correct |
97 ms |
39760 KB |
Output is correct |
23 |
Correct |
90 ms |
39760 KB |
Output is correct |
24 |
Correct |
111 ms |
39644 KB |
Output is correct |
25 |
Correct |
110 ms |
40528 KB |
Output is correct |
26 |
Correct |
97 ms |
40640 KB |
Output is correct |
27 |
Correct |
39 ms |
29908 KB |
Output is correct |
28 |
Correct |
53 ms |
29932 KB |
Output is correct |
29 |
Correct |
87 ms |
39332 KB |
Output is correct |
30 |
Correct |
77 ms |
39264 KB |
Output is correct |
31 |
Correct |
83 ms |
39292 KB |
Output is correct |
32 |
Correct |
94 ms |
39460 KB |
Output is correct |
33 |
Correct |
90 ms |
38592 KB |
Output is correct |
34 |
Correct |
89 ms |
40252 KB |
Output is correct |
35 |
Correct |
83 ms |
39936 KB |
Output is correct |
36 |
Correct |
89 ms |
41204 KB |
Output is correct |
37 |
Correct |
185 ms |
43496 KB |
Output is correct |
38 |
Correct |
153 ms |
45720 KB |
Output is correct |
39 |
Correct |
32 ms |
29860 KB |
Output is correct |
40 |
Correct |
45 ms |
29776 KB |
Output is correct |
41 |
Correct |
185 ms |
45736 KB |
Output is correct |
42 |
Correct |
193 ms |
45888 KB |
Output is correct |
43 |
Correct |
193 ms |
45836 KB |
Output is correct |
44 |
Correct |
202 ms |
45784 KB |
Output is correct |
45 |
Correct |
189 ms |
45892 KB |
Output is correct |
46 |
Correct |
219 ms |
45916 KB |
Output is correct |
47 |
Correct |
70 ms |
37072 KB |
Output is correct |
48 |
Correct |
117 ms |
45372 KB |
Output is correct |
49 |
Correct |
117 ms |
41924 KB |
Output is correct |
50 |
Correct |
156 ms |
44760 KB |
Output is correct |
51 |
Correct |
188 ms |
46156 KB |
Output is correct |
52 |
Correct |
183 ms |
46056 KB |
Output is correct |
53 |
Correct |
98 ms |
39948 KB |
Output is correct |
54 |
Correct |
82 ms |
41408 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
274 ms |
46636 KB |
Output is correct |
2 |
Correct |
283 ms |
46968 KB |
Output is correct |
3 |
Correct |
291 ms |
47940 KB |
Output is correct |
4 |
Correct |
215 ms |
45132 KB |
Output is correct |
5 |
Correct |
282 ms |
46884 KB |
Output is correct |
6 |
Correct |
302 ms |
48432 KB |
Output is correct |
7 |
Correct |
52 ms |
29912 KB |
Output is correct |
8 |
Correct |
71 ms |
30380 KB |
Output is correct |
9 |
Correct |
100 ms |
37176 KB |
Output is correct |
10 |
Correct |
101 ms |
44332 KB |
Output is correct |
11 |
Correct |
152 ms |
48764 KB |
Output is correct |
12 |
Correct |
177 ms |
48612 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
29532 KB |
Output is correct |
2 |
Correct |
9 ms |
29532 KB |
Output is correct |
3 |
Correct |
8 ms |
29532 KB |
Output is correct |
4 |
Correct |
11 ms |
29532 KB |
Output is correct |
5 |
Correct |
7 ms |
29020 KB |
Output is correct |
6 |
Correct |
8 ms |
29160 KB |
Output is correct |
7 |
Correct |
9 ms |
29532 KB |
Output is correct |
8 |
Correct |
9 ms |
29532 KB |
Output is correct |
9 |
Correct |
9 ms |
29784 KB |
Output is correct |
10 |
Correct |
9 ms |
29532 KB |
Output is correct |
11 |
Correct |
9 ms |
29412 KB |
Output is correct |
12 |
Correct |
9 ms |
29532 KB |
Output is correct |
13 |
Correct |
7 ms |
29276 KB |
Output is correct |
14 |
Correct |
9 ms |
29276 KB |
Output is correct |
15 |
Correct |
8 ms |
29532 KB |
Output is correct |
16 |
Correct |
8 ms |
29664 KB |
Output is correct |
17 |
Correct |
8 ms |
29532 KB |
Output is correct |
18 |
Correct |
10 ms |
29600 KB |
Output is correct |
19 |
Correct |
8 ms |
29528 KB |
Output is correct |
20 |
Correct |
9 ms |
29528 KB |
Output is correct |
21 |
Correct |
9 ms |
29532 KB |
Output is correct |
22 |
Correct |
9 ms |
29616 KB |
Output is correct |
23 |
Correct |
9 ms |
29520 KB |
Output is correct |
24 |
Correct |
9 ms |
29532 KB |
Output is correct |
25 |
Correct |
7 ms |
29020 KB |
Output is correct |
26 |
Correct |
7 ms |
29128 KB |
Output is correct |
27 |
Correct |
9 ms |
29632 KB |
Output is correct |
28 |
Correct |
9 ms |
29532 KB |
Output is correct |
29 |
Correct |
10 ms |
29528 KB |
Output is correct |
30 |
Correct |
9 ms |
29532 KB |
Output is correct |
31 |
Correct |
9 ms |
29532 KB |
Output is correct |
32 |
Correct |
9 ms |
29532 KB |
Output is correct |
33 |
Correct |
7 ms |
29276 KB |
Output is correct |
34 |
Correct |
8 ms |
29276 KB |
Output is correct |
35 |
Correct |
11 ms |
29784 KB |
Output is correct |
36 |
Correct |
9 ms |
29532 KB |
Output is correct |
37 |
Correct |
7 ms |
29532 KB |
Output is correct |
38 |
Correct |
8 ms |
29532 KB |
Output is correct |
39 |
Correct |
97 ms |
39248 KB |
Output is correct |
40 |
Correct |
97 ms |
39760 KB |
Output is correct |
41 |
Correct |
90 ms |
39760 KB |
Output is correct |
42 |
Correct |
111 ms |
39644 KB |
Output is correct |
43 |
Correct |
110 ms |
40528 KB |
Output is correct |
44 |
Correct |
97 ms |
40640 KB |
Output is correct |
45 |
Correct |
39 ms |
29908 KB |
Output is correct |
46 |
Correct |
53 ms |
29932 KB |
Output is correct |
47 |
Correct |
87 ms |
39332 KB |
Output is correct |
48 |
Correct |
77 ms |
39264 KB |
Output is correct |
49 |
Correct |
83 ms |
39292 KB |
Output is correct |
50 |
Correct |
94 ms |
39460 KB |
Output is correct |
51 |
Correct |
90 ms |
38592 KB |
Output is correct |
52 |
Correct |
89 ms |
40252 KB |
Output is correct |
53 |
Correct |
83 ms |
39936 KB |
Output is correct |
54 |
Correct |
89 ms |
41204 KB |
Output is correct |
55 |
Correct |
185 ms |
43496 KB |
Output is correct |
56 |
Correct |
153 ms |
45720 KB |
Output is correct |
57 |
Correct |
32 ms |
29860 KB |
Output is correct |
58 |
Correct |
45 ms |
29776 KB |
Output is correct |
59 |
Correct |
185 ms |
45736 KB |
Output is correct |
60 |
Correct |
193 ms |
45888 KB |
Output is correct |
61 |
Correct |
193 ms |
45836 KB |
Output is correct |
62 |
Correct |
202 ms |
45784 KB |
Output is correct |
63 |
Correct |
189 ms |
45892 KB |
Output is correct |
64 |
Correct |
219 ms |
45916 KB |
Output is correct |
65 |
Correct |
70 ms |
37072 KB |
Output is correct |
66 |
Correct |
117 ms |
45372 KB |
Output is correct |
67 |
Correct |
117 ms |
41924 KB |
Output is correct |
68 |
Correct |
156 ms |
44760 KB |
Output is correct |
69 |
Correct |
188 ms |
46156 KB |
Output is correct |
70 |
Correct |
183 ms |
46056 KB |
Output is correct |
71 |
Correct |
98 ms |
39948 KB |
Output is correct |
72 |
Correct |
82 ms |
41408 KB |
Output is correct |
73 |
Correct |
274 ms |
46636 KB |
Output is correct |
74 |
Correct |
283 ms |
46968 KB |
Output is correct |
75 |
Correct |
291 ms |
47940 KB |
Output is correct |
76 |
Correct |
215 ms |
45132 KB |
Output is correct |
77 |
Correct |
282 ms |
46884 KB |
Output is correct |
78 |
Correct |
302 ms |
48432 KB |
Output is correct |
79 |
Correct |
52 ms |
29912 KB |
Output is correct |
80 |
Correct |
71 ms |
30380 KB |
Output is correct |
81 |
Correct |
100 ms |
37176 KB |
Output is correct |
82 |
Correct |
101 ms |
44332 KB |
Output is correct |
83 |
Correct |
152 ms |
48764 KB |
Output is correct |
84 |
Correct |
177 ms |
48612 KB |
Output is correct |
85 |
Correct |
181 ms |
42888 KB |
Output is correct |
86 |
Correct |
210 ms |
44652 KB |
Output is correct |
87 |
Correct |
220 ms |
46816 KB |
Output is correct |
88 |
Correct |
244 ms |
48468 KB |
Output is correct |
89 |
Correct |
123 ms |
42160 KB |
Output is correct |
90 |
Correct |
230 ms |
46072 KB |
Output is correct |
91 |
Correct |
155 ms |
42572 KB |
Output is correct |
92 |
Correct |
155 ms |
42428 KB |
Output is correct |
93 |
Correct |
212 ms |
46144 KB |
Output is correct |
94 |
Correct |
191 ms |
46148 KB |
Output is correct |
95 |
Correct |
195 ms |
45248 KB |
Output is correct |
96 |
Correct |
221 ms |
46148 KB |
Output is correct |
97 |
Correct |
186 ms |
45808 KB |
Output is correct |
98 |
Correct |
150 ms |
43208 KB |
Output is correct |
99 |
Correct |
74 ms |
37016 KB |
Output is correct |
100 |
Correct |
104 ms |
42984 KB |
Output is correct |
101 |
Correct |
124 ms |
45256 KB |
Output is correct |
102 |
Correct |
155 ms |
42580 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
29532 KB |
Output is correct |
2 |
Correct |
9 ms |
29532 KB |
Output is correct |
3 |
Correct |
8 ms |
29532 KB |
Output is correct |
4 |
Correct |
11 ms |
29532 KB |
Output is correct |
5 |
Correct |
7 ms |
29020 KB |
Output is correct |
6 |
Correct |
8 ms |
29160 KB |
Output is correct |
7 |
Correct |
9 ms |
29532 KB |
Output is correct |
8 |
Correct |
9 ms |
29532 KB |
Output is correct |
9 |
Correct |
9 ms |
29784 KB |
Output is correct |
10 |
Correct |
9 ms |
29532 KB |
Output is correct |
11 |
Correct |
9 ms |
29412 KB |
Output is correct |
12 |
Correct |
9 ms |
29532 KB |
Output is correct |
13 |
Correct |
7 ms |
29276 KB |
Output is correct |
14 |
Correct |
9 ms |
29276 KB |
Output is correct |
15 |
Correct |
8 ms |
29532 KB |
Output is correct |
16 |
Correct |
8 ms |
29664 KB |
Output is correct |
17 |
Correct |
8 ms |
29532 KB |
Output is correct |
18 |
Correct |
10 ms |
29600 KB |
Output is correct |
19 |
Correct |
8 ms |
29528 KB |
Output is correct |
20 |
Correct |
9 ms |
29528 KB |
Output is correct |
21 |
Correct |
9 ms |
29532 KB |
Output is correct |
22 |
Correct |
9 ms |
29616 KB |
Output is correct |
23 |
Correct |
9 ms |
29520 KB |
Output is correct |
24 |
Correct |
9 ms |
29532 KB |
Output is correct |
25 |
Correct |
7 ms |
29020 KB |
Output is correct |
26 |
Correct |
7 ms |
29128 KB |
Output is correct |
27 |
Correct |
9 ms |
29632 KB |
Output is correct |
28 |
Correct |
9 ms |
29532 KB |
Output is correct |
29 |
Correct |
10 ms |
29528 KB |
Output is correct |
30 |
Correct |
9 ms |
29532 KB |
Output is correct |
31 |
Correct |
9 ms |
29532 KB |
Output is correct |
32 |
Correct |
9 ms |
29532 KB |
Output is correct |
33 |
Correct |
7 ms |
29276 KB |
Output is correct |
34 |
Correct |
8 ms |
29276 KB |
Output is correct |
35 |
Correct |
11 ms |
29784 KB |
Output is correct |
36 |
Correct |
9 ms |
29532 KB |
Output is correct |
37 |
Correct |
7 ms |
29532 KB |
Output is correct |
38 |
Correct |
8 ms |
29532 KB |
Output is correct |
39 |
Correct |
97 ms |
39248 KB |
Output is correct |
40 |
Correct |
97 ms |
39760 KB |
Output is correct |
41 |
Correct |
90 ms |
39760 KB |
Output is correct |
42 |
Correct |
111 ms |
39644 KB |
Output is correct |
43 |
Correct |
110 ms |
40528 KB |
Output is correct |
44 |
Correct |
97 ms |
40640 KB |
Output is correct |
45 |
Correct |
39 ms |
29908 KB |
Output is correct |
46 |
Correct |
53 ms |
29932 KB |
Output is correct |
47 |
Correct |
87 ms |
39332 KB |
Output is correct |
48 |
Correct |
77 ms |
39264 KB |
Output is correct |
49 |
Correct |
83 ms |
39292 KB |
Output is correct |
50 |
Correct |
94 ms |
39460 KB |
Output is correct |
51 |
Correct |
90 ms |
38592 KB |
Output is correct |
52 |
Correct |
89 ms |
40252 KB |
Output is correct |
53 |
Correct |
83 ms |
39936 KB |
Output is correct |
54 |
Correct |
89 ms |
41204 KB |
Output is correct |
55 |
Correct |
509 ms |
87808 KB |
Output is correct |
56 |
Correct |
434 ms |
83808 KB |
Output is correct |
57 |
Correct |
544 ms |
98484 KB |
Output is correct |
58 |
Correct |
483 ms |
99936 KB |
Output is correct |
59 |
Correct |
455 ms |
95980 KB |
Output is correct |
60 |
Correct |
664 ms |
114504 KB |
Output is correct |
61 |
Correct |
66 ms |
35788 KB |
Output is correct |
62 |
Correct |
71 ms |
35792 KB |
Output is correct |
63 |
Correct |
586 ms |
113496 KB |
Output is correct |
64 |
Correct |
548 ms |
113660 KB |
Output is correct |
65 |
Correct |
539 ms |
102988 KB |
Output is correct |
66 |
Correct |
564 ms |
103636 KB |
Output is correct |
67 |
Correct |
527 ms |
103204 KB |
Output is correct |
68 |
Correct |
574 ms |
103452 KB |
Output is correct |
69 |
Correct |
582 ms |
103216 KB |
Output is correct |
70 |
Correct |
619 ms |
103356 KB |
Output is correct |
71 |
Correct |
588 ms |
103204 KB |
Output is correct |
72 |
Correct |
554 ms |
103028 KB |
Output is correct |
73 |
Correct |
585 ms |
103640 KB |
Output is correct |
74 |
Correct |
616 ms |
103280 KB |
Output is correct |
75 |
Correct |
623 ms |
103148 KB |
Output is correct |
76 |
Correct |
604 ms |
103200 KB |
Output is correct |
77 |
Correct |
635 ms |
103668 KB |
Output is correct |
78 |
Correct |
582 ms |
103336 KB |
Output is correct |
79 |
Correct |
341 ms |
93384 KB |
Output is correct |
80 |
Correct |
344 ms |
99620 KB |
Output is correct |
81 |
Correct |
380 ms |
88328 KB |
Output is correct |
82 |
Correct |
185 ms |
43496 KB |
Output is correct |
83 |
Correct |
153 ms |
45720 KB |
Output is correct |
84 |
Correct |
32 ms |
29860 KB |
Output is correct |
85 |
Correct |
45 ms |
29776 KB |
Output is correct |
86 |
Correct |
185 ms |
45736 KB |
Output is correct |
87 |
Correct |
193 ms |
45888 KB |
Output is correct |
88 |
Correct |
193 ms |
45836 KB |
Output is correct |
89 |
Correct |
202 ms |
45784 KB |
Output is correct |
90 |
Correct |
189 ms |
45892 KB |
Output is correct |
91 |
Correct |
219 ms |
45916 KB |
Output is correct |
92 |
Correct |
70 ms |
37072 KB |
Output is correct |
93 |
Correct |
117 ms |
45372 KB |
Output is correct |
94 |
Correct |
117 ms |
41924 KB |
Output is correct |
95 |
Correct |
156 ms |
44760 KB |
Output is correct |
96 |
Correct |
188 ms |
46156 KB |
Output is correct |
97 |
Correct |
183 ms |
46056 KB |
Output is correct |
98 |
Correct |
98 ms |
39948 KB |
Output is correct |
99 |
Correct |
82 ms |
41408 KB |
Output is correct |
100 |
Correct |
274 ms |
46636 KB |
Output is correct |
101 |
Correct |
283 ms |
46968 KB |
Output is correct |
102 |
Correct |
291 ms |
47940 KB |
Output is correct |
103 |
Correct |
215 ms |
45132 KB |
Output is correct |
104 |
Correct |
282 ms |
46884 KB |
Output is correct |
105 |
Correct |
302 ms |
48432 KB |
Output is correct |
106 |
Correct |
52 ms |
29912 KB |
Output is correct |
107 |
Correct |
71 ms |
30380 KB |
Output is correct |
108 |
Correct |
100 ms |
37176 KB |
Output is correct |
109 |
Correct |
101 ms |
44332 KB |
Output is correct |
110 |
Correct |
152 ms |
48764 KB |
Output is correct |
111 |
Correct |
177 ms |
48612 KB |
Output is correct |
112 |
Correct |
181 ms |
42888 KB |
Output is correct |
113 |
Correct |
210 ms |
44652 KB |
Output is correct |
114 |
Correct |
220 ms |
46816 KB |
Output is correct |
115 |
Correct |
244 ms |
48468 KB |
Output is correct |
116 |
Correct |
123 ms |
42160 KB |
Output is correct |
117 |
Correct |
230 ms |
46072 KB |
Output is correct |
118 |
Correct |
155 ms |
42572 KB |
Output is correct |
119 |
Correct |
155 ms |
42428 KB |
Output is correct |
120 |
Correct |
212 ms |
46144 KB |
Output is correct |
121 |
Correct |
191 ms |
46148 KB |
Output is correct |
122 |
Correct |
195 ms |
45248 KB |
Output is correct |
123 |
Correct |
221 ms |
46148 KB |
Output is correct |
124 |
Correct |
186 ms |
45808 KB |
Output is correct |
125 |
Correct |
150 ms |
43208 KB |
Output is correct |
126 |
Correct |
74 ms |
37016 KB |
Output is correct |
127 |
Correct |
104 ms |
42984 KB |
Output is correct |
128 |
Correct |
124 ms |
45256 KB |
Output is correct |
129 |
Correct |
155 ms |
42580 KB |
Output is correct |
130 |
Execution timed out |
1033 ms |
92612 KB |
Time limit exceeded |
131 |
Halted |
0 ms |
0 KB |
- |