답안 #641364

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
641364 2022-09-16T14:37:06 Z skittles1412 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
888 ms 64060 KB
#include "bits/extc++.h"

using namespace std;

template <typename T>
void dbgh(const T& t) {
    cerr << t << endl;
}

template <typename T, typename... U>
void dbgh(const T& t, const U&... u) {
    cerr << t << " | ";
    dbgh(u...);
}

#ifdef DEBUG
#define dbg(...)                                           \
    cerr << "L" << __LINE__ << " [" << #__VA_ARGS__ << "]" \
         << ": ";                                          \
    dbgh(__VA_ARGS__)
#else
#define cerr   \
    if (false) \
    cerr
#define dbg(...)
#endif

#define endl "\n"
#define long int64_t
#define sz(x) int(std::size(x))

struct Node {
    long mn, sm;

    Node operator+(const Node& n) const {
        return {min(mn, sm + n.mn), sm + n.sm};
    }

    long solve() const {
        return sm - mn;
    }

    static Node from(long x) {
        return {min(long(0), x), x};
    }

    static Node def() {
        return Node::from(0);
    }
};

struct ST {
    int n;
    vector<Node> v;

    ST(int n) : n(n), v(4 * n, Node::def()) {}

    void update(int o, int l, int r, int ind, const Node& x) {
        if (l == r) {
            v[o] = x;
            return;
        }
        int mid = (l + r) / 2, lc = o * 2, rc = lc + 1;
        if (ind <= mid) {
            update(lc, l, mid, ind, x);
        } else {
            update(rc, mid + 1, r, ind, x);
        }
        v[o] = v[lc] + v[rc];
    }

    void update(int ind, const Node& x) {
        update(1, 0, n - 1, ind, x);
    }

    Node query(int o, int l, int r, int ql, int qr) {
        if (ql <= l && r <= qr) {
            return v[o];
        }
        int mid = (l + r) / 2, lc = o * 2, rc = lc + 1;
        if (ql <= mid) {
            if (mid < qr) {
                return query(lc, l, mid, ql, qr) +
                       query(rc, mid + 1, r, ql, qr);
            }
            return query(lc, l, mid, ql, qr);
        }
        return query(rc, mid + 1, r, ql, qr);
    }

    Node query(int l, int r) {
        return query(1, 0, n - 1, l, r);
    }
};

void solve() {
    int n, m, q;
    cin >> n >> m >> q;
    long queries[q][5];
    for (auto& [t, l, r, k, c] : queries) {
        cin >> t;
        if (t == 1) {
            cin >> l >> r >> c >> k;
        } else if (t == 2) {
            cin >> l >> r >> k;
        } else {
            cin >> l >> r;
        }
        l--;
        r--;
    }
    vector<pair<int, int>> evts[n + 1];
    for (int i = 0; i < q; i++) {
        auto& [t, l, r, _k, _c] = queries[i];
        if (t == 1 || t == 2) {
            evts[l].emplace_back(t * 2 + 0, i);
            evts[r + 1].emplace_back(t * 2 + 1, i);
        } else if (t == 3) {
            evts[l].emplace_back(-1, i);
        }
    }
    ST st(q), st2(q);
    long ans[q];
    for (int i = 0; i < n; i++) {
        dbg(i);
        for (auto& [t, j] : evts[i]) {
            if (t == -1) {
                long cleft = st.query(0, j).solve(), ind = queries[j][2],
                     cind = cleft - ind - 1;
                if (ind >= cleft) {
                    ans[j] = 0;
                    continue;
                }
                dbg(cleft, cind);
                int l = 0, r = j;
                while (l < r) {
                    int mid = (l + r + 1) / 2;
                    if (st2.query(mid, j).solve() > cind) {
                        l = mid;
                    } else {
                        r = mid - 1;
                    }
                }
                dbg(l, st.query(l, j).solve());
                ans[j] = queries[l][4];
            } else if (t & 1) {
                dbg("DEF", j);
                st.update(j, Node::def());
                st2.update(j, Node::def());
            } else if (t == 2) {
                dbg("UPD", j, queries[j][3]);
                st.update(j, Node::from(queries[j][3]));
                st2.update(j, Node::from(queries[j][3]));
            } else {
                dbg("UPD", j, -queries[j][3]);
                st.update(j, Node::from(-queries[j][3]));
            }
        }
    }
    for (int i = 0; i < q; i++) {
        if (queries[i][0] == 3) {
            cout << ans[i] << endl;
        }
    }
}

int main() {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
    cin.exceptions(ios::failbit);
    solve();
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 724 KB Output is correct
3 Correct 2 ms 656 KB Output is correct
4 Correct 3 ms 712 KB Output is correct
5 Correct 2 ms 596 KB Output is correct
6 Correct 2 ms 592 KB Output is correct
7 Correct 2 ms 680 KB Output is correct
8 Correct 3 ms 720 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 3 ms 724 KB Output is correct
11 Correct 3 ms 724 KB Output is correct
12 Correct 3 ms 724 KB Output is correct
13 Correct 3 ms 712 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 2 ms 712 KB Output is correct
17 Correct 2 ms 588 KB Output is correct
18 Correct 3 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 2 ms 724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 724 KB Output is correct
3 Correct 2 ms 656 KB Output is correct
4 Correct 3 ms 712 KB Output is correct
5 Correct 2 ms 596 KB Output is correct
6 Correct 2 ms 592 KB Output is correct
7 Correct 2 ms 680 KB Output is correct
8 Correct 3 ms 720 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 3 ms 724 KB Output is correct
11 Correct 3 ms 724 KB Output is correct
12 Correct 3 ms 724 KB Output is correct
13 Correct 3 ms 712 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 2 ms 712 KB Output is correct
17 Correct 2 ms 588 KB Output is correct
18 Correct 3 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 2 ms 724 KB Output is correct
21 Correct 4 ms 716 KB Output is correct
22 Correct 4 ms 692 KB Output is correct
23 Correct 4 ms 668 KB Output is correct
24 Correct 3 ms 724 KB Output is correct
25 Correct 2 ms 616 KB Output is correct
26 Correct 2 ms 596 KB Output is correct
27 Correct 4 ms 724 KB Output is correct
28 Correct 5 ms 816 KB Output is correct
29 Correct 4 ms 724 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 2 ms 724 KB Output is correct
32 Correct 3 ms 724 KB Output is correct
33 Correct 2 ms 716 KB Output is correct
34 Correct 2 ms 716 KB Output is correct
35 Correct 2 ms 724 KB Output is correct
36 Correct 2 ms 724 KB Output is correct
37 Correct 2 ms 596 KB Output is correct
38 Correct 3 ms 716 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 72 ms 16148 KB Output is correct
2 Correct 82 ms 16324 KB Output is correct
3 Correct 69 ms 16184 KB Output is correct
4 Correct 81 ms 16180 KB Output is correct
5 Correct 81 ms 16324 KB Output is correct
6 Correct 71 ms 16260 KB Output is correct
7 Correct 70 ms 12520 KB Output is correct
8 Correct 67 ms 12732 KB Output is correct
9 Correct 104 ms 16316 KB Output is correct
10 Correct 98 ms 16264 KB Output is correct
11 Correct 70 ms 16412 KB Output is correct
12 Correct 69 ms 16324 KB Output is correct
13 Correct 72 ms 14064 KB Output is correct
14 Correct 97 ms 16116 KB Output is correct
15 Correct 103 ms 15652 KB Output is correct
16 Correct 80 ms 16424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 600 ms 57524 KB Output is correct
2 Correct 435 ms 46476 KB Output is correct
3 Correct 636 ms 62800 KB Output is correct
4 Correct 438 ms 47768 KB Output is correct
5 Correct 454 ms 46860 KB Output is correct
6 Correct 600 ms 63252 KB Output is correct
7 Correct 286 ms 51128 KB Output is correct
8 Correct 295 ms 50992 KB Output is correct
9 Correct 760 ms 62472 KB Output is correct
10 Correct 780 ms 62412 KB Output is correct
11 Correct 738 ms 63124 KB Output is correct
12 Correct 704 ms 63112 KB Output is correct
13 Correct 612 ms 63196 KB Output is correct
14 Correct 662 ms 63064 KB Output is correct
15 Correct 729 ms 62988 KB Output is correct
16 Correct 707 ms 62992 KB Output is correct
17 Correct 608 ms 62996 KB Output is correct
18 Correct 624 ms 63080 KB Output is correct
19 Correct 677 ms 63204 KB Output is correct
20 Correct 674 ms 63040 KB Output is correct
21 Correct 737 ms 63008 KB Output is correct
22 Correct 651 ms 63000 KB Output is correct
23 Correct 733 ms 63012 KB Output is correct
24 Correct 689 ms 62988 KB Output is correct
25 Correct 629 ms 59548 KB Output is correct
26 Correct 657 ms 61940 KB Output is correct
27 Correct 473 ms 62776 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 724 KB Output is correct
3 Correct 2 ms 656 KB Output is correct
4 Correct 3 ms 712 KB Output is correct
5 Correct 2 ms 596 KB Output is correct
6 Correct 2 ms 592 KB Output is correct
7 Correct 2 ms 680 KB Output is correct
8 Correct 3 ms 720 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 3 ms 724 KB Output is correct
11 Correct 3 ms 724 KB Output is correct
12 Correct 3 ms 724 KB Output is correct
13 Correct 3 ms 712 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 2 ms 712 KB Output is correct
17 Correct 2 ms 588 KB Output is correct
18 Correct 3 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 2 ms 724 KB Output is correct
21 Correct 72 ms 16148 KB Output is correct
22 Correct 82 ms 16324 KB Output is correct
23 Correct 69 ms 16184 KB Output is correct
24 Correct 81 ms 16180 KB Output is correct
25 Correct 81 ms 16324 KB Output is correct
26 Correct 71 ms 16260 KB Output is correct
27 Correct 70 ms 12520 KB Output is correct
28 Correct 67 ms 12732 KB Output is correct
29 Correct 104 ms 16316 KB Output is correct
30 Correct 98 ms 16264 KB Output is correct
31 Correct 70 ms 16412 KB Output is correct
32 Correct 69 ms 16324 KB Output is correct
33 Correct 72 ms 14064 KB Output is correct
34 Correct 97 ms 16116 KB Output is correct
35 Correct 103 ms 15652 KB Output is correct
36 Correct 80 ms 16424 KB Output is correct
37 Correct 115 ms 14436 KB Output is correct
38 Correct 91 ms 13112 KB Output is correct
39 Correct 68 ms 10932 KB Output is correct
40 Correct 68 ms 12280 KB Output is correct
41 Correct 122 ms 16152 KB Output is correct
42 Correct 127 ms 16120 KB Output is correct
43 Correct 140 ms 16104 KB Output is correct
44 Correct 141 ms 16132 KB Output is correct
45 Correct 119 ms 16136 KB Output is correct
46 Correct 169 ms 16192 KB Output is correct
47 Correct 101 ms 15188 KB Output is correct
48 Correct 117 ms 15780 KB Output is correct
49 Correct 82 ms 11484 KB Output is correct
50 Correct 120 ms 14000 KB Output is correct
51 Correct 111 ms 16200 KB Output is correct
52 Correct 117 ms 16200 KB Output is correct
53 Correct 91 ms 13092 KB Output is correct
54 Correct 146 ms 16420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 179 ms 14904 KB Output is correct
2 Correct 157 ms 16112 KB Output is correct
3 Correct 187 ms 16540 KB Output is correct
4 Correct 124 ms 12200 KB Output is correct
5 Correct 149 ms 14584 KB Output is correct
6 Correct 193 ms 16596 KB Output is correct
7 Correct 97 ms 12360 KB Output is correct
8 Correct 81 ms 11488 KB Output is correct
9 Correct 131 ms 16028 KB Output is correct
10 Correct 87 ms 11780 KB Output is correct
11 Correct 157 ms 16276 KB Output is correct
12 Correct 178 ms 16284 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 724 KB Output is correct
3 Correct 2 ms 656 KB Output is correct
4 Correct 3 ms 712 KB Output is correct
5 Correct 2 ms 596 KB Output is correct
6 Correct 2 ms 592 KB Output is correct
7 Correct 2 ms 680 KB Output is correct
8 Correct 3 ms 720 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 3 ms 724 KB Output is correct
11 Correct 3 ms 724 KB Output is correct
12 Correct 3 ms 724 KB Output is correct
13 Correct 3 ms 712 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 2 ms 712 KB Output is correct
17 Correct 2 ms 588 KB Output is correct
18 Correct 3 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 2 ms 724 KB Output is correct
21 Correct 4 ms 716 KB Output is correct
22 Correct 4 ms 692 KB Output is correct
23 Correct 4 ms 668 KB Output is correct
24 Correct 3 ms 724 KB Output is correct
25 Correct 2 ms 616 KB Output is correct
26 Correct 2 ms 596 KB Output is correct
27 Correct 4 ms 724 KB Output is correct
28 Correct 5 ms 816 KB Output is correct
29 Correct 4 ms 724 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 2 ms 724 KB Output is correct
32 Correct 3 ms 724 KB Output is correct
33 Correct 2 ms 716 KB Output is correct
34 Correct 2 ms 716 KB Output is correct
35 Correct 2 ms 724 KB Output is correct
36 Correct 2 ms 724 KB Output is correct
37 Correct 2 ms 596 KB Output is correct
38 Correct 3 ms 716 KB Output is correct
39 Correct 72 ms 16148 KB Output is correct
40 Correct 82 ms 16324 KB Output is correct
41 Correct 69 ms 16184 KB Output is correct
42 Correct 81 ms 16180 KB Output is correct
43 Correct 81 ms 16324 KB Output is correct
44 Correct 71 ms 16260 KB Output is correct
45 Correct 70 ms 12520 KB Output is correct
46 Correct 67 ms 12732 KB Output is correct
47 Correct 104 ms 16316 KB Output is correct
48 Correct 98 ms 16264 KB Output is correct
49 Correct 70 ms 16412 KB Output is correct
50 Correct 69 ms 16324 KB Output is correct
51 Correct 72 ms 14064 KB Output is correct
52 Correct 97 ms 16116 KB Output is correct
53 Correct 103 ms 15652 KB Output is correct
54 Correct 80 ms 16424 KB Output is correct
55 Correct 115 ms 14436 KB Output is correct
56 Correct 91 ms 13112 KB Output is correct
57 Correct 68 ms 10932 KB Output is correct
58 Correct 68 ms 12280 KB Output is correct
59 Correct 122 ms 16152 KB Output is correct
60 Correct 127 ms 16120 KB Output is correct
61 Correct 140 ms 16104 KB Output is correct
62 Correct 141 ms 16132 KB Output is correct
63 Correct 119 ms 16136 KB Output is correct
64 Correct 169 ms 16192 KB Output is correct
65 Correct 101 ms 15188 KB Output is correct
66 Correct 117 ms 15780 KB Output is correct
67 Correct 82 ms 11484 KB Output is correct
68 Correct 120 ms 14000 KB Output is correct
69 Correct 111 ms 16200 KB Output is correct
70 Correct 117 ms 16200 KB Output is correct
71 Correct 91 ms 13092 KB Output is correct
72 Correct 146 ms 16420 KB Output is correct
73 Correct 179 ms 14904 KB Output is correct
74 Correct 157 ms 16112 KB Output is correct
75 Correct 187 ms 16540 KB Output is correct
76 Correct 124 ms 12200 KB Output is correct
77 Correct 149 ms 14584 KB Output is correct
78 Correct 193 ms 16596 KB Output is correct
79 Correct 97 ms 12360 KB Output is correct
80 Correct 81 ms 11488 KB Output is correct
81 Correct 131 ms 16028 KB Output is correct
82 Correct 87 ms 11780 KB Output is correct
83 Correct 157 ms 16276 KB Output is correct
84 Correct 178 ms 16284 KB Output is correct
85 Correct 131 ms 14860 KB Output is correct
86 Correct 179 ms 16564 KB Output is correct
87 Correct 116 ms 14776 KB Output is correct
88 Correct 143 ms 16724 KB Output is correct
89 Correct 111 ms 11596 KB Output is correct
90 Correct 136 ms 16656 KB Output is correct
91 Correct 104 ms 13492 KB Output is correct
92 Correct 121 ms 12900 KB Output is correct
93 Correct 159 ms 16628 KB Output is correct
94 Correct 121 ms 16664 KB Output is correct
95 Correct 124 ms 16152 KB Output is correct
96 Correct 142 ms 16652 KB Output is correct
97 Correct 141 ms 16632 KB Output is correct
98 Correct 146 ms 14004 KB Output is correct
99 Correct 89 ms 15708 KB Output is correct
100 Correct 92 ms 13660 KB Output is correct
101 Correct 111 ms 16292 KB Output is correct
102 Correct 111 ms 16676 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 724 KB Output is correct
3 Correct 2 ms 656 KB Output is correct
4 Correct 3 ms 712 KB Output is correct
5 Correct 2 ms 596 KB Output is correct
6 Correct 2 ms 592 KB Output is correct
7 Correct 2 ms 680 KB Output is correct
8 Correct 3 ms 720 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 3 ms 724 KB Output is correct
11 Correct 3 ms 724 KB Output is correct
12 Correct 3 ms 724 KB Output is correct
13 Correct 3 ms 712 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 2 ms 712 KB Output is correct
17 Correct 2 ms 588 KB Output is correct
18 Correct 3 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 2 ms 724 KB Output is correct
21 Correct 4 ms 716 KB Output is correct
22 Correct 4 ms 692 KB Output is correct
23 Correct 4 ms 668 KB Output is correct
24 Correct 3 ms 724 KB Output is correct
25 Correct 2 ms 616 KB Output is correct
26 Correct 2 ms 596 KB Output is correct
27 Correct 4 ms 724 KB Output is correct
28 Correct 5 ms 816 KB Output is correct
29 Correct 4 ms 724 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 2 ms 724 KB Output is correct
32 Correct 3 ms 724 KB Output is correct
33 Correct 2 ms 716 KB Output is correct
34 Correct 2 ms 716 KB Output is correct
35 Correct 2 ms 724 KB Output is correct
36 Correct 2 ms 724 KB Output is correct
37 Correct 2 ms 596 KB Output is correct
38 Correct 3 ms 716 KB Output is correct
39 Correct 72 ms 16148 KB Output is correct
40 Correct 82 ms 16324 KB Output is correct
41 Correct 69 ms 16184 KB Output is correct
42 Correct 81 ms 16180 KB Output is correct
43 Correct 81 ms 16324 KB Output is correct
44 Correct 71 ms 16260 KB Output is correct
45 Correct 70 ms 12520 KB Output is correct
46 Correct 67 ms 12732 KB Output is correct
47 Correct 104 ms 16316 KB Output is correct
48 Correct 98 ms 16264 KB Output is correct
49 Correct 70 ms 16412 KB Output is correct
50 Correct 69 ms 16324 KB Output is correct
51 Correct 72 ms 14064 KB Output is correct
52 Correct 97 ms 16116 KB Output is correct
53 Correct 103 ms 15652 KB Output is correct
54 Correct 80 ms 16424 KB Output is correct
55 Correct 600 ms 57524 KB Output is correct
56 Correct 435 ms 46476 KB Output is correct
57 Correct 636 ms 62800 KB Output is correct
58 Correct 438 ms 47768 KB Output is correct
59 Correct 454 ms 46860 KB Output is correct
60 Correct 600 ms 63252 KB Output is correct
61 Correct 286 ms 51128 KB Output is correct
62 Correct 295 ms 50992 KB Output is correct
63 Correct 760 ms 62472 KB Output is correct
64 Correct 780 ms 62412 KB Output is correct
65 Correct 738 ms 63124 KB Output is correct
66 Correct 704 ms 63112 KB Output is correct
67 Correct 612 ms 63196 KB Output is correct
68 Correct 662 ms 63064 KB Output is correct
69 Correct 729 ms 62988 KB Output is correct
70 Correct 707 ms 62992 KB Output is correct
71 Correct 608 ms 62996 KB Output is correct
72 Correct 624 ms 63080 KB Output is correct
73 Correct 677 ms 63204 KB Output is correct
74 Correct 674 ms 63040 KB Output is correct
75 Correct 737 ms 63008 KB Output is correct
76 Correct 651 ms 63000 KB Output is correct
77 Correct 733 ms 63012 KB Output is correct
78 Correct 689 ms 62988 KB Output is correct
79 Correct 629 ms 59548 KB Output is correct
80 Correct 657 ms 61940 KB Output is correct
81 Correct 473 ms 62776 KB Output is correct
82 Correct 115 ms 14436 KB Output is correct
83 Correct 91 ms 13112 KB Output is correct
84 Correct 68 ms 10932 KB Output is correct
85 Correct 68 ms 12280 KB Output is correct
86 Correct 122 ms 16152 KB Output is correct
87 Correct 127 ms 16120 KB Output is correct
88 Correct 140 ms 16104 KB Output is correct
89 Correct 141 ms 16132 KB Output is correct
90 Correct 119 ms 16136 KB Output is correct
91 Correct 169 ms 16192 KB Output is correct
92 Correct 101 ms 15188 KB Output is correct
93 Correct 117 ms 15780 KB Output is correct
94 Correct 82 ms 11484 KB Output is correct
95 Correct 120 ms 14000 KB Output is correct
96 Correct 111 ms 16200 KB Output is correct
97 Correct 117 ms 16200 KB Output is correct
98 Correct 91 ms 13092 KB Output is correct
99 Correct 146 ms 16420 KB Output is correct
100 Correct 179 ms 14904 KB Output is correct
101 Correct 157 ms 16112 KB Output is correct
102 Correct 187 ms 16540 KB Output is correct
103 Correct 124 ms 12200 KB Output is correct
104 Correct 149 ms 14584 KB Output is correct
105 Correct 193 ms 16596 KB Output is correct
106 Correct 97 ms 12360 KB Output is correct
107 Correct 81 ms 11488 KB Output is correct
108 Correct 131 ms 16028 KB Output is correct
109 Correct 87 ms 11780 KB Output is correct
110 Correct 157 ms 16276 KB Output is correct
111 Correct 178 ms 16284 KB Output is correct
112 Correct 131 ms 14860 KB Output is correct
113 Correct 179 ms 16564 KB Output is correct
114 Correct 116 ms 14776 KB Output is correct
115 Correct 143 ms 16724 KB Output is correct
116 Correct 111 ms 11596 KB Output is correct
117 Correct 136 ms 16656 KB Output is correct
118 Correct 104 ms 13492 KB Output is correct
119 Correct 121 ms 12900 KB Output is correct
120 Correct 159 ms 16628 KB Output is correct
121 Correct 121 ms 16664 KB Output is correct
122 Correct 124 ms 16152 KB Output is correct
123 Correct 142 ms 16652 KB Output is correct
124 Correct 141 ms 16632 KB Output is correct
125 Correct 146 ms 14004 KB Output is correct
126 Correct 89 ms 15708 KB Output is correct
127 Correct 92 ms 13660 KB Output is correct
128 Correct 111 ms 16292 KB Output is correct
129 Correct 111 ms 16676 KB Output is correct
130 Correct 683 ms 63260 KB Output is correct
131 Correct 434 ms 46352 KB Output is correct
132 Correct 888 ms 63432 KB Output is correct
133 Correct 705 ms 61212 KB Output is correct
134 Correct 588 ms 55284 KB Output is correct
135 Correct 720 ms 64060 KB Output is correct
136 Correct 834 ms 63352 KB Output is correct
137 Correct 874 ms 63360 KB Output is correct
138 Correct 620 ms 63804 KB Output is correct
139 Correct 598 ms 63844 KB Output is correct
140 Correct 664 ms 63712 KB Output is correct
141 Correct 598 ms 63712 KB Output is correct
142 Correct 690 ms 63684 KB Output is correct
143 Correct 695 ms 63696 KB Output is correct
144 Correct 595 ms 63832 KB Output is correct
145 Correct 601 ms 63736 KB Output is correct
146 Correct 585 ms 63704 KB Output is correct
147 Correct 645 ms 63704 KB Output is correct
148 Correct 609 ms 63708 KB Output is correct
149 Correct 613 ms 63684 KB Output is correct
150 Correct 412 ms 60104 KB Output is correct
151 Correct 560 ms 62576 KB Output is correct
152 Correct 568 ms 62560 KB Output is correct
153 Correct 450 ms 63644 KB Output is correct