답안 #386989

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
386989 2021-04-07T18:45:36 Z keko37 푸드 코트 (JOI21_foodcourt) C++14
100 / 100
441 ms 53948 KB
#include<bits/stdc++.h>

using namespace std;

typedef long long llint;
typedef pair <llint, llint> pi;

const int MAXN = 250005;

int n, m, q, ofs = 1;
llint tip[MAXN], lef[MAXN], rig[MAXN], k[MAXN], col[MAXN], sol[MAXN];
pi t[MAXN * 4]; llint sum[MAXN * 4];
vector <pi> v[MAXN];
vector <int> u[MAXN];

pi spoji (pi a, pi b) {
    return {a.first + b.first, max(a.second + b.first, b.second)};
}

void update (int pos, llint val) {
    pos += ofs;
    t[pos].first += val;
    t[pos].second = max(t[pos].first, 0LL);
    sum[pos] = t[pos].second;
    pos /= 2;
    while (pos > 0) {
        t[pos] = spoji(t[pos * 2], t[pos * 2 + 1]);
        sum[pos] = sum[2 * pos] + sum[2 * pos + 1];
        pos /= 2;
    }
}

pi upit (int x, int from, int to, int lo, int hi) {
    if (from <= lo && hi <= to) return t[x];
    if (to < lo || hi < from) return {0, 0};
    return spoji(upit(2 * x, from, to, lo, (lo + hi) / 2), upit(2 * x + 1, from, to, (lo + hi) / 2 + 1, hi));
}

int nadi (int x, llint val) {
    if (x >= ofs) return x;
    if (val <= sum[2 * x + 1]) return nadi(2 * x + 1, val);
    return nadi(2 * x, val - sum[2 * x + 1]);
}

int bs (int pos, llint val) {
    int curr = pos + ofs;
    llint curr_sum = sum[curr];
    if (val <= curr_sum) return pos;
    while (curr > 1) {
        if (curr % 2 == 0) {
            curr /= 2;
        } else {
            if (val > curr_sum + sum[curr - 1]) {
                curr_sum += sum[curr - 1];
                curr /= 2;
            } else {
                return nadi(curr - 1, val - curr_sum) - ofs;
            }
        }
    }
    return 0;
}

void get_curr_siz () {
    for (int i = 1; i <= q; i++) {
        if (tip[i] == 1) {
            v[lef[i]].push_back({k[i], i});
            v[rig[i] + 1].push_back({-k[i], i});
        } else if (tip[i] == 2) {
            v[lef[i]].push_back({-k[i], i});
            v[rig[i] + 1].push_back({k[i], i});
        } else {
            u[lef[i]].push_back(i);
        }
    }
    while (ofs < q + 1) ofs *= 2;
    for (int pos = 1; pos <= n; pos++) {
        for (auto pp : v[pos]) {
            llint val = pp.first;
            int ind = pp.second;
            update(ind, val);
        }
        for (auto i : u[pos]) {
            llint siz = upit(1, 0, i, 0, ofs - 1).second;
            if (k[i] <= siz) {
                sol[i] = col[bs(i, siz - k[i] + 1)];
            }
        }
    }
}

int main () {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin >> n >> m >> q;
    for (int i = 1; i <= q; i++) {
        cin >> tip[i];
        if (tip[i] == 1) {
            cin >> lef[i] >> rig[i] >> col[i] >> k[i];
        } else if (tip[i] == 2) {
            cin >> lef[i] >> rig[i] >> k[i];
        } else {
            cin >> lef[i] >> k[i];
        }
    }
    get_curr_siz();
    for (int i = 1; i <= q; i++) {
        if (tip[i] != 3) continue;
        cout << sol[i] << '\n';
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12396 KB Output is correct
2 Correct 10 ms 12396 KB Output is correct
3 Correct 10 ms 12396 KB Output is correct
4 Correct 11 ms 12396 KB Output is correct
5 Correct 11 ms 12396 KB Output is correct
6 Correct 12 ms 12396 KB Output is correct
7 Correct 10 ms 12396 KB Output is correct
8 Correct 11 ms 12396 KB Output is correct
9 Correct 11 ms 12396 KB Output is correct
10 Correct 10 ms 12396 KB Output is correct
11 Correct 11 ms 12524 KB Output is correct
12 Correct 10 ms 12396 KB Output is correct
13 Correct 10 ms 12396 KB Output is correct
14 Correct 10 ms 12524 KB Output is correct
15 Correct 10 ms 12396 KB Output is correct
16 Correct 10 ms 12524 KB Output is correct
17 Correct 10 ms 12396 KB Output is correct
18 Correct 11 ms 12396 KB Output is correct
19 Correct 10 ms 12396 KB Output is correct
20 Correct 10 ms 12396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12396 KB Output is correct
2 Correct 10 ms 12396 KB Output is correct
3 Correct 10 ms 12396 KB Output is correct
4 Correct 11 ms 12396 KB Output is correct
5 Correct 11 ms 12396 KB Output is correct
6 Correct 12 ms 12396 KB Output is correct
7 Correct 10 ms 12396 KB Output is correct
8 Correct 11 ms 12396 KB Output is correct
9 Correct 11 ms 12396 KB Output is correct
10 Correct 10 ms 12396 KB Output is correct
11 Correct 11 ms 12524 KB Output is correct
12 Correct 10 ms 12396 KB Output is correct
13 Correct 10 ms 12396 KB Output is correct
14 Correct 10 ms 12524 KB Output is correct
15 Correct 10 ms 12396 KB Output is correct
16 Correct 10 ms 12524 KB Output is correct
17 Correct 10 ms 12396 KB Output is correct
18 Correct 11 ms 12396 KB Output is correct
19 Correct 10 ms 12396 KB Output is correct
20 Correct 10 ms 12396 KB Output is correct
21 Correct 10 ms 12396 KB Output is correct
22 Correct 11 ms 12524 KB Output is correct
23 Correct 10 ms 12396 KB Output is correct
24 Correct 11 ms 12544 KB Output is correct
25 Correct 10 ms 12396 KB Output is correct
26 Correct 10 ms 12396 KB Output is correct
27 Correct 11 ms 12396 KB Output is correct
28 Correct 10 ms 12524 KB Output is correct
29 Correct 11 ms 12524 KB Output is correct
30 Correct 11 ms 12544 KB Output is correct
31 Correct 11 ms 12524 KB Output is correct
32 Correct 10 ms 12524 KB Output is correct
33 Correct 10 ms 12396 KB Output is correct
34 Correct 10 ms 12524 KB Output is correct
35 Correct 10 ms 12396 KB Output is correct
36 Correct 12 ms 12524 KB Output is correct
37 Correct 10 ms 12396 KB Output is correct
38 Correct 11 ms 12396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 74 ms 20588 KB Output is correct
2 Correct 74 ms 20972 KB Output is correct
3 Correct 76 ms 20972 KB Output is correct
4 Correct 76 ms 20992 KB Output is correct
5 Correct 71 ms 21100 KB Output is correct
6 Correct 71 ms 21088 KB Output is correct
7 Correct 41 ms 19672 KB Output is correct
8 Correct 43 ms 19864 KB Output is correct
9 Correct 72 ms 20972 KB Output is correct
10 Correct 72 ms 21224 KB Output is correct
11 Correct 74 ms 20972 KB Output is correct
12 Correct 72 ms 20972 KB Output is correct
13 Correct 67 ms 20612 KB Output is correct
14 Correct 73 ms 21356 KB Output is correct
15 Correct 67 ms 21356 KB Output is correct
16 Correct 73 ms 21484 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 375 ms 43884 KB Output is correct
2 Correct 288 ms 41836 KB Output is correct
3 Correct 401 ms 52588 KB Output is correct
4 Correct 289 ms 42092 KB Output is correct
5 Correct 283 ms 42604 KB Output is correct
6 Correct 418 ms 53356 KB Output is correct
7 Correct 159 ms 45960 KB Output is correct
8 Correct 167 ms 45836 KB Output is correct
9 Correct 411 ms 51732 KB Output is correct
10 Correct 441 ms 51888 KB Output is correct
11 Correct 390 ms 52204 KB Output is correct
12 Correct 409 ms 53216 KB Output is correct
13 Correct 388 ms 52204 KB Output is correct
14 Correct 395 ms 53228 KB Output is correct
15 Correct 408 ms 53168 KB Output is correct
16 Correct 395 ms 53100 KB Output is correct
17 Correct 407 ms 53064 KB Output is correct
18 Correct 393 ms 52716 KB Output is correct
19 Correct 431 ms 53228 KB Output is correct
20 Correct 393 ms 52716 KB Output is correct
21 Correct 395 ms 53120 KB Output is correct
22 Correct 399 ms 53228 KB Output is correct
23 Correct 414 ms 53196 KB Output is correct
24 Correct 438 ms 53100 KB Output is correct
25 Correct 301 ms 52096 KB Output is correct
26 Correct 327 ms 52972 KB Output is correct
27 Correct 354 ms 52844 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12396 KB Output is correct
2 Correct 10 ms 12396 KB Output is correct
3 Correct 10 ms 12396 KB Output is correct
4 Correct 11 ms 12396 KB Output is correct
5 Correct 11 ms 12396 KB Output is correct
6 Correct 12 ms 12396 KB Output is correct
7 Correct 10 ms 12396 KB Output is correct
8 Correct 11 ms 12396 KB Output is correct
9 Correct 11 ms 12396 KB Output is correct
10 Correct 10 ms 12396 KB Output is correct
11 Correct 11 ms 12524 KB Output is correct
12 Correct 10 ms 12396 KB Output is correct
13 Correct 10 ms 12396 KB Output is correct
14 Correct 10 ms 12524 KB Output is correct
15 Correct 10 ms 12396 KB Output is correct
16 Correct 10 ms 12524 KB Output is correct
17 Correct 10 ms 12396 KB Output is correct
18 Correct 11 ms 12396 KB Output is correct
19 Correct 10 ms 12396 KB Output is correct
20 Correct 10 ms 12396 KB Output is correct
21 Correct 74 ms 20588 KB Output is correct
22 Correct 74 ms 20972 KB Output is correct
23 Correct 76 ms 20972 KB Output is correct
24 Correct 76 ms 20992 KB Output is correct
25 Correct 71 ms 21100 KB Output is correct
26 Correct 71 ms 21088 KB Output is correct
27 Correct 41 ms 19672 KB Output is correct
28 Correct 43 ms 19864 KB Output is correct
29 Correct 72 ms 20972 KB Output is correct
30 Correct 72 ms 21224 KB Output is correct
31 Correct 74 ms 20972 KB Output is correct
32 Correct 72 ms 20972 KB Output is correct
33 Correct 67 ms 20612 KB Output is correct
34 Correct 73 ms 21356 KB Output is correct
35 Correct 67 ms 21356 KB Output is correct
36 Correct 73 ms 21484 KB Output is correct
37 Correct 64 ms 20588 KB Output is correct
38 Correct 59 ms 19692 KB Output is correct
39 Correct 36 ms 18904 KB Output is correct
40 Correct 42 ms 19852 KB Output is correct
41 Correct 74 ms 21228 KB Output is correct
42 Correct 75 ms 21484 KB Output is correct
43 Correct 72 ms 21484 KB Output is correct
44 Correct 75 ms 21356 KB Output is correct
45 Correct 73 ms 21484 KB Output is correct
46 Correct 78 ms 21484 KB Output is correct
47 Correct 52 ms 20624 KB Output is correct
48 Correct 77 ms 21612 KB Output is correct
49 Correct 51 ms 18924 KB Output is correct
50 Correct 61 ms 20228 KB Output is correct
51 Correct 71 ms 21612 KB Output is correct
52 Correct 72 ms 21612 KB Output is correct
53 Correct 55 ms 19692 KB Output is correct
54 Correct 76 ms 21484 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 76 ms 20076 KB Output is correct
2 Correct 90 ms 21100 KB Output is correct
3 Correct 86 ms 21228 KB Output is correct
4 Correct 59 ms 18668 KB Output is correct
5 Correct 75 ms 20204 KB Output is correct
6 Correct 85 ms 21228 KB Output is correct
7 Correct 47 ms 19168 KB Output is correct
8 Correct 45 ms 18780 KB Output is correct
9 Correct 66 ms 20820 KB Output is correct
10 Correct 51 ms 18796 KB Output is correct
11 Correct 75 ms 21100 KB Output is correct
12 Correct 74 ms 21228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12396 KB Output is correct
2 Correct 10 ms 12396 KB Output is correct
3 Correct 10 ms 12396 KB Output is correct
4 Correct 11 ms 12396 KB Output is correct
5 Correct 11 ms 12396 KB Output is correct
6 Correct 12 ms 12396 KB Output is correct
7 Correct 10 ms 12396 KB Output is correct
8 Correct 11 ms 12396 KB Output is correct
9 Correct 11 ms 12396 KB Output is correct
10 Correct 10 ms 12396 KB Output is correct
11 Correct 11 ms 12524 KB Output is correct
12 Correct 10 ms 12396 KB Output is correct
13 Correct 10 ms 12396 KB Output is correct
14 Correct 10 ms 12524 KB Output is correct
15 Correct 10 ms 12396 KB Output is correct
16 Correct 10 ms 12524 KB Output is correct
17 Correct 10 ms 12396 KB Output is correct
18 Correct 11 ms 12396 KB Output is correct
19 Correct 10 ms 12396 KB Output is correct
20 Correct 10 ms 12396 KB Output is correct
21 Correct 10 ms 12396 KB Output is correct
22 Correct 11 ms 12524 KB Output is correct
23 Correct 10 ms 12396 KB Output is correct
24 Correct 11 ms 12544 KB Output is correct
25 Correct 10 ms 12396 KB Output is correct
26 Correct 10 ms 12396 KB Output is correct
27 Correct 11 ms 12396 KB Output is correct
28 Correct 10 ms 12524 KB Output is correct
29 Correct 11 ms 12524 KB Output is correct
30 Correct 11 ms 12544 KB Output is correct
31 Correct 11 ms 12524 KB Output is correct
32 Correct 10 ms 12524 KB Output is correct
33 Correct 10 ms 12396 KB Output is correct
34 Correct 10 ms 12524 KB Output is correct
35 Correct 10 ms 12396 KB Output is correct
36 Correct 12 ms 12524 KB Output is correct
37 Correct 10 ms 12396 KB Output is correct
38 Correct 11 ms 12396 KB Output is correct
39 Correct 74 ms 20588 KB Output is correct
40 Correct 74 ms 20972 KB Output is correct
41 Correct 76 ms 20972 KB Output is correct
42 Correct 76 ms 20992 KB Output is correct
43 Correct 71 ms 21100 KB Output is correct
44 Correct 71 ms 21088 KB Output is correct
45 Correct 41 ms 19672 KB Output is correct
46 Correct 43 ms 19864 KB Output is correct
47 Correct 72 ms 20972 KB Output is correct
48 Correct 72 ms 21224 KB Output is correct
49 Correct 74 ms 20972 KB Output is correct
50 Correct 72 ms 20972 KB Output is correct
51 Correct 67 ms 20612 KB Output is correct
52 Correct 73 ms 21356 KB Output is correct
53 Correct 67 ms 21356 KB Output is correct
54 Correct 73 ms 21484 KB Output is correct
55 Correct 64 ms 20588 KB Output is correct
56 Correct 59 ms 19692 KB Output is correct
57 Correct 36 ms 18904 KB Output is correct
58 Correct 42 ms 19852 KB Output is correct
59 Correct 74 ms 21228 KB Output is correct
60 Correct 75 ms 21484 KB Output is correct
61 Correct 72 ms 21484 KB Output is correct
62 Correct 75 ms 21356 KB Output is correct
63 Correct 73 ms 21484 KB Output is correct
64 Correct 78 ms 21484 KB Output is correct
65 Correct 52 ms 20624 KB Output is correct
66 Correct 77 ms 21612 KB Output is correct
67 Correct 51 ms 18924 KB Output is correct
68 Correct 61 ms 20228 KB Output is correct
69 Correct 71 ms 21612 KB Output is correct
70 Correct 72 ms 21612 KB Output is correct
71 Correct 55 ms 19692 KB Output is correct
72 Correct 76 ms 21484 KB Output is correct
73 Correct 76 ms 20076 KB Output is correct
74 Correct 90 ms 21100 KB Output is correct
75 Correct 86 ms 21228 KB Output is correct
76 Correct 59 ms 18668 KB Output is correct
77 Correct 75 ms 20204 KB Output is correct
78 Correct 85 ms 21228 KB Output is correct
79 Correct 47 ms 19168 KB Output is correct
80 Correct 45 ms 18780 KB Output is correct
81 Correct 66 ms 20820 KB Output is correct
82 Correct 51 ms 18796 KB Output is correct
83 Correct 75 ms 21100 KB Output is correct
84 Correct 74 ms 21228 KB Output is correct
85 Correct 77 ms 20868 KB Output is correct
86 Correct 81 ms 21740 KB Output is correct
87 Correct 76 ms 20460 KB Output is correct
88 Correct 84 ms 21484 KB Output is correct
89 Correct 55 ms 18412 KB Output is correct
90 Correct 85 ms 21612 KB Output is correct
91 Correct 68 ms 19948 KB Output is correct
92 Correct 62 ms 19564 KB Output is correct
93 Correct 79 ms 21484 KB Output is correct
94 Correct 80 ms 21356 KB Output is correct
95 Correct 77 ms 21356 KB Output is correct
96 Correct 85 ms 21740 KB Output is correct
97 Correct 81 ms 21484 KB Output is correct
98 Correct 70 ms 20204 KB Output is correct
99 Correct 58 ms 20560 KB Output is correct
100 Correct 61 ms 19820 KB Output is correct
101 Correct 69 ms 21612 KB Output is correct
102 Correct 73 ms 21468 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12396 KB Output is correct
2 Correct 10 ms 12396 KB Output is correct
3 Correct 10 ms 12396 KB Output is correct
4 Correct 11 ms 12396 KB Output is correct
5 Correct 11 ms 12396 KB Output is correct
6 Correct 12 ms 12396 KB Output is correct
7 Correct 10 ms 12396 KB Output is correct
8 Correct 11 ms 12396 KB Output is correct
9 Correct 11 ms 12396 KB Output is correct
10 Correct 10 ms 12396 KB Output is correct
11 Correct 11 ms 12524 KB Output is correct
12 Correct 10 ms 12396 KB Output is correct
13 Correct 10 ms 12396 KB Output is correct
14 Correct 10 ms 12524 KB Output is correct
15 Correct 10 ms 12396 KB Output is correct
16 Correct 10 ms 12524 KB Output is correct
17 Correct 10 ms 12396 KB Output is correct
18 Correct 11 ms 12396 KB Output is correct
19 Correct 10 ms 12396 KB Output is correct
20 Correct 10 ms 12396 KB Output is correct
21 Correct 10 ms 12396 KB Output is correct
22 Correct 11 ms 12524 KB Output is correct
23 Correct 10 ms 12396 KB Output is correct
24 Correct 11 ms 12544 KB Output is correct
25 Correct 10 ms 12396 KB Output is correct
26 Correct 10 ms 12396 KB Output is correct
27 Correct 11 ms 12396 KB Output is correct
28 Correct 10 ms 12524 KB Output is correct
29 Correct 11 ms 12524 KB Output is correct
30 Correct 11 ms 12544 KB Output is correct
31 Correct 11 ms 12524 KB Output is correct
32 Correct 10 ms 12524 KB Output is correct
33 Correct 10 ms 12396 KB Output is correct
34 Correct 10 ms 12524 KB Output is correct
35 Correct 10 ms 12396 KB Output is correct
36 Correct 12 ms 12524 KB Output is correct
37 Correct 10 ms 12396 KB Output is correct
38 Correct 11 ms 12396 KB Output is correct
39 Correct 74 ms 20588 KB Output is correct
40 Correct 74 ms 20972 KB Output is correct
41 Correct 76 ms 20972 KB Output is correct
42 Correct 76 ms 20992 KB Output is correct
43 Correct 71 ms 21100 KB Output is correct
44 Correct 71 ms 21088 KB Output is correct
45 Correct 41 ms 19672 KB Output is correct
46 Correct 43 ms 19864 KB Output is correct
47 Correct 72 ms 20972 KB Output is correct
48 Correct 72 ms 21224 KB Output is correct
49 Correct 74 ms 20972 KB Output is correct
50 Correct 72 ms 20972 KB Output is correct
51 Correct 67 ms 20612 KB Output is correct
52 Correct 73 ms 21356 KB Output is correct
53 Correct 67 ms 21356 KB Output is correct
54 Correct 73 ms 21484 KB Output is correct
55 Correct 375 ms 43884 KB Output is correct
56 Correct 288 ms 41836 KB Output is correct
57 Correct 401 ms 52588 KB Output is correct
58 Correct 289 ms 42092 KB Output is correct
59 Correct 283 ms 42604 KB Output is correct
60 Correct 418 ms 53356 KB Output is correct
61 Correct 159 ms 45960 KB Output is correct
62 Correct 167 ms 45836 KB Output is correct
63 Correct 411 ms 51732 KB Output is correct
64 Correct 441 ms 51888 KB Output is correct
65 Correct 390 ms 52204 KB Output is correct
66 Correct 409 ms 53216 KB Output is correct
67 Correct 388 ms 52204 KB Output is correct
68 Correct 395 ms 53228 KB Output is correct
69 Correct 408 ms 53168 KB Output is correct
70 Correct 395 ms 53100 KB Output is correct
71 Correct 407 ms 53064 KB Output is correct
72 Correct 393 ms 52716 KB Output is correct
73 Correct 431 ms 53228 KB Output is correct
74 Correct 393 ms 52716 KB Output is correct
75 Correct 395 ms 53120 KB Output is correct
76 Correct 399 ms 53228 KB Output is correct
77 Correct 414 ms 53196 KB Output is correct
78 Correct 438 ms 53100 KB Output is correct
79 Correct 301 ms 52096 KB Output is correct
80 Correct 327 ms 52972 KB Output is correct
81 Correct 354 ms 52844 KB Output is correct
82 Correct 64 ms 20588 KB Output is correct
83 Correct 59 ms 19692 KB Output is correct
84 Correct 36 ms 18904 KB Output is correct
85 Correct 42 ms 19852 KB Output is correct
86 Correct 74 ms 21228 KB Output is correct
87 Correct 75 ms 21484 KB Output is correct
88 Correct 72 ms 21484 KB Output is correct
89 Correct 75 ms 21356 KB Output is correct
90 Correct 73 ms 21484 KB Output is correct
91 Correct 78 ms 21484 KB Output is correct
92 Correct 52 ms 20624 KB Output is correct
93 Correct 77 ms 21612 KB Output is correct
94 Correct 51 ms 18924 KB Output is correct
95 Correct 61 ms 20228 KB Output is correct
96 Correct 71 ms 21612 KB Output is correct
97 Correct 72 ms 21612 KB Output is correct
98 Correct 55 ms 19692 KB Output is correct
99 Correct 76 ms 21484 KB Output is correct
100 Correct 76 ms 20076 KB Output is correct
101 Correct 90 ms 21100 KB Output is correct
102 Correct 86 ms 21228 KB Output is correct
103 Correct 59 ms 18668 KB Output is correct
104 Correct 75 ms 20204 KB Output is correct
105 Correct 85 ms 21228 KB Output is correct
106 Correct 47 ms 19168 KB Output is correct
107 Correct 45 ms 18780 KB Output is correct
108 Correct 66 ms 20820 KB Output is correct
109 Correct 51 ms 18796 KB Output is correct
110 Correct 75 ms 21100 KB Output is correct
111 Correct 74 ms 21228 KB Output is correct
112 Correct 77 ms 20868 KB Output is correct
113 Correct 81 ms 21740 KB Output is correct
114 Correct 76 ms 20460 KB Output is correct
115 Correct 84 ms 21484 KB Output is correct
116 Correct 55 ms 18412 KB Output is correct
117 Correct 85 ms 21612 KB Output is correct
118 Correct 68 ms 19948 KB Output is correct
119 Correct 62 ms 19564 KB Output is correct
120 Correct 79 ms 21484 KB Output is correct
121 Correct 80 ms 21356 KB Output is correct
122 Correct 77 ms 21356 KB Output is correct
123 Correct 85 ms 21740 KB Output is correct
124 Correct 81 ms 21484 KB Output is correct
125 Correct 70 ms 20204 KB Output is correct
126 Correct 58 ms 20560 KB Output is correct
127 Correct 61 ms 19820 KB Output is correct
128 Correct 69 ms 21612 KB Output is correct
129 Correct 73 ms 21468 KB Output is correct
130 Correct 402 ms 53100 KB Output is correct
131 Correct 291 ms 42092 KB Output is correct
132 Correct 406 ms 53100 KB Output is correct
133 Correct 393 ms 52204 KB Output is correct
134 Correct 343 ms 47916 KB Output is correct
135 Correct 408 ms 53948 KB Output is correct
136 Correct 416 ms 52716 KB Output is correct
137 Correct 418 ms 52716 KB Output is correct
138 Correct 406 ms 52844 KB Output is correct
139 Correct 399 ms 53912 KB Output is correct
140 Correct 397 ms 52844 KB Output is correct
141 Correct 398 ms 53708 KB Output is correct
142 Correct 396 ms 53612 KB Output is correct
143 Correct 409 ms 53612 KB Output is correct
144 Correct 403 ms 53356 KB Output is correct
145 Correct 399 ms 53740 KB Output is correct
146 Correct 403 ms 53356 KB Output is correct
147 Correct 397 ms 53868 KB Output is correct
148 Correct 395 ms 53740 KB Output is correct
149 Correct 392 ms 53612 KB Output is correct
150 Correct 225 ms 49152 KB Output is correct
151 Correct 306 ms 53484 KB Output is correct
152 Correct 307 ms 53612 KB Output is correct
153 Correct 307 ms 53740 KB Output is correct