Submission #813450

# Submission time Handle Problem Language Result Execution time Memory
813450 2023-08-07T18:02:57 Z ParsaS Food Court (JOI21_foodcourt) C++17
100 / 100
494 ms 66700 KB
// In the name of God
#include<bits/stdc++.h>
using namespace std;
#define int ll
#define pb push_back
#define fi first
#define se second
#define mp make_pair
typedef long long ll;
const int N = 25e4 + 5;
int n, m, q;
int C[N];
vector<int> vadd[N], vrem[N], vec;
vector<pair<int, int > > qr[N];
int ans[N];
int S[N << 2];

struct node {
    int rem, cnt, ex;
    node() {
        rem = cnt = ex = 0;
    }
    void clear() {
        cnt = rem = ex = 0;
    }
} seg[N << 2];

void shift(int v, int tl, int tr) {
    if (tl == tr)
        return;
    int lc = v << 1, rc = v << 1 | 1;
    seg[lc].ex += max(0LL, seg[v].ex - seg[lc].cnt);
    seg[lc].rem += seg[v].rem + min(seg[v].ex, seg[lc].cnt);
    seg[lc].cnt = seg[v].cnt + max(0LL, seg[lc].cnt - seg[v].ex);
    seg[rc].ex += max(0LL, seg[v].ex - seg[rc].cnt);
    seg[rc].rem += seg[v].rem + min(seg[v].ex, seg[rc].cnt);
    seg[rc].cnt = seg[v].cnt + max(0LL, seg[rc].cnt - seg[v].ex);

    seg[v].clear();
}

void ADD(int l, int r, int c, int v = 1, int tl = 1, int tr = n) {
    shift(v, tl, tr);
    if (l > tr || r < tl)
        return;
    if (tl >= l && tr <= r) {
        seg[v].cnt += c;
        return;
    }
    int mid = (tl + tr) >> 1;
    ADD(l, r, c, v << 1, tl, mid);
    ADD(l, r, c, v << 1 | 1, mid + 1, tr);
}
void REM(int l, int r, int c, int v = 1, int tl = 1, int tr = n) {
    shift(v, tl, tr);
    if (l > tr || r < tl) {
        return;
    }
    if (tl >= l && tr <= r) {
        if (tl == tr) {
            int k = min(seg[v].cnt, c);
            seg[v].cnt -= k;
            seg[v].rem += k;
            seg[v].ex += c - k;
        }
        else
            seg[v].ex += c;
        return;
    }
    int mid = (tl + tr) >> 1;
    REM(l, r, c, v << 1, tl, mid);
    REM(l, r, c, v << 1 | 1, mid + 1, tr);
}
node query(int i, int v = 1, int tl = 1, int tr = n) {
    shift(v, tl, tr);
    if (tl == tr) {
        return seg[v];
    }
    int mid = (tl + tr) >> 1;
    if (i <= mid)
        return query(i, v << 1, tl, mid);
    return query(i, v << 1 | 1, mid + 1, tr);
}

void upd(int i, int val, int v = 1, int tl = 0, int tr = (int)vec.size()) {
    if (tl == tr) {
        S[v] += val;
        return;
    }
    int mid = (tl + tr) >> 1;
    if (i <= mid)
        upd(i, val, v << 1, tl, mid);
    else
        upd(i, val, v << 1 | 1, mid + 1, tr);
    S[v] = S[v << 1] + S[v << 1 | 1];
}
int query2(int x, int v = 1, int tl = 0, int tr = (int)vec.size()) {
    if (tl == tr)
        return tl;
    int mid = (tl + tr) >> 1;
    if (S[v << 1] >= x)
        return query2(x, v << 1, tl, mid);
    return query2(x - S[v << 1], v << 1 | 1, mid + 1, tr);
}


void solve() {
    cin >> n >> m >> q;
    for (int i = 0; i < q; i++) {
        ans[i] = -1;
        int t; cin >> t;
        if (t == 1) {
            int l, r, c, k; cin >> l >> r >> k >> c;
            C[(int)vec.size()] = c;
            vadd[l].pb((int)vec.size());
            vrem[r + 1].pb((int)vec.size());
            vec.pb(k);

            ADD(l, r, c);
        }
        else if (t == 2) {
            int l, r, c; cin >> l >> r >> c;
            REM(l, r, c);

        }
        else {
            int a, b; cin >> a >> b;
            node v = query(a);
            if (v.cnt < b) {
                ans[i] = 0;
            }
            else {
                qr[a].pb(mp(v.rem + b, i));
            }
        }
        continue;
        for (int j = 1; j <= n; j++) {
            node u = query(j);
            cout << u.cnt << ' ';
        }
        cout << endl;
        node u = query(1);
        cout << u.cnt << ' ' << u.rem << ' ' << u.ex << endl;
    }
    for (int i = 1; i <= n; i++) {
        for (auto x : vadd[i]) {
            upd(x, C[x]);
        }
        for (auto x : vrem[i]) {
            upd(x, -C[x]);
        }
        for (auto [c, j] : qr[i]) {
            ans[j] = vec[query2(c)];
        }
    }
    for (int i = 0; i < q; i++) {
        if (ans[i] != -1)
            cout << ans[i] << '\n';
    }
}

int32_t main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    solve();
}
# Verdict Execution time Memory Grader output
1 Correct 19 ms 41532 KB Output is correct
2 Correct 26 ms 41432 KB Output is correct
3 Correct 22 ms 41424 KB Output is correct
4 Correct 21 ms 41484 KB Output is correct
5 Correct 20 ms 41440 KB Output is correct
6 Correct 20 ms 41436 KB Output is correct
7 Correct 20 ms 41436 KB Output is correct
8 Correct 21 ms 41480 KB Output is correct
9 Correct 22 ms 41484 KB Output is correct
10 Correct 23 ms 41456 KB Output is correct
11 Correct 25 ms 41476 KB Output is correct
12 Correct 19 ms 41556 KB Output is correct
13 Correct 18 ms 41444 KB Output is correct
14 Correct 18 ms 41548 KB Output is correct
15 Correct 18 ms 41412 KB Output is correct
16 Correct 21 ms 41428 KB Output is correct
17 Correct 20 ms 41424 KB Output is correct
18 Correct 21 ms 41560 KB Output is correct
19 Correct 19 ms 41520 KB Output is correct
20 Correct 19 ms 41556 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 41532 KB Output is correct
2 Correct 26 ms 41432 KB Output is correct
3 Correct 22 ms 41424 KB Output is correct
4 Correct 21 ms 41484 KB Output is correct
5 Correct 20 ms 41440 KB Output is correct
6 Correct 20 ms 41436 KB Output is correct
7 Correct 20 ms 41436 KB Output is correct
8 Correct 21 ms 41480 KB Output is correct
9 Correct 22 ms 41484 KB Output is correct
10 Correct 23 ms 41456 KB Output is correct
11 Correct 25 ms 41476 KB Output is correct
12 Correct 19 ms 41556 KB Output is correct
13 Correct 18 ms 41444 KB Output is correct
14 Correct 18 ms 41548 KB Output is correct
15 Correct 18 ms 41412 KB Output is correct
16 Correct 21 ms 41428 KB Output is correct
17 Correct 20 ms 41424 KB Output is correct
18 Correct 21 ms 41560 KB Output is correct
19 Correct 19 ms 41520 KB Output is correct
20 Correct 19 ms 41556 KB Output is correct
21 Correct 20 ms 41496 KB Output is correct
22 Correct 31 ms 41460 KB Output is correct
23 Correct 27 ms 41680 KB Output is correct
24 Correct 24 ms 41476 KB Output is correct
25 Correct 22 ms 41436 KB Output is correct
26 Correct 20 ms 41508 KB Output is correct
27 Correct 23 ms 41496 KB Output is correct
28 Correct 18 ms 41556 KB Output is correct
29 Correct 17 ms 41564 KB Output is correct
30 Correct 29 ms 41556 KB Output is correct
31 Correct 26 ms 41556 KB Output is correct
32 Correct 21 ms 41556 KB Output is correct
33 Correct 20 ms 41428 KB Output is correct
34 Correct 20 ms 41520 KB Output is correct
35 Correct 20 ms 41420 KB Output is correct
36 Correct 21 ms 41436 KB Output is correct
37 Correct 22 ms 41568 KB Output is correct
38 Correct 21 ms 41572 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 88 ms 44768 KB Output is correct
2 Correct 77 ms 45836 KB Output is correct
3 Correct 70 ms 45100 KB Output is correct
4 Correct 72 ms 45052 KB Output is correct
5 Correct 74 ms 45832 KB Output is correct
6 Correct 73 ms 45832 KB Output is correct
7 Correct 34 ms 44080 KB Output is correct
8 Correct 47 ms 44112 KB Output is correct
9 Correct 74 ms 45364 KB Output is correct
10 Correct 86 ms 45288 KB Output is correct
11 Correct 75 ms 45368 KB Output is correct
12 Correct 73 ms 45268 KB Output is correct
13 Correct 75 ms 45400 KB Output is correct
14 Correct 78 ms 46416 KB Output is correct
15 Correct 77 ms 47108 KB Output is correct
16 Correct 103 ms 47460 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 305 ms 57448 KB Output is correct
2 Correct 244 ms 53500 KB Output is correct
3 Correct 406 ms 58776 KB Output is correct
4 Correct 300 ms 56016 KB Output is correct
5 Correct 305 ms 56012 KB Output is correct
6 Correct 391 ms 60476 KB Output is correct
7 Correct 93 ms 53276 KB Output is correct
8 Correct 116 ms 53488 KB Output is correct
9 Correct 395 ms 61496 KB Output is correct
10 Correct 407 ms 61628 KB Output is correct
11 Correct 339 ms 58728 KB Output is correct
12 Correct 337 ms 58852 KB Output is correct
13 Correct 348 ms 58684 KB Output is correct
14 Correct 389 ms 58756 KB Output is correct
15 Correct 351 ms 58620 KB Output is correct
16 Correct 349 ms 58624 KB Output is correct
17 Correct 346 ms 58708 KB Output is correct
18 Correct 401 ms 58704 KB Output is correct
19 Correct 331 ms 58696 KB Output is correct
20 Correct 343 ms 58760 KB Output is correct
21 Correct 334 ms 58660 KB Output is correct
22 Correct 352 ms 58780 KB Output is correct
23 Correct 319 ms 58660 KB Output is correct
24 Correct 358 ms 58720 KB Output is correct
25 Correct 241 ms 56188 KB Output is correct
26 Correct 240 ms 56488 KB Output is correct
27 Correct 275 ms 65880 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 41532 KB Output is correct
2 Correct 26 ms 41432 KB Output is correct
3 Correct 22 ms 41424 KB Output is correct
4 Correct 21 ms 41484 KB Output is correct
5 Correct 20 ms 41440 KB Output is correct
6 Correct 20 ms 41436 KB Output is correct
7 Correct 20 ms 41436 KB Output is correct
8 Correct 21 ms 41480 KB Output is correct
9 Correct 22 ms 41484 KB Output is correct
10 Correct 23 ms 41456 KB Output is correct
11 Correct 25 ms 41476 KB Output is correct
12 Correct 19 ms 41556 KB Output is correct
13 Correct 18 ms 41444 KB Output is correct
14 Correct 18 ms 41548 KB Output is correct
15 Correct 18 ms 41412 KB Output is correct
16 Correct 21 ms 41428 KB Output is correct
17 Correct 20 ms 41424 KB Output is correct
18 Correct 21 ms 41560 KB Output is correct
19 Correct 19 ms 41520 KB Output is correct
20 Correct 19 ms 41556 KB Output is correct
21 Correct 88 ms 44768 KB Output is correct
22 Correct 77 ms 45836 KB Output is correct
23 Correct 70 ms 45100 KB Output is correct
24 Correct 72 ms 45052 KB Output is correct
25 Correct 74 ms 45832 KB Output is correct
26 Correct 73 ms 45832 KB Output is correct
27 Correct 34 ms 44080 KB Output is correct
28 Correct 47 ms 44112 KB Output is correct
29 Correct 74 ms 45364 KB Output is correct
30 Correct 86 ms 45288 KB Output is correct
31 Correct 75 ms 45368 KB Output is correct
32 Correct 73 ms 45268 KB Output is correct
33 Correct 75 ms 45400 KB Output is correct
34 Correct 78 ms 46416 KB Output is correct
35 Correct 77 ms 47108 KB Output is correct
36 Correct 103 ms 47460 KB Output is correct
37 Correct 75 ms 45056 KB Output is correct
38 Correct 69 ms 45048 KB Output is correct
39 Correct 31 ms 43856 KB Output is correct
40 Correct 44 ms 44436 KB Output is correct
41 Correct 109 ms 45392 KB Output is correct
42 Correct 85 ms 45416 KB Output is correct
43 Correct 76 ms 45364 KB Output is correct
44 Correct 76 ms 45420 KB Output is correct
45 Correct 77 ms 45468 KB Output is correct
46 Correct 77 ms 45412 KB Output is correct
47 Correct 45 ms 44496 KB Output is correct
48 Correct 82 ms 44844 KB Output is correct
49 Correct 70 ms 44384 KB Output is correct
50 Correct 68 ms 44956 KB Output is correct
51 Correct 91 ms 45496 KB Output is correct
52 Correct 79 ms 45464 KB Output is correct
53 Correct 68 ms 46372 KB Output is correct
54 Correct 115 ms 47380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 81 ms 46352 KB Output is correct
2 Correct 82 ms 46804 KB Output is correct
3 Correct 81 ms 46936 KB Output is correct
4 Correct 70 ms 45468 KB Output is correct
5 Correct 72 ms 46128 KB Output is correct
6 Correct 80 ms 46744 KB Output is correct
7 Correct 39 ms 45040 KB Output is correct
8 Correct 39 ms 44776 KB Output is correct
9 Correct 62 ms 45764 KB Output is correct
10 Correct 78 ms 44796 KB Output is correct
11 Correct 104 ms 46080 KB Output is correct
12 Correct 72 ms 46048 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 41532 KB Output is correct
2 Correct 26 ms 41432 KB Output is correct
3 Correct 22 ms 41424 KB Output is correct
4 Correct 21 ms 41484 KB Output is correct
5 Correct 20 ms 41440 KB Output is correct
6 Correct 20 ms 41436 KB Output is correct
7 Correct 20 ms 41436 KB Output is correct
8 Correct 21 ms 41480 KB Output is correct
9 Correct 22 ms 41484 KB Output is correct
10 Correct 23 ms 41456 KB Output is correct
11 Correct 25 ms 41476 KB Output is correct
12 Correct 19 ms 41556 KB Output is correct
13 Correct 18 ms 41444 KB Output is correct
14 Correct 18 ms 41548 KB Output is correct
15 Correct 18 ms 41412 KB Output is correct
16 Correct 21 ms 41428 KB Output is correct
17 Correct 20 ms 41424 KB Output is correct
18 Correct 21 ms 41560 KB Output is correct
19 Correct 19 ms 41520 KB Output is correct
20 Correct 19 ms 41556 KB Output is correct
21 Correct 20 ms 41496 KB Output is correct
22 Correct 31 ms 41460 KB Output is correct
23 Correct 27 ms 41680 KB Output is correct
24 Correct 24 ms 41476 KB Output is correct
25 Correct 22 ms 41436 KB Output is correct
26 Correct 20 ms 41508 KB Output is correct
27 Correct 23 ms 41496 KB Output is correct
28 Correct 18 ms 41556 KB Output is correct
29 Correct 17 ms 41564 KB Output is correct
30 Correct 29 ms 41556 KB Output is correct
31 Correct 26 ms 41556 KB Output is correct
32 Correct 21 ms 41556 KB Output is correct
33 Correct 20 ms 41428 KB Output is correct
34 Correct 20 ms 41520 KB Output is correct
35 Correct 20 ms 41420 KB Output is correct
36 Correct 21 ms 41436 KB Output is correct
37 Correct 22 ms 41568 KB Output is correct
38 Correct 21 ms 41572 KB Output is correct
39 Correct 88 ms 44768 KB Output is correct
40 Correct 77 ms 45836 KB Output is correct
41 Correct 70 ms 45100 KB Output is correct
42 Correct 72 ms 45052 KB Output is correct
43 Correct 74 ms 45832 KB Output is correct
44 Correct 73 ms 45832 KB Output is correct
45 Correct 34 ms 44080 KB Output is correct
46 Correct 47 ms 44112 KB Output is correct
47 Correct 74 ms 45364 KB Output is correct
48 Correct 86 ms 45288 KB Output is correct
49 Correct 75 ms 45368 KB Output is correct
50 Correct 73 ms 45268 KB Output is correct
51 Correct 75 ms 45400 KB Output is correct
52 Correct 78 ms 46416 KB Output is correct
53 Correct 77 ms 47108 KB Output is correct
54 Correct 103 ms 47460 KB Output is correct
55 Correct 75 ms 45056 KB Output is correct
56 Correct 69 ms 45048 KB Output is correct
57 Correct 31 ms 43856 KB Output is correct
58 Correct 44 ms 44436 KB Output is correct
59 Correct 109 ms 45392 KB Output is correct
60 Correct 85 ms 45416 KB Output is correct
61 Correct 76 ms 45364 KB Output is correct
62 Correct 76 ms 45420 KB Output is correct
63 Correct 77 ms 45468 KB Output is correct
64 Correct 77 ms 45412 KB Output is correct
65 Correct 45 ms 44496 KB Output is correct
66 Correct 82 ms 44844 KB Output is correct
67 Correct 70 ms 44384 KB Output is correct
68 Correct 68 ms 44956 KB Output is correct
69 Correct 91 ms 45496 KB Output is correct
70 Correct 79 ms 45464 KB Output is correct
71 Correct 68 ms 46372 KB Output is correct
72 Correct 115 ms 47380 KB Output is correct
73 Correct 81 ms 46352 KB Output is correct
74 Correct 82 ms 46804 KB Output is correct
75 Correct 81 ms 46936 KB Output is correct
76 Correct 70 ms 45468 KB Output is correct
77 Correct 72 ms 46128 KB Output is correct
78 Correct 80 ms 46744 KB Output is correct
79 Correct 39 ms 45040 KB Output is correct
80 Correct 39 ms 44776 KB Output is correct
81 Correct 62 ms 45764 KB Output is correct
82 Correct 78 ms 44796 KB Output is correct
83 Correct 104 ms 46080 KB Output is correct
84 Correct 72 ms 46048 KB Output is correct
85 Correct 72 ms 45508 KB Output is correct
86 Correct 78 ms 46008 KB Output is correct
87 Correct 86 ms 45832 KB Output is correct
88 Correct 91 ms 46404 KB Output is correct
89 Correct 84 ms 44324 KB Output is correct
90 Correct 80 ms 45948 KB Output is correct
91 Correct 67 ms 45156 KB Output is correct
92 Correct 73 ms 44980 KB Output is correct
93 Correct 86 ms 45936 KB Output is correct
94 Correct 82 ms 45924 KB Output is correct
95 Correct 75 ms 45820 KB Output is correct
96 Correct 78 ms 45908 KB Output is correct
97 Correct 99 ms 45896 KB Output is correct
98 Correct 96 ms 45396 KB Output is correct
99 Correct 44 ms 45060 KB Output is correct
100 Correct 61 ms 44708 KB Output is correct
101 Correct 77 ms 45348 KB Output is correct
102 Correct 77 ms 47776 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 41532 KB Output is correct
2 Correct 26 ms 41432 KB Output is correct
3 Correct 22 ms 41424 KB Output is correct
4 Correct 21 ms 41484 KB Output is correct
5 Correct 20 ms 41440 KB Output is correct
6 Correct 20 ms 41436 KB Output is correct
7 Correct 20 ms 41436 KB Output is correct
8 Correct 21 ms 41480 KB Output is correct
9 Correct 22 ms 41484 KB Output is correct
10 Correct 23 ms 41456 KB Output is correct
11 Correct 25 ms 41476 KB Output is correct
12 Correct 19 ms 41556 KB Output is correct
13 Correct 18 ms 41444 KB Output is correct
14 Correct 18 ms 41548 KB Output is correct
15 Correct 18 ms 41412 KB Output is correct
16 Correct 21 ms 41428 KB Output is correct
17 Correct 20 ms 41424 KB Output is correct
18 Correct 21 ms 41560 KB Output is correct
19 Correct 19 ms 41520 KB Output is correct
20 Correct 19 ms 41556 KB Output is correct
21 Correct 20 ms 41496 KB Output is correct
22 Correct 31 ms 41460 KB Output is correct
23 Correct 27 ms 41680 KB Output is correct
24 Correct 24 ms 41476 KB Output is correct
25 Correct 22 ms 41436 KB Output is correct
26 Correct 20 ms 41508 KB Output is correct
27 Correct 23 ms 41496 KB Output is correct
28 Correct 18 ms 41556 KB Output is correct
29 Correct 17 ms 41564 KB Output is correct
30 Correct 29 ms 41556 KB Output is correct
31 Correct 26 ms 41556 KB Output is correct
32 Correct 21 ms 41556 KB Output is correct
33 Correct 20 ms 41428 KB Output is correct
34 Correct 20 ms 41520 KB Output is correct
35 Correct 20 ms 41420 KB Output is correct
36 Correct 21 ms 41436 KB Output is correct
37 Correct 22 ms 41568 KB Output is correct
38 Correct 21 ms 41572 KB Output is correct
39 Correct 88 ms 44768 KB Output is correct
40 Correct 77 ms 45836 KB Output is correct
41 Correct 70 ms 45100 KB Output is correct
42 Correct 72 ms 45052 KB Output is correct
43 Correct 74 ms 45832 KB Output is correct
44 Correct 73 ms 45832 KB Output is correct
45 Correct 34 ms 44080 KB Output is correct
46 Correct 47 ms 44112 KB Output is correct
47 Correct 74 ms 45364 KB Output is correct
48 Correct 86 ms 45288 KB Output is correct
49 Correct 75 ms 45368 KB Output is correct
50 Correct 73 ms 45268 KB Output is correct
51 Correct 75 ms 45400 KB Output is correct
52 Correct 78 ms 46416 KB Output is correct
53 Correct 77 ms 47108 KB Output is correct
54 Correct 103 ms 47460 KB Output is correct
55 Correct 305 ms 57448 KB Output is correct
56 Correct 244 ms 53500 KB Output is correct
57 Correct 406 ms 58776 KB Output is correct
58 Correct 300 ms 56016 KB Output is correct
59 Correct 305 ms 56012 KB Output is correct
60 Correct 391 ms 60476 KB Output is correct
61 Correct 93 ms 53276 KB Output is correct
62 Correct 116 ms 53488 KB Output is correct
63 Correct 395 ms 61496 KB Output is correct
64 Correct 407 ms 61628 KB Output is correct
65 Correct 339 ms 58728 KB Output is correct
66 Correct 337 ms 58852 KB Output is correct
67 Correct 348 ms 58684 KB Output is correct
68 Correct 389 ms 58756 KB Output is correct
69 Correct 351 ms 58620 KB Output is correct
70 Correct 349 ms 58624 KB Output is correct
71 Correct 346 ms 58708 KB Output is correct
72 Correct 401 ms 58704 KB Output is correct
73 Correct 331 ms 58696 KB Output is correct
74 Correct 343 ms 58760 KB Output is correct
75 Correct 334 ms 58660 KB Output is correct
76 Correct 352 ms 58780 KB Output is correct
77 Correct 319 ms 58660 KB Output is correct
78 Correct 358 ms 58720 KB Output is correct
79 Correct 241 ms 56188 KB Output is correct
80 Correct 240 ms 56488 KB Output is correct
81 Correct 275 ms 65880 KB Output is correct
82 Correct 75 ms 45056 KB Output is correct
83 Correct 69 ms 45048 KB Output is correct
84 Correct 31 ms 43856 KB Output is correct
85 Correct 44 ms 44436 KB Output is correct
86 Correct 109 ms 45392 KB Output is correct
87 Correct 85 ms 45416 KB Output is correct
88 Correct 76 ms 45364 KB Output is correct
89 Correct 76 ms 45420 KB Output is correct
90 Correct 77 ms 45468 KB Output is correct
91 Correct 77 ms 45412 KB Output is correct
92 Correct 45 ms 44496 KB Output is correct
93 Correct 82 ms 44844 KB Output is correct
94 Correct 70 ms 44384 KB Output is correct
95 Correct 68 ms 44956 KB Output is correct
96 Correct 91 ms 45496 KB Output is correct
97 Correct 79 ms 45464 KB Output is correct
98 Correct 68 ms 46372 KB Output is correct
99 Correct 115 ms 47380 KB Output is correct
100 Correct 81 ms 46352 KB Output is correct
101 Correct 82 ms 46804 KB Output is correct
102 Correct 81 ms 46936 KB Output is correct
103 Correct 70 ms 45468 KB Output is correct
104 Correct 72 ms 46128 KB Output is correct
105 Correct 80 ms 46744 KB Output is correct
106 Correct 39 ms 45040 KB Output is correct
107 Correct 39 ms 44776 KB Output is correct
108 Correct 62 ms 45764 KB Output is correct
109 Correct 78 ms 44796 KB Output is correct
110 Correct 104 ms 46080 KB Output is correct
111 Correct 72 ms 46048 KB Output is correct
112 Correct 72 ms 45508 KB Output is correct
113 Correct 78 ms 46008 KB Output is correct
114 Correct 86 ms 45832 KB Output is correct
115 Correct 91 ms 46404 KB Output is correct
116 Correct 84 ms 44324 KB Output is correct
117 Correct 80 ms 45948 KB Output is correct
118 Correct 67 ms 45156 KB Output is correct
119 Correct 73 ms 44980 KB Output is correct
120 Correct 86 ms 45936 KB Output is correct
121 Correct 82 ms 45924 KB Output is correct
122 Correct 75 ms 45820 KB Output is correct
123 Correct 78 ms 45908 KB Output is correct
124 Correct 99 ms 45896 KB Output is correct
125 Correct 96 ms 45396 KB Output is correct
126 Correct 44 ms 45060 KB Output is correct
127 Correct 61 ms 44708 KB Output is correct
128 Correct 77 ms 45348 KB Output is correct
129 Correct 77 ms 47776 KB Output is correct
130 Correct 391 ms 59324 KB Output is correct
131 Correct 229 ms 53900 KB Output is correct
132 Correct 343 ms 59312 KB Output is correct
133 Correct 361 ms 60472 KB Output is correct
134 Correct 299 ms 58732 KB Output is correct
135 Correct 390 ms 61240 KB Output is correct
136 Correct 494 ms 62572 KB Output is correct
137 Correct 368 ms 62468 KB Output is correct
138 Correct 473 ms 59456 KB Output is correct
139 Correct 414 ms 59392 KB Output is correct
140 Correct 372 ms 59444 KB Output is correct
141 Correct 434 ms 59392 KB Output is correct
142 Correct 329 ms 59324 KB Output is correct
143 Correct 447 ms 59240 KB Output is correct
144 Correct 320 ms 59436 KB Output is correct
145 Correct 422 ms 59348 KB Output is correct
146 Correct 354 ms 59320 KB Output is correct
147 Correct 406 ms 59284 KB Output is correct
148 Correct 360 ms 59304 KB Output is correct
149 Correct 354 ms 59320 KB Output is correct
150 Correct 165 ms 55684 KB Output is correct
151 Correct 287 ms 56984 KB Output is correct
152 Correct 271 ms 57092 KB Output is correct
153 Correct 365 ms 66700 KB Output is correct