답안 #906723

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
906723 2024-01-14T20:54:46 Z alexander707070 푸드 코트 (JOI21_foodcourt) C++14
100 / 100
816 ms 89124 KB
#include<bits/stdc++.h>
#define MAXN 500007
using namespace std;
 
struct event{
    int c;
    long long k;
    int type;
};

struct qr{
    long long kth,id;
};
 
const long long inf=1e17;
 
int n,m,q,type,l,r,ans[MAXN];
long long s,t,total;
 
long long sz[4*MAXN];
pair<long long,long long> lazy[4*MAXN];
int c[MAXN];

vector<qr> ask[MAXN];
vector<event> queries[MAXN];

pair<long long,long long> merge_lazy(pair<long long,long long> a,pair<long long,long long> b){
    long long c = min(a.second, b.first);
    a.second -= c;
    b.first -= c;
    a.first += b.first;
    a.second += b.second;

    return a;
}

void psh(int v){

    sz[2*v]-=lazy[v].first;
    sz[2*v]=max(0LL,sz[2*v]);
    sz[2*v]+=lazy[v].second;

    sz[2*v+1]-=lazy[v].first;
    sz[2*v+1]=max(0LL,sz[2*v+1]);
    sz[2*v+1]+=lazy[v].second;

    lazy[2*v]=merge_lazy(lazy[2*v],lazy[v]);
    lazy[2*v+1]=merge_lazy(lazy[2*v+1],lazy[v]);

    lazy[v]={0,0};
}
 
void add(int v,int l,int r,int ll,int rr,long long val){
    if(ll>rr)return;
    psh(v);
 
    if(l==ll and r==rr){
 
        if(val<0){
            sz[v]=max(0LL,sz[v]+val);
            lazy[v].first+=-val;
        }else{
            sz[v]+=val;
            lazy[v].second+=val;
        }

     }else{
        int tt=(l+r)/2;
        add(2*v,l,tt,ll,min(tt,rr),val);
        add(2*v+1,tt+1,r,max(tt+1,ll),rr,val);
 
        sz[v]=min(sz[2*v],sz[2*v+1]);
    }
}
 
long long getsz(int v,int l,int r,int pos){
    if(l==r)return sz[v];
 
    psh(v);
    int tt=(l+r)/2;
 
    if(pos<=tt)return getsz(2*v,l,tt,pos);
    else return getsz(2*v+1,tt+1,r,pos);
}

long long tree[4*MAXN],lz[4*MAXN];

void psh2(int v,long long l,long long r){
    long long tt=(l+r)/2;

    tree[2*v]+=(tt-l+1)*lz[v];
    tree[2*v+1]+=(r-(tt+1)+1)*lz[v];

    lz[2*v]+=lz[v];
    lz[2*v+1]+=lz[v];

    lz[v]=0;
}

void update(int v,long long l,long long r,int ll,int rr,long long val){
    if(ll>rr)return;

    if(l==ll and r==rr){
        tree[v]+=val*(r-l+1);
        lz[v]+=val;
    }else{
        psh2(v,l,r);

        int tt=(l+r)/2;
        update(2*v,l,tt,ll,min(tt,rr),val);
        update(2*v+1,tt+1,r,max(tt+1,ll),rr,val);

        tree[v]=tree[2*v]+tree[2*v+1];
    }
}

long long getval(int v,int l,int r,int pos){
    if(l==r)return tree[v];

    psh2(v,l,r);
    int tt=(l+r)/2;
    if(pos<=tt)return getval(2*v,l,tt,pos);
    else return getval(2*v+1,tt+1,r,pos);
}

int getpos(int v,int l,int r,long long sum){
    if(l==r)return l;

    psh2(v,l,r);

    int tt=(l+r)/2;
    if(tree[2*v]>=sum)return getpos(2*v,l,tt,sum);
    return getpos(2*v+1,tt+1,r,sum-tree[2*v]);
}
 
int main(){
 
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    
    cin>>n>>m>>q;
    
    for(int i=1;i<=q;i++){
        cin>>type;
        if(type==1){
            cin>>l>>r>>s>>t;
            c[i]=s;
            queries[l].push_back({i,t,0});
            queries[r+1].push_back({i,t,1});
 
            add(1,1,n,l,r,t);
            update(1,1,n,l,r,t);
        }else if(type==2){
            cin>>l>>r>>s;
            add(1,1,n,l,r,-s);
        }else{
            cin>>s>>t;
            if(getsz(1,1,n,s)<t){
                ans[i]=-1;
            }else{
                ask[s].push_back({getval(1,1,n,s)-getsz(1,1,n,s)+t,i});
            }
        }
    }
    
    for(int i=1;i<=max(n,q)*4;i++){
        tree[i]=lz[i]=0;
    }

    for(int i=1;i<=n;i++){
        for(int f=0;f<queries[i].size();f++){
            if(queries[i][f].type==0){
                update(1,1,q,queries[i][f].c,queries[i][f].c,queries[i][f].k);
                total+=queries[i][f].k;
            }else{
                update(1,1,q,queries[i][f].c,queries[i][f].c,-queries[i][f].k);
                total-=queries[i][f].k;
            }
        }

        for(int f=0;f<ask[i].size();f++){
            ans[ask[i][f].id]=c[getpos(1,1,q,ask[i][f].kth)];
        }
    }

    for(int i=1;i<=q;i++){
        if(ans[i]!=0){
            if(ans[i]==-1)cout<<0<<"\n";
            else cout<<ans[i]<<"\n";
        }
    }
            
 
    return 0;
}

Compilation message

foodcourt.cpp: In function 'int main()':
foodcourt.cpp:172:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<event>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  172 |         for(int f=0;f<queries[i].size();f++){
      |                     ~^~~~~~~~~~~~~~~~~~
foodcourt.cpp:182:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<qr>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  182 |         for(int f=0;f<ask[i].size();f++){
      |                     ~^~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 29272 KB Output is correct
2 Correct 10 ms 29272 KB Output is correct
3 Correct 10 ms 29276 KB Output is correct
4 Correct 10 ms 29532 KB Output is correct
5 Correct 9 ms 29136 KB Output is correct
6 Correct 9 ms 29276 KB Output is correct
7 Correct 10 ms 29276 KB Output is correct
8 Correct 10 ms 29276 KB Output is correct
9 Correct 11 ms 29276 KB Output is correct
10 Correct 10 ms 29272 KB Output is correct
11 Correct 10 ms 29276 KB Output is correct
12 Correct 12 ms 29276 KB Output is correct
13 Correct 8 ms 29276 KB Output is correct
14 Correct 9 ms 29272 KB Output is correct
15 Correct 9 ms 29272 KB Output is correct
16 Correct 10 ms 29276 KB Output is correct
17 Correct 10 ms 29272 KB Output is correct
18 Correct 10 ms 29276 KB Output is correct
19 Correct 10 ms 29532 KB Output is correct
20 Correct 10 ms 29532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 29272 KB Output is correct
2 Correct 10 ms 29272 KB Output is correct
3 Correct 10 ms 29276 KB Output is correct
4 Correct 10 ms 29532 KB Output is correct
5 Correct 9 ms 29136 KB Output is correct
6 Correct 9 ms 29276 KB Output is correct
7 Correct 10 ms 29276 KB Output is correct
8 Correct 10 ms 29276 KB Output is correct
9 Correct 11 ms 29276 KB Output is correct
10 Correct 10 ms 29272 KB Output is correct
11 Correct 10 ms 29276 KB Output is correct
12 Correct 12 ms 29276 KB Output is correct
13 Correct 8 ms 29276 KB Output is correct
14 Correct 9 ms 29272 KB Output is correct
15 Correct 9 ms 29272 KB Output is correct
16 Correct 10 ms 29276 KB Output is correct
17 Correct 10 ms 29272 KB Output is correct
18 Correct 10 ms 29276 KB Output is correct
19 Correct 10 ms 29532 KB Output is correct
20 Correct 10 ms 29532 KB Output is correct
21 Correct 11 ms 29276 KB Output is correct
22 Correct 10 ms 29436 KB Output is correct
23 Correct 11 ms 29532 KB Output is correct
24 Correct 10 ms 29384 KB Output is correct
25 Correct 9 ms 29272 KB Output is correct
26 Correct 8 ms 29276 KB Output is correct
27 Correct 10 ms 29528 KB Output is correct
28 Correct 11 ms 29272 KB Output is correct
29 Correct 10 ms 29272 KB Output is correct
30 Correct 11 ms 29276 KB Output is correct
31 Correct 12 ms 29272 KB Output is correct
32 Correct 10 ms 29276 KB Output is correct
33 Correct 8 ms 29276 KB Output is correct
34 Correct 11 ms 29384 KB Output is correct
35 Correct 10 ms 29276 KB Output is correct
36 Correct 10 ms 29276 KB Output is correct
37 Correct 11 ms 29528 KB Output is correct
38 Correct 12 ms 29532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 90 ms 41044 KB Output is correct
2 Correct 94 ms 41524 KB Output is correct
3 Correct 77 ms 41044 KB Output is correct
4 Correct 95 ms 40832 KB Output is correct
5 Correct 86 ms 41720 KB Output is correct
6 Correct 99 ms 41556 KB Output is correct
7 Correct 27 ms 34700 KB Output is correct
8 Correct 29 ms 34652 KB Output is correct
9 Correct 85 ms 41040 KB Output is correct
10 Correct 108 ms 41048 KB Output is correct
11 Correct 90 ms 41112 KB Output is correct
12 Correct 78 ms 41080 KB Output is correct
13 Correct 80 ms 41812 KB Output is correct
14 Correct 89 ms 41948 KB Output is correct
15 Correct 102 ms 43344 KB Output is correct
16 Correct 123 ms 43276 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 529 ms 77400 KB Output is correct
2 Correct 399 ms 75720 KB Output is correct
3 Correct 610 ms 83632 KB Output is correct
4 Correct 517 ms 81792 KB Output is correct
5 Correct 486 ms 77740 KB Output is correct
6 Correct 710 ms 86352 KB Output is correct
7 Correct 99 ms 56360 KB Output is correct
8 Correct 110 ms 55540 KB Output is correct
9 Correct 720 ms 87288 KB Output is correct
10 Correct 816 ms 87336 KB Output is correct
11 Correct 573 ms 83796 KB Output is correct
12 Correct 649 ms 84140 KB Output is correct
13 Correct 579 ms 83852 KB Output is correct
14 Correct 619 ms 83836 KB Output is correct
15 Correct 602 ms 83960 KB Output is correct
16 Correct 636 ms 84304 KB Output is correct
17 Correct 603 ms 83828 KB Output is correct
18 Correct 596 ms 83772 KB Output is correct
19 Correct 569 ms 84052 KB Output is correct
20 Correct 609 ms 84300 KB Output is correct
21 Correct 636 ms 83808 KB Output is correct
22 Correct 576 ms 83844 KB Output is correct
23 Correct 616 ms 83976 KB Output is correct
24 Correct 650 ms 83964 KB Output is correct
25 Correct 404 ms 72232 KB Output is correct
26 Correct 412 ms 72572 KB Output is correct
27 Correct 477 ms 88404 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 29272 KB Output is correct
2 Correct 10 ms 29272 KB Output is correct
3 Correct 10 ms 29276 KB Output is correct
4 Correct 10 ms 29532 KB Output is correct
5 Correct 9 ms 29136 KB Output is correct
6 Correct 9 ms 29276 KB Output is correct
7 Correct 10 ms 29276 KB Output is correct
8 Correct 10 ms 29276 KB Output is correct
9 Correct 11 ms 29276 KB Output is correct
10 Correct 10 ms 29272 KB Output is correct
11 Correct 10 ms 29276 KB Output is correct
12 Correct 12 ms 29276 KB Output is correct
13 Correct 8 ms 29276 KB Output is correct
14 Correct 9 ms 29272 KB Output is correct
15 Correct 9 ms 29272 KB Output is correct
16 Correct 10 ms 29276 KB Output is correct
17 Correct 10 ms 29272 KB Output is correct
18 Correct 10 ms 29276 KB Output is correct
19 Correct 10 ms 29532 KB Output is correct
20 Correct 10 ms 29532 KB Output is correct
21 Correct 90 ms 41044 KB Output is correct
22 Correct 94 ms 41524 KB Output is correct
23 Correct 77 ms 41044 KB Output is correct
24 Correct 95 ms 40832 KB Output is correct
25 Correct 86 ms 41720 KB Output is correct
26 Correct 99 ms 41556 KB Output is correct
27 Correct 27 ms 34700 KB Output is correct
28 Correct 29 ms 34652 KB Output is correct
29 Correct 85 ms 41040 KB Output is correct
30 Correct 108 ms 41048 KB Output is correct
31 Correct 90 ms 41112 KB Output is correct
32 Correct 78 ms 41080 KB Output is correct
33 Correct 80 ms 41812 KB Output is correct
34 Correct 89 ms 41948 KB Output is correct
35 Correct 102 ms 43344 KB Output is correct
36 Correct 123 ms 43276 KB Output is correct
37 Correct 86 ms 41296 KB Output is correct
38 Correct 94 ms 41616 KB Output is correct
39 Correct 25 ms 34684 KB Output is correct
40 Correct 30 ms 34860 KB Output is correct
41 Correct 108 ms 41720 KB Output is correct
42 Correct 102 ms 41552 KB Output is correct
43 Correct 97 ms 41552 KB Output is correct
44 Correct 126 ms 41552 KB Output is correct
45 Correct 108 ms 41556 KB Output is correct
46 Correct 100 ms 41568 KB Output is correct
47 Correct 44 ms 37980 KB Output is correct
48 Correct 84 ms 38736 KB Output is correct
49 Correct 91 ms 40788 KB Output is correct
50 Correct 89 ms 41044 KB Output is correct
51 Correct 102 ms 41536 KB Output is correct
52 Correct 100 ms 41552 KB Output is correct
53 Correct 100 ms 42300 KB Output is correct
54 Correct 103 ms 43088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 99 ms 42064 KB Output is correct
2 Correct 116 ms 42400 KB Output is correct
3 Correct 138 ms 42320 KB Output is correct
4 Correct 83 ms 41560 KB Output is correct
5 Correct 98 ms 42016 KB Output is correct
6 Correct 128 ms 42452 KB Output is correct
7 Correct 33 ms 35396 KB Output is correct
8 Correct 39 ms 35292 KB Output is correct
9 Correct 60 ms 38708 KB Output is correct
10 Correct 71 ms 38992 KB Output is correct
11 Correct 110 ms 39772 KB Output is correct
12 Correct 111 ms 39496 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 29272 KB Output is correct
2 Correct 10 ms 29272 KB Output is correct
3 Correct 10 ms 29276 KB Output is correct
4 Correct 10 ms 29532 KB Output is correct
5 Correct 9 ms 29136 KB Output is correct
6 Correct 9 ms 29276 KB Output is correct
7 Correct 10 ms 29276 KB Output is correct
8 Correct 10 ms 29276 KB Output is correct
9 Correct 11 ms 29276 KB Output is correct
10 Correct 10 ms 29272 KB Output is correct
11 Correct 10 ms 29276 KB Output is correct
12 Correct 12 ms 29276 KB Output is correct
13 Correct 8 ms 29276 KB Output is correct
14 Correct 9 ms 29272 KB Output is correct
15 Correct 9 ms 29272 KB Output is correct
16 Correct 10 ms 29276 KB Output is correct
17 Correct 10 ms 29272 KB Output is correct
18 Correct 10 ms 29276 KB Output is correct
19 Correct 10 ms 29532 KB Output is correct
20 Correct 10 ms 29532 KB Output is correct
21 Correct 11 ms 29276 KB Output is correct
22 Correct 10 ms 29436 KB Output is correct
23 Correct 11 ms 29532 KB Output is correct
24 Correct 10 ms 29384 KB Output is correct
25 Correct 9 ms 29272 KB Output is correct
26 Correct 8 ms 29276 KB Output is correct
27 Correct 10 ms 29528 KB Output is correct
28 Correct 11 ms 29272 KB Output is correct
29 Correct 10 ms 29272 KB Output is correct
30 Correct 11 ms 29276 KB Output is correct
31 Correct 12 ms 29272 KB Output is correct
32 Correct 10 ms 29276 KB Output is correct
33 Correct 8 ms 29276 KB Output is correct
34 Correct 11 ms 29384 KB Output is correct
35 Correct 10 ms 29276 KB Output is correct
36 Correct 10 ms 29276 KB Output is correct
37 Correct 11 ms 29528 KB Output is correct
38 Correct 12 ms 29532 KB Output is correct
39 Correct 90 ms 41044 KB Output is correct
40 Correct 94 ms 41524 KB Output is correct
41 Correct 77 ms 41044 KB Output is correct
42 Correct 95 ms 40832 KB Output is correct
43 Correct 86 ms 41720 KB Output is correct
44 Correct 99 ms 41556 KB Output is correct
45 Correct 27 ms 34700 KB Output is correct
46 Correct 29 ms 34652 KB Output is correct
47 Correct 85 ms 41040 KB Output is correct
48 Correct 108 ms 41048 KB Output is correct
49 Correct 90 ms 41112 KB Output is correct
50 Correct 78 ms 41080 KB Output is correct
51 Correct 80 ms 41812 KB Output is correct
52 Correct 89 ms 41948 KB Output is correct
53 Correct 102 ms 43344 KB Output is correct
54 Correct 123 ms 43276 KB Output is correct
55 Correct 86 ms 41296 KB Output is correct
56 Correct 94 ms 41616 KB Output is correct
57 Correct 25 ms 34684 KB Output is correct
58 Correct 30 ms 34860 KB Output is correct
59 Correct 108 ms 41720 KB Output is correct
60 Correct 102 ms 41552 KB Output is correct
61 Correct 97 ms 41552 KB Output is correct
62 Correct 126 ms 41552 KB Output is correct
63 Correct 108 ms 41556 KB Output is correct
64 Correct 100 ms 41568 KB Output is correct
65 Correct 44 ms 37980 KB Output is correct
66 Correct 84 ms 38736 KB Output is correct
67 Correct 91 ms 40788 KB Output is correct
68 Correct 89 ms 41044 KB Output is correct
69 Correct 102 ms 41536 KB Output is correct
70 Correct 100 ms 41552 KB Output is correct
71 Correct 100 ms 42300 KB Output is correct
72 Correct 103 ms 43088 KB Output is correct
73 Correct 99 ms 42064 KB Output is correct
74 Correct 116 ms 42400 KB Output is correct
75 Correct 138 ms 42320 KB Output is correct
76 Correct 83 ms 41560 KB Output is correct
77 Correct 98 ms 42016 KB Output is correct
78 Correct 128 ms 42452 KB Output is correct
79 Correct 33 ms 35396 KB Output is correct
80 Correct 39 ms 35292 KB Output is correct
81 Correct 60 ms 38708 KB Output is correct
82 Correct 71 ms 38992 KB Output is correct
83 Correct 110 ms 39772 KB Output is correct
84 Correct 111 ms 39496 KB Output is correct
85 Correct 87 ms 41300 KB Output is correct
86 Correct 107 ms 41556 KB Output is correct
87 Correct 112 ms 41932 KB Output is correct
88 Correct 113 ms 42068 KB Output is correct
89 Correct 68 ms 40780 KB Output is correct
90 Correct 100 ms 41524 KB Output is correct
91 Correct 89 ms 41168 KB Output is correct
92 Correct 79 ms 41044 KB Output is correct
93 Correct 113 ms 41512 KB Output is correct
94 Correct 101 ms 41556 KB Output is correct
95 Correct 118 ms 41680 KB Output is correct
96 Correct 102 ms 41556 KB Output is correct
97 Correct 102 ms 41508 KB Output is correct
98 Correct 91 ms 41296 KB Output is correct
99 Correct 58 ms 37976 KB Output is correct
100 Correct 75 ms 38368 KB Output is correct
101 Correct 93 ms 38784 KB Output is correct
102 Correct 98 ms 42572 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 29272 KB Output is correct
2 Correct 10 ms 29272 KB Output is correct
3 Correct 10 ms 29276 KB Output is correct
4 Correct 10 ms 29532 KB Output is correct
5 Correct 9 ms 29136 KB Output is correct
6 Correct 9 ms 29276 KB Output is correct
7 Correct 10 ms 29276 KB Output is correct
8 Correct 10 ms 29276 KB Output is correct
9 Correct 11 ms 29276 KB Output is correct
10 Correct 10 ms 29272 KB Output is correct
11 Correct 10 ms 29276 KB Output is correct
12 Correct 12 ms 29276 KB Output is correct
13 Correct 8 ms 29276 KB Output is correct
14 Correct 9 ms 29272 KB Output is correct
15 Correct 9 ms 29272 KB Output is correct
16 Correct 10 ms 29276 KB Output is correct
17 Correct 10 ms 29272 KB Output is correct
18 Correct 10 ms 29276 KB Output is correct
19 Correct 10 ms 29532 KB Output is correct
20 Correct 10 ms 29532 KB Output is correct
21 Correct 11 ms 29276 KB Output is correct
22 Correct 10 ms 29436 KB Output is correct
23 Correct 11 ms 29532 KB Output is correct
24 Correct 10 ms 29384 KB Output is correct
25 Correct 9 ms 29272 KB Output is correct
26 Correct 8 ms 29276 KB Output is correct
27 Correct 10 ms 29528 KB Output is correct
28 Correct 11 ms 29272 KB Output is correct
29 Correct 10 ms 29272 KB Output is correct
30 Correct 11 ms 29276 KB Output is correct
31 Correct 12 ms 29272 KB Output is correct
32 Correct 10 ms 29276 KB Output is correct
33 Correct 8 ms 29276 KB Output is correct
34 Correct 11 ms 29384 KB Output is correct
35 Correct 10 ms 29276 KB Output is correct
36 Correct 10 ms 29276 KB Output is correct
37 Correct 11 ms 29528 KB Output is correct
38 Correct 12 ms 29532 KB Output is correct
39 Correct 90 ms 41044 KB Output is correct
40 Correct 94 ms 41524 KB Output is correct
41 Correct 77 ms 41044 KB Output is correct
42 Correct 95 ms 40832 KB Output is correct
43 Correct 86 ms 41720 KB Output is correct
44 Correct 99 ms 41556 KB Output is correct
45 Correct 27 ms 34700 KB Output is correct
46 Correct 29 ms 34652 KB Output is correct
47 Correct 85 ms 41040 KB Output is correct
48 Correct 108 ms 41048 KB Output is correct
49 Correct 90 ms 41112 KB Output is correct
50 Correct 78 ms 41080 KB Output is correct
51 Correct 80 ms 41812 KB Output is correct
52 Correct 89 ms 41948 KB Output is correct
53 Correct 102 ms 43344 KB Output is correct
54 Correct 123 ms 43276 KB Output is correct
55 Correct 529 ms 77400 KB Output is correct
56 Correct 399 ms 75720 KB Output is correct
57 Correct 610 ms 83632 KB Output is correct
58 Correct 517 ms 81792 KB Output is correct
59 Correct 486 ms 77740 KB Output is correct
60 Correct 710 ms 86352 KB Output is correct
61 Correct 99 ms 56360 KB Output is correct
62 Correct 110 ms 55540 KB Output is correct
63 Correct 720 ms 87288 KB Output is correct
64 Correct 816 ms 87336 KB Output is correct
65 Correct 573 ms 83796 KB Output is correct
66 Correct 649 ms 84140 KB Output is correct
67 Correct 579 ms 83852 KB Output is correct
68 Correct 619 ms 83836 KB Output is correct
69 Correct 602 ms 83960 KB Output is correct
70 Correct 636 ms 84304 KB Output is correct
71 Correct 603 ms 83828 KB Output is correct
72 Correct 596 ms 83772 KB Output is correct
73 Correct 569 ms 84052 KB Output is correct
74 Correct 609 ms 84300 KB Output is correct
75 Correct 636 ms 83808 KB Output is correct
76 Correct 576 ms 83844 KB Output is correct
77 Correct 616 ms 83976 KB Output is correct
78 Correct 650 ms 83964 KB Output is correct
79 Correct 404 ms 72232 KB Output is correct
80 Correct 412 ms 72572 KB Output is correct
81 Correct 477 ms 88404 KB Output is correct
82 Correct 86 ms 41296 KB Output is correct
83 Correct 94 ms 41616 KB Output is correct
84 Correct 25 ms 34684 KB Output is correct
85 Correct 30 ms 34860 KB Output is correct
86 Correct 108 ms 41720 KB Output is correct
87 Correct 102 ms 41552 KB Output is correct
88 Correct 97 ms 41552 KB Output is correct
89 Correct 126 ms 41552 KB Output is correct
90 Correct 108 ms 41556 KB Output is correct
91 Correct 100 ms 41568 KB Output is correct
92 Correct 44 ms 37980 KB Output is correct
93 Correct 84 ms 38736 KB Output is correct
94 Correct 91 ms 40788 KB Output is correct
95 Correct 89 ms 41044 KB Output is correct
96 Correct 102 ms 41536 KB Output is correct
97 Correct 100 ms 41552 KB Output is correct
98 Correct 100 ms 42300 KB Output is correct
99 Correct 103 ms 43088 KB Output is correct
100 Correct 99 ms 42064 KB Output is correct
101 Correct 116 ms 42400 KB Output is correct
102 Correct 138 ms 42320 KB Output is correct
103 Correct 83 ms 41560 KB Output is correct
104 Correct 98 ms 42016 KB Output is correct
105 Correct 128 ms 42452 KB Output is correct
106 Correct 33 ms 35396 KB Output is correct
107 Correct 39 ms 35292 KB Output is correct
108 Correct 60 ms 38708 KB Output is correct
109 Correct 71 ms 38992 KB Output is correct
110 Correct 110 ms 39772 KB Output is correct
111 Correct 111 ms 39496 KB Output is correct
112 Correct 87 ms 41300 KB Output is correct
113 Correct 107 ms 41556 KB Output is correct
114 Correct 112 ms 41932 KB Output is correct
115 Correct 113 ms 42068 KB Output is correct
116 Correct 68 ms 40780 KB Output is correct
117 Correct 100 ms 41524 KB Output is correct
118 Correct 89 ms 41168 KB Output is correct
119 Correct 79 ms 41044 KB Output is correct
120 Correct 113 ms 41512 KB Output is correct
121 Correct 101 ms 41556 KB Output is correct
122 Correct 118 ms 41680 KB Output is correct
123 Correct 102 ms 41556 KB Output is correct
124 Correct 102 ms 41508 KB Output is correct
125 Correct 91 ms 41296 KB Output is correct
126 Correct 58 ms 37976 KB Output is correct
127 Correct 75 ms 38368 KB Output is correct
128 Correct 93 ms 38784 KB Output is correct
129 Correct 98 ms 42572 KB Output is correct
130 Correct 612 ms 84112 KB Output is correct
131 Correct 406 ms 75960 KB Output is correct
132 Correct 577 ms 84056 KB Output is correct
133 Correct 651 ms 86028 KB Output is correct
134 Correct 613 ms 84544 KB Output is correct
135 Correct 678 ms 86964 KB Output is correct
136 Correct 742 ms 88176 KB Output is correct
137 Correct 679 ms 88148 KB Output is correct
138 Correct 628 ms 84556 KB Output is correct
139 Correct 639 ms 84700 KB Output is correct
140 Correct 602 ms 84524 KB Output is correct
141 Correct 711 ms 84516 KB Output is correct
142 Correct 589 ms 84572 KB Output is correct
143 Correct 599 ms 84548 KB Output is correct
144 Correct 614 ms 84308 KB Output is correct
145 Correct 626 ms 84684 KB Output is correct
146 Correct 639 ms 84720 KB Output is correct
147 Correct 614 ms 84636 KB Output is correct
148 Correct 641 ms 84820 KB Output is correct
149 Correct 597 ms 84568 KB Output is correct
150 Correct 223 ms 70204 KB Output is correct
151 Correct 405 ms 73048 KB Output is correct
152 Correct 394 ms 73288 KB Output is correct
153 Correct 500 ms 89124 KB Output is correct