답안 #1077212

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1077212 2024-08-27T03:06:08 Z Double_Slash 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
528 ms 53196 KB
#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pint = pair<int, int>;
using pll = pair<ll, ll>;

struct Val {
    ll sum = 0, pos = 0, pmin = 0, pmini;

    void operator=(ll x) {
        sum = x;
        pmin = min(0ll, x);
        pos = max(0ll, x);
    }

    Val operator+(const Val &o) const {
        Val ret{sum + o.sum, pos + o.pos};
        tie(ret.pmin, ret.pmini) = min(pll{pmin, pmini}, pll{sum + o.pmin, o.pmini});
        return ret;
    }
};

struct St {
    int n;
    vector<Val> st;

    St(int n) : n(n), st(n << 1) {
        for (int i = 0; i < n; ++i) st[i + n].pmini = i;
        for (int i = n; i--;) st[i] = st[i << 1] + st[i << 1 | 1];
    }

    void update(int i, ll v) {
        for (st[i += n] = v; i >>= 1;) st[i] = st[i << 1] + st[i << 1 | 1];
    }

    Val query(int l, int r) {
        Val lagg{0, 0, l}, ragg{0, 0, r - 1};
        for (l += n, r += n; l < r; l >>= 1, r >>= 1) {
            if (l & 1) lagg = lagg + st[l++];
            if (r & 1) ragg = st[--r] + ragg;
        }
        return lagg + ragg;
    }
};

int n, m, q, c[250000];
vector<pint> add[250001];
vector<int> rem[250001];
vector<pair<int, ll>> services[250001];

int main() {
    cin >> n >> m >> q;
    for (int i = 0; i < q; ++i) {
        int t;
        cin >> t;
        if (t == 1) {
            int l, r, k;
            cin >> l >> r >> c[i] >> k;
            add[l].emplace_back(i, k);
            rem[r].emplace_back(i);
        } else if (t == 2) {
            int l, r, k;
            cin >> l >> r >> k;
            add[l].emplace_back(i, -k);
            rem[r].emplace_back(i);
        } else {
            ll a, b;
            cin >> a >> b;
            services[a].emplace_back(i, b);
        }
    }
    St st{q};
    vector<pint> ans;
    for (int i = 1; i <= n; ++i) {
        for (auto [j, k]: add[i]) {
            st.update(j, k);
        }
        for (auto [j, b]: services[i]) {
            int l = 0;
            auto v = st.query(l, j);
            if (v.pmin < 0) v = st.query(l = v.pmini + 1, j);
            if (v.sum < b) ans.emplace_back(j, 0);
            else {
                b -= v.sum - v.pos;
                int r = l;
                for (int k = 18; k--;) {
                    if (r + (1 << k) >= j) continue;
                    auto v2 = st.query(l, r + (1 << k));
                    if (v2.pos < b) r += 1 << k;
                }
                ans.emplace_back(j, c[r]);
            }
        }
        for (int j: rem[i]) {
            st.update(j, 0);
        }
    }
    sort(ans.begin(), ans.end());
    for (auto [i, a]: ans) cout << a << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 18012 KB Output is correct
2 Correct 10 ms 18268 KB Output is correct
3 Correct 9 ms 18012 KB Output is correct
4 Correct 10 ms 18084 KB Output is correct
5 Correct 10 ms 18012 KB Output is correct
6 Correct 10 ms 18012 KB Output is correct
7 Correct 10 ms 18268 KB Output is correct
8 Correct 11 ms 18264 KB Output is correct
9 Correct 10 ms 18268 KB Output is correct
10 Correct 10 ms 18268 KB Output is correct
11 Correct 10 ms 18268 KB Output is correct
12 Correct 10 ms 18264 KB Output is correct
13 Correct 10 ms 18196 KB Output is correct
14 Correct 10 ms 18012 KB Output is correct
15 Correct 10 ms 18196 KB Output is correct
16 Correct 12 ms 18268 KB Output is correct
17 Correct 10 ms 18012 KB Output is correct
18 Correct 10 ms 18268 KB Output is correct
19 Correct 9 ms 18044 KB Output is correct
20 Correct 10 ms 18268 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 18012 KB Output is correct
2 Correct 10 ms 18268 KB Output is correct
3 Correct 9 ms 18012 KB Output is correct
4 Correct 10 ms 18084 KB Output is correct
5 Correct 10 ms 18012 KB Output is correct
6 Correct 10 ms 18012 KB Output is correct
7 Correct 10 ms 18268 KB Output is correct
8 Correct 11 ms 18264 KB Output is correct
9 Correct 10 ms 18268 KB Output is correct
10 Correct 10 ms 18268 KB Output is correct
11 Correct 10 ms 18268 KB Output is correct
12 Correct 10 ms 18264 KB Output is correct
13 Correct 10 ms 18196 KB Output is correct
14 Correct 10 ms 18012 KB Output is correct
15 Correct 10 ms 18196 KB Output is correct
16 Correct 12 ms 18268 KB Output is correct
17 Correct 10 ms 18012 KB Output is correct
18 Correct 10 ms 18268 KB Output is correct
19 Correct 9 ms 18044 KB Output is correct
20 Correct 10 ms 18268 KB Output is correct
21 Correct 11 ms 18264 KB Output is correct
22 Correct 11 ms 18268 KB Output is correct
23 Correct 10 ms 18064 KB Output is correct
24 Correct 11 ms 18264 KB Output is correct
25 Correct 9 ms 18012 KB Output is correct
26 Correct 10 ms 18012 KB Output is correct
27 Correct 10 ms 18268 KB Output is correct
28 Correct 10 ms 18268 KB Output is correct
29 Correct 10 ms 18272 KB Output is correct
30 Correct 11 ms 18268 KB Output is correct
31 Correct 11 ms 18268 KB Output is correct
32 Correct 10 ms 18300 KB Output is correct
33 Correct 10 ms 18064 KB Output is correct
34 Correct 10 ms 18268 KB Output is correct
35 Correct 10 ms 18020 KB Output is correct
36 Correct 11 ms 18268 KB Output is correct
37 Correct 9 ms 18012 KB Output is correct
38 Correct 11 ms 18268 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 95 ms 26400 KB Output is correct
2 Correct 97 ms 26452 KB Output is correct
3 Correct 90 ms 26448 KB Output is correct
4 Correct 88 ms 26452 KB Output is correct
5 Correct 92 ms 26448 KB Output is correct
6 Correct 85 ms 26320 KB Output is correct
7 Correct 79 ms 23984 KB Output is correct
8 Correct 69 ms 24072 KB Output is correct
9 Correct 87 ms 26340 KB Output is correct
10 Correct 84 ms 26416 KB Output is correct
11 Correct 86 ms 26452 KB Output is correct
12 Correct 101 ms 26372 KB Output is correct
13 Correct 82 ms 25428 KB Output is correct
14 Correct 85 ms 26324 KB Output is correct
15 Correct 79 ms 26084 KB Output is correct
16 Correct 82 ms 26448 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 462 ms 48592 KB Output is correct
2 Correct 381 ms 42440 KB Output is correct
3 Correct 497 ms 51364 KB Output is correct
4 Correct 318 ms 42248 KB Output is correct
5 Correct 295 ms 42220 KB Output is correct
6 Correct 459 ms 50896 KB Output is correct
7 Correct 285 ms 44076 KB Output is correct
8 Correct 304 ms 44148 KB Output is correct
9 Correct 492 ms 50880 KB Output is correct
10 Correct 528 ms 51112 KB Output is correct
11 Correct 421 ms 49880 KB Output is correct
12 Correct 450 ms 50380 KB Output is correct
13 Correct 440 ms 49996 KB Output is correct
14 Correct 423 ms 50388 KB Output is correct
15 Correct 452 ms 50380 KB Output is correct
16 Correct 453 ms 50388 KB Output is correct
17 Correct 459 ms 50252 KB Output is correct
18 Correct 455 ms 50280 KB Output is correct
19 Correct 435 ms 50388 KB Output is correct
20 Correct 491 ms 50384 KB Output is correct
21 Correct 431 ms 50384 KB Output is correct
22 Correct 442 ms 50380 KB Output is correct
23 Correct 459 ms 50380 KB Output is correct
24 Correct 442 ms 50380 KB Output is correct
25 Correct 416 ms 46316 KB Output is correct
26 Correct 416 ms 47048 KB Output is correct
27 Correct 359 ms 52176 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 18012 KB Output is correct
2 Correct 10 ms 18268 KB Output is correct
3 Correct 9 ms 18012 KB Output is correct
4 Correct 10 ms 18084 KB Output is correct
5 Correct 10 ms 18012 KB Output is correct
6 Correct 10 ms 18012 KB Output is correct
7 Correct 10 ms 18268 KB Output is correct
8 Correct 11 ms 18264 KB Output is correct
9 Correct 10 ms 18268 KB Output is correct
10 Correct 10 ms 18268 KB Output is correct
11 Correct 10 ms 18268 KB Output is correct
12 Correct 10 ms 18264 KB Output is correct
13 Correct 10 ms 18196 KB Output is correct
14 Correct 10 ms 18012 KB Output is correct
15 Correct 10 ms 18196 KB Output is correct
16 Correct 12 ms 18268 KB Output is correct
17 Correct 10 ms 18012 KB Output is correct
18 Correct 10 ms 18268 KB Output is correct
19 Correct 9 ms 18044 KB Output is correct
20 Correct 10 ms 18268 KB Output is correct
21 Correct 95 ms 26400 KB Output is correct
22 Correct 97 ms 26452 KB Output is correct
23 Correct 90 ms 26448 KB Output is correct
24 Correct 88 ms 26452 KB Output is correct
25 Correct 92 ms 26448 KB Output is correct
26 Correct 85 ms 26320 KB Output is correct
27 Correct 79 ms 23984 KB Output is correct
28 Correct 69 ms 24072 KB Output is correct
29 Correct 87 ms 26340 KB Output is correct
30 Correct 84 ms 26416 KB Output is correct
31 Correct 86 ms 26452 KB Output is correct
32 Correct 101 ms 26372 KB Output is correct
33 Correct 82 ms 25428 KB Output is correct
34 Correct 85 ms 26324 KB Output is correct
35 Correct 79 ms 26084 KB Output is correct
36 Correct 82 ms 26448 KB Output is correct
37 Correct 88 ms 25424 KB Output is correct
38 Correct 72 ms 24400 KB Output is correct
39 Correct 54 ms 22940 KB Output is correct
40 Correct 61 ms 23796 KB Output is correct
41 Correct 91 ms 26192 KB Output is correct
42 Correct 87 ms 25940 KB Output is correct
43 Correct 102 ms 26192 KB Output is correct
44 Correct 95 ms 25936 KB Output is correct
45 Correct 94 ms 25936 KB Output is correct
46 Correct 89 ms 25940 KB Output is correct
47 Correct 84 ms 24828 KB Output is correct
48 Correct 95 ms 25036 KB Output is correct
49 Correct 69 ms 23632 KB Output is correct
50 Correct 76 ms 24964 KB Output is correct
51 Correct 91 ms 26160 KB Output is correct
52 Correct 86 ms 25936 KB Output is correct
53 Correct 66 ms 24656 KB Output is correct
54 Correct 80 ms 26448 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 112 ms 25940 KB Output is correct
2 Correct 118 ms 26760 KB Output is correct
3 Correct 125 ms 26772 KB Output is correct
4 Correct 90 ms 24348 KB Output is correct
5 Correct 111 ms 25560 KB Output is correct
6 Correct 129 ms 26832 KB Output is correct
7 Correct 87 ms 24236 KB Output is correct
8 Correct 84 ms 24008 KB Output is correct
9 Correct 119 ms 25572 KB Output is correct
10 Correct 81 ms 23500 KB Output is correct
11 Correct 110 ms 25748 KB Output is correct
12 Correct 118 ms 25808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 18012 KB Output is correct
2 Correct 10 ms 18268 KB Output is correct
3 Correct 9 ms 18012 KB Output is correct
4 Correct 10 ms 18084 KB Output is correct
5 Correct 10 ms 18012 KB Output is correct
6 Correct 10 ms 18012 KB Output is correct
7 Correct 10 ms 18268 KB Output is correct
8 Correct 11 ms 18264 KB Output is correct
9 Correct 10 ms 18268 KB Output is correct
10 Correct 10 ms 18268 KB Output is correct
11 Correct 10 ms 18268 KB Output is correct
12 Correct 10 ms 18264 KB Output is correct
13 Correct 10 ms 18196 KB Output is correct
14 Correct 10 ms 18012 KB Output is correct
15 Correct 10 ms 18196 KB Output is correct
16 Correct 12 ms 18268 KB Output is correct
17 Correct 10 ms 18012 KB Output is correct
18 Correct 10 ms 18268 KB Output is correct
19 Correct 9 ms 18044 KB Output is correct
20 Correct 10 ms 18268 KB Output is correct
21 Correct 11 ms 18264 KB Output is correct
22 Correct 11 ms 18268 KB Output is correct
23 Correct 10 ms 18064 KB Output is correct
24 Correct 11 ms 18264 KB Output is correct
25 Correct 9 ms 18012 KB Output is correct
26 Correct 10 ms 18012 KB Output is correct
27 Correct 10 ms 18268 KB Output is correct
28 Correct 10 ms 18268 KB Output is correct
29 Correct 10 ms 18272 KB Output is correct
30 Correct 11 ms 18268 KB Output is correct
31 Correct 11 ms 18268 KB Output is correct
32 Correct 10 ms 18300 KB Output is correct
33 Correct 10 ms 18064 KB Output is correct
34 Correct 10 ms 18268 KB Output is correct
35 Correct 10 ms 18020 KB Output is correct
36 Correct 11 ms 18268 KB Output is correct
37 Correct 9 ms 18012 KB Output is correct
38 Correct 11 ms 18268 KB Output is correct
39 Correct 95 ms 26400 KB Output is correct
40 Correct 97 ms 26452 KB Output is correct
41 Correct 90 ms 26448 KB Output is correct
42 Correct 88 ms 26452 KB Output is correct
43 Correct 92 ms 26448 KB Output is correct
44 Correct 85 ms 26320 KB Output is correct
45 Correct 79 ms 23984 KB Output is correct
46 Correct 69 ms 24072 KB Output is correct
47 Correct 87 ms 26340 KB Output is correct
48 Correct 84 ms 26416 KB Output is correct
49 Correct 86 ms 26452 KB Output is correct
50 Correct 101 ms 26372 KB Output is correct
51 Correct 82 ms 25428 KB Output is correct
52 Correct 85 ms 26324 KB Output is correct
53 Correct 79 ms 26084 KB Output is correct
54 Correct 82 ms 26448 KB Output is correct
55 Correct 88 ms 25424 KB Output is correct
56 Correct 72 ms 24400 KB Output is correct
57 Correct 54 ms 22940 KB Output is correct
58 Correct 61 ms 23796 KB Output is correct
59 Correct 91 ms 26192 KB Output is correct
60 Correct 87 ms 25940 KB Output is correct
61 Correct 102 ms 26192 KB Output is correct
62 Correct 95 ms 25936 KB Output is correct
63 Correct 94 ms 25936 KB Output is correct
64 Correct 89 ms 25940 KB Output is correct
65 Correct 84 ms 24828 KB Output is correct
66 Correct 95 ms 25036 KB Output is correct
67 Correct 69 ms 23632 KB Output is correct
68 Correct 76 ms 24964 KB Output is correct
69 Correct 91 ms 26160 KB Output is correct
70 Correct 86 ms 25936 KB Output is correct
71 Correct 66 ms 24656 KB Output is correct
72 Correct 80 ms 26448 KB Output is correct
73 Correct 112 ms 25940 KB Output is correct
74 Correct 118 ms 26760 KB Output is correct
75 Correct 125 ms 26772 KB Output is correct
76 Correct 90 ms 24348 KB Output is correct
77 Correct 111 ms 25560 KB Output is correct
78 Correct 129 ms 26832 KB Output is correct
79 Correct 87 ms 24236 KB Output is correct
80 Correct 84 ms 24008 KB Output is correct
81 Correct 119 ms 25572 KB Output is correct
82 Correct 81 ms 23500 KB Output is correct
83 Correct 110 ms 25748 KB Output is correct
84 Correct 118 ms 25808 KB Output is correct
85 Correct 105 ms 25936 KB Output is correct
86 Correct 115 ms 26832 KB Output is correct
87 Correct 95 ms 25680 KB Output is correct
88 Correct 105 ms 26708 KB Output is correct
89 Correct 71 ms 23636 KB Output is correct
90 Correct 103 ms 26452 KB Output is correct
91 Correct 87 ms 24912 KB Output is correct
92 Correct 84 ms 24616 KB Output is correct
93 Correct 105 ms 26452 KB Output is correct
94 Correct 105 ms 26612 KB Output is correct
95 Correct 124 ms 26248 KB Output is correct
96 Correct 108 ms 26448 KB Output is correct
97 Correct 101 ms 26620 KB Output is correct
98 Correct 88 ms 25320 KB Output is correct
99 Correct 95 ms 25420 KB Output is correct
100 Correct 86 ms 24404 KB Output is correct
101 Correct 105 ms 25632 KB Output is correct
102 Correct 88 ms 27172 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 18012 KB Output is correct
2 Correct 10 ms 18268 KB Output is correct
3 Correct 9 ms 18012 KB Output is correct
4 Correct 10 ms 18084 KB Output is correct
5 Correct 10 ms 18012 KB Output is correct
6 Correct 10 ms 18012 KB Output is correct
7 Correct 10 ms 18268 KB Output is correct
8 Correct 11 ms 18264 KB Output is correct
9 Correct 10 ms 18268 KB Output is correct
10 Correct 10 ms 18268 KB Output is correct
11 Correct 10 ms 18268 KB Output is correct
12 Correct 10 ms 18264 KB Output is correct
13 Correct 10 ms 18196 KB Output is correct
14 Correct 10 ms 18012 KB Output is correct
15 Correct 10 ms 18196 KB Output is correct
16 Correct 12 ms 18268 KB Output is correct
17 Correct 10 ms 18012 KB Output is correct
18 Correct 10 ms 18268 KB Output is correct
19 Correct 9 ms 18044 KB Output is correct
20 Correct 10 ms 18268 KB Output is correct
21 Correct 11 ms 18264 KB Output is correct
22 Correct 11 ms 18268 KB Output is correct
23 Correct 10 ms 18064 KB Output is correct
24 Correct 11 ms 18264 KB Output is correct
25 Correct 9 ms 18012 KB Output is correct
26 Correct 10 ms 18012 KB Output is correct
27 Correct 10 ms 18268 KB Output is correct
28 Correct 10 ms 18268 KB Output is correct
29 Correct 10 ms 18272 KB Output is correct
30 Correct 11 ms 18268 KB Output is correct
31 Correct 11 ms 18268 KB Output is correct
32 Correct 10 ms 18300 KB Output is correct
33 Correct 10 ms 18064 KB Output is correct
34 Correct 10 ms 18268 KB Output is correct
35 Correct 10 ms 18020 KB Output is correct
36 Correct 11 ms 18268 KB Output is correct
37 Correct 9 ms 18012 KB Output is correct
38 Correct 11 ms 18268 KB Output is correct
39 Correct 95 ms 26400 KB Output is correct
40 Correct 97 ms 26452 KB Output is correct
41 Correct 90 ms 26448 KB Output is correct
42 Correct 88 ms 26452 KB Output is correct
43 Correct 92 ms 26448 KB Output is correct
44 Correct 85 ms 26320 KB Output is correct
45 Correct 79 ms 23984 KB Output is correct
46 Correct 69 ms 24072 KB Output is correct
47 Correct 87 ms 26340 KB Output is correct
48 Correct 84 ms 26416 KB Output is correct
49 Correct 86 ms 26452 KB Output is correct
50 Correct 101 ms 26372 KB Output is correct
51 Correct 82 ms 25428 KB Output is correct
52 Correct 85 ms 26324 KB Output is correct
53 Correct 79 ms 26084 KB Output is correct
54 Correct 82 ms 26448 KB Output is correct
55 Correct 462 ms 48592 KB Output is correct
56 Correct 381 ms 42440 KB Output is correct
57 Correct 497 ms 51364 KB Output is correct
58 Correct 318 ms 42248 KB Output is correct
59 Correct 295 ms 42220 KB Output is correct
60 Correct 459 ms 50896 KB Output is correct
61 Correct 285 ms 44076 KB Output is correct
62 Correct 304 ms 44148 KB Output is correct
63 Correct 492 ms 50880 KB Output is correct
64 Correct 528 ms 51112 KB Output is correct
65 Correct 421 ms 49880 KB Output is correct
66 Correct 450 ms 50380 KB Output is correct
67 Correct 440 ms 49996 KB Output is correct
68 Correct 423 ms 50388 KB Output is correct
69 Correct 452 ms 50380 KB Output is correct
70 Correct 453 ms 50388 KB Output is correct
71 Correct 459 ms 50252 KB Output is correct
72 Correct 455 ms 50280 KB Output is correct
73 Correct 435 ms 50388 KB Output is correct
74 Correct 491 ms 50384 KB Output is correct
75 Correct 431 ms 50384 KB Output is correct
76 Correct 442 ms 50380 KB Output is correct
77 Correct 459 ms 50380 KB Output is correct
78 Correct 442 ms 50380 KB Output is correct
79 Correct 416 ms 46316 KB Output is correct
80 Correct 416 ms 47048 KB Output is correct
81 Correct 359 ms 52176 KB Output is correct
82 Correct 88 ms 25424 KB Output is correct
83 Correct 72 ms 24400 KB Output is correct
84 Correct 54 ms 22940 KB Output is correct
85 Correct 61 ms 23796 KB Output is correct
86 Correct 91 ms 26192 KB Output is correct
87 Correct 87 ms 25940 KB Output is correct
88 Correct 102 ms 26192 KB Output is correct
89 Correct 95 ms 25936 KB Output is correct
90 Correct 94 ms 25936 KB Output is correct
91 Correct 89 ms 25940 KB Output is correct
92 Correct 84 ms 24828 KB Output is correct
93 Correct 95 ms 25036 KB Output is correct
94 Correct 69 ms 23632 KB Output is correct
95 Correct 76 ms 24964 KB Output is correct
96 Correct 91 ms 26160 KB Output is correct
97 Correct 86 ms 25936 KB Output is correct
98 Correct 66 ms 24656 KB Output is correct
99 Correct 80 ms 26448 KB Output is correct
100 Correct 112 ms 25940 KB Output is correct
101 Correct 118 ms 26760 KB Output is correct
102 Correct 125 ms 26772 KB Output is correct
103 Correct 90 ms 24348 KB Output is correct
104 Correct 111 ms 25560 KB Output is correct
105 Correct 129 ms 26832 KB Output is correct
106 Correct 87 ms 24236 KB Output is correct
107 Correct 84 ms 24008 KB Output is correct
108 Correct 119 ms 25572 KB Output is correct
109 Correct 81 ms 23500 KB Output is correct
110 Correct 110 ms 25748 KB Output is correct
111 Correct 118 ms 25808 KB Output is correct
112 Correct 105 ms 25936 KB Output is correct
113 Correct 115 ms 26832 KB Output is correct
114 Correct 95 ms 25680 KB Output is correct
115 Correct 105 ms 26708 KB Output is correct
116 Correct 71 ms 23636 KB Output is correct
117 Correct 103 ms 26452 KB Output is correct
118 Correct 87 ms 24912 KB Output is correct
119 Correct 84 ms 24616 KB Output is correct
120 Correct 105 ms 26452 KB Output is correct
121 Correct 105 ms 26612 KB Output is correct
122 Correct 124 ms 26248 KB Output is correct
123 Correct 108 ms 26448 KB Output is correct
124 Correct 101 ms 26620 KB Output is correct
125 Correct 88 ms 25320 KB Output is correct
126 Correct 95 ms 25420 KB Output is correct
127 Correct 86 ms 24404 KB Output is correct
128 Correct 105 ms 25632 KB Output is correct
129 Correct 88 ms 27172 KB Output is correct
130 Correct 513 ms 51660 KB Output is correct
131 Correct 348 ms 42540 KB Output is correct
132 Correct 504 ms 51680 KB Output is correct
133 Correct 449 ms 50120 KB Output is correct
134 Correct 367 ms 46804 KB Output is correct
135 Correct 489 ms 51656 KB Output is correct
136 Correct 505 ms 51912 KB Output is correct
137 Correct 521 ms 51820 KB Output is correct
138 Correct 423 ms 50632 KB Output is correct
139 Correct 462 ms 51148 KB Output is correct
140 Correct 457 ms 50644 KB Output is correct
141 Correct 450 ms 51100 KB Output is correct
142 Correct 474 ms 50892 KB Output is correct
143 Correct 503 ms 50844 KB Output is correct
144 Correct 468 ms 50828 KB Output is correct
145 Correct 449 ms 51152 KB Output is correct
146 Correct 484 ms 50780 KB Output is correct
147 Correct 464 ms 50872 KB Output is correct
148 Correct 491 ms 50892 KB Output is correct
149 Correct 444 ms 50968 KB Output is correct
150 Correct 368 ms 46728 KB Output is correct
151 Correct 398 ms 47332 KB Output is correct
152 Correct 417 ms 47308 KB Output is correct
153 Correct 377 ms 53196 KB Output is correct