답안 #523652

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
523652 2022-02-08T02:53:19 Z Deepesson 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
702 ms 102244 KB
#include <bits/stdc++.h>
#define MAX 305000
using ll = long long;
typedef std::array<std::array<ll,2>,2> matriz;
matriz mul(matriz a,matriz b){
    matriz c = {};
    for(auto&x:c)for(auto&y:x)y=(-1LL<<60LL);
    for(int i=0;i!=2;++i){
        for(int j=0;j!=2;++j){
            for(int k=0;k!=2;++k){
                c[i][j]=std::max(c[i][j],a[i][k]+b[k][j]);
            }
        }
    }
    return c;
}
matriz montar(long long X){
    matriz u = {};
    for(auto&x:u)for(auto&y:x)y=(-(1LL<<60LL));
    u[0][0]=X;
    u[1][1]=0;
    u[1][0]=0;
    return u;
}
matriz neutro,base;
matriz tab[MAX*4];
void update(int t,matriz g,int la=0,int ra=MAX-1,int pos=1){
    if(t>ra||la>t)return;
    if(la==ra){
        tab[pos]=g;
        return;
    }
    int m = (la+ra)/2;
    update(t,g,la,m,pos*2);
    update(t,g,m+1,ra,(pos*2)+1);
 /*   std::cout<<"Tem "<<tab[pos*2][0][0]<<" "<<tab[(pos*2)+1][0][0]<<"\n";
    for(int i=0;i!=2;++i){
        for(int j=0;j!=2;++j){
            std::cout<<tab[pos*2][i][j]<<" ";
        }
        std::cout<<"\n";
    }
    std::cout<<"Direita:\n";
    for(int i=0;i!=2;++i){
        for(int j=0;j!=2;++j){
            std::cout<<tab[(pos*2)+1][i][j]<<" ";
        }
        std::cout<<"\n";
    }
    std::cout<<"\n";*/
    tab[pos]=mul(tab[pos*2],tab[(pos*2)+1]);
   /// std::cout<<"Atualiza "<<tab[pos][0][0]<<"\n";
}
matriz query(int l,int r,int la=0,int ra=MAX-1,int pos=1){
    if(l>ra||la>r)return neutro;
    if(la>=l&&ra<=r){
        return tab[pos];
    }
    int m=(la+ra)/2;
    return mul(query(l,r,la,m,pos*2),query(l,r,m+1,ra,(pos*2)+1));
}
long long ft[MAX];
#define LSB(A) (A&(-A))
void add(long long x,long long y){
    x+=6;
    while(x<MAX){
        ft[x]+=y;
        x+=LSB(x);
    }
}
ll query(long long x){
    x+=6;
    ll ans=0;
    while(x>0){
        ans+=ft[x];
        x-=LSB(x);
    }
    return ans;
}
typedef std::pair<long long,matriz> pim;
typedef std::pair<long long,long long> pii;
typedef std::pair<pii,long long> ppi;
std::vector<pim> matupdate[MAX];
std::vector<pii> ftupdate[MAX];
std::vector<ppi> queries[MAX];
long long grupo[MAX];
long long respostas[MAX];
int main()
{
    neutro[0][1]=neutro[1][0]=(-(1LL<<60LL));
    for(auto&x:tab)x=neutro;
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    std::cout.tie(0);
    long long N,M,Q;
    std::cin>>N>>M>>Q;
    long long cur=0;
    for(int i=0;i!=Q;++i){
        long long t;
        std::cin>>t;
        if(t==1){
            long long L,R,C,K;
            std::cin>>L>>R>>C>>K;
            --L;
            grupo[i]=C;
            ftupdate[L].push_back({i,K});
            ftupdate[R].push_back({i,-K});
            matupdate[L].push_back({i,montar(K)});
            matupdate[R].push_back({i,neutro});
        }else if(t==2){
            long long L,R,K;
            std::cin>>L>>R>>K;
            --L;
            matupdate[L].push_back({i,montar(-K)});
            matupdate[R].push_back({i,neutro});
        }else {
            long long A,B;
            std::cin>>A>>B;--A;
            queries[A].push_back({{B,i},cur});
            ++cur;
        }
    }
    for(int i=0;i!=MAX;++i){
        for(auto&x:ftupdate[i]){
            add(x.first,x.second);
        }
        for(auto&x:matupdate[i]){
        ///    std::cout<<"Add "<<x.first<<" "<<x.second[0][0]<<"\n";
            update(x.first,x.second);
         ///   std::cout<<"Novo "<<tab[1][0][0]<<"\n";
        }
        for(auto&x:queries[i]){
            long long escolhido = x.first.first;
            long long tempo = x.first.second;
            long long indice = x.second;
            matriz q = mul(base,query(0,tempo));
            long long nafila = q[0][0];
         ///   std::cout<<"Na fila: "<<nafila<<" "<<tempo<<"\n";
            if(nafila<escolhido){
                respostas[indice]=0;
                continue;
            }
            long long soma = query(tempo);
            long long retirar = nafila-escolhido;
            long long pegar = soma - retirar;
          ///  std::cout<<soma<<" "<<nafila<<"\n";
            long long l=0,r=tempo;
            while(l<r){
                long long m = (l+r)/2;
                long long g = query(m);
                if(g>=pegar){
                    r=m;
                }else l=m+1;
            }
          ///  std::cout<<"Achou "<<l<<"\n";
            respostas[indice]=grupo[l];
        }
    }

    for(int i=0;i!=cur;++i){
        std::cout<<respostas[i]<<"\n";
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 40 ms 60100 KB Output is correct
2 Correct 32 ms 60156 KB Output is correct
3 Correct 29 ms 60240 KB Output is correct
4 Correct 31 ms 60292 KB Output is correct
5 Correct 31 ms 60236 KB Output is correct
6 Correct 30 ms 60228 KB Output is correct
7 Correct 30 ms 60236 KB Output is correct
8 Correct 30 ms 60280 KB Output is correct
9 Correct 40 ms 60228 KB Output is correct
10 Correct 31 ms 60236 KB Output is correct
11 Correct 39 ms 60156 KB Output is correct
12 Correct 31 ms 60188 KB Output is correct
13 Correct 29 ms 60228 KB Output is correct
14 Correct 29 ms 60320 KB Output is correct
15 Correct 28 ms 60236 KB Output is correct
16 Correct 30 ms 60328 KB Output is correct
17 Correct 35 ms 60240 KB Output is correct
18 Correct 32 ms 60308 KB Output is correct
19 Correct 39 ms 60252 KB Output is correct
20 Correct 30 ms 60348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 40 ms 60100 KB Output is correct
2 Correct 32 ms 60156 KB Output is correct
3 Correct 29 ms 60240 KB Output is correct
4 Correct 31 ms 60292 KB Output is correct
5 Correct 31 ms 60236 KB Output is correct
6 Correct 30 ms 60228 KB Output is correct
7 Correct 30 ms 60236 KB Output is correct
8 Correct 30 ms 60280 KB Output is correct
9 Correct 40 ms 60228 KB Output is correct
10 Correct 31 ms 60236 KB Output is correct
11 Correct 39 ms 60156 KB Output is correct
12 Correct 31 ms 60188 KB Output is correct
13 Correct 29 ms 60228 KB Output is correct
14 Correct 29 ms 60320 KB Output is correct
15 Correct 28 ms 60236 KB Output is correct
16 Correct 30 ms 60328 KB Output is correct
17 Correct 35 ms 60240 KB Output is correct
18 Correct 32 ms 60308 KB Output is correct
19 Correct 39 ms 60252 KB Output is correct
20 Correct 30 ms 60348 KB Output is correct
21 Correct 30 ms 60260 KB Output is correct
22 Correct 31 ms 60264 KB Output is correct
23 Correct 30 ms 60232 KB Output is correct
24 Correct 31 ms 60272 KB Output is correct
25 Correct 33 ms 60236 KB Output is correct
26 Correct 42 ms 60228 KB Output is correct
27 Correct 42 ms 60176 KB Output is correct
28 Correct 31 ms 60268 KB Output is correct
29 Correct 31 ms 60300 KB Output is correct
30 Correct 31 ms 60236 KB Output is correct
31 Correct 30 ms 60268 KB Output is correct
32 Correct 30 ms 60236 KB Output is correct
33 Correct 29 ms 60336 KB Output is correct
34 Correct 39 ms 60228 KB Output is correct
35 Correct 35 ms 60220 KB Output is correct
36 Correct 31 ms 60324 KB Output is correct
37 Correct 31 ms 60164 KB Output is correct
38 Correct 33 ms 60252 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 139 ms 67396 KB Output is correct
2 Correct 183 ms 68284 KB Output is correct
3 Correct 197 ms 67412 KB Output is correct
4 Correct 129 ms 67408 KB Output is correct
5 Correct 154 ms 68244 KB Output is correct
6 Correct 144 ms 68300 KB Output is correct
7 Correct 96 ms 66588 KB Output is correct
8 Correct 109 ms 67036 KB Output is correct
9 Correct 143 ms 67520 KB Output is correct
10 Correct 137 ms 67912 KB Output is correct
11 Correct 136 ms 67792 KB Output is correct
12 Correct 138 ms 67940 KB Output is correct
13 Correct 119 ms 67328 KB Output is correct
14 Correct 175 ms 68204 KB Output is correct
15 Correct 157 ms 69936 KB Output is correct
16 Correct 144 ms 69812 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 588 ms 86356 KB Output is correct
2 Correct 421 ms 85228 KB Output is correct
3 Correct 693 ms 94592 KB Output is correct
4 Correct 473 ms 87308 KB Output is correct
5 Correct 454 ms 88132 KB Output is correct
6 Correct 662 ms 98220 KB Output is correct
7 Correct 356 ms 89732 KB Output is correct
8 Correct 319 ms 88444 KB Output is correct
9 Correct 590 ms 94132 KB Output is correct
10 Correct 619 ms 94184 KB Output is correct
11 Correct 698 ms 94768 KB Output is correct
12 Correct 654 ms 96600 KB Output is correct
13 Correct 621 ms 94812 KB Output is correct
14 Correct 655 ms 96636 KB Output is correct
15 Correct 694 ms 96492 KB Output is correct
16 Correct 652 ms 96512 KB Output is correct
17 Correct 626 ms 96508 KB Output is correct
18 Correct 650 ms 95664 KB Output is correct
19 Correct 632 ms 96736 KB Output is correct
20 Correct 646 ms 95684 KB Output is correct
21 Correct 668 ms 96480 KB Output is correct
22 Correct 641 ms 96504 KB Output is correct
23 Correct 631 ms 96556 KB Output is correct
24 Correct 666 ms 96572 KB Output is correct
25 Correct 501 ms 99280 KB Output is correct
26 Correct 498 ms 100608 KB Output is correct
27 Correct 582 ms 101188 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 40 ms 60100 KB Output is correct
2 Correct 32 ms 60156 KB Output is correct
3 Correct 29 ms 60240 KB Output is correct
4 Correct 31 ms 60292 KB Output is correct
5 Correct 31 ms 60236 KB Output is correct
6 Correct 30 ms 60228 KB Output is correct
7 Correct 30 ms 60236 KB Output is correct
8 Correct 30 ms 60280 KB Output is correct
9 Correct 40 ms 60228 KB Output is correct
10 Correct 31 ms 60236 KB Output is correct
11 Correct 39 ms 60156 KB Output is correct
12 Correct 31 ms 60188 KB Output is correct
13 Correct 29 ms 60228 KB Output is correct
14 Correct 29 ms 60320 KB Output is correct
15 Correct 28 ms 60236 KB Output is correct
16 Correct 30 ms 60328 KB Output is correct
17 Correct 35 ms 60240 KB Output is correct
18 Correct 32 ms 60308 KB Output is correct
19 Correct 39 ms 60252 KB Output is correct
20 Correct 30 ms 60348 KB Output is correct
21 Correct 139 ms 67396 KB Output is correct
22 Correct 183 ms 68284 KB Output is correct
23 Correct 197 ms 67412 KB Output is correct
24 Correct 129 ms 67408 KB Output is correct
25 Correct 154 ms 68244 KB Output is correct
26 Correct 144 ms 68300 KB Output is correct
27 Correct 96 ms 66588 KB Output is correct
28 Correct 109 ms 67036 KB Output is correct
29 Correct 143 ms 67520 KB Output is correct
30 Correct 137 ms 67912 KB Output is correct
31 Correct 136 ms 67792 KB Output is correct
32 Correct 138 ms 67940 KB Output is correct
33 Correct 119 ms 67328 KB Output is correct
34 Correct 175 ms 68204 KB Output is correct
35 Correct 157 ms 69936 KB Output is correct
36 Correct 144 ms 69812 KB Output is correct
37 Correct 134 ms 66720 KB Output is correct
38 Correct 117 ms 66584 KB Output is correct
39 Correct 88 ms 65816 KB Output is correct
40 Correct 96 ms 67244 KB Output is correct
41 Correct 150 ms 67484 KB Output is correct
42 Correct 153 ms 67924 KB Output is correct
43 Correct 142 ms 67920 KB Output is correct
44 Correct 146 ms 67648 KB Output is correct
45 Correct 144 ms 67924 KB Output is correct
46 Correct 148 ms 67912 KB Output is correct
47 Correct 107 ms 66424 KB Output is correct
48 Correct 118 ms 69060 KB Output is correct
49 Correct 102 ms 65740 KB Output is correct
50 Correct 126 ms 66892 KB Output is correct
51 Correct 144 ms 68228 KB Output is correct
52 Correct 160 ms 68148 KB Output is correct
53 Correct 131 ms 67652 KB Output is correct
54 Correct 148 ms 69804 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 125 ms 66500 KB Output is correct
2 Correct 137 ms 67284 KB Output is correct
3 Correct 159 ms 67484 KB Output is correct
4 Correct 105 ms 65248 KB Output is correct
5 Correct 126 ms 66348 KB Output is correct
6 Correct 139 ms 67372 KB Output is correct
7 Correct 91 ms 65632 KB Output is correct
8 Correct 89 ms 65056 KB Output is correct
9 Correct 109 ms 66052 KB Output is correct
10 Correct 90 ms 65816 KB Output is correct
11 Correct 122 ms 67536 KB Output is correct
12 Correct 136 ms 67580 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 40 ms 60100 KB Output is correct
2 Correct 32 ms 60156 KB Output is correct
3 Correct 29 ms 60240 KB Output is correct
4 Correct 31 ms 60292 KB Output is correct
5 Correct 31 ms 60236 KB Output is correct
6 Correct 30 ms 60228 KB Output is correct
7 Correct 30 ms 60236 KB Output is correct
8 Correct 30 ms 60280 KB Output is correct
9 Correct 40 ms 60228 KB Output is correct
10 Correct 31 ms 60236 KB Output is correct
11 Correct 39 ms 60156 KB Output is correct
12 Correct 31 ms 60188 KB Output is correct
13 Correct 29 ms 60228 KB Output is correct
14 Correct 29 ms 60320 KB Output is correct
15 Correct 28 ms 60236 KB Output is correct
16 Correct 30 ms 60328 KB Output is correct
17 Correct 35 ms 60240 KB Output is correct
18 Correct 32 ms 60308 KB Output is correct
19 Correct 39 ms 60252 KB Output is correct
20 Correct 30 ms 60348 KB Output is correct
21 Correct 30 ms 60260 KB Output is correct
22 Correct 31 ms 60264 KB Output is correct
23 Correct 30 ms 60232 KB Output is correct
24 Correct 31 ms 60272 KB Output is correct
25 Correct 33 ms 60236 KB Output is correct
26 Correct 42 ms 60228 KB Output is correct
27 Correct 42 ms 60176 KB Output is correct
28 Correct 31 ms 60268 KB Output is correct
29 Correct 31 ms 60300 KB Output is correct
30 Correct 31 ms 60236 KB Output is correct
31 Correct 30 ms 60268 KB Output is correct
32 Correct 30 ms 60236 KB Output is correct
33 Correct 29 ms 60336 KB Output is correct
34 Correct 39 ms 60228 KB Output is correct
35 Correct 35 ms 60220 KB Output is correct
36 Correct 31 ms 60324 KB Output is correct
37 Correct 31 ms 60164 KB Output is correct
38 Correct 33 ms 60252 KB Output is correct
39 Correct 139 ms 67396 KB Output is correct
40 Correct 183 ms 68284 KB Output is correct
41 Correct 197 ms 67412 KB Output is correct
42 Correct 129 ms 67408 KB Output is correct
43 Correct 154 ms 68244 KB Output is correct
44 Correct 144 ms 68300 KB Output is correct
45 Correct 96 ms 66588 KB Output is correct
46 Correct 109 ms 67036 KB Output is correct
47 Correct 143 ms 67520 KB Output is correct
48 Correct 137 ms 67912 KB Output is correct
49 Correct 136 ms 67792 KB Output is correct
50 Correct 138 ms 67940 KB Output is correct
51 Correct 119 ms 67328 KB Output is correct
52 Correct 175 ms 68204 KB Output is correct
53 Correct 157 ms 69936 KB Output is correct
54 Correct 144 ms 69812 KB Output is correct
55 Correct 134 ms 66720 KB Output is correct
56 Correct 117 ms 66584 KB Output is correct
57 Correct 88 ms 65816 KB Output is correct
58 Correct 96 ms 67244 KB Output is correct
59 Correct 150 ms 67484 KB Output is correct
60 Correct 153 ms 67924 KB Output is correct
61 Correct 142 ms 67920 KB Output is correct
62 Correct 146 ms 67648 KB Output is correct
63 Correct 144 ms 67924 KB Output is correct
64 Correct 148 ms 67912 KB Output is correct
65 Correct 107 ms 66424 KB Output is correct
66 Correct 118 ms 69060 KB Output is correct
67 Correct 102 ms 65740 KB Output is correct
68 Correct 126 ms 66892 KB Output is correct
69 Correct 144 ms 68228 KB Output is correct
70 Correct 160 ms 68148 KB Output is correct
71 Correct 131 ms 67652 KB Output is correct
72 Correct 148 ms 69804 KB Output is correct
73 Correct 125 ms 66500 KB Output is correct
74 Correct 137 ms 67284 KB Output is correct
75 Correct 159 ms 67484 KB Output is correct
76 Correct 105 ms 65248 KB Output is correct
77 Correct 126 ms 66348 KB Output is correct
78 Correct 139 ms 67372 KB Output is correct
79 Correct 91 ms 65632 KB Output is correct
80 Correct 89 ms 65056 KB Output is correct
81 Correct 109 ms 66052 KB Output is correct
82 Correct 90 ms 65816 KB Output is correct
83 Correct 122 ms 67536 KB Output is correct
84 Correct 136 ms 67580 KB Output is correct
85 Correct 147 ms 66884 KB Output is correct
86 Correct 150 ms 67400 KB Output is correct
87 Correct 144 ms 67256 KB Output is correct
88 Correct 165 ms 68372 KB Output is correct
89 Correct 109 ms 64924 KB Output is correct
90 Correct 155 ms 67928 KB Output is correct
91 Correct 119 ms 66660 KB Output is correct
92 Correct 124 ms 66240 KB Output is correct
93 Correct 144 ms 67968 KB Output is correct
94 Correct 143 ms 67648 KB Output is correct
95 Correct 145 ms 67736 KB Output is correct
96 Correct 156 ms 67920 KB Output is correct
97 Correct 145 ms 67960 KB Output is correct
98 Correct 126 ms 66816 KB Output is correct
99 Correct 108 ms 66368 KB Output is correct
100 Correct 117 ms 66676 KB Output is correct
101 Correct 125 ms 69060 KB Output is correct
102 Correct 143 ms 69216 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 40 ms 60100 KB Output is correct
2 Correct 32 ms 60156 KB Output is correct
3 Correct 29 ms 60240 KB Output is correct
4 Correct 31 ms 60292 KB Output is correct
5 Correct 31 ms 60236 KB Output is correct
6 Correct 30 ms 60228 KB Output is correct
7 Correct 30 ms 60236 KB Output is correct
8 Correct 30 ms 60280 KB Output is correct
9 Correct 40 ms 60228 KB Output is correct
10 Correct 31 ms 60236 KB Output is correct
11 Correct 39 ms 60156 KB Output is correct
12 Correct 31 ms 60188 KB Output is correct
13 Correct 29 ms 60228 KB Output is correct
14 Correct 29 ms 60320 KB Output is correct
15 Correct 28 ms 60236 KB Output is correct
16 Correct 30 ms 60328 KB Output is correct
17 Correct 35 ms 60240 KB Output is correct
18 Correct 32 ms 60308 KB Output is correct
19 Correct 39 ms 60252 KB Output is correct
20 Correct 30 ms 60348 KB Output is correct
21 Correct 30 ms 60260 KB Output is correct
22 Correct 31 ms 60264 KB Output is correct
23 Correct 30 ms 60232 KB Output is correct
24 Correct 31 ms 60272 KB Output is correct
25 Correct 33 ms 60236 KB Output is correct
26 Correct 42 ms 60228 KB Output is correct
27 Correct 42 ms 60176 KB Output is correct
28 Correct 31 ms 60268 KB Output is correct
29 Correct 31 ms 60300 KB Output is correct
30 Correct 31 ms 60236 KB Output is correct
31 Correct 30 ms 60268 KB Output is correct
32 Correct 30 ms 60236 KB Output is correct
33 Correct 29 ms 60336 KB Output is correct
34 Correct 39 ms 60228 KB Output is correct
35 Correct 35 ms 60220 KB Output is correct
36 Correct 31 ms 60324 KB Output is correct
37 Correct 31 ms 60164 KB Output is correct
38 Correct 33 ms 60252 KB Output is correct
39 Correct 139 ms 67396 KB Output is correct
40 Correct 183 ms 68284 KB Output is correct
41 Correct 197 ms 67412 KB Output is correct
42 Correct 129 ms 67408 KB Output is correct
43 Correct 154 ms 68244 KB Output is correct
44 Correct 144 ms 68300 KB Output is correct
45 Correct 96 ms 66588 KB Output is correct
46 Correct 109 ms 67036 KB Output is correct
47 Correct 143 ms 67520 KB Output is correct
48 Correct 137 ms 67912 KB Output is correct
49 Correct 136 ms 67792 KB Output is correct
50 Correct 138 ms 67940 KB Output is correct
51 Correct 119 ms 67328 KB Output is correct
52 Correct 175 ms 68204 KB Output is correct
53 Correct 157 ms 69936 KB Output is correct
54 Correct 144 ms 69812 KB Output is correct
55 Correct 588 ms 86356 KB Output is correct
56 Correct 421 ms 85228 KB Output is correct
57 Correct 693 ms 94592 KB Output is correct
58 Correct 473 ms 87308 KB Output is correct
59 Correct 454 ms 88132 KB Output is correct
60 Correct 662 ms 98220 KB Output is correct
61 Correct 356 ms 89732 KB Output is correct
62 Correct 319 ms 88444 KB Output is correct
63 Correct 590 ms 94132 KB Output is correct
64 Correct 619 ms 94184 KB Output is correct
65 Correct 698 ms 94768 KB Output is correct
66 Correct 654 ms 96600 KB Output is correct
67 Correct 621 ms 94812 KB Output is correct
68 Correct 655 ms 96636 KB Output is correct
69 Correct 694 ms 96492 KB Output is correct
70 Correct 652 ms 96512 KB Output is correct
71 Correct 626 ms 96508 KB Output is correct
72 Correct 650 ms 95664 KB Output is correct
73 Correct 632 ms 96736 KB Output is correct
74 Correct 646 ms 95684 KB Output is correct
75 Correct 668 ms 96480 KB Output is correct
76 Correct 641 ms 96504 KB Output is correct
77 Correct 631 ms 96556 KB Output is correct
78 Correct 666 ms 96572 KB Output is correct
79 Correct 501 ms 99280 KB Output is correct
80 Correct 498 ms 100608 KB Output is correct
81 Correct 582 ms 101188 KB Output is correct
82 Correct 134 ms 66720 KB Output is correct
83 Correct 117 ms 66584 KB Output is correct
84 Correct 88 ms 65816 KB Output is correct
85 Correct 96 ms 67244 KB Output is correct
86 Correct 150 ms 67484 KB Output is correct
87 Correct 153 ms 67924 KB Output is correct
88 Correct 142 ms 67920 KB Output is correct
89 Correct 146 ms 67648 KB Output is correct
90 Correct 144 ms 67924 KB Output is correct
91 Correct 148 ms 67912 KB Output is correct
92 Correct 107 ms 66424 KB Output is correct
93 Correct 118 ms 69060 KB Output is correct
94 Correct 102 ms 65740 KB Output is correct
95 Correct 126 ms 66892 KB Output is correct
96 Correct 144 ms 68228 KB Output is correct
97 Correct 160 ms 68148 KB Output is correct
98 Correct 131 ms 67652 KB Output is correct
99 Correct 148 ms 69804 KB Output is correct
100 Correct 125 ms 66500 KB Output is correct
101 Correct 137 ms 67284 KB Output is correct
102 Correct 159 ms 67484 KB Output is correct
103 Correct 105 ms 65248 KB Output is correct
104 Correct 126 ms 66348 KB Output is correct
105 Correct 139 ms 67372 KB Output is correct
106 Correct 91 ms 65632 KB Output is correct
107 Correct 89 ms 65056 KB Output is correct
108 Correct 109 ms 66052 KB Output is correct
109 Correct 90 ms 65816 KB Output is correct
110 Correct 122 ms 67536 KB Output is correct
111 Correct 136 ms 67580 KB Output is correct
112 Correct 147 ms 66884 KB Output is correct
113 Correct 150 ms 67400 KB Output is correct
114 Correct 144 ms 67256 KB Output is correct
115 Correct 165 ms 68372 KB Output is correct
116 Correct 109 ms 64924 KB Output is correct
117 Correct 155 ms 67928 KB Output is correct
118 Correct 119 ms 66660 KB Output is correct
119 Correct 124 ms 66240 KB Output is correct
120 Correct 144 ms 67968 KB Output is correct
121 Correct 143 ms 67648 KB Output is correct
122 Correct 145 ms 67736 KB Output is correct
123 Correct 156 ms 67920 KB Output is correct
124 Correct 145 ms 67960 KB Output is correct
125 Correct 126 ms 66816 KB Output is correct
126 Correct 108 ms 66368 KB Output is correct
127 Correct 117 ms 66676 KB Output is correct
128 Correct 125 ms 69060 KB Output is correct
129 Correct 143 ms 69216 KB Output is correct
130 Correct 606 ms 95316 KB Output is correct
131 Correct 420 ms 85552 KB Output is correct
132 Correct 702 ms 95168 KB Output is correct
133 Correct 618 ms 97308 KB Output is correct
134 Correct 544 ms 93024 KB Output is correct
135 Correct 644 ms 98884 KB Output is correct
136 Correct 610 ms 95016 KB Output is correct
137 Correct 646 ms 95052 KB Output is correct
138 Correct 631 ms 95448 KB Output is correct
139 Correct 620 ms 97224 KB Output is correct
140 Correct 621 ms 95756 KB Output is correct
141 Correct 611 ms 97172 KB Output is correct
142 Correct 626 ms 97144 KB Output is correct
143 Correct 600 ms 96968 KB Output is correct
144 Correct 633 ms 96308 KB Output is correct
145 Correct 616 ms 97148 KB Output is correct
146 Correct 613 ms 96516 KB Output is correct
147 Correct 611 ms 97096 KB Output is correct
148 Correct 657 ms 97120 KB Output is correct
149 Correct 609 ms 97040 KB Output is correct
150 Correct 376 ms 90372 KB Output is correct
151 Correct 480 ms 100872 KB Output is correct
152 Correct 481 ms 101100 KB Output is correct
153 Correct 544 ms 102244 KB Output is correct