#include <bits/stdc++.h>
#define int long long
using namespace std;
const int maxn = 25e4 + 10;
int n , m , q , k[maxn] , c[maxn] , ans[maxn];
vector <int> ask[maxn] , all[2][maxn];
struct nod{
int sum , sum_neg , suf_sum;
nod()
{
sum = 0;
sum_neg = 0;
suf_sum = 0;
}
} tree[maxn << 2];
inline nod Merge(nod a , nod b)
{
nod res;
res.sum_neg = a.sum_neg + b.sum_neg;
res.sum = a.sum + b.sum;
res.suf_sum = max(b.suf_sum , b.sum + a.suf_sum);
return res;
}
void Add(int ind , int val , int ty = 1 , int node = 1 , int nl = 0 , int nr = q)
{
if(nr - nl == 1)
{
tree[node].sum = 1LL * ty * val;
tree[node].sum_neg = min(0LL , tree[node].sum);
tree[node].suf_sum = max(tree[node].sum , 0LL);
return;
}
int mid = (nl + nr) >> 1 , lc = node << 1 , rc = lc | 1;
if(ind < mid)
Add(ind , val , ty , lc , nl , mid);
else
Add(ind , val , ty , rc , mid , nr);
tree[node] = Merge(tree[lc] , tree[rc]);
}
nod Get(int l , int r , int node = 1 , int nl = 0 , int nr = q)
{
if(r <= nl || nr <= l)
{
nod tmp;
return tmp;
}
if(l <= nl && nr <= r)
return tree[node];
int mid = (nl + nr) >> 1 , lc = node << 1 , rc = lc | 1;
return Merge(Get(l , r , lc , nl , mid) , Get(l , r , rc , mid , nr));
}
inline int solve(int ind)
{
nod check = Get(0 , ind);
int val = k[ind];
if(check.suf_sum < val)
return 0;
int low = -1 , high = ind - 1;
while(high - low > 1)
{
int mid = (high + low) >> 1;
nod g1 = Get(0 , mid + 1) , g2 = Get(mid + 1 , ind);
int tmp = g1.suf_sum + g2.sum_neg;
if(tmp >= val)
high = mid;
else
low = mid;
}
return c[high];
}
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
memset(ans , -1 , sizeof ans);
cin >> n >> m >> q;
for(int i = 0 ; i < q ; i++)
{
int ty; cin >> ty;
if(ty == 1)
{
int l , r; cin >> l >> r >> c[i] >> k[i];
all[0][l].push_back(i);
all[1][r].push_back(i);
}
else if(ty == 2)
{
int l , r; cin >> l >> r >> k[i];
k[i] = -1LL * k[i];
all[0][l].push_back(i);
all[1][r].push_back(i);
}
else
{
int a; cin >> a >> k[i];
ask[a].push_back(i);
}
}
for(int i = 1 ; i <= n ; i++)
{
for(auto u : all[0][i])
Add(u , k[u]);
for(auto u : ask[i])
ans[u] = solve(u);
for(auto u : all[1][i])
Add(u , k[u] , 0);
}
for(int i = 0 ; i < q ; i++) if(ans[i] != -1)
cout << ans[i] << '\n';
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
20 ms |
43348 KB |
Output is correct |
2 |
Correct |
20 ms |
43476 KB |
Output is correct |
3 |
Correct |
20 ms |
43464 KB |
Output is correct |
4 |
Correct |
20 ms |
43428 KB |
Output is correct |
5 |
Correct |
20 ms |
43432 KB |
Output is correct |
6 |
Correct |
19 ms |
43352 KB |
Output is correct |
7 |
Correct |
21 ms |
43476 KB |
Output is correct |
8 |
Correct |
21 ms |
43376 KB |
Output is correct |
9 |
Correct |
20 ms |
43476 KB |
Output is correct |
10 |
Correct |
20 ms |
43476 KB |
Output is correct |
11 |
Correct |
21 ms |
43460 KB |
Output is correct |
12 |
Correct |
20 ms |
43412 KB |
Output is correct |
13 |
Correct |
21 ms |
43452 KB |
Output is correct |
14 |
Correct |
20 ms |
43376 KB |
Output is correct |
15 |
Correct |
20 ms |
43348 KB |
Output is correct |
16 |
Correct |
20 ms |
43420 KB |
Output is correct |
17 |
Correct |
20 ms |
43476 KB |
Output is correct |
18 |
Correct |
21 ms |
43420 KB |
Output is correct |
19 |
Correct |
21 ms |
43400 KB |
Output is correct |
20 |
Correct |
21 ms |
43476 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
20 ms |
43348 KB |
Output is correct |
2 |
Correct |
20 ms |
43476 KB |
Output is correct |
3 |
Correct |
20 ms |
43464 KB |
Output is correct |
4 |
Correct |
20 ms |
43428 KB |
Output is correct |
5 |
Correct |
20 ms |
43432 KB |
Output is correct |
6 |
Correct |
19 ms |
43352 KB |
Output is correct |
7 |
Correct |
21 ms |
43476 KB |
Output is correct |
8 |
Correct |
21 ms |
43376 KB |
Output is correct |
9 |
Correct |
20 ms |
43476 KB |
Output is correct |
10 |
Correct |
20 ms |
43476 KB |
Output is correct |
11 |
Correct |
21 ms |
43460 KB |
Output is correct |
12 |
Correct |
20 ms |
43412 KB |
Output is correct |
13 |
Correct |
21 ms |
43452 KB |
Output is correct |
14 |
Correct |
20 ms |
43376 KB |
Output is correct |
15 |
Correct |
20 ms |
43348 KB |
Output is correct |
16 |
Correct |
20 ms |
43420 KB |
Output is correct |
17 |
Correct |
20 ms |
43476 KB |
Output is correct |
18 |
Correct |
21 ms |
43420 KB |
Output is correct |
19 |
Correct |
21 ms |
43400 KB |
Output is correct |
20 |
Correct |
21 ms |
43476 KB |
Output is correct |
21 |
Correct |
21 ms |
43444 KB |
Output is correct |
22 |
Correct |
22 ms |
43476 KB |
Output is correct |
23 |
Correct |
20 ms |
43492 KB |
Output is correct |
24 |
Correct |
26 ms |
43476 KB |
Output is correct |
25 |
Correct |
20 ms |
43468 KB |
Output is correct |
26 |
Correct |
21 ms |
43416 KB |
Output is correct |
27 |
Correct |
21 ms |
43484 KB |
Output is correct |
28 |
Correct |
21 ms |
43476 KB |
Output is correct |
29 |
Correct |
21 ms |
43496 KB |
Output is correct |
30 |
Correct |
21 ms |
43460 KB |
Output is correct |
31 |
Correct |
21 ms |
43476 KB |
Output is correct |
32 |
Correct |
22 ms |
43412 KB |
Output is correct |
33 |
Correct |
21 ms |
43452 KB |
Output is correct |
34 |
Correct |
24 ms |
43392 KB |
Output is correct |
35 |
Correct |
21 ms |
43348 KB |
Output is correct |
36 |
Correct |
20 ms |
43476 KB |
Output is correct |
37 |
Correct |
20 ms |
43348 KB |
Output is correct |
38 |
Correct |
20 ms |
43380 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
63 ms |
46924 KB |
Output is correct |
2 |
Correct |
64 ms |
47048 KB |
Output is correct |
3 |
Correct |
62 ms |
47000 KB |
Output is correct |
4 |
Correct |
66 ms |
46944 KB |
Output is correct |
5 |
Correct |
65 ms |
47004 KB |
Output is correct |
6 |
Correct |
71 ms |
47048 KB |
Output is correct |
7 |
Correct |
74 ms |
45352 KB |
Output is correct |
8 |
Correct |
88 ms |
45648 KB |
Output is correct |
9 |
Correct |
67 ms |
46780 KB |
Output is correct |
10 |
Correct |
65 ms |
46996 KB |
Output is correct |
11 |
Correct |
64 ms |
46844 KB |
Output is correct |
12 |
Correct |
65 ms |
46944 KB |
Output is correct |
13 |
Correct |
79 ms |
46516 KB |
Output is correct |
14 |
Correct |
100 ms |
46976 KB |
Output is correct |
15 |
Correct |
65 ms |
46760 KB |
Output is correct |
16 |
Correct |
68 ms |
47004 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
668 ms |
55904 KB |
Output is correct |
2 |
Correct |
495 ms |
53452 KB |
Output is correct |
3 |
Correct |
725 ms |
57108 KB |
Output is correct |
4 |
Correct |
465 ms |
53544 KB |
Output is correct |
5 |
Correct |
452 ms |
53296 KB |
Output is correct |
6 |
Correct |
690 ms |
56904 KB |
Output is correct |
7 |
Correct |
481 ms |
51588 KB |
Output is correct |
8 |
Correct |
487 ms |
51632 KB |
Output is correct |
9 |
Correct |
994 ms |
56300 KB |
Output is correct |
10 |
Correct |
944 ms |
56260 KB |
Output is correct |
11 |
Correct |
637 ms |
61772 KB |
Output is correct |
12 |
Correct |
628 ms |
62796 KB |
Output is correct |
13 |
Correct |
665 ms |
61828 KB |
Output is correct |
14 |
Correct |
706 ms |
62668 KB |
Output is correct |
15 |
Correct |
665 ms |
62668 KB |
Output is correct |
16 |
Correct |
702 ms |
62600 KB |
Output is correct |
17 |
Correct |
759 ms |
62680 KB |
Output is correct |
18 |
Correct |
742 ms |
62300 KB |
Output is correct |
19 |
Correct |
689 ms |
62772 KB |
Output is correct |
20 |
Correct |
708 ms |
62184 KB |
Output is correct |
21 |
Correct |
638 ms |
62716 KB |
Output is correct |
22 |
Correct |
660 ms |
62696 KB |
Output is correct |
23 |
Correct |
659 ms |
62704 KB |
Output is correct |
24 |
Correct |
618 ms |
62676 KB |
Output is correct |
25 |
Correct |
626 ms |
59596 KB |
Output is correct |
26 |
Correct |
690 ms |
59972 KB |
Output is correct |
27 |
Correct |
476 ms |
64460 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
20 ms |
43348 KB |
Output is correct |
2 |
Correct |
20 ms |
43476 KB |
Output is correct |
3 |
Correct |
20 ms |
43464 KB |
Output is correct |
4 |
Correct |
20 ms |
43428 KB |
Output is correct |
5 |
Correct |
20 ms |
43432 KB |
Output is correct |
6 |
Correct |
19 ms |
43352 KB |
Output is correct |
7 |
Correct |
21 ms |
43476 KB |
Output is correct |
8 |
Correct |
21 ms |
43376 KB |
Output is correct |
9 |
Correct |
20 ms |
43476 KB |
Output is correct |
10 |
Correct |
20 ms |
43476 KB |
Output is correct |
11 |
Correct |
21 ms |
43460 KB |
Output is correct |
12 |
Correct |
20 ms |
43412 KB |
Output is correct |
13 |
Correct |
21 ms |
43452 KB |
Output is correct |
14 |
Correct |
20 ms |
43376 KB |
Output is correct |
15 |
Correct |
20 ms |
43348 KB |
Output is correct |
16 |
Correct |
20 ms |
43420 KB |
Output is correct |
17 |
Correct |
20 ms |
43476 KB |
Output is correct |
18 |
Correct |
21 ms |
43420 KB |
Output is correct |
19 |
Correct |
21 ms |
43400 KB |
Output is correct |
20 |
Correct |
21 ms |
43476 KB |
Output is correct |
21 |
Correct |
63 ms |
46924 KB |
Output is correct |
22 |
Correct |
64 ms |
47048 KB |
Output is correct |
23 |
Correct |
62 ms |
47000 KB |
Output is correct |
24 |
Correct |
66 ms |
46944 KB |
Output is correct |
25 |
Correct |
65 ms |
47004 KB |
Output is correct |
26 |
Correct |
71 ms |
47048 KB |
Output is correct |
27 |
Correct |
74 ms |
45352 KB |
Output is correct |
28 |
Correct |
88 ms |
45648 KB |
Output is correct |
29 |
Correct |
67 ms |
46780 KB |
Output is correct |
30 |
Correct |
65 ms |
46996 KB |
Output is correct |
31 |
Correct |
64 ms |
46844 KB |
Output is correct |
32 |
Correct |
65 ms |
46944 KB |
Output is correct |
33 |
Correct |
79 ms |
46516 KB |
Output is correct |
34 |
Correct |
100 ms |
46976 KB |
Output is correct |
35 |
Correct |
65 ms |
46760 KB |
Output is correct |
36 |
Correct |
68 ms |
47004 KB |
Output is correct |
37 |
Correct |
135 ms |
46628 KB |
Output is correct |
38 |
Correct |
104 ms |
46188 KB |
Output is correct |
39 |
Correct |
82 ms |
45068 KB |
Output is correct |
40 |
Correct |
96 ms |
45636 KB |
Output is correct |
41 |
Correct |
132 ms |
46548 KB |
Output is correct |
42 |
Correct |
130 ms |
46888 KB |
Output is correct |
43 |
Correct |
124 ms |
46804 KB |
Output is correct |
44 |
Correct |
137 ms |
46784 KB |
Output is correct |
45 |
Correct |
131 ms |
46848 KB |
Output is correct |
46 |
Correct |
123 ms |
46796 KB |
Output is correct |
47 |
Correct |
127 ms |
45660 KB |
Output is correct |
48 |
Correct |
139 ms |
46252 KB |
Output is correct |
49 |
Correct |
95 ms |
45892 KB |
Output is correct |
50 |
Correct |
121 ms |
46424 KB |
Output is correct |
51 |
Correct |
123 ms |
46888 KB |
Output is correct |
52 |
Correct |
126 ms |
46884 KB |
Output is correct |
53 |
Correct |
64 ms |
46280 KB |
Output is correct |
54 |
Correct |
75 ms |
47056 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
200 ms |
46548 KB |
Output is correct |
2 |
Correct |
213 ms |
46740 KB |
Output is correct |
3 |
Correct |
226 ms |
46876 KB |
Output is correct |
4 |
Correct |
137 ms |
45876 KB |
Output is correct |
5 |
Correct |
221 ms |
46628 KB |
Output is correct |
6 |
Correct |
228 ms |
47172 KB |
Output is correct |
7 |
Correct |
148 ms |
45516 KB |
Output is correct |
8 |
Correct |
195 ms |
45688 KB |
Output is correct |
9 |
Correct |
204 ms |
46340 KB |
Output is correct |
10 |
Correct |
138 ms |
45852 KB |
Output is correct |
11 |
Correct |
188 ms |
46520 KB |
Output is correct |
12 |
Correct |
187 ms |
46576 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
20 ms |
43348 KB |
Output is correct |
2 |
Correct |
20 ms |
43476 KB |
Output is correct |
3 |
Correct |
20 ms |
43464 KB |
Output is correct |
4 |
Correct |
20 ms |
43428 KB |
Output is correct |
5 |
Correct |
20 ms |
43432 KB |
Output is correct |
6 |
Correct |
19 ms |
43352 KB |
Output is correct |
7 |
Correct |
21 ms |
43476 KB |
Output is correct |
8 |
Correct |
21 ms |
43376 KB |
Output is correct |
9 |
Correct |
20 ms |
43476 KB |
Output is correct |
10 |
Correct |
20 ms |
43476 KB |
Output is correct |
11 |
Correct |
21 ms |
43460 KB |
Output is correct |
12 |
Correct |
20 ms |
43412 KB |
Output is correct |
13 |
Correct |
21 ms |
43452 KB |
Output is correct |
14 |
Correct |
20 ms |
43376 KB |
Output is correct |
15 |
Correct |
20 ms |
43348 KB |
Output is correct |
16 |
Correct |
20 ms |
43420 KB |
Output is correct |
17 |
Correct |
20 ms |
43476 KB |
Output is correct |
18 |
Correct |
21 ms |
43420 KB |
Output is correct |
19 |
Correct |
21 ms |
43400 KB |
Output is correct |
20 |
Correct |
21 ms |
43476 KB |
Output is correct |
21 |
Correct |
21 ms |
43444 KB |
Output is correct |
22 |
Correct |
22 ms |
43476 KB |
Output is correct |
23 |
Correct |
20 ms |
43492 KB |
Output is correct |
24 |
Correct |
26 ms |
43476 KB |
Output is correct |
25 |
Correct |
20 ms |
43468 KB |
Output is correct |
26 |
Correct |
21 ms |
43416 KB |
Output is correct |
27 |
Correct |
21 ms |
43484 KB |
Output is correct |
28 |
Correct |
21 ms |
43476 KB |
Output is correct |
29 |
Correct |
21 ms |
43496 KB |
Output is correct |
30 |
Correct |
21 ms |
43460 KB |
Output is correct |
31 |
Correct |
21 ms |
43476 KB |
Output is correct |
32 |
Correct |
22 ms |
43412 KB |
Output is correct |
33 |
Correct |
21 ms |
43452 KB |
Output is correct |
34 |
Correct |
24 ms |
43392 KB |
Output is correct |
35 |
Correct |
21 ms |
43348 KB |
Output is correct |
36 |
Correct |
20 ms |
43476 KB |
Output is correct |
37 |
Correct |
20 ms |
43348 KB |
Output is correct |
38 |
Correct |
20 ms |
43380 KB |
Output is correct |
39 |
Correct |
63 ms |
46924 KB |
Output is correct |
40 |
Correct |
64 ms |
47048 KB |
Output is correct |
41 |
Correct |
62 ms |
47000 KB |
Output is correct |
42 |
Correct |
66 ms |
46944 KB |
Output is correct |
43 |
Correct |
65 ms |
47004 KB |
Output is correct |
44 |
Correct |
71 ms |
47048 KB |
Output is correct |
45 |
Correct |
74 ms |
45352 KB |
Output is correct |
46 |
Correct |
88 ms |
45648 KB |
Output is correct |
47 |
Correct |
67 ms |
46780 KB |
Output is correct |
48 |
Correct |
65 ms |
46996 KB |
Output is correct |
49 |
Correct |
64 ms |
46844 KB |
Output is correct |
50 |
Correct |
65 ms |
46944 KB |
Output is correct |
51 |
Correct |
79 ms |
46516 KB |
Output is correct |
52 |
Correct |
100 ms |
46976 KB |
Output is correct |
53 |
Correct |
65 ms |
46760 KB |
Output is correct |
54 |
Correct |
68 ms |
47004 KB |
Output is correct |
55 |
Correct |
135 ms |
46628 KB |
Output is correct |
56 |
Correct |
104 ms |
46188 KB |
Output is correct |
57 |
Correct |
82 ms |
45068 KB |
Output is correct |
58 |
Correct |
96 ms |
45636 KB |
Output is correct |
59 |
Correct |
132 ms |
46548 KB |
Output is correct |
60 |
Correct |
130 ms |
46888 KB |
Output is correct |
61 |
Correct |
124 ms |
46804 KB |
Output is correct |
62 |
Correct |
137 ms |
46784 KB |
Output is correct |
63 |
Correct |
131 ms |
46848 KB |
Output is correct |
64 |
Correct |
123 ms |
46796 KB |
Output is correct |
65 |
Correct |
127 ms |
45660 KB |
Output is correct |
66 |
Correct |
139 ms |
46252 KB |
Output is correct |
67 |
Correct |
95 ms |
45892 KB |
Output is correct |
68 |
Correct |
121 ms |
46424 KB |
Output is correct |
69 |
Correct |
123 ms |
46888 KB |
Output is correct |
70 |
Correct |
126 ms |
46884 KB |
Output is correct |
71 |
Correct |
64 ms |
46280 KB |
Output is correct |
72 |
Correct |
75 ms |
47056 KB |
Output is correct |
73 |
Correct |
200 ms |
46548 KB |
Output is correct |
74 |
Correct |
213 ms |
46740 KB |
Output is correct |
75 |
Correct |
226 ms |
46876 KB |
Output is correct |
76 |
Correct |
137 ms |
45876 KB |
Output is correct |
77 |
Correct |
221 ms |
46628 KB |
Output is correct |
78 |
Correct |
228 ms |
47172 KB |
Output is correct |
79 |
Correct |
148 ms |
45516 KB |
Output is correct |
80 |
Correct |
195 ms |
45688 KB |
Output is correct |
81 |
Correct |
204 ms |
46340 KB |
Output is correct |
82 |
Correct |
138 ms |
45852 KB |
Output is correct |
83 |
Correct |
188 ms |
46520 KB |
Output is correct |
84 |
Correct |
187 ms |
46576 KB |
Output is correct |
85 |
Correct |
146 ms |
47180 KB |
Output is correct |
86 |
Correct |
151 ms |
47608 KB |
Output is correct |
87 |
Correct |
145 ms |
47088 KB |
Output is correct |
88 |
Correct |
138 ms |
47500 KB |
Output is correct |
89 |
Correct |
92 ms |
46160 KB |
Output is correct |
90 |
Correct |
133 ms |
47444 KB |
Output is correct |
91 |
Correct |
110 ms |
46752 KB |
Output is correct |
92 |
Correct |
97 ms |
46636 KB |
Output is correct |
93 |
Correct |
128 ms |
47428 KB |
Output is correct |
94 |
Correct |
150 ms |
47444 KB |
Output is correct |
95 |
Correct |
175 ms |
47460 KB |
Output is correct |
96 |
Correct |
157 ms |
47700 KB |
Output is correct |
97 |
Correct |
143 ms |
47740 KB |
Output is correct |
98 |
Correct |
116 ms |
47124 KB |
Output is correct |
99 |
Correct |
137 ms |
46560 KB |
Output is correct |
100 |
Correct |
151 ms |
46628 KB |
Output is correct |
101 |
Correct |
142 ms |
47256 KB |
Output is correct |
102 |
Correct |
108 ms |
48404 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
20 ms |
43348 KB |
Output is correct |
2 |
Correct |
20 ms |
43476 KB |
Output is correct |
3 |
Correct |
20 ms |
43464 KB |
Output is correct |
4 |
Correct |
20 ms |
43428 KB |
Output is correct |
5 |
Correct |
20 ms |
43432 KB |
Output is correct |
6 |
Correct |
19 ms |
43352 KB |
Output is correct |
7 |
Correct |
21 ms |
43476 KB |
Output is correct |
8 |
Correct |
21 ms |
43376 KB |
Output is correct |
9 |
Correct |
20 ms |
43476 KB |
Output is correct |
10 |
Correct |
20 ms |
43476 KB |
Output is correct |
11 |
Correct |
21 ms |
43460 KB |
Output is correct |
12 |
Correct |
20 ms |
43412 KB |
Output is correct |
13 |
Correct |
21 ms |
43452 KB |
Output is correct |
14 |
Correct |
20 ms |
43376 KB |
Output is correct |
15 |
Correct |
20 ms |
43348 KB |
Output is correct |
16 |
Correct |
20 ms |
43420 KB |
Output is correct |
17 |
Correct |
20 ms |
43476 KB |
Output is correct |
18 |
Correct |
21 ms |
43420 KB |
Output is correct |
19 |
Correct |
21 ms |
43400 KB |
Output is correct |
20 |
Correct |
21 ms |
43476 KB |
Output is correct |
21 |
Correct |
21 ms |
43444 KB |
Output is correct |
22 |
Correct |
22 ms |
43476 KB |
Output is correct |
23 |
Correct |
20 ms |
43492 KB |
Output is correct |
24 |
Correct |
26 ms |
43476 KB |
Output is correct |
25 |
Correct |
20 ms |
43468 KB |
Output is correct |
26 |
Correct |
21 ms |
43416 KB |
Output is correct |
27 |
Correct |
21 ms |
43484 KB |
Output is correct |
28 |
Correct |
21 ms |
43476 KB |
Output is correct |
29 |
Correct |
21 ms |
43496 KB |
Output is correct |
30 |
Correct |
21 ms |
43460 KB |
Output is correct |
31 |
Correct |
21 ms |
43476 KB |
Output is correct |
32 |
Correct |
22 ms |
43412 KB |
Output is correct |
33 |
Correct |
21 ms |
43452 KB |
Output is correct |
34 |
Correct |
24 ms |
43392 KB |
Output is correct |
35 |
Correct |
21 ms |
43348 KB |
Output is correct |
36 |
Correct |
20 ms |
43476 KB |
Output is correct |
37 |
Correct |
20 ms |
43348 KB |
Output is correct |
38 |
Correct |
20 ms |
43380 KB |
Output is correct |
39 |
Correct |
63 ms |
46924 KB |
Output is correct |
40 |
Correct |
64 ms |
47048 KB |
Output is correct |
41 |
Correct |
62 ms |
47000 KB |
Output is correct |
42 |
Correct |
66 ms |
46944 KB |
Output is correct |
43 |
Correct |
65 ms |
47004 KB |
Output is correct |
44 |
Correct |
71 ms |
47048 KB |
Output is correct |
45 |
Correct |
74 ms |
45352 KB |
Output is correct |
46 |
Correct |
88 ms |
45648 KB |
Output is correct |
47 |
Correct |
67 ms |
46780 KB |
Output is correct |
48 |
Correct |
65 ms |
46996 KB |
Output is correct |
49 |
Correct |
64 ms |
46844 KB |
Output is correct |
50 |
Correct |
65 ms |
46944 KB |
Output is correct |
51 |
Correct |
79 ms |
46516 KB |
Output is correct |
52 |
Correct |
100 ms |
46976 KB |
Output is correct |
53 |
Correct |
65 ms |
46760 KB |
Output is correct |
54 |
Correct |
68 ms |
47004 KB |
Output is correct |
55 |
Correct |
668 ms |
55904 KB |
Output is correct |
56 |
Correct |
495 ms |
53452 KB |
Output is correct |
57 |
Correct |
725 ms |
57108 KB |
Output is correct |
58 |
Correct |
465 ms |
53544 KB |
Output is correct |
59 |
Correct |
452 ms |
53296 KB |
Output is correct |
60 |
Correct |
690 ms |
56904 KB |
Output is correct |
61 |
Correct |
481 ms |
51588 KB |
Output is correct |
62 |
Correct |
487 ms |
51632 KB |
Output is correct |
63 |
Correct |
994 ms |
56300 KB |
Output is correct |
64 |
Correct |
944 ms |
56260 KB |
Output is correct |
65 |
Correct |
637 ms |
61772 KB |
Output is correct |
66 |
Correct |
628 ms |
62796 KB |
Output is correct |
67 |
Correct |
665 ms |
61828 KB |
Output is correct |
68 |
Correct |
706 ms |
62668 KB |
Output is correct |
69 |
Correct |
665 ms |
62668 KB |
Output is correct |
70 |
Correct |
702 ms |
62600 KB |
Output is correct |
71 |
Correct |
759 ms |
62680 KB |
Output is correct |
72 |
Correct |
742 ms |
62300 KB |
Output is correct |
73 |
Correct |
689 ms |
62772 KB |
Output is correct |
74 |
Correct |
708 ms |
62184 KB |
Output is correct |
75 |
Correct |
638 ms |
62716 KB |
Output is correct |
76 |
Correct |
660 ms |
62696 KB |
Output is correct |
77 |
Correct |
659 ms |
62704 KB |
Output is correct |
78 |
Correct |
618 ms |
62676 KB |
Output is correct |
79 |
Correct |
626 ms |
59596 KB |
Output is correct |
80 |
Correct |
690 ms |
59972 KB |
Output is correct |
81 |
Correct |
476 ms |
64460 KB |
Output is correct |
82 |
Correct |
135 ms |
46628 KB |
Output is correct |
83 |
Correct |
104 ms |
46188 KB |
Output is correct |
84 |
Correct |
82 ms |
45068 KB |
Output is correct |
85 |
Correct |
96 ms |
45636 KB |
Output is correct |
86 |
Correct |
132 ms |
46548 KB |
Output is correct |
87 |
Correct |
130 ms |
46888 KB |
Output is correct |
88 |
Correct |
124 ms |
46804 KB |
Output is correct |
89 |
Correct |
137 ms |
46784 KB |
Output is correct |
90 |
Correct |
131 ms |
46848 KB |
Output is correct |
91 |
Correct |
123 ms |
46796 KB |
Output is correct |
92 |
Correct |
127 ms |
45660 KB |
Output is correct |
93 |
Correct |
139 ms |
46252 KB |
Output is correct |
94 |
Correct |
95 ms |
45892 KB |
Output is correct |
95 |
Correct |
121 ms |
46424 KB |
Output is correct |
96 |
Correct |
123 ms |
46888 KB |
Output is correct |
97 |
Correct |
126 ms |
46884 KB |
Output is correct |
98 |
Correct |
64 ms |
46280 KB |
Output is correct |
99 |
Correct |
75 ms |
47056 KB |
Output is correct |
100 |
Correct |
200 ms |
46548 KB |
Output is correct |
101 |
Correct |
213 ms |
46740 KB |
Output is correct |
102 |
Correct |
226 ms |
46876 KB |
Output is correct |
103 |
Correct |
137 ms |
45876 KB |
Output is correct |
104 |
Correct |
221 ms |
46628 KB |
Output is correct |
105 |
Correct |
228 ms |
47172 KB |
Output is correct |
106 |
Correct |
148 ms |
45516 KB |
Output is correct |
107 |
Correct |
195 ms |
45688 KB |
Output is correct |
108 |
Correct |
204 ms |
46340 KB |
Output is correct |
109 |
Correct |
138 ms |
45852 KB |
Output is correct |
110 |
Correct |
188 ms |
46520 KB |
Output is correct |
111 |
Correct |
187 ms |
46576 KB |
Output is correct |
112 |
Correct |
146 ms |
47180 KB |
Output is correct |
113 |
Correct |
151 ms |
47608 KB |
Output is correct |
114 |
Correct |
145 ms |
47088 KB |
Output is correct |
115 |
Correct |
138 ms |
47500 KB |
Output is correct |
116 |
Correct |
92 ms |
46160 KB |
Output is correct |
117 |
Correct |
133 ms |
47444 KB |
Output is correct |
118 |
Correct |
110 ms |
46752 KB |
Output is correct |
119 |
Correct |
97 ms |
46636 KB |
Output is correct |
120 |
Correct |
128 ms |
47428 KB |
Output is correct |
121 |
Correct |
150 ms |
47444 KB |
Output is correct |
122 |
Correct |
175 ms |
47460 KB |
Output is correct |
123 |
Correct |
157 ms |
47700 KB |
Output is correct |
124 |
Correct |
143 ms |
47740 KB |
Output is correct |
125 |
Correct |
116 ms |
47124 KB |
Output is correct |
126 |
Correct |
137 ms |
46560 KB |
Output is correct |
127 |
Correct |
151 ms |
46628 KB |
Output is correct |
128 |
Correct |
142 ms |
47256 KB |
Output is correct |
129 |
Correct |
108 ms |
48404 KB |
Output is correct |
130 |
Correct |
764 ms |
63520 KB |
Output is correct |
131 |
Correct |
574 ms |
58032 KB |
Output is correct |
132 |
Correct |
767 ms |
63532 KB |
Output is correct |
133 |
Correct |
638 ms |
62832 KB |
Output is correct |
134 |
Correct |
654 ms |
60944 KB |
Output is correct |
135 |
Correct |
742 ms |
63764 KB |
Output is correct |
136 |
Execution timed out |
1100 ms |
62612 KB |
Time limit exceeded |
137 |
Halted |
0 ms |
0 KB |
- |