Submission #1062931

# Submission time Handle Problem Language Result Execution time Memory
1062931 2024-08-17T12:01:40 Z onbert Food Court (JOI21_foodcourt) C++17
100 / 100
424 ms 54512 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
struct thing {
    int val, ti, t;
};
const int maxn = 250005, maxN = 1e6 + 5, INF = 1e18;
int n, m, q;
vector<thing> delta[maxn];
vector<pair<int,int>> qry[maxn];

int seg[maxN], lazy[maxN];
void push(int id) {
    if (id*2 < maxN) lazy[id*2] += lazy[id];
    if (id*2+1 < maxN) lazy[id*2+1] += lazy[id];
    seg[id] += lazy[id];
    lazy[id] = 0;
}
void update(int id, int l, int r, int findl, int findr, int val) {
    push(id);
    if (r<findl || findr<l) return;
    if (findl<=l && r<=findr) {
        lazy[id] += val;
        push(id);
        return;
    }
    int mid = (l+r)/2;
    update(id*2, l, mid, findl, findr, val);
    update(id*2+1, mid+1, r, findl, findr, val);
    seg[id] = min(seg[id*2], seg[id*2+1]);
}
int mn(int id, int l, int r, int findl, int findr) {
    push(id);
    if (r<findl || findr<l) return INF;
    if (findl<=l && r<=findr) return seg[id];
    int mid = (l+r)/2;
    return min(mn(id*2, l, mid, findl, findr), mn(id*2+1, mid+1, r, findl, findr));
}

int fen[maxn][2];
void update2(int id, int val, int j) {
    while (id<=q) {
        fen[id][j] += val;
        id += (id & -id);
    }
}
int sum(int id, int j) {
    int val = 0;
    while (id>=1) {
        val += fen[id][j];
        id -= (id & -id);
    }
    return val;
}

signed main() {
    ios::sync_with_stdio(0); cin.tie(0);
    cin >> n >> m >> q;
    int id[q+1], ans[q+1];
    for (int i=1;i<=q;i++) ans[i] = -2;
    for (int i=1;i<=q;i++) {
        int t;
        cin >> t;
        if (t==1) {
            int l, r, c, k;
            cin >> l >> r >> c >> k;
            delta[l].push_back({k, i, 0});
            delta[r+1].push_back({-k, i, 0});
            id[i] = c;
        } else if (t==2) {
            int l, r, k;
            cin >> l >> r >> k;
            delta[l].push_back({-k, i, 1});
            delta[r+1].push_back({k, i, 1});
        } else if (t==3) {
            int x, y;
            cin >> x >> y;
            qry[x].push_back({y, i});
        }
    }
    for (int i=1;i<=n;i++) {
        for (auto [val, ti, t]:delta[i]) {
            update2(ti, val, t);
            update(1, 1, q, ti, q, val);
        }
        for (auto [x, ti]:qry[i]) {
            x += -sum(ti, 1) + min(mn(1, 1, q, 1, ti), (int)0);
            // cout << i << " " << x << endl;
            if (sum(ti, 0) < x) {
                ans[ti] = 0;
                continue;
            }
            int l = 1, r = ti;
            while (l<r) {
                int mid = (l+r)/2;
                if (sum(mid, 0) >= x) r = mid;
                else l = mid+1;
            }
            ans[ti] = id[l];
        }
    }
    for (int i=1;i<=q;i++) if (ans[i]!=-2) cout << ans[i] << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12380 KB Output is correct
2 Correct 7 ms 12508 KB Output is correct
3 Correct 6 ms 12380 KB Output is correct
4 Correct 8 ms 12380 KB Output is correct
5 Correct 8 ms 12380 KB Output is correct
6 Correct 6 ms 12380 KB Output is correct
7 Correct 6 ms 12380 KB Output is correct
8 Correct 7 ms 12364 KB Output is correct
9 Correct 6 ms 12380 KB Output is correct
10 Correct 6 ms 12380 KB Output is correct
11 Correct 7 ms 12380 KB Output is correct
12 Correct 10 ms 12380 KB Output is correct
13 Correct 10 ms 12380 KB Output is correct
14 Correct 6 ms 12380 KB Output is correct
15 Correct 8 ms 12380 KB Output is correct
16 Correct 7 ms 12380 KB Output is correct
17 Correct 6 ms 12380 KB Output is correct
18 Correct 7 ms 12480 KB Output is correct
19 Correct 7 ms 12380 KB Output is correct
20 Correct 7 ms 12380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12380 KB Output is correct
2 Correct 7 ms 12508 KB Output is correct
3 Correct 6 ms 12380 KB Output is correct
4 Correct 8 ms 12380 KB Output is correct
5 Correct 8 ms 12380 KB Output is correct
6 Correct 6 ms 12380 KB Output is correct
7 Correct 6 ms 12380 KB Output is correct
8 Correct 7 ms 12364 KB Output is correct
9 Correct 6 ms 12380 KB Output is correct
10 Correct 6 ms 12380 KB Output is correct
11 Correct 7 ms 12380 KB Output is correct
12 Correct 10 ms 12380 KB Output is correct
13 Correct 10 ms 12380 KB Output is correct
14 Correct 6 ms 12380 KB Output is correct
15 Correct 8 ms 12380 KB Output is correct
16 Correct 7 ms 12380 KB Output is correct
17 Correct 6 ms 12380 KB Output is correct
18 Correct 7 ms 12480 KB Output is correct
19 Correct 7 ms 12380 KB Output is correct
20 Correct 7 ms 12380 KB Output is correct
21 Correct 7 ms 12632 KB Output is correct
22 Correct 7 ms 12320 KB Output is correct
23 Correct 7 ms 12380 KB Output is correct
24 Correct 6 ms 12528 KB Output is correct
25 Correct 7 ms 12380 KB Output is correct
26 Correct 10 ms 12380 KB Output is correct
27 Correct 7 ms 12332 KB Output is correct
28 Correct 6 ms 12544 KB Output is correct
29 Correct 11 ms 12380 KB Output is correct
30 Correct 6 ms 12380 KB Output is correct
31 Correct 7 ms 12380 KB Output is correct
32 Correct 6 ms 12380 KB Output is correct
33 Correct 6 ms 12380 KB Output is correct
34 Correct 6 ms 12404 KB Output is correct
35 Correct 6 ms 12380 KB Output is correct
36 Correct 6 ms 12380 KB Output is correct
37 Correct 6 ms 12224 KB Output is correct
38 Correct 9 ms 12380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 53 ms 21852 KB Output is correct
2 Correct 57 ms 22032 KB Output is correct
3 Correct 88 ms 21944 KB Output is correct
4 Correct 81 ms 21844 KB Output is correct
5 Correct 64 ms 22160 KB Output is correct
6 Correct 89 ms 22100 KB Output is correct
7 Correct 31 ms 20592 KB Output is correct
8 Correct 43 ms 20712 KB Output is correct
9 Correct 84 ms 22100 KB Output is correct
10 Correct 54 ms 22104 KB Output is correct
11 Correct 59 ms 22096 KB Output is correct
12 Correct 60 ms 22256 KB Output is correct
13 Correct 76 ms 21072 KB Output is correct
14 Correct 61 ms 21844 KB Output is correct
15 Correct 58 ms 22356 KB Output is correct
16 Correct 77 ms 22356 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 310 ms 48876 KB Output is correct
2 Correct 228 ms 43884 KB Output is correct
3 Correct 350 ms 51284 KB Output is correct
4 Correct 235 ms 44368 KB Output is correct
5 Correct 244 ms 44884 KB Output is correct
6 Correct 340 ms 52240 KB Output is correct
7 Correct 137 ms 47416 KB Output is correct
8 Correct 138 ms 46596 KB Output is correct
9 Correct 338 ms 49932 KB Output is correct
10 Correct 348 ms 49768 KB Output is correct
11 Correct 350 ms 52052 KB Output is correct
12 Correct 318 ms 52052 KB Output is correct
13 Correct 299 ms 52124 KB Output is correct
14 Correct 340 ms 52108 KB Output is correct
15 Correct 371 ms 51968 KB Output is correct
16 Correct 340 ms 52080 KB Output is correct
17 Correct 339 ms 52048 KB Output is correct
18 Correct 361 ms 52248 KB Output is correct
19 Correct 424 ms 52052 KB Output is correct
20 Correct 350 ms 52124 KB Output is correct
21 Correct 371 ms 51980 KB Output is correct
22 Correct 358 ms 52156 KB Output is correct
23 Correct 357 ms 52064 KB Output is correct
24 Correct 344 ms 52008 KB Output is correct
25 Correct 241 ms 53080 KB Output is correct
26 Correct 263 ms 53588 KB Output is correct
27 Correct 268 ms 52820 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12380 KB Output is correct
2 Correct 7 ms 12508 KB Output is correct
3 Correct 6 ms 12380 KB Output is correct
4 Correct 8 ms 12380 KB Output is correct
5 Correct 8 ms 12380 KB Output is correct
6 Correct 6 ms 12380 KB Output is correct
7 Correct 6 ms 12380 KB Output is correct
8 Correct 7 ms 12364 KB Output is correct
9 Correct 6 ms 12380 KB Output is correct
10 Correct 6 ms 12380 KB Output is correct
11 Correct 7 ms 12380 KB Output is correct
12 Correct 10 ms 12380 KB Output is correct
13 Correct 10 ms 12380 KB Output is correct
14 Correct 6 ms 12380 KB Output is correct
15 Correct 8 ms 12380 KB Output is correct
16 Correct 7 ms 12380 KB Output is correct
17 Correct 6 ms 12380 KB Output is correct
18 Correct 7 ms 12480 KB Output is correct
19 Correct 7 ms 12380 KB Output is correct
20 Correct 7 ms 12380 KB Output is correct
21 Correct 53 ms 21852 KB Output is correct
22 Correct 57 ms 22032 KB Output is correct
23 Correct 88 ms 21944 KB Output is correct
24 Correct 81 ms 21844 KB Output is correct
25 Correct 64 ms 22160 KB Output is correct
26 Correct 89 ms 22100 KB Output is correct
27 Correct 31 ms 20592 KB Output is correct
28 Correct 43 ms 20712 KB Output is correct
29 Correct 84 ms 22100 KB Output is correct
30 Correct 54 ms 22104 KB Output is correct
31 Correct 59 ms 22096 KB Output is correct
32 Correct 60 ms 22256 KB Output is correct
33 Correct 76 ms 21072 KB Output is correct
34 Correct 61 ms 21844 KB Output is correct
35 Correct 58 ms 22356 KB Output is correct
36 Correct 77 ms 22356 KB Output is correct
37 Correct 55 ms 21080 KB Output is correct
38 Correct 48 ms 20708 KB Output is correct
39 Correct 30 ms 19624 KB Output is correct
40 Correct 35 ms 20184 KB Output is correct
41 Correct 64 ms 22100 KB Output is correct
42 Correct 61 ms 22100 KB Output is correct
43 Correct 61 ms 22100 KB Output is correct
44 Correct 62 ms 22100 KB Output is correct
45 Correct 64 ms 22060 KB Output is correct
46 Correct 58 ms 22048 KB Output is correct
47 Correct 39 ms 20800 KB Output is correct
48 Correct 55 ms 22464 KB Output is correct
49 Correct 42 ms 20060 KB Output is correct
50 Correct 55 ms 20908 KB Output is correct
51 Correct 63 ms 22144 KB Output is correct
52 Correct 61 ms 22088 KB Output is correct
53 Correct 47 ms 20816 KB Output is correct
54 Correct 60 ms 22356 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 59 ms 21332 KB Output is correct
2 Correct 78 ms 21820 KB Output is correct
3 Correct 64 ms 22112 KB Output is correct
4 Correct 46 ms 19908 KB Output is correct
5 Correct 56 ms 21156 KB Output is correct
6 Correct 66 ms 22100 KB Output is correct
7 Correct 40 ms 20268 KB Output is correct
8 Correct 45 ms 19904 KB Output is correct
9 Correct 48 ms 21480 KB Output is correct
10 Correct 43 ms 20304 KB Output is correct
11 Correct 56 ms 21940 KB Output is correct
12 Correct 55 ms 21972 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12380 KB Output is correct
2 Correct 7 ms 12508 KB Output is correct
3 Correct 6 ms 12380 KB Output is correct
4 Correct 8 ms 12380 KB Output is correct
5 Correct 8 ms 12380 KB Output is correct
6 Correct 6 ms 12380 KB Output is correct
7 Correct 6 ms 12380 KB Output is correct
8 Correct 7 ms 12364 KB Output is correct
9 Correct 6 ms 12380 KB Output is correct
10 Correct 6 ms 12380 KB Output is correct
11 Correct 7 ms 12380 KB Output is correct
12 Correct 10 ms 12380 KB Output is correct
13 Correct 10 ms 12380 KB Output is correct
14 Correct 6 ms 12380 KB Output is correct
15 Correct 8 ms 12380 KB Output is correct
16 Correct 7 ms 12380 KB Output is correct
17 Correct 6 ms 12380 KB Output is correct
18 Correct 7 ms 12480 KB Output is correct
19 Correct 7 ms 12380 KB Output is correct
20 Correct 7 ms 12380 KB Output is correct
21 Correct 7 ms 12632 KB Output is correct
22 Correct 7 ms 12320 KB Output is correct
23 Correct 7 ms 12380 KB Output is correct
24 Correct 6 ms 12528 KB Output is correct
25 Correct 7 ms 12380 KB Output is correct
26 Correct 10 ms 12380 KB Output is correct
27 Correct 7 ms 12332 KB Output is correct
28 Correct 6 ms 12544 KB Output is correct
29 Correct 11 ms 12380 KB Output is correct
30 Correct 6 ms 12380 KB Output is correct
31 Correct 7 ms 12380 KB Output is correct
32 Correct 6 ms 12380 KB Output is correct
33 Correct 6 ms 12380 KB Output is correct
34 Correct 6 ms 12404 KB Output is correct
35 Correct 6 ms 12380 KB Output is correct
36 Correct 6 ms 12380 KB Output is correct
37 Correct 6 ms 12224 KB Output is correct
38 Correct 9 ms 12380 KB Output is correct
39 Correct 53 ms 21852 KB Output is correct
40 Correct 57 ms 22032 KB Output is correct
41 Correct 88 ms 21944 KB Output is correct
42 Correct 81 ms 21844 KB Output is correct
43 Correct 64 ms 22160 KB Output is correct
44 Correct 89 ms 22100 KB Output is correct
45 Correct 31 ms 20592 KB Output is correct
46 Correct 43 ms 20712 KB Output is correct
47 Correct 84 ms 22100 KB Output is correct
48 Correct 54 ms 22104 KB Output is correct
49 Correct 59 ms 22096 KB Output is correct
50 Correct 60 ms 22256 KB Output is correct
51 Correct 76 ms 21072 KB Output is correct
52 Correct 61 ms 21844 KB Output is correct
53 Correct 58 ms 22356 KB Output is correct
54 Correct 77 ms 22356 KB Output is correct
55 Correct 55 ms 21080 KB Output is correct
56 Correct 48 ms 20708 KB Output is correct
57 Correct 30 ms 19624 KB Output is correct
58 Correct 35 ms 20184 KB Output is correct
59 Correct 64 ms 22100 KB Output is correct
60 Correct 61 ms 22100 KB Output is correct
61 Correct 61 ms 22100 KB Output is correct
62 Correct 62 ms 22100 KB Output is correct
63 Correct 64 ms 22060 KB Output is correct
64 Correct 58 ms 22048 KB Output is correct
65 Correct 39 ms 20800 KB Output is correct
66 Correct 55 ms 22464 KB Output is correct
67 Correct 42 ms 20060 KB Output is correct
68 Correct 55 ms 20908 KB Output is correct
69 Correct 63 ms 22144 KB Output is correct
70 Correct 61 ms 22088 KB Output is correct
71 Correct 47 ms 20816 KB Output is correct
72 Correct 60 ms 22356 KB Output is correct
73 Correct 59 ms 21332 KB Output is correct
74 Correct 78 ms 21820 KB Output is correct
75 Correct 64 ms 22112 KB Output is correct
76 Correct 46 ms 19908 KB Output is correct
77 Correct 56 ms 21156 KB Output is correct
78 Correct 66 ms 22100 KB Output is correct
79 Correct 40 ms 20268 KB Output is correct
80 Correct 45 ms 19904 KB Output is correct
81 Correct 48 ms 21480 KB Output is correct
82 Correct 43 ms 20304 KB Output is correct
83 Correct 56 ms 21940 KB Output is correct
84 Correct 55 ms 21972 KB Output is correct
85 Correct 54 ms 21596 KB Output is correct
86 Correct 62 ms 22356 KB Output is correct
87 Correct 57 ms 21732 KB Output is correct
88 Correct 65 ms 22612 KB Output is correct
89 Correct 45 ms 20052 KB Output is correct
90 Correct 65 ms 22612 KB Output is correct
91 Correct 55 ms 21332 KB Output is correct
92 Correct 56 ms 20868 KB Output is correct
93 Correct 62 ms 22612 KB Output is correct
94 Correct 69 ms 22612 KB Output is correct
95 Correct 70 ms 22356 KB Output is correct
96 Correct 63 ms 22612 KB Output is correct
97 Correct 61 ms 22612 KB Output is correct
98 Correct 53 ms 21592 KB Output is correct
99 Correct 45 ms 21436 KB Output is correct
100 Correct 47 ms 21332 KB Output is correct
101 Correct 56 ms 22868 KB Output is correct
102 Correct 59 ms 22760 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12380 KB Output is correct
2 Correct 7 ms 12508 KB Output is correct
3 Correct 6 ms 12380 KB Output is correct
4 Correct 8 ms 12380 KB Output is correct
5 Correct 8 ms 12380 KB Output is correct
6 Correct 6 ms 12380 KB Output is correct
7 Correct 6 ms 12380 KB Output is correct
8 Correct 7 ms 12364 KB Output is correct
9 Correct 6 ms 12380 KB Output is correct
10 Correct 6 ms 12380 KB Output is correct
11 Correct 7 ms 12380 KB Output is correct
12 Correct 10 ms 12380 KB Output is correct
13 Correct 10 ms 12380 KB Output is correct
14 Correct 6 ms 12380 KB Output is correct
15 Correct 8 ms 12380 KB Output is correct
16 Correct 7 ms 12380 KB Output is correct
17 Correct 6 ms 12380 KB Output is correct
18 Correct 7 ms 12480 KB Output is correct
19 Correct 7 ms 12380 KB Output is correct
20 Correct 7 ms 12380 KB Output is correct
21 Correct 7 ms 12632 KB Output is correct
22 Correct 7 ms 12320 KB Output is correct
23 Correct 7 ms 12380 KB Output is correct
24 Correct 6 ms 12528 KB Output is correct
25 Correct 7 ms 12380 KB Output is correct
26 Correct 10 ms 12380 KB Output is correct
27 Correct 7 ms 12332 KB Output is correct
28 Correct 6 ms 12544 KB Output is correct
29 Correct 11 ms 12380 KB Output is correct
30 Correct 6 ms 12380 KB Output is correct
31 Correct 7 ms 12380 KB Output is correct
32 Correct 6 ms 12380 KB Output is correct
33 Correct 6 ms 12380 KB Output is correct
34 Correct 6 ms 12404 KB Output is correct
35 Correct 6 ms 12380 KB Output is correct
36 Correct 6 ms 12380 KB Output is correct
37 Correct 6 ms 12224 KB Output is correct
38 Correct 9 ms 12380 KB Output is correct
39 Correct 53 ms 21852 KB Output is correct
40 Correct 57 ms 22032 KB Output is correct
41 Correct 88 ms 21944 KB Output is correct
42 Correct 81 ms 21844 KB Output is correct
43 Correct 64 ms 22160 KB Output is correct
44 Correct 89 ms 22100 KB Output is correct
45 Correct 31 ms 20592 KB Output is correct
46 Correct 43 ms 20712 KB Output is correct
47 Correct 84 ms 22100 KB Output is correct
48 Correct 54 ms 22104 KB Output is correct
49 Correct 59 ms 22096 KB Output is correct
50 Correct 60 ms 22256 KB Output is correct
51 Correct 76 ms 21072 KB Output is correct
52 Correct 61 ms 21844 KB Output is correct
53 Correct 58 ms 22356 KB Output is correct
54 Correct 77 ms 22356 KB Output is correct
55 Correct 310 ms 48876 KB Output is correct
56 Correct 228 ms 43884 KB Output is correct
57 Correct 350 ms 51284 KB Output is correct
58 Correct 235 ms 44368 KB Output is correct
59 Correct 244 ms 44884 KB Output is correct
60 Correct 340 ms 52240 KB Output is correct
61 Correct 137 ms 47416 KB Output is correct
62 Correct 138 ms 46596 KB Output is correct
63 Correct 338 ms 49932 KB Output is correct
64 Correct 348 ms 49768 KB Output is correct
65 Correct 350 ms 52052 KB Output is correct
66 Correct 318 ms 52052 KB Output is correct
67 Correct 299 ms 52124 KB Output is correct
68 Correct 340 ms 52108 KB Output is correct
69 Correct 371 ms 51968 KB Output is correct
70 Correct 340 ms 52080 KB Output is correct
71 Correct 339 ms 52048 KB Output is correct
72 Correct 361 ms 52248 KB Output is correct
73 Correct 424 ms 52052 KB Output is correct
74 Correct 350 ms 52124 KB Output is correct
75 Correct 371 ms 51980 KB Output is correct
76 Correct 358 ms 52156 KB Output is correct
77 Correct 357 ms 52064 KB Output is correct
78 Correct 344 ms 52008 KB Output is correct
79 Correct 241 ms 53080 KB Output is correct
80 Correct 263 ms 53588 KB Output is correct
81 Correct 268 ms 52820 KB Output is correct
82 Correct 55 ms 21080 KB Output is correct
83 Correct 48 ms 20708 KB Output is correct
84 Correct 30 ms 19624 KB Output is correct
85 Correct 35 ms 20184 KB Output is correct
86 Correct 64 ms 22100 KB Output is correct
87 Correct 61 ms 22100 KB Output is correct
88 Correct 61 ms 22100 KB Output is correct
89 Correct 62 ms 22100 KB Output is correct
90 Correct 64 ms 22060 KB Output is correct
91 Correct 58 ms 22048 KB Output is correct
92 Correct 39 ms 20800 KB Output is correct
93 Correct 55 ms 22464 KB Output is correct
94 Correct 42 ms 20060 KB Output is correct
95 Correct 55 ms 20908 KB Output is correct
96 Correct 63 ms 22144 KB Output is correct
97 Correct 61 ms 22088 KB Output is correct
98 Correct 47 ms 20816 KB Output is correct
99 Correct 60 ms 22356 KB Output is correct
100 Correct 59 ms 21332 KB Output is correct
101 Correct 78 ms 21820 KB Output is correct
102 Correct 64 ms 22112 KB Output is correct
103 Correct 46 ms 19908 KB Output is correct
104 Correct 56 ms 21156 KB Output is correct
105 Correct 66 ms 22100 KB Output is correct
106 Correct 40 ms 20268 KB Output is correct
107 Correct 45 ms 19904 KB Output is correct
108 Correct 48 ms 21480 KB Output is correct
109 Correct 43 ms 20304 KB Output is correct
110 Correct 56 ms 21940 KB Output is correct
111 Correct 55 ms 21972 KB Output is correct
112 Correct 54 ms 21596 KB Output is correct
113 Correct 62 ms 22356 KB Output is correct
114 Correct 57 ms 21732 KB Output is correct
115 Correct 65 ms 22612 KB Output is correct
116 Correct 45 ms 20052 KB Output is correct
117 Correct 65 ms 22612 KB Output is correct
118 Correct 55 ms 21332 KB Output is correct
119 Correct 56 ms 20868 KB Output is correct
120 Correct 62 ms 22612 KB Output is correct
121 Correct 69 ms 22612 KB Output is correct
122 Correct 70 ms 22356 KB Output is correct
123 Correct 63 ms 22612 KB Output is correct
124 Correct 61 ms 22612 KB Output is correct
125 Correct 53 ms 21592 KB Output is correct
126 Correct 45 ms 21436 KB Output is correct
127 Correct 47 ms 21332 KB Output is correct
128 Correct 56 ms 22868 KB Output is correct
129 Correct 59 ms 22760 KB Output is correct
130 Correct 353 ms 51796 KB Output is correct
131 Correct 214 ms 44116 KB Output is correct
132 Correct 285 ms 51796 KB Output is correct
133 Correct 300 ms 51568 KB Output is correct
134 Correct 262 ms 48468 KB Output is correct
135 Correct 338 ms 53056 KB Output is correct
136 Correct 297 ms 50772 KB Output is correct
137 Correct 318 ms 50808 KB Output is correct
138 Correct 296 ms 52892 KB Output is correct
139 Correct 300 ms 52820 KB Output is correct
140 Correct 339 ms 52820 KB Output is correct
141 Correct 313 ms 52608 KB Output is correct
142 Correct 303 ms 52744 KB Output is correct
143 Correct 326 ms 52564 KB Output is correct
144 Correct 311 ms 52784 KB Output is correct
145 Correct 295 ms 52820 KB Output is correct
146 Correct 292 ms 52768 KB Output is correct
147 Correct 297 ms 52564 KB Output is correct
148 Correct 321 ms 52736 KB Output is correct
149 Correct 280 ms 52624 KB Output is correct
150 Correct 162 ms 48272 KB Output is correct
151 Correct 243 ms 54416 KB Output is correct
152 Correct 258 ms 54512 KB Output is correct
153 Correct 287 ms 53724 KB Output is correct