#include<iostream>
#include<stack>
#include<map>
#include<vector>
#include<string>
#include<unordered_map>
#include <queue>
#include<cstring>
#include<limits.h>
#include <cassert>
#include<cmath>
#include<set>
#include<algorithm>
#include <iomanip>
#include<numeric> //gcd(a,b)
#include<bitset>
using namespace std;
#define ll long long
#define f first
#define endl "\n"
#define s second
#define pii pair<int,int>
#define ppii pair<int,pii>
#define vi vector<int>
#define pb push_back
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define F(n) for(int i=0;i<n;i++)
#define lb lower_bound
#define ub upper_bound
#define fastio ios::sync_with_stdio(false);cin.tie(NULL);
#pragma GCC optimize ("03,unroll-loops")
using namespace std;
#define int long long
const int mod=1e9+7,mxn=3e5+5,lg=30,inf=1e18,minf=-1e18;
int n,m,q;
int a,b,c,d;
int findans[mxn+10],realans[mxn+10];
vector<pii>qry[mxn+10];
struct solve{
int fwk[mxn+10];
vector<pii>add[mxn+10],remove[mxn+10];
void upd(int pos,int val){for(int i=pos;i<=q;i+=(i&-i))fwk[i]+=val;}
int qry(int pos){
int sum=0;
for(int i=pos;i>0;i-=(i&-i))sum+=fwk[i];
return sum;
}
}f[2];
struct node{
int sum,mxpref;
node operator+(node a){
node tmp;
tmp.mxpref=max(mxpref,sum+a.mxpref);
tmp.sum=sum+a.sum;
return tmp;
}
};
struct seg{
node v[4*mxn+10];
void update(int l,int r,int node,int pos,int val){
if(l==r){
v[node].mxpref=v[node].sum=val;
return;
}
int mid=l+(r-l)/2;
if(pos<=mid)update(l,mid,node<<1,pos,val);
else update(mid+1,r,(node<<1)^1,pos,val);
v[node]=v[node<<1]+v[(node<<1)^1];
}
node qry(int l,int r,int ql,int qr,int node){
if(ql<=l&&r<=qr)return v[node];
int mid=l+(r-l)/2;
if(qr<=mid)return qry(l,mid,ql,qr,node<<1);
if(ql>mid)return qry(mid+1,r,ql,qr,(node<<1)^1);
return qry(l,mid,ql,qr,(node<<1))+qry(mid+1,r,ql,qr,(node<<1)^1);
}
}t;
void update(int x){
for(auto i:f[0].add[x])f[0].upd(i.f,i.s),t.update(1,q,1,i.f,-i.s);
for(auto i:f[0].remove[x])f[0].upd(i.f,-i.s),t.update(1,q,1,i.f,0);
for(auto i:f[1].add[x])f[1].upd(i.f,i.s),t.update(1,q,1,i.f,i.s);;
for(auto i:f[1].remove[x])f[1].upd(i.f,-i.s),t.update(1,q,1,i.f,0);
}
int32_t main(){
fastio
cin>>n>>m>>q;
for(int i=1;i<=q;i++){
int ty;cin>>ty;
if(ty==1){
cin>>a>>b>>c>>d;
findans[i]=c;
f[0].add[a].pb({i,d});
f[0].remove[b+1].pb({i,d});
}
else if(ty==2){
cin>>a>>b>>c;
f[1].add[a].pb({i,c});
f[1].remove[b+1].pb({i,c});
}
else{
cin>>a>>b;
qry[a].pb({i,b});
}
}
int pos,sum;
for(int i=1;i<=n;i++){
update(i);
for(auto j:qry[i]){
int g=f[1].qry(j.f),k=t.qry(1,q,1,j.f,1).mxpref;
k=max(k,0ll);
pos=0;
sum=0;
for(int i=lg;i>=0;i--){
if(pos+(1ll<<i)<=j.f&&sum+f[0].fwk[pos+(1ll<<i)]<g+j.s-k){
sum+=f[0].fwk[pos+(1<<i)];
pos+=(1<<i);
}
}
pos++;
realans[j.f]=(pos>j.f)?-1:findans[pos];
}
}
for(int i=1;i<=q;i++)if(realans[i]!=0)cout<<((realans[i]==-1)?0:realans[i])<<'\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
18 ms |
43608 KB |
Output is correct |
2 |
Correct |
11 ms |
43612 KB |
Output is correct |
3 |
Correct |
10 ms |
43612 KB |
Output is correct |
4 |
Correct |
10 ms |
43612 KB |
Output is correct |
5 |
Correct |
9 ms |
43700 KB |
Output is correct |
6 |
Correct |
9 ms |
43864 KB |
Output is correct |
7 |
Correct |
10 ms |
43488 KB |
Output is correct |
8 |
Correct |
10 ms |
43508 KB |
Output is correct |
9 |
Correct |
11 ms |
43608 KB |
Output is correct |
10 |
Correct |
10 ms |
43612 KB |
Output is correct |
11 |
Correct |
10 ms |
43488 KB |
Output is correct |
12 |
Correct |
10 ms |
43612 KB |
Output is correct |
13 |
Correct |
9 ms |
43612 KB |
Output is correct |
14 |
Correct |
10 ms |
43624 KB |
Output is correct |
15 |
Correct |
9 ms |
43488 KB |
Output is correct |
16 |
Correct |
10 ms |
43612 KB |
Output is correct |
17 |
Correct |
9 ms |
43612 KB |
Output is correct |
18 |
Correct |
11 ms |
43612 KB |
Output is correct |
19 |
Correct |
9 ms |
43712 KB |
Output is correct |
20 |
Correct |
10 ms |
43612 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
18 ms |
43608 KB |
Output is correct |
2 |
Correct |
11 ms |
43612 KB |
Output is correct |
3 |
Correct |
10 ms |
43612 KB |
Output is correct |
4 |
Correct |
10 ms |
43612 KB |
Output is correct |
5 |
Correct |
9 ms |
43700 KB |
Output is correct |
6 |
Correct |
9 ms |
43864 KB |
Output is correct |
7 |
Correct |
10 ms |
43488 KB |
Output is correct |
8 |
Correct |
10 ms |
43508 KB |
Output is correct |
9 |
Correct |
11 ms |
43608 KB |
Output is correct |
10 |
Correct |
10 ms |
43612 KB |
Output is correct |
11 |
Correct |
10 ms |
43488 KB |
Output is correct |
12 |
Correct |
10 ms |
43612 KB |
Output is correct |
13 |
Correct |
9 ms |
43612 KB |
Output is correct |
14 |
Correct |
10 ms |
43624 KB |
Output is correct |
15 |
Correct |
9 ms |
43488 KB |
Output is correct |
16 |
Correct |
10 ms |
43612 KB |
Output is correct |
17 |
Correct |
9 ms |
43612 KB |
Output is correct |
18 |
Correct |
11 ms |
43612 KB |
Output is correct |
19 |
Correct |
9 ms |
43712 KB |
Output is correct |
20 |
Correct |
10 ms |
43612 KB |
Output is correct |
21 |
Correct |
10 ms |
43612 KB |
Output is correct |
22 |
Correct |
10 ms |
43508 KB |
Output is correct |
23 |
Correct |
11 ms |
43612 KB |
Output is correct |
24 |
Correct |
11 ms |
43868 KB |
Output is correct |
25 |
Correct |
10 ms |
43612 KB |
Output is correct |
26 |
Correct |
9 ms |
43608 KB |
Output is correct |
27 |
Correct |
10 ms |
43612 KB |
Output is correct |
28 |
Correct |
10 ms |
43704 KB |
Output is correct |
29 |
Correct |
10 ms |
43612 KB |
Output is correct |
30 |
Correct |
10 ms |
43724 KB |
Output is correct |
31 |
Correct |
10 ms |
43608 KB |
Output is correct |
32 |
Correct |
10 ms |
43612 KB |
Output is correct |
33 |
Correct |
9 ms |
43612 KB |
Output is correct |
34 |
Correct |
9 ms |
43508 KB |
Output is correct |
35 |
Correct |
10 ms |
43612 KB |
Output is correct |
36 |
Correct |
10 ms |
43612 KB |
Output is correct |
37 |
Correct |
9 ms |
43608 KB |
Output is correct |
38 |
Correct |
10 ms |
43612 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
57 ms |
48904 KB |
Output is correct |
2 |
Correct |
64 ms |
48920 KB |
Output is correct |
3 |
Correct |
57 ms |
47348 KB |
Output is correct |
4 |
Correct |
56 ms |
48840 KB |
Output is correct |
5 |
Correct |
68 ms |
49272 KB |
Output is correct |
6 |
Correct |
58 ms |
48976 KB |
Output is correct |
7 |
Correct |
28 ms |
47408 KB |
Output is correct |
8 |
Correct |
30 ms |
47500 KB |
Output is correct |
9 |
Correct |
57 ms |
48988 KB |
Output is correct |
10 |
Correct |
61 ms |
48980 KB |
Output is correct |
11 |
Correct |
57 ms |
47192 KB |
Output is correct |
12 |
Correct |
57 ms |
49008 KB |
Output is correct |
13 |
Correct |
48 ms |
48480 KB |
Output is correct |
14 |
Correct |
58 ms |
48720 KB |
Output is correct |
15 |
Correct |
55 ms |
48732 KB |
Output is correct |
16 |
Correct |
58 ms |
48984 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
306 ms |
64080 KB |
Output is correct |
2 |
Correct |
214 ms |
61524 KB |
Output is correct |
3 |
Correct |
314 ms |
65440 KB |
Output is correct |
4 |
Correct |
228 ms |
61704 KB |
Output is correct |
5 |
Correct |
223 ms |
62032 KB |
Output is correct |
6 |
Correct |
304 ms |
65616 KB |
Output is correct |
7 |
Correct |
101 ms |
60016 KB |
Output is correct |
8 |
Correct |
112 ms |
60628 KB |
Output is correct |
9 |
Correct |
277 ms |
63784 KB |
Output is correct |
10 |
Correct |
281 ms |
63700 KB |
Output is correct |
11 |
Correct |
280 ms |
64596 KB |
Output is correct |
12 |
Correct |
295 ms |
65360 KB |
Output is correct |
13 |
Correct |
299 ms |
64996 KB |
Output is correct |
14 |
Correct |
300 ms |
65544 KB |
Output is correct |
15 |
Correct |
316 ms |
65620 KB |
Output is correct |
16 |
Correct |
311 ms |
65364 KB |
Output is correct |
17 |
Correct |
325 ms |
65592 KB |
Output is correct |
18 |
Correct |
296 ms |
64984 KB |
Output is correct |
19 |
Correct |
316 ms |
65360 KB |
Output is correct |
20 |
Correct |
297 ms |
65196 KB |
Output is correct |
21 |
Correct |
310 ms |
65468 KB |
Output is correct |
22 |
Correct |
326 ms |
65480 KB |
Output is correct |
23 |
Correct |
320 ms |
65364 KB |
Output is correct |
24 |
Correct |
329 ms |
65688 KB |
Output is correct |
25 |
Correct |
215 ms |
64320 KB |
Output is correct |
26 |
Correct |
217 ms |
64588 KB |
Output is correct |
27 |
Correct |
233 ms |
66548 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
18 ms |
43608 KB |
Output is correct |
2 |
Correct |
11 ms |
43612 KB |
Output is correct |
3 |
Correct |
10 ms |
43612 KB |
Output is correct |
4 |
Correct |
10 ms |
43612 KB |
Output is correct |
5 |
Correct |
9 ms |
43700 KB |
Output is correct |
6 |
Correct |
9 ms |
43864 KB |
Output is correct |
7 |
Correct |
10 ms |
43488 KB |
Output is correct |
8 |
Correct |
10 ms |
43508 KB |
Output is correct |
9 |
Correct |
11 ms |
43608 KB |
Output is correct |
10 |
Correct |
10 ms |
43612 KB |
Output is correct |
11 |
Correct |
10 ms |
43488 KB |
Output is correct |
12 |
Correct |
10 ms |
43612 KB |
Output is correct |
13 |
Correct |
9 ms |
43612 KB |
Output is correct |
14 |
Correct |
10 ms |
43624 KB |
Output is correct |
15 |
Correct |
9 ms |
43488 KB |
Output is correct |
16 |
Correct |
10 ms |
43612 KB |
Output is correct |
17 |
Correct |
9 ms |
43612 KB |
Output is correct |
18 |
Correct |
11 ms |
43612 KB |
Output is correct |
19 |
Correct |
9 ms |
43712 KB |
Output is correct |
20 |
Correct |
10 ms |
43612 KB |
Output is correct |
21 |
Correct |
57 ms |
48904 KB |
Output is correct |
22 |
Correct |
64 ms |
48920 KB |
Output is correct |
23 |
Correct |
57 ms |
47348 KB |
Output is correct |
24 |
Correct |
56 ms |
48840 KB |
Output is correct |
25 |
Correct |
68 ms |
49272 KB |
Output is correct |
26 |
Correct |
58 ms |
48976 KB |
Output is correct |
27 |
Correct |
28 ms |
47408 KB |
Output is correct |
28 |
Correct |
30 ms |
47500 KB |
Output is correct |
29 |
Correct |
57 ms |
48988 KB |
Output is correct |
30 |
Correct |
61 ms |
48980 KB |
Output is correct |
31 |
Correct |
57 ms |
47192 KB |
Output is correct |
32 |
Correct |
57 ms |
49008 KB |
Output is correct |
33 |
Correct |
48 ms |
48480 KB |
Output is correct |
34 |
Correct |
58 ms |
48720 KB |
Output is correct |
35 |
Correct |
55 ms |
48732 KB |
Output is correct |
36 |
Correct |
58 ms |
48984 KB |
Output is correct |
37 |
Correct |
54 ms |
48636 KB |
Output is correct |
38 |
Correct |
49 ms |
48216 KB |
Output is correct |
39 |
Correct |
30 ms |
47384 KB |
Output is correct |
40 |
Correct |
32 ms |
47940 KB |
Output is correct |
41 |
Correct |
56 ms |
48832 KB |
Output is correct |
42 |
Correct |
57 ms |
48976 KB |
Output is correct |
43 |
Correct |
61 ms |
48980 KB |
Output is correct |
44 |
Correct |
60 ms |
48788 KB |
Output is correct |
45 |
Correct |
58 ms |
48980 KB |
Output is correct |
46 |
Correct |
61 ms |
48976 KB |
Output is correct |
47 |
Correct |
38 ms |
47852 KB |
Output is correct |
48 |
Correct |
50 ms |
48720 KB |
Output is correct |
49 |
Correct |
43 ms |
47972 KB |
Output is correct |
50 |
Correct |
54 ms |
48720 KB |
Output is correct |
51 |
Correct |
66 ms |
48988 KB |
Output is correct |
52 |
Correct |
72 ms |
49028 KB |
Output is correct |
53 |
Correct |
46 ms |
48212 KB |
Output is correct |
54 |
Correct |
59 ms |
49032 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
53 ms |
46416 KB |
Output is correct |
2 |
Correct |
56 ms |
48472 KB |
Output is correct |
3 |
Correct |
59 ms |
46932 KB |
Output is correct |
4 |
Correct |
42 ms |
47696 KB |
Output is correct |
5 |
Correct |
52 ms |
48212 KB |
Output is correct |
6 |
Correct |
65 ms |
48708 KB |
Output is correct |
7 |
Correct |
32 ms |
47296 KB |
Output is correct |
8 |
Correct |
31 ms |
47320 KB |
Output is correct |
9 |
Correct |
43 ms |
47804 KB |
Output is correct |
10 |
Correct |
37 ms |
47440 KB |
Output is correct |
11 |
Correct |
49 ms |
48044 KB |
Output is correct |
12 |
Correct |
53 ms |
48264 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
18 ms |
43608 KB |
Output is correct |
2 |
Correct |
11 ms |
43612 KB |
Output is correct |
3 |
Correct |
10 ms |
43612 KB |
Output is correct |
4 |
Correct |
10 ms |
43612 KB |
Output is correct |
5 |
Correct |
9 ms |
43700 KB |
Output is correct |
6 |
Correct |
9 ms |
43864 KB |
Output is correct |
7 |
Correct |
10 ms |
43488 KB |
Output is correct |
8 |
Correct |
10 ms |
43508 KB |
Output is correct |
9 |
Correct |
11 ms |
43608 KB |
Output is correct |
10 |
Correct |
10 ms |
43612 KB |
Output is correct |
11 |
Correct |
10 ms |
43488 KB |
Output is correct |
12 |
Correct |
10 ms |
43612 KB |
Output is correct |
13 |
Correct |
9 ms |
43612 KB |
Output is correct |
14 |
Correct |
10 ms |
43624 KB |
Output is correct |
15 |
Correct |
9 ms |
43488 KB |
Output is correct |
16 |
Correct |
10 ms |
43612 KB |
Output is correct |
17 |
Correct |
9 ms |
43612 KB |
Output is correct |
18 |
Correct |
11 ms |
43612 KB |
Output is correct |
19 |
Correct |
9 ms |
43712 KB |
Output is correct |
20 |
Correct |
10 ms |
43612 KB |
Output is correct |
21 |
Correct |
10 ms |
43612 KB |
Output is correct |
22 |
Correct |
10 ms |
43508 KB |
Output is correct |
23 |
Correct |
11 ms |
43612 KB |
Output is correct |
24 |
Correct |
11 ms |
43868 KB |
Output is correct |
25 |
Correct |
10 ms |
43612 KB |
Output is correct |
26 |
Correct |
9 ms |
43608 KB |
Output is correct |
27 |
Correct |
10 ms |
43612 KB |
Output is correct |
28 |
Correct |
10 ms |
43704 KB |
Output is correct |
29 |
Correct |
10 ms |
43612 KB |
Output is correct |
30 |
Correct |
10 ms |
43724 KB |
Output is correct |
31 |
Correct |
10 ms |
43608 KB |
Output is correct |
32 |
Correct |
10 ms |
43612 KB |
Output is correct |
33 |
Correct |
9 ms |
43612 KB |
Output is correct |
34 |
Correct |
9 ms |
43508 KB |
Output is correct |
35 |
Correct |
10 ms |
43612 KB |
Output is correct |
36 |
Correct |
10 ms |
43612 KB |
Output is correct |
37 |
Correct |
9 ms |
43608 KB |
Output is correct |
38 |
Correct |
10 ms |
43612 KB |
Output is correct |
39 |
Correct |
57 ms |
48904 KB |
Output is correct |
40 |
Correct |
64 ms |
48920 KB |
Output is correct |
41 |
Correct |
57 ms |
47348 KB |
Output is correct |
42 |
Correct |
56 ms |
48840 KB |
Output is correct |
43 |
Correct |
68 ms |
49272 KB |
Output is correct |
44 |
Correct |
58 ms |
48976 KB |
Output is correct |
45 |
Correct |
28 ms |
47408 KB |
Output is correct |
46 |
Correct |
30 ms |
47500 KB |
Output is correct |
47 |
Correct |
57 ms |
48988 KB |
Output is correct |
48 |
Correct |
61 ms |
48980 KB |
Output is correct |
49 |
Correct |
57 ms |
47192 KB |
Output is correct |
50 |
Correct |
57 ms |
49008 KB |
Output is correct |
51 |
Correct |
48 ms |
48480 KB |
Output is correct |
52 |
Correct |
58 ms |
48720 KB |
Output is correct |
53 |
Correct |
55 ms |
48732 KB |
Output is correct |
54 |
Correct |
58 ms |
48984 KB |
Output is correct |
55 |
Correct |
54 ms |
48636 KB |
Output is correct |
56 |
Correct |
49 ms |
48216 KB |
Output is correct |
57 |
Correct |
30 ms |
47384 KB |
Output is correct |
58 |
Correct |
32 ms |
47940 KB |
Output is correct |
59 |
Correct |
56 ms |
48832 KB |
Output is correct |
60 |
Correct |
57 ms |
48976 KB |
Output is correct |
61 |
Correct |
61 ms |
48980 KB |
Output is correct |
62 |
Correct |
60 ms |
48788 KB |
Output is correct |
63 |
Correct |
58 ms |
48980 KB |
Output is correct |
64 |
Correct |
61 ms |
48976 KB |
Output is correct |
65 |
Correct |
38 ms |
47852 KB |
Output is correct |
66 |
Correct |
50 ms |
48720 KB |
Output is correct |
67 |
Correct |
43 ms |
47972 KB |
Output is correct |
68 |
Correct |
54 ms |
48720 KB |
Output is correct |
69 |
Correct |
66 ms |
48988 KB |
Output is correct |
70 |
Correct |
72 ms |
49028 KB |
Output is correct |
71 |
Correct |
46 ms |
48212 KB |
Output is correct |
72 |
Correct |
59 ms |
49032 KB |
Output is correct |
73 |
Correct |
53 ms |
46416 KB |
Output is correct |
74 |
Correct |
56 ms |
48472 KB |
Output is correct |
75 |
Correct |
59 ms |
46932 KB |
Output is correct |
76 |
Correct |
42 ms |
47696 KB |
Output is correct |
77 |
Correct |
52 ms |
48212 KB |
Output is correct |
78 |
Correct |
65 ms |
48708 KB |
Output is correct |
79 |
Correct |
32 ms |
47296 KB |
Output is correct |
80 |
Correct |
31 ms |
47320 KB |
Output is correct |
81 |
Correct |
43 ms |
47804 KB |
Output is correct |
82 |
Correct |
37 ms |
47440 KB |
Output is correct |
83 |
Correct |
49 ms |
48044 KB |
Output is correct |
84 |
Correct |
53 ms |
48264 KB |
Output is correct |
85 |
Correct |
58 ms |
48468 KB |
Output is correct |
86 |
Correct |
64 ms |
49108 KB |
Output is correct |
87 |
Correct |
55 ms |
48464 KB |
Output is correct |
88 |
Correct |
62 ms |
48980 KB |
Output is correct |
89 |
Correct |
42 ms |
47956 KB |
Output is correct |
90 |
Correct |
60 ms |
48980 KB |
Output is correct |
91 |
Correct |
51 ms |
48340 KB |
Output is correct |
92 |
Correct |
53 ms |
48168 KB |
Output is correct |
93 |
Correct |
62 ms |
48976 KB |
Output is correct |
94 |
Correct |
69 ms |
48980 KB |
Output is correct |
95 |
Correct |
62 ms |
48724 KB |
Output is correct |
96 |
Correct |
63 ms |
48808 KB |
Output is correct |
97 |
Correct |
67 ms |
48896 KB |
Output is correct |
98 |
Correct |
56 ms |
48488 KB |
Output is correct |
99 |
Correct |
39 ms |
47996 KB |
Output is correct |
100 |
Correct |
45 ms |
48088 KB |
Output is correct |
101 |
Correct |
52 ms |
48724 KB |
Output is correct |
102 |
Correct |
56 ms |
49236 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
18 ms |
43608 KB |
Output is correct |
2 |
Correct |
11 ms |
43612 KB |
Output is correct |
3 |
Correct |
10 ms |
43612 KB |
Output is correct |
4 |
Correct |
10 ms |
43612 KB |
Output is correct |
5 |
Correct |
9 ms |
43700 KB |
Output is correct |
6 |
Correct |
9 ms |
43864 KB |
Output is correct |
7 |
Correct |
10 ms |
43488 KB |
Output is correct |
8 |
Correct |
10 ms |
43508 KB |
Output is correct |
9 |
Correct |
11 ms |
43608 KB |
Output is correct |
10 |
Correct |
10 ms |
43612 KB |
Output is correct |
11 |
Correct |
10 ms |
43488 KB |
Output is correct |
12 |
Correct |
10 ms |
43612 KB |
Output is correct |
13 |
Correct |
9 ms |
43612 KB |
Output is correct |
14 |
Correct |
10 ms |
43624 KB |
Output is correct |
15 |
Correct |
9 ms |
43488 KB |
Output is correct |
16 |
Correct |
10 ms |
43612 KB |
Output is correct |
17 |
Correct |
9 ms |
43612 KB |
Output is correct |
18 |
Correct |
11 ms |
43612 KB |
Output is correct |
19 |
Correct |
9 ms |
43712 KB |
Output is correct |
20 |
Correct |
10 ms |
43612 KB |
Output is correct |
21 |
Correct |
10 ms |
43612 KB |
Output is correct |
22 |
Correct |
10 ms |
43508 KB |
Output is correct |
23 |
Correct |
11 ms |
43612 KB |
Output is correct |
24 |
Correct |
11 ms |
43868 KB |
Output is correct |
25 |
Correct |
10 ms |
43612 KB |
Output is correct |
26 |
Correct |
9 ms |
43608 KB |
Output is correct |
27 |
Correct |
10 ms |
43612 KB |
Output is correct |
28 |
Correct |
10 ms |
43704 KB |
Output is correct |
29 |
Correct |
10 ms |
43612 KB |
Output is correct |
30 |
Correct |
10 ms |
43724 KB |
Output is correct |
31 |
Correct |
10 ms |
43608 KB |
Output is correct |
32 |
Correct |
10 ms |
43612 KB |
Output is correct |
33 |
Correct |
9 ms |
43612 KB |
Output is correct |
34 |
Correct |
9 ms |
43508 KB |
Output is correct |
35 |
Correct |
10 ms |
43612 KB |
Output is correct |
36 |
Correct |
10 ms |
43612 KB |
Output is correct |
37 |
Correct |
9 ms |
43608 KB |
Output is correct |
38 |
Correct |
10 ms |
43612 KB |
Output is correct |
39 |
Correct |
57 ms |
48904 KB |
Output is correct |
40 |
Correct |
64 ms |
48920 KB |
Output is correct |
41 |
Correct |
57 ms |
47348 KB |
Output is correct |
42 |
Correct |
56 ms |
48840 KB |
Output is correct |
43 |
Correct |
68 ms |
49272 KB |
Output is correct |
44 |
Correct |
58 ms |
48976 KB |
Output is correct |
45 |
Correct |
28 ms |
47408 KB |
Output is correct |
46 |
Correct |
30 ms |
47500 KB |
Output is correct |
47 |
Correct |
57 ms |
48988 KB |
Output is correct |
48 |
Correct |
61 ms |
48980 KB |
Output is correct |
49 |
Correct |
57 ms |
47192 KB |
Output is correct |
50 |
Correct |
57 ms |
49008 KB |
Output is correct |
51 |
Correct |
48 ms |
48480 KB |
Output is correct |
52 |
Correct |
58 ms |
48720 KB |
Output is correct |
53 |
Correct |
55 ms |
48732 KB |
Output is correct |
54 |
Correct |
58 ms |
48984 KB |
Output is correct |
55 |
Correct |
306 ms |
64080 KB |
Output is correct |
56 |
Correct |
214 ms |
61524 KB |
Output is correct |
57 |
Correct |
314 ms |
65440 KB |
Output is correct |
58 |
Correct |
228 ms |
61704 KB |
Output is correct |
59 |
Correct |
223 ms |
62032 KB |
Output is correct |
60 |
Correct |
304 ms |
65616 KB |
Output is correct |
61 |
Correct |
101 ms |
60016 KB |
Output is correct |
62 |
Correct |
112 ms |
60628 KB |
Output is correct |
63 |
Correct |
277 ms |
63784 KB |
Output is correct |
64 |
Correct |
281 ms |
63700 KB |
Output is correct |
65 |
Correct |
280 ms |
64596 KB |
Output is correct |
66 |
Correct |
295 ms |
65360 KB |
Output is correct |
67 |
Correct |
299 ms |
64996 KB |
Output is correct |
68 |
Correct |
300 ms |
65544 KB |
Output is correct |
69 |
Correct |
316 ms |
65620 KB |
Output is correct |
70 |
Correct |
311 ms |
65364 KB |
Output is correct |
71 |
Correct |
325 ms |
65592 KB |
Output is correct |
72 |
Correct |
296 ms |
64984 KB |
Output is correct |
73 |
Correct |
316 ms |
65360 KB |
Output is correct |
74 |
Correct |
297 ms |
65196 KB |
Output is correct |
75 |
Correct |
310 ms |
65468 KB |
Output is correct |
76 |
Correct |
326 ms |
65480 KB |
Output is correct |
77 |
Correct |
320 ms |
65364 KB |
Output is correct |
78 |
Correct |
329 ms |
65688 KB |
Output is correct |
79 |
Correct |
215 ms |
64320 KB |
Output is correct |
80 |
Correct |
217 ms |
64588 KB |
Output is correct |
81 |
Correct |
233 ms |
66548 KB |
Output is correct |
82 |
Correct |
54 ms |
48636 KB |
Output is correct |
83 |
Correct |
49 ms |
48216 KB |
Output is correct |
84 |
Correct |
30 ms |
47384 KB |
Output is correct |
85 |
Correct |
32 ms |
47940 KB |
Output is correct |
86 |
Correct |
56 ms |
48832 KB |
Output is correct |
87 |
Correct |
57 ms |
48976 KB |
Output is correct |
88 |
Correct |
61 ms |
48980 KB |
Output is correct |
89 |
Correct |
60 ms |
48788 KB |
Output is correct |
90 |
Correct |
58 ms |
48980 KB |
Output is correct |
91 |
Correct |
61 ms |
48976 KB |
Output is correct |
92 |
Correct |
38 ms |
47852 KB |
Output is correct |
93 |
Correct |
50 ms |
48720 KB |
Output is correct |
94 |
Correct |
43 ms |
47972 KB |
Output is correct |
95 |
Correct |
54 ms |
48720 KB |
Output is correct |
96 |
Correct |
66 ms |
48988 KB |
Output is correct |
97 |
Correct |
72 ms |
49028 KB |
Output is correct |
98 |
Correct |
46 ms |
48212 KB |
Output is correct |
99 |
Correct |
59 ms |
49032 KB |
Output is correct |
100 |
Correct |
53 ms |
46416 KB |
Output is correct |
101 |
Correct |
56 ms |
48472 KB |
Output is correct |
102 |
Correct |
59 ms |
46932 KB |
Output is correct |
103 |
Correct |
42 ms |
47696 KB |
Output is correct |
104 |
Correct |
52 ms |
48212 KB |
Output is correct |
105 |
Correct |
65 ms |
48708 KB |
Output is correct |
106 |
Correct |
32 ms |
47296 KB |
Output is correct |
107 |
Correct |
31 ms |
47320 KB |
Output is correct |
108 |
Correct |
43 ms |
47804 KB |
Output is correct |
109 |
Correct |
37 ms |
47440 KB |
Output is correct |
110 |
Correct |
49 ms |
48044 KB |
Output is correct |
111 |
Correct |
53 ms |
48264 KB |
Output is correct |
112 |
Correct |
58 ms |
48468 KB |
Output is correct |
113 |
Correct |
64 ms |
49108 KB |
Output is correct |
114 |
Correct |
55 ms |
48464 KB |
Output is correct |
115 |
Correct |
62 ms |
48980 KB |
Output is correct |
116 |
Correct |
42 ms |
47956 KB |
Output is correct |
117 |
Correct |
60 ms |
48980 KB |
Output is correct |
118 |
Correct |
51 ms |
48340 KB |
Output is correct |
119 |
Correct |
53 ms |
48168 KB |
Output is correct |
120 |
Correct |
62 ms |
48976 KB |
Output is correct |
121 |
Correct |
69 ms |
48980 KB |
Output is correct |
122 |
Correct |
62 ms |
48724 KB |
Output is correct |
123 |
Correct |
63 ms |
48808 KB |
Output is correct |
124 |
Correct |
67 ms |
48896 KB |
Output is correct |
125 |
Correct |
56 ms |
48488 KB |
Output is correct |
126 |
Correct |
39 ms |
47996 KB |
Output is correct |
127 |
Correct |
45 ms |
48088 KB |
Output is correct |
128 |
Correct |
52 ms |
48724 KB |
Output is correct |
129 |
Correct |
56 ms |
49236 KB |
Output is correct |
130 |
Correct |
327 ms |
65500 KB |
Output is correct |
131 |
Correct |
227 ms |
61648 KB |
Output is correct |
132 |
Correct |
318 ms |
65440 KB |
Output is correct |
133 |
Correct |
301 ms |
65068 KB |
Output is correct |
134 |
Correct |
258 ms |
63568 KB |
Output is correct |
135 |
Correct |
327 ms |
65620 KB |
Output is correct |
136 |
Correct |
279 ms |
64080 KB |
Output is correct |
137 |
Correct |
312 ms |
64192 KB |
Output is correct |
138 |
Correct |
294 ms |
64592 KB |
Output is correct |
139 |
Correct |
313 ms |
65616 KB |
Output is correct |
140 |
Correct |
314 ms |
65116 KB |
Output is correct |
141 |
Correct |
317 ms |
65620 KB |
Output is correct |
142 |
Correct |
321 ms |
65876 KB |
Output is correct |
143 |
Correct |
318 ms |
65984 KB |
Output is correct |
144 |
Correct |
323 ms |
65476 KB |
Output is correct |
145 |
Correct |
317 ms |
65612 KB |
Output is correct |
146 |
Correct |
313 ms |
65492 KB |
Output is correct |
147 |
Correct |
318 ms |
65620 KB |
Output is correct |
148 |
Correct |
342 ms |
65584 KB |
Output is correct |
149 |
Correct |
326 ms |
65740 KB |
Output is correct |
150 |
Correct |
149 ms |
61064 KB |
Output is correct |
151 |
Correct |
233 ms |
64852 KB |
Output is correct |
152 |
Correct |
225 ms |
64856 KB |
Output is correct |
153 |
Correct |
231 ms |
67152 KB |
Output is correct |