Submission #553086

# Submission time Handle Problem Language Result Execution time Memory
553086 2022-04-24T16:01:28 Z BJoozz Food Court (JOI21_foodcourt) C++14
100 / 100
472 ms 46260 KB
#define X first
#define Y second
#define pb push_back

#include<bits/stdc++.h>
using namespace std;
#define int long long
void maxx(int &a,int b){if(b>a) a=b;}
using ll = long long;
void minn(ll &a,ll b){if(b<a) a=b;}
//int down(const int &id){return id^1;}
//int upd(const int &id){return id;}
const int MAX=250000+4,mod=1e9+7;
const ll inf=1e15+3;
using ii =pair < int , int >;
vector < int > pr[MAX];
vector < ii >ad[MAX];
int C[MAX],K[MAX];
int SS[MAX*4],lz[MAX*4];
int ST[MAX*4];
int nx,val,n,m,Q,res;
void upd(int id,int l,int r){
    if(l==r){
        SS[id]+=val;lz[id]+=val;
        if(C[l])ST[id]+=val;
        return;
    }
    int mid=l+r>>1;
    if(lz[id]){
        lz[id<<1]+=lz[id];lz[id<<1|1]+=lz[id];
        SS[id<<1]+=lz[id];SS[id<<1|1]+=lz[id];
        lz[id]=0;
    }
    if(nx<=mid){
        SS[id<<1|1]+=val;lz[id<<1|1]+=val;
        upd(id<<1,l,mid);
    }
    else upd(id<<1|1,mid+1,r);
    ST[id]=ST[id<<1]+ST[id<<1|1];
    SS[id]=min(SS[id<<1],SS[id<<1|1]);
}
void get(int id,int l,int r){
    if(l==r){
        //cout<<"here "<<nx<<' '<<id<<' '<<l<<' '<<r<<' '<<SS[id]<<'\n';
        val=SS[id];return;
    }
    int mid=l+r>>1;
    if(lz[id]){
        lz[id<<1]+=lz[id];lz[id<<1|1]+=lz[id];
        SS[id<<1]+=lz[id];SS[id<<1|1]+=lz[id];
        lz[id]=0;
    }
    if(nx<=mid)get(id<<1,l,mid);
    else{
        minn(res,SS[id<<1]);
        get(id<<1|1,mid+1,r);
    }
    //SS[id]=min(SS[id<<1],SS[id<<1|1]);
}
void leo(int id,int l,int r){
    if(r<=nx){
        if(val>=ST[id]) {val-=ST[id];return;}
        if(l==r) {res=l;return;}
        int mid=l+r>>1;
        if(ST[id<<1|1]<=val) {
            val-=ST[id<<1|1];leo(id<<1,l,mid);
        }
        else leo(id<<1|1,mid+1,r);
        return;
    }
    int mid=l+r>>1;
    if(nx<=mid)leo(id<<1,l,mid);
    else{
        leo(id<<1|1,mid+1,r);
        if(!res) leo(id<<1,l,mid);
    }
    //SS[id]=min(SS[id<<1],SS[id<<1|1]);
}
void upd(int x){
    nx=x;val=K[x];//cout<<"upd "<<x<<' '<<K[x]<<'\n';
    K[x]=-K[x];
    upd(1,1,Q);
}

int get(int x,int lim){
    //cout<<x<<' '<<lim<<'\n';
    nx=x;res=0;
    get(1,1,Q);
    //cout<<val<<' '<<res<<'\n';
    if(val-res<lim) return 0;
    val=val-res-lim;res=0;
    leo(1,1,Q);
    //cout<<x<<' '<<lim<<' '<<res<<'\n';
    return C[res];
}
int ans[MAX];
signed main(){
    ///g++ grader.cpp .cpp -std=c++14 -O2 -Wl,--stack,10485760
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    //freopen("JOI21_foodcourt.inp","r",stdin);//freopen("JOI21_foodcourt.out","w",stdout);
    cin>>n>>m>>Q;
    for(int i=1,t,x,y;i<=Q;i++){
        cin>>t>>x>>y;
        if(t==3)ad[x].pb(ii(i,y));
        else{
            ans[i]=-1;
            if(t==1){
                cin>>C[i]>>K[i];
                pr[x].pb(i);
                pr[y+1].pb(i);
            }
            else{
                cin>>K[i];K[i]=-K[i];
                pr[x].pb(i);
                pr[y+1].pb(i);
            }
        }
    }
    for(int i=1;i<=n;i++){
        for(int u:pr[i])
            upd(u);
        for(ii u:ad[i]){
            ans[u.X]=get(u.X,u.Y);
        }
    }
    for(int i=1;i<=Q;i++) if(ans[i]!=-1)cout<<ans[i]<<'\n';

}

Compilation message

foodcourt.cpp: In function 'void upd(long long int, long long int, long long int)':
foodcourt.cpp:29:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   29 |     int mid=l+r>>1;
      |             ~^~
foodcourt.cpp: In function 'void get(long long int, long long int, long long int)':
foodcourt.cpp:48:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   48 |     int mid=l+r>>1;
      |             ~^~
foodcourt.cpp: In function 'void leo(long long int, long long int, long long int)':
foodcourt.cpp:65:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   65 |         int mid=l+r>>1;
      |                 ~^~
foodcourt.cpp:72:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   72 |     int mid=l+r>>1;
      |             ~^~
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 8 ms 12244 KB Output is correct
3 Correct 7 ms 12244 KB Output is correct
4 Correct 8 ms 12244 KB Output is correct
5 Correct 7 ms 12244 KB Output is correct
6 Correct 7 ms 12232 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 7 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 9 ms 12244 KB Output is correct
12 Correct 8 ms 12268 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12276 KB Output is correct
16 Correct 7 ms 12244 KB Output is correct
17 Correct 8 ms 12292 KB Output is correct
18 Correct 8 ms 12236 KB Output is correct
19 Correct 8 ms 12268 KB Output is correct
20 Correct 7 ms 12244 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 8 ms 12244 KB Output is correct
3 Correct 7 ms 12244 KB Output is correct
4 Correct 8 ms 12244 KB Output is correct
5 Correct 7 ms 12244 KB Output is correct
6 Correct 7 ms 12232 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 7 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 9 ms 12244 KB Output is correct
12 Correct 8 ms 12268 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12276 KB Output is correct
16 Correct 7 ms 12244 KB Output is correct
17 Correct 8 ms 12292 KB Output is correct
18 Correct 8 ms 12236 KB Output is correct
19 Correct 8 ms 12268 KB Output is correct
20 Correct 7 ms 12244 KB Output is correct
21 Correct 8 ms 12248 KB Output is correct
22 Correct 7 ms 12244 KB Output is correct
23 Correct 7 ms 12312 KB Output is correct
24 Correct 7 ms 12244 KB Output is correct
25 Correct 7 ms 12244 KB Output is correct
26 Correct 7 ms 12244 KB Output is correct
27 Correct 11 ms 12244 KB Output is correct
28 Correct 8 ms 12244 KB Output is correct
29 Correct 8 ms 12244 KB Output is correct
30 Correct 8 ms 12284 KB Output is correct
31 Correct 8 ms 12244 KB Output is correct
32 Correct 8 ms 12244 KB Output is correct
33 Correct 8 ms 12244 KB Output is correct
34 Correct 7 ms 12252 KB Output is correct
35 Correct 8 ms 12244 KB Output is correct
36 Correct 7 ms 12316 KB Output is correct
37 Correct 8 ms 12244 KB Output is correct
38 Correct 8 ms 12244 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 66 ms 19120 KB Output is correct
2 Correct 67 ms 18984 KB Output is correct
3 Correct 70 ms 19012 KB Output is correct
4 Correct 64 ms 19000 KB Output is correct
5 Correct 79 ms 18984 KB Output is correct
6 Correct 68 ms 19020 KB Output is correct
7 Correct 31 ms 17936 KB Output is correct
8 Correct 34 ms 17816 KB Output is correct
9 Correct 65 ms 18544 KB Output is correct
10 Correct 69 ms 18900 KB Output is correct
11 Correct 72 ms 18796 KB Output is correct
12 Correct 70 ms 19012 KB Output is correct
13 Correct 55 ms 18424 KB Output is correct
14 Correct 65 ms 19024 KB Output is correct
15 Correct 65 ms 18724 KB Output is correct
16 Correct 69 ms 18904 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 361 ms 38012 KB Output is correct
2 Correct 263 ms 35800 KB Output is correct
3 Correct 389 ms 39584 KB Output is correct
4 Correct 286 ms 35916 KB Output is correct
5 Correct 277 ms 35716 KB Output is correct
6 Correct 400 ms 45260 KB Output is correct
7 Correct 124 ms 38644 KB Output is correct
8 Correct 162 ms 38804 KB Output is correct
9 Correct 366 ms 45200 KB Output is correct
10 Correct 376 ms 45196 KB Output is correct
11 Correct 397 ms 43344 KB Output is correct
12 Correct 409 ms 45272 KB Output is correct
13 Correct 395 ms 43352 KB Output is correct
14 Correct 406 ms 45132 KB Output is correct
15 Correct 408 ms 45016 KB Output is correct
16 Correct 402 ms 45096 KB Output is correct
17 Correct 391 ms 45012 KB Output is correct
18 Correct 389 ms 44076 KB Output is correct
19 Correct 397 ms 45080 KB Output is correct
20 Correct 393 ms 44096 KB Output is correct
21 Correct 401 ms 45176 KB Output is correct
22 Correct 396 ms 44996 KB Output is correct
23 Correct 402 ms 45128 KB Output is correct
24 Correct 396 ms 45080 KB Output is correct
25 Correct 300 ms 42572 KB Output is correct
26 Correct 305 ms 43120 KB Output is correct
27 Correct 306 ms 44236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 8 ms 12244 KB Output is correct
3 Correct 7 ms 12244 KB Output is correct
4 Correct 8 ms 12244 KB Output is correct
5 Correct 7 ms 12244 KB Output is correct
6 Correct 7 ms 12232 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 7 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 9 ms 12244 KB Output is correct
12 Correct 8 ms 12268 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12276 KB Output is correct
16 Correct 7 ms 12244 KB Output is correct
17 Correct 8 ms 12292 KB Output is correct
18 Correct 8 ms 12236 KB Output is correct
19 Correct 8 ms 12268 KB Output is correct
20 Correct 7 ms 12244 KB Output is correct
21 Correct 66 ms 19120 KB Output is correct
22 Correct 67 ms 18984 KB Output is correct
23 Correct 70 ms 19012 KB Output is correct
24 Correct 64 ms 19000 KB Output is correct
25 Correct 79 ms 18984 KB Output is correct
26 Correct 68 ms 19020 KB Output is correct
27 Correct 31 ms 17936 KB Output is correct
28 Correct 34 ms 17816 KB Output is correct
29 Correct 65 ms 18544 KB Output is correct
30 Correct 69 ms 18900 KB Output is correct
31 Correct 72 ms 18796 KB Output is correct
32 Correct 70 ms 19012 KB Output is correct
33 Correct 55 ms 18424 KB Output is correct
34 Correct 65 ms 19024 KB Output is correct
35 Correct 65 ms 18724 KB Output is correct
36 Correct 69 ms 18904 KB Output is correct
37 Correct 65 ms 18920 KB Output is correct
38 Correct 60 ms 18536 KB Output is correct
39 Correct 31 ms 17648 KB Output is correct
40 Correct 38 ms 17944 KB Output is correct
41 Correct 70 ms 18720 KB Output is correct
42 Correct 80 ms 19232 KB Output is correct
43 Correct 73 ms 19212 KB Output is correct
44 Correct 77 ms 18964 KB Output is correct
45 Correct 74 ms 19188 KB Output is correct
46 Correct 73 ms 19232 KB Output is correct
47 Correct 41 ms 18292 KB Output is correct
48 Correct 60 ms 18756 KB Output is correct
49 Correct 51 ms 18088 KB Output is correct
50 Correct 64 ms 18712 KB Output is correct
51 Correct 72 ms 19276 KB Output is correct
52 Correct 84 ms 19176 KB Output is correct
53 Correct 53 ms 18440 KB Output is correct
54 Correct 69 ms 19188 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 71 ms 18996 KB Output is correct
2 Correct 86 ms 19204 KB Output is correct
3 Correct 79 ms 19372 KB Output is correct
4 Correct 54 ms 18056 KB Output is correct
5 Correct 65 ms 18636 KB Output is correct
6 Correct 71 ms 19212 KB Output is correct
7 Correct 34 ms 17924 KB Output is correct
8 Correct 37 ms 17784 KB Output is correct
9 Correct 50 ms 18376 KB Output is correct
10 Correct 46 ms 17568 KB Output is correct
11 Correct 68 ms 18592 KB Output is correct
12 Correct 68 ms 18592 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 8 ms 12244 KB Output is correct
3 Correct 7 ms 12244 KB Output is correct
4 Correct 8 ms 12244 KB Output is correct
5 Correct 7 ms 12244 KB Output is correct
6 Correct 7 ms 12232 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 7 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 9 ms 12244 KB Output is correct
12 Correct 8 ms 12268 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12276 KB Output is correct
16 Correct 7 ms 12244 KB Output is correct
17 Correct 8 ms 12292 KB Output is correct
18 Correct 8 ms 12236 KB Output is correct
19 Correct 8 ms 12268 KB Output is correct
20 Correct 7 ms 12244 KB Output is correct
21 Correct 8 ms 12248 KB Output is correct
22 Correct 7 ms 12244 KB Output is correct
23 Correct 7 ms 12312 KB Output is correct
24 Correct 7 ms 12244 KB Output is correct
25 Correct 7 ms 12244 KB Output is correct
26 Correct 7 ms 12244 KB Output is correct
27 Correct 11 ms 12244 KB Output is correct
28 Correct 8 ms 12244 KB Output is correct
29 Correct 8 ms 12244 KB Output is correct
30 Correct 8 ms 12284 KB Output is correct
31 Correct 8 ms 12244 KB Output is correct
32 Correct 8 ms 12244 KB Output is correct
33 Correct 8 ms 12244 KB Output is correct
34 Correct 7 ms 12252 KB Output is correct
35 Correct 8 ms 12244 KB Output is correct
36 Correct 7 ms 12316 KB Output is correct
37 Correct 8 ms 12244 KB Output is correct
38 Correct 8 ms 12244 KB Output is correct
39 Correct 66 ms 19120 KB Output is correct
40 Correct 67 ms 18984 KB Output is correct
41 Correct 70 ms 19012 KB Output is correct
42 Correct 64 ms 19000 KB Output is correct
43 Correct 79 ms 18984 KB Output is correct
44 Correct 68 ms 19020 KB Output is correct
45 Correct 31 ms 17936 KB Output is correct
46 Correct 34 ms 17816 KB Output is correct
47 Correct 65 ms 18544 KB Output is correct
48 Correct 69 ms 18900 KB Output is correct
49 Correct 72 ms 18796 KB Output is correct
50 Correct 70 ms 19012 KB Output is correct
51 Correct 55 ms 18424 KB Output is correct
52 Correct 65 ms 19024 KB Output is correct
53 Correct 65 ms 18724 KB Output is correct
54 Correct 69 ms 18904 KB Output is correct
55 Correct 65 ms 18920 KB Output is correct
56 Correct 60 ms 18536 KB Output is correct
57 Correct 31 ms 17648 KB Output is correct
58 Correct 38 ms 17944 KB Output is correct
59 Correct 70 ms 18720 KB Output is correct
60 Correct 80 ms 19232 KB Output is correct
61 Correct 73 ms 19212 KB Output is correct
62 Correct 77 ms 18964 KB Output is correct
63 Correct 74 ms 19188 KB Output is correct
64 Correct 73 ms 19232 KB Output is correct
65 Correct 41 ms 18292 KB Output is correct
66 Correct 60 ms 18756 KB Output is correct
67 Correct 51 ms 18088 KB Output is correct
68 Correct 64 ms 18712 KB Output is correct
69 Correct 72 ms 19276 KB Output is correct
70 Correct 84 ms 19176 KB Output is correct
71 Correct 53 ms 18440 KB Output is correct
72 Correct 69 ms 19188 KB Output is correct
73 Correct 71 ms 18996 KB Output is correct
74 Correct 86 ms 19204 KB Output is correct
75 Correct 79 ms 19372 KB Output is correct
76 Correct 54 ms 18056 KB Output is correct
77 Correct 65 ms 18636 KB Output is correct
78 Correct 71 ms 19212 KB Output is correct
79 Correct 34 ms 17924 KB Output is correct
80 Correct 37 ms 17784 KB Output is correct
81 Correct 50 ms 18376 KB Output is correct
82 Correct 46 ms 17568 KB Output is correct
83 Correct 68 ms 18592 KB Output is correct
84 Correct 68 ms 18592 KB Output is correct
85 Correct 74 ms 18844 KB Output is correct
86 Correct 83 ms 19276 KB Output is correct
87 Correct 66 ms 18788 KB Output is correct
88 Correct 75 ms 19292 KB Output is correct
89 Correct 51 ms 17572 KB Output is correct
90 Correct 75 ms 19212 KB Output is correct
91 Correct 62 ms 18508 KB Output is correct
92 Correct 61 ms 18388 KB Output is correct
93 Correct 85 ms 19280 KB Output is correct
94 Correct 75 ms 18996 KB Output is correct
95 Correct 74 ms 19252 KB Output is correct
96 Correct 75 ms 19316 KB Output is correct
97 Correct 77 ms 19280 KB Output is correct
98 Correct 64 ms 18636 KB Output is correct
99 Correct 46 ms 18344 KB Output is correct
100 Correct 56 ms 18076 KB Output is correct
101 Correct 61 ms 18864 KB Output is correct
102 Correct 65 ms 19128 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 8 ms 12244 KB Output is correct
3 Correct 7 ms 12244 KB Output is correct
4 Correct 8 ms 12244 KB Output is correct
5 Correct 7 ms 12244 KB Output is correct
6 Correct 7 ms 12232 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 7 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 9 ms 12244 KB Output is correct
12 Correct 8 ms 12268 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12276 KB Output is correct
16 Correct 7 ms 12244 KB Output is correct
17 Correct 8 ms 12292 KB Output is correct
18 Correct 8 ms 12236 KB Output is correct
19 Correct 8 ms 12268 KB Output is correct
20 Correct 7 ms 12244 KB Output is correct
21 Correct 8 ms 12248 KB Output is correct
22 Correct 7 ms 12244 KB Output is correct
23 Correct 7 ms 12312 KB Output is correct
24 Correct 7 ms 12244 KB Output is correct
25 Correct 7 ms 12244 KB Output is correct
26 Correct 7 ms 12244 KB Output is correct
27 Correct 11 ms 12244 KB Output is correct
28 Correct 8 ms 12244 KB Output is correct
29 Correct 8 ms 12244 KB Output is correct
30 Correct 8 ms 12284 KB Output is correct
31 Correct 8 ms 12244 KB Output is correct
32 Correct 8 ms 12244 KB Output is correct
33 Correct 8 ms 12244 KB Output is correct
34 Correct 7 ms 12252 KB Output is correct
35 Correct 8 ms 12244 KB Output is correct
36 Correct 7 ms 12316 KB Output is correct
37 Correct 8 ms 12244 KB Output is correct
38 Correct 8 ms 12244 KB Output is correct
39 Correct 66 ms 19120 KB Output is correct
40 Correct 67 ms 18984 KB Output is correct
41 Correct 70 ms 19012 KB Output is correct
42 Correct 64 ms 19000 KB Output is correct
43 Correct 79 ms 18984 KB Output is correct
44 Correct 68 ms 19020 KB Output is correct
45 Correct 31 ms 17936 KB Output is correct
46 Correct 34 ms 17816 KB Output is correct
47 Correct 65 ms 18544 KB Output is correct
48 Correct 69 ms 18900 KB Output is correct
49 Correct 72 ms 18796 KB Output is correct
50 Correct 70 ms 19012 KB Output is correct
51 Correct 55 ms 18424 KB Output is correct
52 Correct 65 ms 19024 KB Output is correct
53 Correct 65 ms 18724 KB Output is correct
54 Correct 69 ms 18904 KB Output is correct
55 Correct 361 ms 38012 KB Output is correct
56 Correct 263 ms 35800 KB Output is correct
57 Correct 389 ms 39584 KB Output is correct
58 Correct 286 ms 35916 KB Output is correct
59 Correct 277 ms 35716 KB Output is correct
60 Correct 400 ms 45260 KB Output is correct
61 Correct 124 ms 38644 KB Output is correct
62 Correct 162 ms 38804 KB Output is correct
63 Correct 366 ms 45200 KB Output is correct
64 Correct 376 ms 45196 KB Output is correct
65 Correct 397 ms 43344 KB Output is correct
66 Correct 409 ms 45272 KB Output is correct
67 Correct 395 ms 43352 KB Output is correct
68 Correct 406 ms 45132 KB Output is correct
69 Correct 408 ms 45016 KB Output is correct
70 Correct 402 ms 45096 KB Output is correct
71 Correct 391 ms 45012 KB Output is correct
72 Correct 389 ms 44076 KB Output is correct
73 Correct 397 ms 45080 KB Output is correct
74 Correct 393 ms 44096 KB Output is correct
75 Correct 401 ms 45176 KB Output is correct
76 Correct 396 ms 44996 KB Output is correct
77 Correct 402 ms 45128 KB Output is correct
78 Correct 396 ms 45080 KB Output is correct
79 Correct 300 ms 42572 KB Output is correct
80 Correct 305 ms 43120 KB Output is correct
81 Correct 306 ms 44236 KB Output is correct
82 Correct 65 ms 18920 KB Output is correct
83 Correct 60 ms 18536 KB Output is correct
84 Correct 31 ms 17648 KB Output is correct
85 Correct 38 ms 17944 KB Output is correct
86 Correct 70 ms 18720 KB Output is correct
87 Correct 80 ms 19232 KB Output is correct
88 Correct 73 ms 19212 KB Output is correct
89 Correct 77 ms 18964 KB Output is correct
90 Correct 74 ms 19188 KB Output is correct
91 Correct 73 ms 19232 KB Output is correct
92 Correct 41 ms 18292 KB Output is correct
93 Correct 60 ms 18756 KB Output is correct
94 Correct 51 ms 18088 KB Output is correct
95 Correct 64 ms 18712 KB Output is correct
96 Correct 72 ms 19276 KB Output is correct
97 Correct 84 ms 19176 KB Output is correct
98 Correct 53 ms 18440 KB Output is correct
99 Correct 69 ms 19188 KB Output is correct
100 Correct 71 ms 18996 KB Output is correct
101 Correct 86 ms 19204 KB Output is correct
102 Correct 79 ms 19372 KB Output is correct
103 Correct 54 ms 18056 KB Output is correct
104 Correct 65 ms 18636 KB Output is correct
105 Correct 71 ms 19212 KB Output is correct
106 Correct 34 ms 17924 KB Output is correct
107 Correct 37 ms 17784 KB Output is correct
108 Correct 50 ms 18376 KB Output is correct
109 Correct 46 ms 17568 KB Output is correct
110 Correct 68 ms 18592 KB Output is correct
111 Correct 68 ms 18592 KB Output is correct
112 Correct 74 ms 18844 KB Output is correct
113 Correct 83 ms 19276 KB Output is correct
114 Correct 66 ms 18788 KB Output is correct
115 Correct 75 ms 19292 KB Output is correct
116 Correct 51 ms 17572 KB Output is correct
117 Correct 75 ms 19212 KB Output is correct
118 Correct 62 ms 18508 KB Output is correct
119 Correct 61 ms 18388 KB Output is correct
120 Correct 85 ms 19280 KB Output is correct
121 Correct 75 ms 18996 KB Output is correct
122 Correct 74 ms 19252 KB Output is correct
123 Correct 75 ms 19316 KB Output is correct
124 Correct 77 ms 19280 KB Output is correct
125 Correct 64 ms 18636 KB Output is correct
126 Correct 46 ms 18344 KB Output is correct
127 Correct 56 ms 18076 KB Output is correct
128 Correct 61 ms 18864 KB Output is correct
129 Correct 65 ms 19128 KB Output is correct
130 Correct 395 ms 45712 KB Output is correct
131 Correct 273 ms 40008 KB Output is correct
132 Correct 380 ms 45788 KB Output is correct
133 Correct 402 ms 45100 KB Output is correct
134 Correct 362 ms 43040 KB Output is correct
135 Correct 398 ms 46028 KB Output is correct
136 Correct 415 ms 46248 KB Output is correct
137 Correct 392 ms 46260 KB Output is correct
138 Correct 389 ms 43772 KB Output is correct
139 Correct 390 ms 45824 KB Output is correct
140 Correct 391 ms 43980 KB Output is correct
141 Correct 395 ms 45700 KB Output is correct
142 Correct 398 ms 45660 KB Output is correct
143 Correct 405 ms 45644 KB Output is correct
144 Correct 396 ms 44712 KB Output is correct
145 Correct 400 ms 45772 KB Output is correct
146 Correct 413 ms 45056 KB Output is correct
147 Correct 472 ms 45704 KB Output is correct
148 Correct 424 ms 45644 KB Output is correct
149 Correct 403 ms 45752 KB Output is correct
150 Correct 181 ms 41252 KB Output is correct
151 Correct 315 ms 43804 KB Output is correct
152 Correct 333 ms 43640 KB Output is correct
153 Correct 289 ms 45176 KB Output is correct