답안 #531546

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
531546 2022-03-01T03:41:52 Z eecs Diversity (CEOI21_diversity) C++17
100 / 100
6797 ms 7180 KB
#pragma GCC optimize("Ofast,unroll-loops")
#include <bits/stdc++.h>
using namespace std;

const int maxn = 300010, SZ = 500;
int n, q, a[maxn], bel[maxn], occ[maxn], cnt[maxn];
long long ans[maxn];
vector<array<int, 3>> Q;
unordered_set<int> S;

int main() {
    scanf("%d %d", &n, &q);
    for (int i = 1; i <= n; i++) {
        scanf("%d", &a[i]), bel[i] = (i - 1) / SZ + 1;
    }
    for (int i = 1, l, r; i <= q; i++) {
        scanf("%d %d", &l, &r);
        Q.push_back({l, r, i});
    }
    sort(Q.begin(), Q.end(), [&](array<int, 3> p, array<int, 3> q) {
        if (bel[p[0]] ^ bel[q[0]]) return bel[p[0]] < bel[q[0]];
        return bel[p[0]] & 1 ? p[1] < q[1] : p[1] > q[1];
    });
    cnt[0] = maxn, S.insert(0);
    auto ins = [&](int x, int coef) {
        if (!--cnt[occ[x]]) S.erase(occ[x]);
        occ[x] += coef;
        if (!cnt[occ[x]]++) S.insert(occ[x]);
    };
    int l = 1, r = 0;
    for (auto &p : Q) {
        while (l > p[0]) ins(a[--l], 1);
        while (r < p[1]) ins(a[++r], 1);
        while (l < p[0]) ins(a[l++], -1);
        while (r > p[1]) ins(a[r--], -1);
        vector<pair<int, int>> V;
        long long s = 0;
        int all = 0;
        for (int x : S) if (x) {
            V.emplace_back(x, cnt[x]), all += cnt[x];
            s += 1LL * x * x * cnt[x], ans[p[2]] += 1LL * x * (x + 1) / 2 * cnt[x];
        }
        sort(V.begin(), V.end());
        ans[p[2]] += (1LL * (r - l + 1) * (r - l + 1) - s) / 2;
        int pl = 1, pr = all, ls = 0, rs = 0;
        for (auto &q : V) {
            while (q.second--) {
                if (pl <= all - pr) {
                    ans[p[2]] += 1LL * pl * q.first * (2 * ls + q.first - (r - l + 1));
                    pl++, ls += q.first;
                } else {
                    ans[p[2]] += 1LL * pr * q.first * (r - l + 1 - 2 * rs - q.first);
                    pr--, rs += q.first;
                }
            }
        }
    }
    for (int i = 1; i <= q; i++) {
        printf("%lld\n", ans[i]);
    }
    return 0;
}

Compilation message

diversity.cpp: In function 'int main()':
diversity.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     scanf("%d %d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
diversity.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   14 |         scanf("%d", &a[i]), bel[i] = (i - 1) / SZ + 1;
      |         ~~~~~^~~~~~~~~~~~~
diversity.cpp:17:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   17 |         scanf("%d %d", &l, &r);
      |         ~~~~~^~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 296 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 332 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 0 ms 332 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 0 ms 300 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 332 KB Output is correct
3 Correct 2 ms 312 KB Output is correct
4 Correct 14 ms 1328 KB Output is correct
5 Correct 30 ms 2512 KB Output is correct
6 Correct 47 ms 3396 KB Output is correct
7 Correct 43 ms 3780 KB Output is correct
8 Correct 43 ms 3400 KB Output is correct
9 Correct 47 ms 3428 KB Output is correct
10 Correct 60 ms 3632 KB Output is correct
11 Correct 43 ms 3400 KB Output is correct
12 Correct 48 ms 3524 KB Output is correct
13 Correct 44 ms 3396 KB Output is correct
14 Correct 44 ms 3468 KB Output is correct
15 Correct 45 ms 3432 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 332 KB Output is correct
3 Correct 2 ms 312 KB Output is correct
4 Correct 14 ms 1328 KB Output is correct
5 Correct 30 ms 2512 KB Output is correct
6 Correct 47 ms 3396 KB Output is correct
7 Correct 43 ms 3780 KB Output is correct
8 Correct 43 ms 3400 KB Output is correct
9 Correct 47 ms 3428 KB Output is correct
10 Correct 60 ms 3632 KB Output is correct
11 Correct 43 ms 3400 KB Output is correct
12 Correct 48 ms 3524 KB Output is correct
13 Correct 44 ms 3396 KB Output is correct
14 Correct 44 ms 3468 KB Output is correct
15 Correct 45 ms 3432 KB Output is correct
16 Correct 1 ms 332 KB Output is correct
17 Correct 1 ms 332 KB Output is correct
18 Correct 2 ms 332 KB Output is correct
19 Correct 17 ms 1356 KB Output is correct
20 Correct 30 ms 2504 KB Output is correct
21 Correct 49 ms 3436 KB Output is correct
22 Correct 48 ms 3336 KB Output is correct
23 Correct 45 ms 3396 KB Output is correct
24 Correct 48 ms 3360 KB Output is correct
25 Correct 48 ms 3368 KB Output is correct
26 Correct 58 ms 3416 KB Output is correct
27 Correct 44 ms 3384 KB Output is correct
28 Correct 44 ms 3500 KB Output is correct
29 Correct 48 ms 3444 KB Output is correct
30 Correct 52 ms 3400 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 332 KB Output is correct
3 Correct 2 ms 312 KB Output is correct
4 Correct 14 ms 1328 KB Output is correct
5 Correct 30 ms 2512 KB Output is correct
6 Correct 47 ms 3396 KB Output is correct
7 Correct 43 ms 3780 KB Output is correct
8 Correct 43 ms 3400 KB Output is correct
9 Correct 47 ms 3428 KB Output is correct
10 Correct 60 ms 3632 KB Output is correct
11 Correct 43 ms 3400 KB Output is correct
12 Correct 48 ms 3524 KB Output is correct
13 Correct 44 ms 3396 KB Output is correct
14 Correct 44 ms 3468 KB Output is correct
15 Correct 45 ms 3432 KB Output is correct
16 Correct 1 ms 332 KB Output is correct
17 Correct 1 ms 332 KB Output is correct
18 Correct 2 ms 332 KB Output is correct
19 Correct 17 ms 1356 KB Output is correct
20 Correct 30 ms 2504 KB Output is correct
21 Correct 49 ms 3436 KB Output is correct
22 Correct 48 ms 3336 KB Output is correct
23 Correct 45 ms 3396 KB Output is correct
24 Correct 48 ms 3360 KB Output is correct
25 Correct 48 ms 3368 KB Output is correct
26 Correct 58 ms 3416 KB Output is correct
27 Correct 44 ms 3384 KB Output is correct
28 Correct 44 ms 3500 KB Output is correct
29 Correct 48 ms 3444 KB Output is correct
30 Correct 52 ms 3400 KB Output is correct
31 Correct 1 ms 332 KB Output is correct
32 Correct 1 ms 300 KB Output is correct
33 Correct 1 ms 332 KB Output is correct
34 Correct 2 ms 368 KB Output is correct
35 Correct 2 ms 332 KB Output is correct
36 Correct 1 ms 376 KB Output is correct
37 Correct 5 ms 824 KB Output is correct
38 Correct 5 ms 844 KB Output is correct
39 Correct 10 ms 1464 KB Output is correct
40 Correct 21 ms 2536 KB Output is correct
41 Correct 31 ms 3276 KB Output is correct
42 Correct 33 ms 3416 KB Output is correct
43 Correct 33 ms 3320 KB Output is correct
44 Correct 32 ms 3264 KB Output is correct
45 Correct 31 ms 3336 KB Output is correct
46 Correct 32 ms 3336 KB Output is correct
47 Correct 31 ms 3308 KB Output is correct
48 Correct 30 ms 3244 KB Output is correct
49 Correct 30 ms 3328 KB Output is correct
50 Correct 31 ms 3268 KB Output is correct
51 Correct 30 ms 3320 KB Output is correct
52 Correct 38 ms 3396 KB Output is correct
53 Correct 33 ms 3332 KB Output is correct
54 Correct 31 ms 3260 KB Output is correct
55 Correct 31 ms 3252 KB Output is correct
56 Correct 30 ms 3260 KB Output is correct
57 Correct 30 ms 3332 KB Output is correct
58 Correct 31 ms 3280 KB Output is correct
59 Correct 30 ms 3268 KB Output is correct
60 Correct 30 ms 3244 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 296 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 332 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 0 ms 332 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 0 ms 300 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 300 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 332 KB Output is correct
13 Correct 2 ms 312 KB Output is correct
14 Correct 14 ms 1328 KB Output is correct
15 Correct 30 ms 2512 KB Output is correct
16 Correct 47 ms 3396 KB Output is correct
17 Correct 43 ms 3780 KB Output is correct
18 Correct 43 ms 3400 KB Output is correct
19 Correct 47 ms 3428 KB Output is correct
20 Correct 60 ms 3632 KB Output is correct
21 Correct 43 ms 3400 KB Output is correct
22 Correct 48 ms 3524 KB Output is correct
23 Correct 44 ms 3396 KB Output is correct
24 Correct 44 ms 3468 KB Output is correct
25 Correct 45 ms 3432 KB Output is correct
26 Correct 1 ms 332 KB Output is correct
27 Correct 1 ms 332 KB Output is correct
28 Correct 2 ms 332 KB Output is correct
29 Correct 17 ms 1356 KB Output is correct
30 Correct 30 ms 2504 KB Output is correct
31 Correct 49 ms 3436 KB Output is correct
32 Correct 48 ms 3336 KB Output is correct
33 Correct 45 ms 3396 KB Output is correct
34 Correct 48 ms 3360 KB Output is correct
35 Correct 48 ms 3368 KB Output is correct
36 Correct 58 ms 3416 KB Output is correct
37 Correct 44 ms 3384 KB Output is correct
38 Correct 44 ms 3500 KB Output is correct
39 Correct 48 ms 3444 KB Output is correct
40 Correct 52 ms 3400 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 1 ms 300 KB Output is correct
43 Correct 1 ms 332 KB Output is correct
44 Correct 2 ms 368 KB Output is correct
45 Correct 2 ms 332 KB Output is correct
46 Correct 1 ms 376 KB Output is correct
47 Correct 5 ms 824 KB Output is correct
48 Correct 5 ms 844 KB Output is correct
49 Correct 10 ms 1464 KB Output is correct
50 Correct 21 ms 2536 KB Output is correct
51 Correct 31 ms 3276 KB Output is correct
52 Correct 33 ms 3416 KB Output is correct
53 Correct 33 ms 3320 KB Output is correct
54 Correct 32 ms 3264 KB Output is correct
55 Correct 31 ms 3336 KB Output is correct
56 Correct 32 ms 3336 KB Output is correct
57 Correct 31 ms 3308 KB Output is correct
58 Correct 30 ms 3244 KB Output is correct
59 Correct 30 ms 3328 KB Output is correct
60 Correct 31 ms 3268 KB Output is correct
61 Correct 30 ms 3320 KB Output is correct
62 Correct 38 ms 3396 KB Output is correct
63 Correct 33 ms 3332 KB Output is correct
64 Correct 31 ms 3260 KB Output is correct
65 Correct 31 ms 3252 KB Output is correct
66 Correct 30 ms 3260 KB Output is correct
67 Correct 30 ms 3332 KB Output is correct
68 Correct 31 ms 3280 KB Output is correct
69 Correct 30 ms 3268 KB Output is correct
70 Correct 30 ms 3244 KB Output is correct
71 Correct 5 ms 936 KB Output is correct
72 Correct 6 ms 844 KB Output is correct
73 Correct 9 ms 844 KB Output is correct
74 Correct 5 ms 956 KB Output is correct
75 Correct 5 ms 844 KB Output is correct
76 Correct 11 ms 1484 KB Output is correct
77 Correct 9 ms 1484 KB Output is correct
78 Correct 9 ms 1588 KB Output is correct
79 Correct 9 ms 1548 KB Output is correct
80 Correct 10 ms 1516 KB Output is correct
81 Correct 17 ms 2484 KB Output is correct
82 Correct 17 ms 2512 KB Output is correct
83 Correct 18 ms 2508 KB Output is correct
84 Correct 19 ms 2636 KB Output is correct
85 Correct 21 ms 2484 KB Output is correct
86 Correct 19 ms 2508 KB Output is correct
87 Correct 21 ms 2508 KB Output is correct
88 Correct 19 ms 2544 KB Output is correct
89 Correct 22 ms 2536 KB Output is correct
90 Correct 21 ms 2508 KB Output is correct
91 Correct 28 ms 3652 KB Output is correct
92 Correct 29 ms 3636 KB Output is correct
93 Correct 28 ms 3672 KB Output is correct
94 Correct 31 ms 3652 KB Output is correct
95 Correct 29 ms 3584 KB Output is correct
96 Correct 36 ms 4136 KB Output is correct
97 Correct 36 ms 4068 KB Output is correct
98 Correct 34 ms 3964 KB Output is correct
99 Correct 33 ms 3944 KB Output is correct
100 Correct 35 ms 4036 KB Output is correct
101 Correct 36 ms 4008 KB Output is correct
102 Correct 35 ms 4036 KB Output is correct
103 Correct 37 ms 4016 KB Output is correct
104 Correct 37 ms 4080 KB Output is correct
105 Correct 37 ms 4052 KB Output is correct
106 Correct 34 ms 4256 KB Output is correct
107 Correct 34 ms 4212 KB Output is correct
108 Correct 35 ms 4248 KB Output is correct
109 Correct 36 ms 4232 KB Output is correct
110 Correct 33 ms 4224 KB Output is correct
111 Correct 33 ms 4216 KB Output is correct
112 Correct 35 ms 4264 KB Output is correct
113 Correct 33 ms 4136 KB Output is correct
114 Correct 37 ms 4168 KB Output is correct
115 Correct 35 ms 4256 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 296 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 332 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 0 ms 332 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 0 ms 300 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 300 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 332 KB Output is correct
13 Correct 2 ms 312 KB Output is correct
14 Correct 14 ms 1328 KB Output is correct
15 Correct 30 ms 2512 KB Output is correct
16 Correct 47 ms 3396 KB Output is correct
17 Correct 43 ms 3780 KB Output is correct
18 Correct 43 ms 3400 KB Output is correct
19 Correct 47 ms 3428 KB Output is correct
20 Correct 60 ms 3632 KB Output is correct
21 Correct 43 ms 3400 KB Output is correct
22 Correct 48 ms 3524 KB Output is correct
23 Correct 44 ms 3396 KB Output is correct
24 Correct 44 ms 3468 KB Output is correct
25 Correct 45 ms 3432 KB Output is correct
26 Correct 1 ms 332 KB Output is correct
27 Correct 1 ms 332 KB Output is correct
28 Correct 2 ms 332 KB Output is correct
29 Correct 17 ms 1356 KB Output is correct
30 Correct 30 ms 2504 KB Output is correct
31 Correct 49 ms 3436 KB Output is correct
32 Correct 48 ms 3336 KB Output is correct
33 Correct 45 ms 3396 KB Output is correct
34 Correct 48 ms 3360 KB Output is correct
35 Correct 48 ms 3368 KB Output is correct
36 Correct 58 ms 3416 KB Output is correct
37 Correct 44 ms 3384 KB Output is correct
38 Correct 44 ms 3500 KB Output is correct
39 Correct 48 ms 3444 KB Output is correct
40 Correct 52 ms 3400 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 1 ms 300 KB Output is correct
43 Correct 1 ms 332 KB Output is correct
44 Correct 2 ms 368 KB Output is correct
45 Correct 2 ms 332 KB Output is correct
46 Correct 1 ms 376 KB Output is correct
47 Correct 5 ms 824 KB Output is correct
48 Correct 5 ms 844 KB Output is correct
49 Correct 10 ms 1464 KB Output is correct
50 Correct 21 ms 2536 KB Output is correct
51 Correct 31 ms 3276 KB Output is correct
52 Correct 33 ms 3416 KB Output is correct
53 Correct 33 ms 3320 KB Output is correct
54 Correct 32 ms 3264 KB Output is correct
55 Correct 31 ms 3336 KB Output is correct
56 Correct 32 ms 3336 KB Output is correct
57 Correct 31 ms 3308 KB Output is correct
58 Correct 30 ms 3244 KB Output is correct
59 Correct 30 ms 3328 KB Output is correct
60 Correct 31 ms 3268 KB Output is correct
61 Correct 30 ms 3320 KB Output is correct
62 Correct 38 ms 3396 KB Output is correct
63 Correct 33 ms 3332 KB Output is correct
64 Correct 31 ms 3260 KB Output is correct
65 Correct 31 ms 3252 KB Output is correct
66 Correct 30 ms 3260 KB Output is correct
67 Correct 30 ms 3332 KB Output is correct
68 Correct 31 ms 3280 KB Output is correct
69 Correct 30 ms 3268 KB Output is correct
70 Correct 30 ms 3244 KB Output is correct
71 Correct 5 ms 936 KB Output is correct
72 Correct 6 ms 844 KB Output is correct
73 Correct 9 ms 844 KB Output is correct
74 Correct 5 ms 956 KB Output is correct
75 Correct 5 ms 844 KB Output is correct
76 Correct 11 ms 1484 KB Output is correct
77 Correct 9 ms 1484 KB Output is correct
78 Correct 9 ms 1588 KB Output is correct
79 Correct 9 ms 1548 KB Output is correct
80 Correct 10 ms 1516 KB Output is correct
81 Correct 17 ms 2484 KB Output is correct
82 Correct 17 ms 2512 KB Output is correct
83 Correct 18 ms 2508 KB Output is correct
84 Correct 19 ms 2636 KB Output is correct
85 Correct 21 ms 2484 KB Output is correct
86 Correct 19 ms 2508 KB Output is correct
87 Correct 21 ms 2508 KB Output is correct
88 Correct 19 ms 2544 KB Output is correct
89 Correct 22 ms 2536 KB Output is correct
90 Correct 21 ms 2508 KB Output is correct
91 Correct 28 ms 3652 KB Output is correct
92 Correct 29 ms 3636 KB Output is correct
93 Correct 28 ms 3672 KB Output is correct
94 Correct 31 ms 3652 KB Output is correct
95 Correct 29 ms 3584 KB Output is correct
96 Correct 36 ms 4136 KB Output is correct
97 Correct 36 ms 4068 KB Output is correct
98 Correct 34 ms 3964 KB Output is correct
99 Correct 33 ms 3944 KB Output is correct
100 Correct 35 ms 4036 KB Output is correct
101 Correct 36 ms 4008 KB Output is correct
102 Correct 35 ms 4036 KB Output is correct
103 Correct 37 ms 4016 KB Output is correct
104 Correct 37 ms 4080 KB Output is correct
105 Correct 37 ms 4052 KB Output is correct
106 Correct 34 ms 4256 KB Output is correct
107 Correct 34 ms 4212 KB Output is correct
108 Correct 35 ms 4248 KB Output is correct
109 Correct 36 ms 4232 KB Output is correct
110 Correct 33 ms 4224 KB Output is correct
111 Correct 33 ms 4216 KB Output is correct
112 Correct 35 ms 4264 KB Output is correct
113 Correct 33 ms 4136 KB Output is correct
114 Correct 37 ms 4168 KB Output is correct
115 Correct 35 ms 4256 KB Output is correct
116 Correct 548 ms 2488 KB Output is correct
117 Correct 425 ms 2344 KB Output is correct
118 Correct 803 ms 2856 KB Output is correct
119 Correct 506 ms 2848 KB Output is correct
120 Correct 383 ms 2876 KB Output is correct
121 Correct 665 ms 3248 KB Output is correct
122 Correct 596 ms 3288 KB Output is correct
123 Correct 1582 ms 4028 KB Output is correct
124 Correct 1192 ms 4164 KB Output is correct
125 Correct 1646 ms 4184 KB Output is correct
126 Correct 5482 ms 4828 KB Output is correct
127 Correct 5410 ms 4816 KB Output is correct
128 Correct 5347 ms 4952 KB Output is correct
129 Correct 5372 ms 4808 KB Output is correct
130 Correct 5285 ms 4820 KB Output is correct
131 Correct 4705 ms 4924 KB Output is correct
132 Correct 4687 ms 4936 KB Output is correct
133 Correct 4964 ms 4936 KB Output is correct
134 Correct 4751 ms 4936 KB Output is correct
135 Correct 4730 ms 4936 KB Output is correct
136 Correct 4507 ms 4940 KB Output is correct
137 Correct 4729 ms 4936 KB Output is correct
138 Correct 4564 ms 4944 KB Output is correct
139 Correct 4736 ms 4928 KB Output is correct
140 Correct 4658 ms 4944 KB Output is correct
141 Correct 3002 ms 4936 KB Output is correct
142 Correct 3148 ms 4940 KB Output is correct
143 Correct 3032 ms 4924 KB Output is correct
144 Correct 3072 ms 4940 KB Output is correct
145 Correct 3001 ms 4936 KB Output is correct
146 Correct 1615 ms 4940 KB Output is correct
147 Correct 1610 ms 4948 KB Output is correct
148 Correct 1677 ms 4944 KB Output is correct
149 Correct 1605 ms 4980 KB Output is correct
150 Correct 1604 ms 4876 KB Output is correct
151 Correct 2114 ms 4900 KB Output is correct
152 Correct 2089 ms 4892 KB Output is correct
153 Correct 2124 ms 4888 KB Output is correct
154 Correct 2088 ms 4924 KB Output is correct
155 Correct 2063 ms 4892 KB Output is correct
156 Correct 6797 ms 5156 KB Output is correct
157 Correct 6788 ms 7100 KB Output is correct
158 Correct 6756 ms 7024 KB Output is correct
159 Correct 6747 ms 7020 KB Output is correct
160 Correct 6699 ms 7040 KB Output is correct
161 Correct 6169 ms 7180 KB Output is correct
162 Correct 6159 ms 7108 KB Output is correct
163 Correct 6191 ms 7084 KB Output is correct
164 Correct 6143 ms 7100 KB Output is correct
165 Correct 6090 ms 7068 KB Output is correct
166 Correct 4467 ms 6724 KB Output is correct
167 Correct 4601 ms 6692 KB Output is correct
168 Correct 4453 ms 6696 KB Output is correct
169 Correct 4546 ms 6724 KB Output is correct
170 Correct 4450 ms 6708 KB Output is correct
171 Correct 5478 ms 6644 KB Output is correct
172 Correct 5426 ms 6644 KB Output is correct
173 Correct 5497 ms 6696 KB Output is correct
174 Correct 5428 ms 6644 KB Output is correct
175 Correct 5442 ms 6680 KB Output is correct