답안 #1047652

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1047652 2024-08-07T14:42:47 Z Andrey 푸드 코트 (JOI21_foodcourt) C++14
100 / 100
302 ms 89440 KB
#include<bits/stdc++.h>
using namespace std;

vector<pair<pair<long long,long long>,long long>> haha[500001];
vector<pair<long long,long long>> bruh[500001];
vector<long long> seg(2000001);
vector<long long> wow(2000001);
vector<long long> idk(500001);
vector<long long> troll(500001);

long long calc3(long long a) {
    long long c = 0,ans = 0;
    for(long long i = 19; i >= 0; i--) {
        if(c+(1 << i) <= a) {
            c+=(1 << i);
            ans+=troll[c];
        }
    }
    return ans;
}

void upd2(long long a, long long x, bool yo) {
    while(a < idk.size()) {
        if(yo) {
            idk[a]+=x;
        }
        else {
            troll[a]+=x;
        }
        a+=(a&(-a));
    }
}

long long dude(long long br) {
    long long c = 0;
    for(long long i = 19; i >= 0; i--) {
        if(c+(1 << i) < idk.size() && idk[c+(1 << i)] < br) {
            c+=(1 << i);
            br-=idk[c];
        }
    }
    return c;
}

void upd(long long l, long long r, long long ql, long long qr, long long x, long long br) {
    if(qr < ql) {
        return;
    }
    if(l == ql && r == qr) {
        seg[x]+=br;
        wow[x]+=br;
        return;
    }
    int mid = (l+r)/2;
    if(qr <= mid) {
        upd(l,mid,ql,qr,x*2,br);
    }
    else if(ql > mid) {
        upd(mid+1,r,ql,qr,x*2+1,br);
    }
    else {
        upd(l,mid,ql,mid,x*2,br);
        upd(mid+1,r,mid+1,qr,x*2+1,br);
    }
    seg[x] = min(seg[x*2],seg[x*2+1]);
    seg[x]+=wow[x];
}

long long calc(long long l, long long r, long long ql, long long qr, long long x) {
    if(l == ql && r == qr) {
        return seg[x];
    }
    long long ans = 0;
    long long mid = (l+r)/2;
    if(qr <= mid) {
        ans = calc(l,mid,ql,qr,x*2);
    }
    else if(ql > mid) {
        ans = calc(mid+1,r,ql,qr,x*2+1);
    }
    else {
        ans = min(calc(l,mid,ql,mid,x*2),calc(mid+1,r,mid+1,qr,x*2+1));
    }
    return ans+wow[x];
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    long long n,m,q;
    cin >> n >> m >> q;
    vector<long long> col(q+1);
    for(long long i = 1; i <= q; i++) {
        long long t,l,r,x,br;
        cin >> t;
        if(t == 1) {
            cin >> l >> r >> x >> br;
            haha[l].push_back({{i,br},0});
            haha[r+1].push_back({{i,-br},0});
            col[i] = x;
        }
        else if(t == 2) {
            cin >> l >> r >> br;
            haha[l].push_back({{i,-br},1});
            haha[r+1].push_back({{i,br},1});
        }
        else {
            cin >> l >> br;
            bruh[l].push_back({i,br});
        }
    }
    vector<long long> ans(q+1,-1);
    for(long long i = 1; i <= n; i++) {
        for(pair<pair<long long,long long>,long long> v: haha[i]) {
            long long p = v.first.first,c = v.first.second;
            upd(1,q,p,q,1,c);
            if(v.second) {
                upd2(p,-c,0);
            }
            else {
                upd2(p,c,1);
            }
        }
        for(pair<long long,long long> v: bruh[i]) {
            long long br = v.second;
            br+=calc3(v.first);
            br+=min(0LL,calc(1,q,1,v.first,1));
            long long c = dude(br);
            if(c >= v.first) {
                ans[v.first] = 0;
            }
            else {
                ans[v.first] = col[c+1];
            }
        }
    }
    for(long long i = 1; i <= q; i++) {
        if(ans[i] != -1) {
            cout << ans[i] << "\n";
        }
    }
    return 0;
}

Compilation message

foodcourt.cpp: In function 'void upd2(long long int, long long int, bool)':
foodcourt.cpp:23:13: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |     while(a < idk.size()) {
      |           ~~^~~~~~~~~~~~
foodcourt.cpp: In function 'long long int dude(long long int)':
foodcourt.cpp:37:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |         if(c+(1 << i) < idk.size() && idk[c+(1 << i)] < br) {
      |            ~~~~~~~~~~~^~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 63068 KB Output is correct
2 Correct 11 ms 63236 KB Output is correct
3 Correct 10 ms 63068 KB Output is correct
4 Correct 11 ms 63160 KB Output is correct
5 Correct 10 ms 63064 KB Output is correct
6 Correct 10 ms 63068 KB Output is correct
7 Correct 11 ms 63156 KB Output is correct
8 Correct 11 ms 63068 KB Output is correct
9 Correct 10 ms 63068 KB Output is correct
10 Correct 9 ms 63132 KB Output is correct
11 Correct 10 ms 63068 KB Output is correct
12 Correct 9 ms 63068 KB Output is correct
13 Correct 9 ms 63168 KB Output is correct
14 Correct 10 ms 63132 KB Output is correct
15 Correct 9 ms 63216 KB Output is correct
16 Correct 10 ms 63068 KB Output is correct
17 Correct 10 ms 63068 KB Output is correct
18 Correct 10 ms 63068 KB Output is correct
19 Correct 10 ms 63068 KB Output is correct
20 Correct 10 ms 63128 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 63068 KB Output is correct
2 Correct 11 ms 63236 KB Output is correct
3 Correct 10 ms 63068 KB Output is correct
4 Correct 11 ms 63160 KB Output is correct
5 Correct 10 ms 63064 KB Output is correct
6 Correct 10 ms 63068 KB Output is correct
7 Correct 11 ms 63156 KB Output is correct
8 Correct 11 ms 63068 KB Output is correct
9 Correct 10 ms 63068 KB Output is correct
10 Correct 9 ms 63132 KB Output is correct
11 Correct 10 ms 63068 KB Output is correct
12 Correct 9 ms 63068 KB Output is correct
13 Correct 9 ms 63168 KB Output is correct
14 Correct 10 ms 63132 KB Output is correct
15 Correct 9 ms 63216 KB Output is correct
16 Correct 10 ms 63068 KB Output is correct
17 Correct 10 ms 63068 KB Output is correct
18 Correct 10 ms 63068 KB Output is correct
19 Correct 10 ms 63068 KB Output is correct
20 Correct 10 ms 63128 KB Output is correct
21 Correct 12 ms 63324 KB Output is correct
22 Correct 10 ms 63068 KB Output is correct
23 Correct 9 ms 63068 KB Output is correct
24 Correct 10 ms 63064 KB Output is correct
25 Correct 10 ms 63208 KB Output is correct
26 Correct 10 ms 63068 KB Output is correct
27 Correct 9 ms 63124 KB Output is correct
28 Correct 10 ms 63068 KB Output is correct
29 Correct 10 ms 63068 KB Output is correct
30 Correct 10 ms 63068 KB Output is correct
31 Correct 10 ms 63224 KB Output is correct
32 Correct 10 ms 63128 KB Output is correct
33 Correct 10 ms 63064 KB Output is correct
34 Correct 9 ms 63068 KB Output is correct
35 Correct 10 ms 63068 KB Output is correct
36 Correct 10 ms 63216 KB Output is correct
37 Correct 10 ms 63068 KB Output is correct
38 Correct 10 ms 63104 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 54 ms 67684 KB Output is correct
2 Correct 49 ms 67676 KB Output is correct
3 Correct 54 ms 67416 KB Output is correct
4 Correct 48 ms 67416 KB Output is correct
5 Correct 49 ms 67920 KB Output is correct
6 Correct 53 ms 67672 KB Output is correct
7 Correct 27 ms 66432 KB Output is correct
8 Correct 29 ms 66924 KB Output is correct
9 Correct 51 ms 67668 KB Output is correct
10 Correct 49 ms 67784 KB Output is correct
11 Correct 48 ms 67784 KB Output is correct
12 Correct 50 ms 67776 KB Output is correct
13 Correct 41 ms 67164 KB Output is correct
14 Correct 46 ms 67420 KB Output is correct
15 Correct 50 ms 67920 KB Output is correct
16 Correct 49 ms 67924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 198 ms 78924 KB Output is correct
2 Correct 158 ms 75860 KB Output is correct
3 Correct 220 ms 83852 KB Output is correct
4 Correct 155 ms 80464 KB Output is correct
5 Correct 177 ms 80928 KB Output is correct
6 Correct 239 ms 87376 KB Output is correct
7 Correct 120 ms 82592 KB Output is correct
8 Correct 105 ms 82696 KB Output is correct
9 Correct 251 ms 84980 KB Output is correct
10 Correct 270 ms 84820 KB Output is correct
11 Correct 225 ms 87120 KB Output is correct
12 Correct 253 ms 87320 KB Output is correct
13 Correct 243 ms 87124 KB Output is correct
14 Correct 260 ms 87100 KB Output is correct
15 Correct 275 ms 87116 KB Output is correct
16 Correct 259 ms 87212 KB Output is correct
17 Correct 302 ms 87192 KB Output is correct
18 Correct 239 ms 87124 KB Output is correct
19 Correct 237 ms 87284 KB Output is correct
20 Correct 235 ms 87124 KB Output is correct
21 Correct 260 ms 87216 KB Output is correct
22 Correct 262 ms 87228 KB Output is correct
23 Correct 257 ms 87376 KB Output is correct
24 Correct 257 ms 87152 KB Output is correct
25 Correct 205 ms 88148 KB Output is correct
26 Correct 208 ms 88708 KB Output is correct
27 Correct 220 ms 87984 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 63068 KB Output is correct
2 Correct 11 ms 63236 KB Output is correct
3 Correct 10 ms 63068 KB Output is correct
4 Correct 11 ms 63160 KB Output is correct
5 Correct 10 ms 63064 KB Output is correct
6 Correct 10 ms 63068 KB Output is correct
7 Correct 11 ms 63156 KB Output is correct
8 Correct 11 ms 63068 KB Output is correct
9 Correct 10 ms 63068 KB Output is correct
10 Correct 9 ms 63132 KB Output is correct
11 Correct 10 ms 63068 KB Output is correct
12 Correct 9 ms 63068 KB Output is correct
13 Correct 9 ms 63168 KB Output is correct
14 Correct 10 ms 63132 KB Output is correct
15 Correct 9 ms 63216 KB Output is correct
16 Correct 10 ms 63068 KB Output is correct
17 Correct 10 ms 63068 KB Output is correct
18 Correct 10 ms 63068 KB Output is correct
19 Correct 10 ms 63068 KB Output is correct
20 Correct 10 ms 63128 KB Output is correct
21 Correct 54 ms 67684 KB Output is correct
22 Correct 49 ms 67676 KB Output is correct
23 Correct 54 ms 67416 KB Output is correct
24 Correct 48 ms 67416 KB Output is correct
25 Correct 49 ms 67920 KB Output is correct
26 Correct 53 ms 67672 KB Output is correct
27 Correct 27 ms 66432 KB Output is correct
28 Correct 29 ms 66924 KB Output is correct
29 Correct 51 ms 67668 KB Output is correct
30 Correct 49 ms 67784 KB Output is correct
31 Correct 48 ms 67784 KB Output is correct
32 Correct 50 ms 67776 KB Output is correct
33 Correct 41 ms 67164 KB Output is correct
34 Correct 46 ms 67420 KB Output is correct
35 Correct 50 ms 67920 KB Output is correct
36 Correct 49 ms 67924 KB Output is correct
37 Correct 45 ms 67152 KB Output is correct
38 Correct 41 ms 66784 KB Output is correct
39 Correct 25 ms 66176 KB Output is correct
40 Correct 29 ms 66588 KB Output is correct
41 Correct 50 ms 67668 KB Output is correct
42 Correct 60 ms 67676 KB Output is correct
43 Correct 55 ms 67780 KB Output is correct
44 Correct 50 ms 67768 KB Output is correct
45 Correct 53 ms 67672 KB Output is correct
46 Correct 55 ms 67756 KB Output is correct
47 Correct 49 ms 66848 KB Output is correct
48 Correct 45 ms 68328 KB Output is correct
49 Correct 37 ms 66388 KB Output is correct
50 Correct 47 ms 67156 KB Output is correct
51 Correct 54 ms 67772 KB Output is correct
52 Correct 53 ms 67924 KB Output is correct
53 Correct 47 ms 66972 KB Output is correct
54 Correct 58 ms 67924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 66700 KB Output is correct
2 Correct 60 ms 67156 KB Output is correct
3 Correct 60 ms 67200 KB Output is correct
4 Correct 51 ms 65928 KB Output is correct
5 Correct 52 ms 66640 KB Output is correct
6 Correct 51 ms 67164 KB Output is correct
7 Correct 42 ms 65840 KB Output is correct
8 Correct 32 ms 65716 KB Output is correct
9 Correct 39 ms 66688 KB Output is correct
10 Correct 37 ms 66136 KB Output is correct
11 Correct 57 ms 67156 KB Output is correct
12 Correct 54 ms 67228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 63068 KB Output is correct
2 Correct 11 ms 63236 KB Output is correct
3 Correct 10 ms 63068 KB Output is correct
4 Correct 11 ms 63160 KB Output is correct
5 Correct 10 ms 63064 KB Output is correct
6 Correct 10 ms 63068 KB Output is correct
7 Correct 11 ms 63156 KB Output is correct
8 Correct 11 ms 63068 KB Output is correct
9 Correct 10 ms 63068 KB Output is correct
10 Correct 9 ms 63132 KB Output is correct
11 Correct 10 ms 63068 KB Output is correct
12 Correct 9 ms 63068 KB Output is correct
13 Correct 9 ms 63168 KB Output is correct
14 Correct 10 ms 63132 KB Output is correct
15 Correct 9 ms 63216 KB Output is correct
16 Correct 10 ms 63068 KB Output is correct
17 Correct 10 ms 63068 KB Output is correct
18 Correct 10 ms 63068 KB Output is correct
19 Correct 10 ms 63068 KB Output is correct
20 Correct 10 ms 63128 KB Output is correct
21 Correct 12 ms 63324 KB Output is correct
22 Correct 10 ms 63068 KB Output is correct
23 Correct 9 ms 63068 KB Output is correct
24 Correct 10 ms 63064 KB Output is correct
25 Correct 10 ms 63208 KB Output is correct
26 Correct 10 ms 63068 KB Output is correct
27 Correct 9 ms 63124 KB Output is correct
28 Correct 10 ms 63068 KB Output is correct
29 Correct 10 ms 63068 KB Output is correct
30 Correct 10 ms 63068 KB Output is correct
31 Correct 10 ms 63224 KB Output is correct
32 Correct 10 ms 63128 KB Output is correct
33 Correct 10 ms 63064 KB Output is correct
34 Correct 9 ms 63068 KB Output is correct
35 Correct 10 ms 63068 KB Output is correct
36 Correct 10 ms 63216 KB Output is correct
37 Correct 10 ms 63068 KB Output is correct
38 Correct 10 ms 63104 KB Output is correct
39 Correct 54 ms 67684 KB Output is correct
40 Correct 49 ms 67676 KB Output is correct
41 Correct 54 ms 67416 KB Output is correct
42 Correct 48 ms 67416 KB Output is correct
43 Correct 49 ms 67920 KB Output is correct
44 Correct 53 ms 67672 KB Output is correct
45 Correct 27 ms 66432 KB Output is correct
46 Correct 29 ms 66924 KB Output is correct
47 Correct 51 ms 67668 KB Output is correct
48 Correct 49 ms 67784 KB Output is correct
49 Correct 48 ms 67784 KB Output is correct
50 Correct 50 ms 67776 KB Output is correct
51 Correct 41 ms 67164 KB Output is correct
52 Correct 46 ms 67420 KB Output is correct
53 Correct 50 ms 67920 KB Output is correct
54 Correct 49 ms 67924 KB Output is correct
55 Correct 45 ms 67152 KB Output is correct
56 Correct 41 ms 66784 KB Output is correct
57 Correct 25 ms 66176 KB Output is correct
58 Correct 29 ms 66588 KB Output is correct
59 Correct 50 ms 67668 KB Output is correct
60 Correct 60 ms 67676 KB Output is correct
61 Correct 55 ms 67780 KB Output is correct
62 Correct 50 ms 67768 KB Output is correct
63 Correct 53 ms 67672 KB Output is correct
64 Correct 55 ms 67756 KB Output is correct
65 Correct 49 ms 66848 KB Output is correct
66 Correct 45 ms 68328 KB Output is correct
67 Correct 37 ms 66388 KB Output is correct
68 Correct 47 ms 67156 KB Output is correct
69 Correct 54 ms 67772 KB Output is correct
70 Correct 53 ms 67924 KB Output is correct
71 Correct 47 ms 66972 KB Output is correct
72 Correct 58 ms 67924 KB Output is correct
73 Correct 55 ms 66700 KB Output is correct
74 Correct 60 ms 67156 KB Output is correct
75 Correct 60 ms 67200 KB Output is correct
76 Correct 51 ms 65928 KB Output is correct
77 Correct 52 ms 66640 KB Output is correct
78 Correct 51 ms 67164 KB Output is correct
79 Correct 42 ms 65840 KB Output is correct
80 Correct 32 ms 65716 KB Output is correct
81 Correct 39 ms 66688 KB Output is correct
82 Correct 37 ms 66136 KB Output is correct
83 Correct 57 ms 67156 KB Output is correct
84 Correct 54 ms 67228 KB Output is correct
85 Correct 49 ms 67164 KB Output is correct
86 Correct 57 ms 67416 KB Output is correct
87 Correct 49 ms 67164 KB Output is correct
88 Correct 56 ms 67668 KB Output is correct
89 Correct 56 ms 66136 KB Output is correct
90 Correct 54 ms 67676 KB Output is correct
91 Correct 50 ms 66896 KB Output is correct
92 Correct 41 ms 66640 KB Output is correct
93 Correct 51 ms 67784 KB Output is correct
94 Correct 50 ms 67800 KB Output is correct
95 Correct 55 ms 67676 KB Output is correct
96 Correct 54 ms 67776 KB Output is correct
97 Correct 55 ms 67668 KB Output is correct
98 Correct 44 ms 67152 KB Output is correct
99 Correct 37 ms 66748 KB Output is correct
100 Correct 41 ms 66904 KB Output is correct
101 Correct 71 ms 68188 KB Output is correct
102 Correct 54 ms 67952 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 63068 KB Output is correct
2 Correct 11 ms 63236 KB Output is correct
3 Correct 10 ms 63068 KB Output is correct
4 Correct 11 ms 63160 KB Output is correct
5 Correct 10 ms 63064 KB Output is correct
6 Correct 10 ms 63068 KB Output is correct
7 Correct 11 ms 63156 KB Output is correct
8 Correct 11 ms 63068 KB Output is correct
9 Correct 10 ms 63068 KB Output is correct
10 Correct 9 ms 63132 KB Output is correct
11 Correct 10 ms 63068 KB Output is correct
12 Correct 9 ms 63068 KB Output is correct
13 Correct 9 ms 63168 KB Output is correct
14 Correct 10 ms 63132 KB Output is correct
15 Correct 9 ms 63216 KB Output is correct
16 Correct 10 ms 63068 KB Output is correct
17 Correct 10 ms 63068 KB Output is correct
18 Correct 10 ms 63068 KB Output is correct
19 Correct 10 ms 63068 KB Output is correct
20 Correct 10 ms 63128 KB Output is correct
21 Correct 12 ms 63324 KB Output is correct
22 Correct 10 ms 63068 KB Output is correct
23 Correct 9 ms 63068 KB Output is correct
24 Correct 10 ms 63064 KB Output is correct
25 Correct 10 ms 63208 KB Output is correct
26 Correct 10 ms 63068 KB Output is correct
27 Correct 9 ms 63124 KB Output is correct
28 Correct 10 ms 63068 KB Output is correct
29 Correct 10 ms 63068 KB Output is correct
30 Correct 10 ms 63068 KB Output is correct
31 Correct 10 ms 63224 KB Output is correct
32 Correct 10 ms 63128 KB Output is correct
33 Correct 10 ms 63064 KB Output is correct
34 Correct 9 ms 63068 KB Output is correct
35 Correct 10 ms 63068 KB Output is correct
36 Correct 10 ms 63216 KB Output is correct
37 Correct 10 ms 63068 KB Output is correct
38 Correct 10 ms 63104 KB Output is correct
39 Correct 54 ms 67684 KB Output is correct
40 Correct 49 ms 67676 KB Output is correct
41 Correct 54 ms 67416 KB Output is correct
42 Correct 48 ms 67416 KB Output is correct
43 Correct 49 ms 67920 KB Output is correct
44 Correct 53 ms 67672 KB Output is correct
45 Correct 27 ms 66432 KB Output is correct
46 Correct 29 ms 66924 KB Output is correct
47 Correct 51 ms 67668 KB Output is correct
48 Correct 49 ms 67784 KB Output is correct
49 Correct 48 ms 67784 KB Output is correct
50 Correct 50 ms 67776 KB Output is correct
51 Correct 41 ms 67164 KB Output is correct
52 Correct 46 ms 67420 KB Output is correct
53 Correct 50 ms 67920 KB Output is correct
54 Correct 49 ms 67924 KB Output is correct
55 Correct 198 ms 78924 KB Output is correct
56 Correct 158 ms 75860 KB Output is correct
57 Correct 220 ms 83852 KB Output is correct
58 Correct 155 ms 80464 KB Output is correct
59 Correct 177 ms 80928 KB Output is correct
60 Correct 239 ms 87376 KB Output is correct
61 Correct 120 ms 82592 KB Output is correct
62 Correct 105 ms 82696 KB Output is correct
63 Correct 251 ms 84980 KB Output is correct
64 Correct 270 ms 84820 KB Output is correct
65 Correct 225 ms 87120 KB Output is correct
66 Correct 253 ms 87320 KB Output is correct
67 Correct 243 ms 87124 KB Output is correct
68 Correct 260 ms 87100 KB Output is correct
69 Correct 275 ms 87116 KB Output is correct
70 Correct 259 ms 87212 KB Output is correct
71 Correct 302 ms 87192 KB Output is correct
72 Correct 239 ms 87124 KB Output is correct
73 Correct 237 ms 87284 KB Output is correct
74 Correct 235 ms 87124 KB Output is correct
75 Correct 260 ms 87216 KB Output is correct
76 Correct 262 ms 87228 KB Output is correct
77 Correct 257 ms 87376 KB Output is correct
78 Correct 257 ms 87152 KB Output is correct
79 Correct 205 ms 88148 KB Output is correct
80 Correct 208 ms 88708 KB Output is correct
81 Correct 220 ms 87984 KB Output is correct
82 Correct 45 ms 67152 KB Output is correct
83 Correct 41 ms 66784 KB Output is correct
84 Correct 25 ms 66176 KB Output is correct
85 Correct 29 ms 66588 KB Output is correct
86 Correct 50 ms 67668 KB Output is correct
87 Correct 60 ms 67676 KB Output is correct
88 Correct 55 ms 67780 KB Output is correct
89 Correct 50 ms 67768 KB Output is correct
90 Correct 53 ms 67672 KB Output is correct
91 Correct 55 ms 67756 KB Output is correct
92 Correct 49 ms 66848 KB Output is correct
93 Correct 45 ms 68328 KB Output is correct
94 Correct 37 ms 66388 KB Output is correct
95 Correct 47 ms 67156 KB Output is correct
96 Correct 54 ms 67772 KB Output is correct
97 Correct 53 ms 67924 KB Output is correct
98 Correct 47 ms 66972 KB Output is correct
99 Correct 58 ms 67924 KB Output is correct
100 Correct 55 ms 66700 KB Output is correct
101 Correct 60 ms 67156 KB Output is correct
102 Correct 60 ms 67200 KB Output is correct
103 Correct 51 ms 65928 KB Output is correct
104 Correct 52 ms 66640 KB Output is correct
105 Correct 51 ms 67164 KB Output is correct
106 Correct 42 ms 65840 KB Output is correct
107 Correct 32 ms 65716 KB Output is correct
108 Correct 39 ms 66688 KB Output is correct
109 Correct 37 ms 66136 KB Output is correct
110 Correct 57 ms 67156 KB Output is correct
111 Correct 54 ms 67228 KB Output is correct
112 Correct 49 ms 67164 KB Output is correct
113 Correct 57 ms 67416 KB Output is correct
114 Correct 49 ms 67164 KB Output is correct
115 Correct 56 ms 67668 KB Output is correct
116 Correct 56 ms 66136 KB Output is correct
117 Correct 54 ms 67676 KB Output is correct
118 Correct 50 ms 66896 KB Output is correct
119 Correct 41 ms 66640 KB Output is correct
120 Correct 51 ms 67784 KB Output is correct
121 Correct 50 ms 67800 KB Output is correct
122 Correct 55 ms 67676 KB Output is correct
123 Correct 54 ms 67776 KB Output is correct
124 Correct 55 ms 67668 KB Output is correct
125 Correct 44 ms 67152 KB Output is correct
126 Correct 37 ms 66748 KB Output is correct
127 Correct 41 ms 66904 KB Output is correct
128 Correct 71 ms 68188 KB Output is correct
129 Correct 54 ms 67952 KB Output is correct
130 Correct 236 ms 86740 KB Output is correct
131 Correct 174 ms 80276 KB Output is correct
132 Correct 244 ms 86864 KB Output is correct
133 Correct 250 ms 86864 KB Output is correct
134 Correct 222 ms 84232 KB Output is correct
135 Correct 262 ms 87940 KB Output is correct
136 Correct 248 ms 85828 KB Output is correct
137 Correct 270 ms 85892 KB Output is correct
138 Correct 267 ms 87828 KB Output is correct
139 Correct 259 ms 87892 KB Output is correct
140 Correct 265 ms 87832 KB Output is correct
141 Correct 238 ms 87740 KB Output is correct
142 Correct 225 ms 87636 KB Output is correct
143 Correct 227 ms 87632 KB Output is correct
144 Correct 217 ms 87888 KB Output is correct
145 Correct 228 ms 87896 KB Output is correct
146 Correct 213 ms 87632 KB Output is correct
147 Correct 214 ms 87776 KB Output is correct
148 Correct 222 ms 87632 KB Output is correct
149 Correct 220 ms 87636 KB Output is correct
150 Correct 141 ms 85152 KB Output is correct
151 Correct 205 ms 89440 KB Output is correct
152 Correct 179 ms 89428 KB Output is correct
153 Correct 185 ms 88668 KB Output is correct