Submission #933767

# Submission time Handle Problem Language Result Execution time Memory
933767 2024-02-26T09:42:51 Z Pannda Food Court (JOI21_foodcourt) C++17
100 / 100
544 ms 57748 KB
#include <bits/stdc++.h>
using namespace std;

struct SegmentTree {
    int n;
    vector<long long> a, b;

    SegmentTree(int n) : n(n), a(4 * n, 0), b(4 * n, 0) {}

    void apply(int idx, long long x, long long y) {
        b[idx] = max(b[idx] + x, y);
        a[idx] = a[idx] + x;
    }

    void down(int idx) {
        apply(2 * idx + 1, a[idx], b[idx]);
        apply(2 * idx + 2, a[idx], b[idx]);
        a[idx] = b[idx] = 0;
    }

    void add(int ql, int qr, long long x, long long y) {
        auto dfs = [&](auto self, int idx, int l, int r) {
            if (r <= ql || qr <= l) return;
            if (ql <= l && r <= qr) return apply(idx, x, y);
            down(idx);
            int m = (l + r) >> 1;
            self(self, 2 * idx + 1, l, m);
            self(self, 2 * idx + 2, m, r);
        };
        dfs(dfs, 0, 0, n);
    }

    long long get(int pos) {
        int idx = 0, l = 0, r = n;
        while (l + 1 < r) {
            down(idx);
            int m = (l + r) >> 1;
            if (pos < m) {
                idx = 2 * idx + 1;
                r = m;
            } else {
                idx = 2 * idx + 2;
                l = m;
            }
        }
        return max(a[idx], b[idx]);
    }
};

struct Fenwick {
    int n;
    vector<long long> bit;

    Fenwick(int n) : n(n), bit(n + 1, 0) {}

    void add(int i, long long delta) {
        for (i++; i <= n; i += i & -i) {
            bit[i] += delta;
        }
    }

    void add(int ql, int qr, long long delta) {
        add(ql, +delta);
        add(qr, -delta);
    }

    long long get(int i) {
        long long res = 0;
        for (i++; i > 0; i -= i & -i) {
            res += bit[i];
        }
        return res;
    }
};

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, m, q;
    cin >> n >> m >> q;

    vector<int> type(q), l(q), r(q), c(q), k(q), a(q);
    vector<long long> b(q);
    for (int i = 0; i < q; i++) {
        cin >> type[i];
        if (type[i] == 1) {
            cin >> l[i] >> r[i] >> c[i] >> k[i];
            l[i]--;
        }
        if (type[i] == 2) {
            cin >> l[i] >> r[i] >> k[i];
            l[i]--;
        }
        if (type[i] == 3) {
            cin >> a[i] >> b[i];
            a[i]--;
            b[i]--;
        }
    }

    SegmentTree seg(n);
    Fenwick fen(n);
    vector<vector<int>> inbox(q + 1);

    for (int i = 0; i < q; i++) {
        if (type[i] == 1) {
            seg.add(l[i], r[i], k[i], 0);
            fen.add(l[i], r[i], k[i]);
        }
        if (type[i] == 2) {
            seg.add(l[i], r[i], -k[i], 0);
        }
        if (type[i] == 3) {
            long long seg_get = seg.get(a[i]);
            long long fen_get = fen.get(a[i]);
            b[i] = fen_get - seg_get + b[i];
            l[i] = 0, r[i] = q - 1;
            inbox[(l[i] + r[i]) >> 1].push_back(i);
        }
    }

    const int LOG = 18;
    for (int ite = 0; ite < LOG; ite++) {
        Fenwick fen(n);
        vector<vector<int>> new_inbox(q + 1);
        for (int m = 0; m < q; m++) {
            if (type[m] == 1) {
                fen.add(l[m], r[m], k[m]);
            }
            for (int i : inbox[m]) {
                if (b[i] < fen.get(a[i])) {
                    r[i] = m;
                } else {
                    l[i] = m + 1;
                }
                new_inbox[(l[i] + r[i]) >> 1].push_back(i);
            }
        }
        inbox = new_inbox;
    }

    for (int i = 0; i < q; i++) {
        if (type[i] == 3) {
            if (l[i] > i) {
                cout << 0 << '\n';
            } else {
                cout << c[l[i]] << '\n';
            }
        }
    }
}
# Verdict Execution time Memory Grader output
1 Correct 3 ms 604 KB Output is correct
2 Correct 3 ms 856 KB Output is correct
3 Correct 2 ms 604 KB Output is correct
4 Correct 3 ms 864 KB Output is correct
5 Correct 2 ms 604 KB Output is correct
6 Correct 2 ms 604 KB Output is correct
7 Correct 2 ms 604 KB Output is correct
8 Correct 3 ms 856 KB Output is correct
9 Correct 3 ms 856 KB Output is correct
10 Correct 2 ms 808 KB Output is correct
11 Correct 3 ms 860 KB Output is correct
12 Correct 3 ms 860 KB Output is correct
13 Correct 2 ms 720 KB Output is correct
14 Correct 3 ms 720 KB Output is correct
15 Correct 2 ms 600 KB Output is correct
16 Correct 3 ms 860 KB Output is correct
17 Correct 2 ms 600 KB Output is correct
18 Correct 2 ms 860 KB Output is correct
19 Correct 2 ms 856 KB Output is correct
20 Correct 3 ms 604 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 604 KB Output is correct
2 Correct 3 ms 856 KB Output is correct
3 Correct 2 ms 604 KB Output is correct
4 Correct 3 ms 864 KB Output is correct
5 Correct 2 ms 604 KB Output is correct
6 Correct 2 ms 604 KB Output is correct
7 Correct 2 ms 604 KB Output is correct
8 Correct 3 ms 856 KB Output is correct
9 Correct 3 ms 856 KB Output is correct
10 Correct 2 ms 808 KB Output is correct
11 Correct 3 ms 860 KB Output is correct
12 Correct 3 ms 860 KB Output is correct
13 Correct 2 ms 720 KB Output is correct
14 Correct 3 ms 720 KB Output is correct
15 Correct 2 ms 600 KB Output is correct
16 Correct 3 ms 860 KB Output is correct
17 Correct 2 ms 600 KB Output is correct
18 Correct 2 ms 860 KB Output is correct
19 Correct 2 ms 856 KB Output is correct
20 Correct 3 ms 604 KB Output is correct
21 Correct 3 ms 860 KB Output is correct
22 Correct 4 ms 860 KB Output is correct
23 Correct 3 ms 704 KB Output is correct
24 Correct 3 ms 860 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 3 ms 544 KB Output is correct
27 Correct 3 ms 860 KB Output is correct
28 Correct 3 ms 860 KB Output is correct
29 Correct 4 ms 1012 KB Output is correct
30 Correct 4 ms 860 KB Output is correct
31 Correct 3 ms 860 KB Output is correct
32 Correct 3 ms 860 KB Output is correct
33 Correct 2 ms 604 KB Output is correct
34 Correct 2 ms 860 KB Output is correct
35 Correct 2 ms 608 KB Output is correct
36 Correct 3 ms 856 KB Output is correct
37 Correct 3 ms 600 KB Output is correct
38 Correct 3 ms 604 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 101 ms 13492 KB Output is correct
2 Correct 84 ms 13096 KB Output is correct
3 Correct 85 ms 13648 KB Output is correct
4 Correct 81 ms 13644 KB Output is correct
5 Correct 90 ms 13304 KB Output is correct
6 Correct 91 ms 13324 KB Output is correct
7 Correct 41 ms 7988 KB Output is correct
8 Correct 45 ms 8176 KB Output is correct
9 Correct 82 ms 13068 KB Output is correct
10 Correct 85 ms 12968 KB Output is correct
11 Correct 75 ms 13012 KB Output is correct
12 Correct 87 ms 12928 KB Output is correct
13 Correct 80 ms 11348 KB Output is correct
14 Correct 92 ms 13760 KB Output is correct
15 Correct 98 ms 11076 KB Output is correct
16 Correct 95 ms 12936 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 424 ms 47944 KB Output is correct
2 Correct 318 ms 39548 KB Output is correct
3 Correct 426 ms 52748 KB Output is correct
4 Correct 321 ms 42504 KB Output is correct
5 Correct 323 ms 38256 KB Output is correct
6 Correct 433 ms 51516 KB Output is correct
7 Correct 166 ms 32768 KB Output is correct
8 Correct 173 ms 32768 KB Output is correct
9 Correct 511 ms 56844 KB Output is correct
10 Correct 544 ms 56624 KB Output is correct
11 Correct 374 ms 50176 KB Output is correct
12 Correct 409 ms 50836 KB Output is correct
13 Correct 401 ms 50120 KB Output is correct
14 Correct 383 ms 51028 KB Output is correct
15 Correct 391 ms 51044 KB Output is correct
16 Correct 382 ms 50764 KB Output is correct
17 Correct 387 ms 51020 KB Output is correct
18 Correct 384 ms 50736 KB Output is correct
19 Correct 390 ms 51256 KB Output is correct
20 Correct 381 ms 50636 KB Output is correct
21 Correct 407 ms 51532 KB Output is correct
22 Correct 406 ms 51132 KB Output is correct
23 Correct 401 ms 51196 KB Output is correct
24 Correct 390 ms 51272 KB Output is correct
25 Correct 350 ms 48224 KB Output is correct
26 Correct 366 ms 53080 KB Output is correct
27 Correct 371 ms 48768 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 604 KB Output is correct
2 Correct 3 ms 856 KB Output is correct
3 Correct 2 ms 604 KB Output is correct
4 Correct 3 ms 864 KB Output is correct
5 Correct 2 ms 604 KB Output is correct
6 Correct 2 ms 604 KB Output is correct
7 Correct 2 ms 604 KB Output is correct
8 Correct 3 ms 856 KB Output is correct
9 Correct 3 ms 856 KB Output is correct
10 Correct 2 ms 808 KB Output is correct
11 Correct 3 ms 860 KB Output is correct
12 Correct 3 ms 860 KB Output is correct
13 Correct 2 ms 720 KB Output is correct
14 Correct 3 ms 720 KB Output is correct
15 Correct 2 ms 600 KB Output is correct
16 Correct 3 ms 860 KB Output is correct
17 Correct 2 ms 600 KB Output is correct
18 Correct 2 ms 860 KB Output is correct
19 Correct 2 ms 856 KB Output is correct
20 Correct 3 ms 604 KB Output is correct
21 Correct 101 ms 13492 KB Output is correct
22 Correct 84 ms 13096 KB Output is correct
23 Correct 85 ms 13648 KB Output is correct
24 Correct 81 ms 13644 KB Output is correct
25 Correct 90 ms 13304 KB Output is correct
26 Correct 91 ms 13324 KB Output is correct
27 Correct 41 ms 7988 KB Output is correct
28 Correct 45 ms 8176 KB Output is correct
29 Correct 82 ms 13068 KB Output is correct
30 Correct 85 ms 12968 KB Output is correct
31 Correct 75 ms 13012 KB Output is correct
32 Correct 87 ms 12928 KB Output is correct
33 Correct 80 ms 11348 KB Output is correct
34 Correct 92 ms 13760 KB Output is correct
35 Correct 98 ms 11076 KB Output is correct
36 Correct 95 ms 12936 KB Output is correct
37 Correct 75 ms 12596 KB Output is correct
38 Correct 79 ms 11572 KB Output is correct
39 Correct 35 ms 6776 KB Output is correct
40 Correct 40 ms 7628 KB Output is correct
41 Correct 79 ms 13172 KB Output is correct
42 Correct 82 ms 13228 KB Output is correct
43 Correct 96 ms 13404 KB Output is correct
44 Correct 83 ms 13416 KB Output is correct
45 Correct 83 ms 13496 KB Output is correct
46 Correct 85 ms 13432 KB Output is correct
47 Correct 60 ms 13916 KB Output is correct
48 Correct 80 ms 13924 KB Output is correct
49 Correct 58 ms 9404 KB Output is correct
50 Correct 78 ms 12128 KB Output is correct
51 Correct 83 ms 13140 KB Output is correct
52 Correct 83 ms 13280 KB Output is correct
53 Correct 69 ms 10476 KB Output is correct
54 Correct 94 ms 12812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 95 ms 14032 KB Output is correct
2 Correct 103 ms 14184 KB Output is correct
3 Correct 107 ms 15188 KB Output is correct
4 Correct 76 ms 11964 KB Output is correct
5 Correct 92 ms 13812 KB Output is correct
6 Correct 112 ms 15116 KB Output is correct
7 Correct 47 ms 8872 KB Output is correct
8 Correct 51 ms 8444 KB Output is correct
9 Correct 80 ms 15112 KB Output is correct
10 Correct 71 ms 11676 KB Output is correct
11 Correct 102 ms 15112 KB Output is correct
12 Correct 102 ms 15108 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 604 KB Output is correct
2 Correct 3 ms 856 KB Output is correct
3 Correct 2 ms 604 KB Output is correct
4 Correct 3 ms 864 KB Output is correct
5 Correct 2 ms 604 KB Output is correct
6 Correct 2 ms 604 KB Output is correct
7 Correct 2 ms 604 KB Output is correct
8 Correct 3 ms 856 KB Output is correct
9 Correct 3 ms 856 KB Output is correct
10 Correct 2 ms 808 KB Output is correct
11 Correct 3 ms 860 KB Output is correct
12 Correct 3 ms 860 KB Output is correct
13 Correct 2 ms 720 KB Output is correct
14 Correct 3 ms 720 KB Output is correct
15 Correct 2 ms 600 KB Output is correct
16 Correct 3 ms 860 KB Output is correct
17 Correct 2 ms 600 KB Output is correct
18 Correct 2 ms 860 KB Output is correct
19 Correct 2 ms 856 KB Output is correct
20 Correct 3 ms 604 KB Output is correct
21 Correct 3 ms 860 KB Output is correct
22 Correct 4 ms 860 KB Output is correct
23 Correct 3 ms 704 KB Output is correct
24 Correct 3 ms 860 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 3 ms 544 KB Output is correct
27 Correct 3 ms 860 KB Output is correct
28 Correct 3 ms 860 KB Output is correct
29 Correct 4 ms 1012 KB Output is correct
30 Correct 4 ms 860 KB Output is correct
31 Correct 3 ms 860 KB Output is correct
32 Correct 3 ms 860 KB Output is correct
33 Correct 2 ms 604 KB Output is correct
34 Correct 2 ms 860 KB Output is correct
35 Correct 2 ms 608 KB Output is correct
36 Correct 3 ms 856 KB Output is correct
37 Correct 3 ms 600 KB Output is correct
38 Correct 3 ms 604 KB Output is correct
39 Correct 101 ms 13492 KB Output is correct
40 Correct 84 ms 13096 KB Output is correct
41 Correct 85 ms 13648 KB Output is correct
42 Correct 81 ms 13644 KB Output is correct
43 Correct 90 ms 13304 KB Output is correct
44 Correct 91 ms 13324 KB Output is correct
45 Correct 41 ms 7988 KB Output is correct
46 Correct 45 ms 8176 KB Output is correct
47 Correct 82 ms 13068 KB Output is correct
48 Correct 85 ms 12968 KB Output is correct
49 Correct 75 ms 13012 KB Output is correct
50 Correct 87 ms 12928 KB Output is correct
51 Correct 80 ms 11348 KB Output is correct
52 Correct 92 ms 13760 KB Output is correct
53 Correct 98 ms 11076 KB Output is correct
54 Correct 95 ms 12936 KB Output is correct
55 Correct 75 ms 12596 KB Output is correct
56 Correct 79 ms 11572 KB Output is correct
57 Correct 35 ms 6776 KB Output is correct
58 Correct 40 ms 7628 KB Output is correct
59 Correct 79 ms 13172 KB Output is correct
60 Correct 82 ms 13228 KB Output is correct
61 Correct 96 ms 13404 KB Output is correct
62 Correct 83 ms 13416 KB Output is correct
63 Correct 83 ms 13496 KB Output is correct
64 Correct 85 ms 13432 KB Output is correct
65 Correct 60 ms 13916 KB Output is correct
66 Correct 80 ms 13924 KB Output is correct
67 Correct 58 ms 9404 KB Output is correct
68 Correct 78 ms 12128 KB Output is correct
69 Correct 83 ms 13140 KB Output is correct
70 Correct 83 ms 13280 KB Output is correct
71 Correct 69 ms 10476 KB Output is correct
72 Correct 94 ms 12812 KB Output is correct
73 Correct 95 ms 14032 KB Output is correct
74 Correct 103 ms 14184 KB Output is correct
75 Correct 107 ms 15188 KB Output is correct
76 Correct 76 ms 11964 KB Output is correct
77 Correct 92 ms 13812 KB Output is correct
78 Correct 112 ms 15116 KB Output is correct
79 Correct 47 ms 8872 KB Output is correct
80 Correct 51 ms 8444 KB Output is correct
81 Correct 80 ms 15112 KB Output is correct
82 Correct 71 ms 11676 KB Output is correct
83 Correct 102 ms 15112 KB Output is correct
84 Correct 102 ms 15108 KB Output is correct
85 Correct 79 ms 12364 KB Output is correct
86 Correct 90 ms 13920 KB Output is correct
87 Correct 83 ms 12348 KB Output is correct
88 Correct 94 ms 13664 KB Output is correct
89 Correct 62 ms 9912 KB Output is correct
90 Correct 87 ms 13660 KB Output is correct
91 Correct 70 ms 10640 KB Output is correct
92 Correct 71 ms 10228 KB Output is correct
93 Correct 89 ms 13664 KB Output is correct
94 Correct 98 ms 13676 KB Output is correct
95 Correct 85 ms 13244 KB Output is correct
96 Correct 88 ms 13584 KB Output is correct
97 Correct 88 ms 13588 KB Output is correct
98 Correct 73 ms 11148 KB Output is correct
99 Correct 61 ms 14180 KB Output is correct
100 Correct 71 ms 11924 KB Output is correct
101 Correct 88 ms 14124 KB Output is correct
102 Correct 77 ms 13148 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 604 KB Output is correct
2 Correct 3 ms 856 KB Output is correct
3 Correct 2 ms 604 KB Output is correct
4 Correct 3 ms 864 KB Output is correct
5 Correct 2 ms 604 KB Output is correct
6 Correct 2 ms 604 KB Output is correct
7 Correct 2 ms 604 KB Output is correct
8 Correct 3 ms 856 KB Output is correct
9 Correct 3 ms 856 KB Output is correct
10 Correct 2 ms 808 KB Output is correct
11 Correct 3 ms 860 KB Output is correct
12 Correct 3 ms 860 KB Output is correct
13 Correct 2 ms 720 KB Output is correct
14 Correct 3 ms 720 KB Output is correct
15 Correct 2 ms 600 KB Output is correct
16 Correct 3 ms 860 KB Output is correct
17 Correct 2 ms 600 KB Output is correct
18 Correct 2 ms 860 KB Output is correct
19 Correct 2 ms 856 KB Output is correct
20 Correct 3 ms 604 KB Output is correct
21 Correct 3 ms 860 KB Output is correct
22 Correct 4 ms 860 KB Output is correct
23 Correct 3 ms 704 KB Output is correct
24 Correct 3 ms 860 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 3 ms 544 KB Output is correct
27 Correct 3 ms 860 KB Output is correct
28 Correct 3 ms 860 KB Output is correct
29 Correct 4 ms 1012 KB Output is correct
30 Correct 4 ms 860 KB Output is correct
31 Correct 3 ms 860 KB Output is correct
32 Correct 3 ms 860 KB Output is correct
33 Correct 2 ms 604 KB Output is correct
34 Correct 2 ms 860 KB Output is correct
35 Correct 2 ms 608 KB Output is correct
36 Correct 3 ms 856 KB Output is correct
37 Correct 3 ms 600 KB Output is correct
38 Correct 3 ms 604 KB Output is correct
39 Correct 101 ms 13492 KB Output is correct
40 Correct 84 ms 13096 KB Output is correct
41 Correct 85 ms 13648 KB Output is correct
42 Correct 81 ms 13644 KB Output is correct
43 Correct 90 ms 13304 KB Output is correct
44 Correct 91 ms 13324 KB Output is correct
45 Correct 41 ms 7988 KB Output is correct
46 Correct 45 ms 8176 KB Output is correct
47 Correct 82 ms 13068 KB Output is correct
48 Correct 85 ms 12968 KB Output is correct
49 Correct 75 ms 13012 KB Output is correct
50 Correct 87 ms 12928 KB Output is correct
51 Correct 80 ms 11348 KB Output is correct
52 Correct 92 ms 13760 KB Output is correct
53 Correct 98 ms 11076 KB Output is correct
54 Correct 95 ms 12936 KB Output is correct
55 Correct 424 ms 47944 KB Output is correct
56 Correct 318 ms 39548 KB Output is correct
57 Correct 426 ms 52748 KB Output is correct
58 Correct 321 ms 42504 KB Output is correct
59 Correct 323 ms 38256 KB Output is correct
60 Correct 433 ms 51516 KB Output is correct
61 Correct 166 ms 32768 KB Output is correct
62 Correct 173 ms 32768 KB Output is correct
63 Correct 511 ms 56844 KB Output is correct
64 Correct 544 ms 56624 KB Output is correct
65 Correct 374 ms 50176 KB Output is correct
66 Correct 409 ms 50836 KB Output is correct
67 Correct 401 ms 50120 KB Output is correct
68 Correct 383 ms 51028 KB Output is correct
69 Correct 391 ms 51044 KB Output is correct
70 Correct 382 ms 50764 KB Output is correct
71 Correct 387 ms 51020 KB Output is correct
72 Correct 384 ms 50736 KB Output is correct
73 Correct 390 ms 51256 KB Output is correct
74 Correct 381 ms 50636 KB Output is correct
75 Correct 407 ms 51532 KB Output is correct
76 Correct 406 ms 51132 KB Output is correct
77 Correct 401 ms 51196 KB Output is correct
78 Correct 390 ms 51272 KB Output is correct
79 Correct 350 ms 48224 KB Output is correct
80 Correct 366 ms 53080 KB Output is correct
81 Correct 371 ms 48768 KB Output is correct
82 Correct 75 ms 12596 KB Output is correct
83 Correct 79 ms 11572 KB Output is correct
84 Correct 35 ms 6776 KB Output is correct
85 Correct 40 ms 7628 KB Output is correct
86 Correct 79 ms 13172 KB Output is correct
87 Correct 82 ms 13228 KB Output is correct
88 Correct 96 ms 13404 KB Output is correct
89 Correct 83 ms 13416 KB Output is correct
90 Correct 83 ms 13496 KB Output is correct
91 Correct 85 ms 13432 KB Output is correct
92 Correct 60 ms 13916 KB Output is correct
93 Correct 80 ms 13924 KB Output is correct
94 Correct 58 ms 9404 KB Output is correct
95 Correct 78 ms 12128 KB Output is correct
96 Correct 83 ms 13140 KB Output is correct
97 Correct 83 ms 13280 KB Output is correct
98 Correct 69 ms 10476 KB Output is correct
99 Correct 94 ms 12812 KB Output is correct
100 Correct 95 ms 14032 KB Output is correct
101 Correct 103 ms 14184 KB Output is correct
102 Correct 107 ms 15188 KB Output is correct
103 Correct 76 ms 11964 KB Output is correct
104 Correct 92 ms 13812 KB Output is correct
105 Correct 112 ms 15116 KB Output is correct
106 Correct 47 ms 8872 KB Output is correct
107 Correct 51 ms 8444 KB Output is correct
108 Correct 80 ms 15112 KB Output is correct
109 Correct 71 ms 11676 KB Output is correct
110 Correct 102 ms 15112 KB Output is correct
111 Correct 102 ms 15108 KB Output is correct
112 Correct 79 ms 12364 KB Output is correct
113 Correct 90 ms 13920 KB Output is correct
114 Correct 83 ms 12348 KB Output is correct
115 Correct 94 ms 13664 KB Output is correct
116 Correct 62 ms 9912 KB Output is correct
117 Correct 87 ms 13660 KB Output is correct
118 Correct 70 ms 10640 KB Output is correct
119 Correct 71 ms 10228 KB Output is correct
120 Correct 89 ms 13664 KB Output is correct
121 Correct 98 ms 13676 KB Output is correct
122 Correct 85 ms 13244 KB Output is correct
123 Correct 88 ms 13584 KB Output is correct
124 Correct 88 ms 13588 KB Output is correct
125 Correct 73 ms 11148 KB Output is correct
126 Correct 61 ms 14180 KB Output is correct
127 Correct 71 ms 11924 KB Output is correct
128 Correct 88 ms 14124 KB Output is correct
129 Correct 77 ms 13148 KB Output is correct
130 Correct 431 ms 52488 KB Output is correct
131 Correct 284 ms 39228 KB Output is correct
132 Correct 428 ms 53204 KB Output is correct
133 Correct 428 ms 49804 KB Output is correct
134 Correct 388 ms 46256 KB Output is correct
135 Correct 470 ms 52016 KB Output is correct
136 Correct 477 ms 57360 KB Output is correct
137 Correct 479 ms 57748 KB Output is correct
138 Correct 380 ms 50692 KB Output is correct
139 Correct 397 ms 51452 KB Output is correct
140 Correct 376 ms 50512 KB Output is correct
141 Correct 386 ms 51528 KB Output is correct
142 Correct 398 ms 51296 KB Output is correct
143 Correct 393 ms 51312 KB Output is correct
144 Correct 398 ms 51128 KB Output is correct
145 Correct 424 ms 51704 KB Output is correct
146 Correct 391 ms 51276 KB Output is correct
147 Correct 385 ms 51444 KB Output is correct
148 Correct 408 ms 51588 KB Output is correct
149 Correct 386 ms 51720 KB Output is correct
150 Correct 275 ms 53828 KB Output is correct
151 Correct 354 ms 53572 KB Output is correct
152 Correct 372 ms 53624 KB Output is correct
153 Correct 339 ms 49628 KB Output is correct