Submission #966239

# Submission time Handle Problem Language Result Execution time Memory
966239 2024-04-19T14:56:58 Z abczz Council (JOI23_council) C++14
100 / 100
1022 ms 57796 KB
#include <iostream>
#include <array>
#include <vector>
#define ll long long

using namespace std;

ll n, m, a, f, mask, cnt[20], A[300000];
vector <ll> V[21];
array <array<ll, 2>, 2> dp[(1LL<<20)];

void add(ll u, array<ll, 2> x) {
  if (dp[u][0][0] < x[0]) {
    if (dp[u][0][1] != x[1]) dp[u][1] = dp[u][0];
    dp[u][0] = x;
  }
  else if (dp[u][1][0] < x[0] && dp[u][0][1] != x[1]) dp[u][1] = x;
}
int main() {
  cin >> n >> m;
  for (int i=0; i<(1LL<<20); ++i) {
    dp[i] = {0, -1, 0, -1};
    V[__builtin_popcount(i)].push_back(i);
  }
  for (int i=0; i<n; ++i) {
    for (int j=0; j<m; ++j) {
      cin >> a;
      cnt[j] += a;
      A[i] += a<<j;
    }
    add(A[i] ^ (((1LL<<m)-1)), {__builtin_popcount(A[i] ^ ((1LL<<m)-1)), i});
  }
  for (int i=20; i>1; --i) {
    for (auto u : V[i]) {
      for (int j=0; j<20; ++j) {
        if (u & (1LL<<j)) {
          add(u-(1LL<<j), {dp[u][0][0]-1, dp[u][0][1]});
          add(u-(1LL<<j), {dp[u][1][0]-1, dp[u][1][1]});
        }
      }
    }
  }
  for (int i=1; i<20; ++i) {
    for (auto u : V[i]) {
      for (int j=0; j<20; ++j) {
        if (!(u & (1LL<<j))) {
          add(u+(1LL<<j), dp[u][0]);
          add(u+(1LL<<j), dp[u][1]);
        }
      }
    }
  }
  for (int i=0; i<n; ++i) {
    f = mask = 0;
    for (int j=0; j<20; ++j) {
      a = cnt[j]-(bool)(A[i] & (1LL<<j));
      if (a > n/2) ++f;
      else if (a == n/2) mask += (1LL<<j);
    }
    if (dp[mask][0][1] != i) f += dp[mask][0][0];
    else f += dp[mask][1][0];
    cout << f << '\n';
  }
}
# Verdict Execution time Memory Grader output
1 Correct 271 ms 42944 KB Output is correct
2 Correct 268 ms 42944 KB Output is correct
3 Correct 247 ms 42948 KB Output is correct
4 Correct 266 ms 42956 KB Output is correct
5 Correct 247 ms 42780 KB Output is correct
6 Correct 252 ms 42960 KB Output is correct
7 Correct 285 ms 42952 KB Output is correct
8 Correct 275 ms 42776 KB Output is correct
9 Correct 270 ms 42960 KB Output is correct
10 Correct 275 ms 42952 KB Output is correct
11 Correct 283 ms 42952 KB Output is correct
12 Correct 279 ms 43028 KB Output is correct
13 Correct 255 ms 42948 KB Output is correct
14 Correct 250 ms 42776 KB Output is correct
15 Correct 254 ms 42948 KB Output is correct
16 Correct 261 ms 42780 KB Output is correct
17 Correct 261 ms 42776 KB Output is correct
18 Correct 248 ms 42944 KB Output is correct
19 Correct 250 ms 42780 KB Output is correct
20 Correct 266 ms 42776 KB Output is correct
21 Correct 246 ms 42776 KB Output is correct
22 Correct 269 ms 43024 KB Output is correct
23 Correct 261 ms 43032 KB Output is correct
24 Correct 252 ms 43032 KB Output is correct
25 Correct 246 ms 42948 KB Output is correct
26 Correct 262 ms 42948 KB Output is correct
27 Correct 264 ms 42776 KB Output is correct
28 Correct 247 ms 42948 KB Output is correct
29 Correct 258 ms 43028 KB Output is correct
30 Correct 245 ms 42952 KB Output is correct
31 Correct 264 ms 42780 KB Output is correct
32 Correct 262 ms 43036 KB Output is correct
33 Correct 250 ms 42952 KB Output is correct
34 Correct 266 ms 42956 KB Output is correct
35 Correct 254 ms 42948 KB Output is correct
36 Correct 247 ms 42948 KB Output is correct
37 Correct 260 ms 42980 KB Output is correct
38 Correct 260 ms 42948 KB Output is correct
39 Correct 258 ms 42952 KB Output is correct
40 Correct 248 ms 42956 KB Output is correct
41 Correct 240 ms 42780 KB Output is correct
42 Correct 257 ms 42780 KB Output is correct
43 Correct 251 ms 42780 KB Output is correct
44 Correct 258 ms 42944 KB Output is correct
45 Correct 259 ms 42780 KB Output is correct
46 Correct 248 ms 42780 KB Output is correct
47 Correct 266 ms 42956 KB Output is correct
48 Correct 259 ms 42952 KB Output is correct
49 Correct 264 ms 42944 KB Output is correct
50 Correct 268 ms 42968 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 271 ms 42944 KB Output is correct
2 Correct 268 ms 42944 KB Output is correct
3 Correct 247 ms 42948 KB Output is correct
4 Correct 266 ms 42956 KB Output is correct
5 Correct 247 ms 42780 KB Output is correct
6 Correct 252 ms 42960 KB Output is correct
7 Correct 285 ms 42952 KB Output is correct
8 Correct 275 ms 42776 KB Output is correct
9 Correct 270 ms 42960 KB Output is correct
10 Correct 275 ms 42952 KB Output is correct
11 Correct 283 ms 42952 KB Output is correct
12 Correct 279 ms 43028 KB Output is correct
13 Correct 255 ms 42948 KB Output is correct
14 Correct 250 ms 42776 KB Output is correct
15 Correct 254 ms 42948 KB Output is correct
16 Correct 261 ms 42780 KB Output is correct
17 Correct 261 ms 42776 KB Output is correct
18 Correct 248 ms 42944 KB Output is correct
19 Correct 250 ms 42780 KB Output is correct
20 Correct 266 ms 42776 KB Output is correct
21 Correct 246 ms 42776 KB Output is correct
22 Correct 269 ms 43024 KB Output is correct
23 Correct 261 ms 43032 KB Output is correct
24 Correct 252 ms 43032 KB Output is correct
25 Correct 246 ms 42948 KB Output is correct
26 Correct 262 ms 42948 KB Output is correct
27 Correct 264 ms 42776 KB Output is correct
28 Correct 247 ms 42948 KB Output is correct
29 Correct 258 ms 43028 KB Output is correct
30 Correct 245 ms 42952 KB Output is correct
31 Correct 264 ms 42780 KB Output is correct
32 Correct 262 ms 43036 KB Output is correct
33 Correct 250 ms 42952 KB Output is correct
34 Correct 266 ms 42956 KB Output is correct
35 Correct 254 ms 42948 KB Output is correct
36 Correct 247 ms 42948 KB Output is correct
37 Correct 260 ms 42980 KB Output is correct
38 Correct 260 ms 42948 KB Output is correct
39 Correct 258 ms 42952 KB Output is correct
40 Correct 248 ms 42956 KB Output is correct
41 Correct 240 ms 42780 KB Output is correct
42 Correct 257 ms 42780 KB Output is correct
43 Correct 251 ms 42780 KB Output is correct
44 Correct 258 ms 42944 KB Output is correct
45 Correct 259 ms 42780 KB Output is correct
46 Correct 248 ms 42780 KB Output is correct
47 Correct 266 ms 42956 KB Output is correct
48 Correct 259 ms 42952 KB Output is correct
49 Correct 264 ms 42944 KB Output is correct
50 Correct 268 ms 42968 KB Output is correct
51 Correct 267 ms 43072 KB Output is correct
52 Correct 255 ms 43092 KB Output is correct
53 Correct 274 ms 43064 KB Output is correct
54 Correct 278 ms 43088 KB Output is correct
55 Correct 253 ms 42780 KB Output is correct
56 Correct 255 ms 43036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 268 ms 42952 KB Output is correct
2 Correct 362 ms 46848 KB Output is correct
3 Correct 353 ms 46864 KB Output is correct
4 Correct 311 ms 46284 KB Output is correct
5 Correct 355 ms 46796 KB Output is correct
6 Correct 336 ms 46216 KB Output is correct
7 Correct 336 ms 46800 KB Output is correct
8 Correct 255 ms 42948 KB Output is correct
9 Correct 248 ms 42948 KB Output is correct
10 Correct 259 ms 42952 KB Output is correct
11 Correct 248 ms 42956 KB Output is correct
12 Correct 245 ms 42776 KB Output is correct
13 Correct 245 ms 42768 KB Output is correct
14 Correct 248 ms 42952 KB Output is correct
15 Correct 252 ms 42776 KB Output is correct
16 Correct 259 ms 42948 KB Output is correct
17 Correct 249 ms 42780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 268 ms 42952 KB Output is correct
2 Correct 362 ms 46848 KB Output is correct
3 Correct 353 ms 46864 KB Output is correct
4 Correct 311 ms 46284 KB Output is correct
5 Correct 355 ms 46796 KB Output is correct
6 Correct 336 ms 46216 KB Output is correct
7 Correct 336 ms 46800 KB Output is correct
8 Correct 255 ms 42948 KB Output is correct
9 Correct 248 ms 42948 KB Output is correct
10 Correct 259 ms 42952 KB Output is correct
11 Correct 248 ms 42956 KB Output is correct
12 Correct 245 ms 42776 KB Output is correct
13 Correct 245 ms 42768 KB Output is correct
14 Correct 248 ms 42952 KB Output is correct
15 Correct 252 ms 42776 KB Output is correct
16 Correct 259 ms 42948 KB Output is correct
17 Correct 249 ms 42780 KB Output is correct
18 Correct 258 ms 42948 KB Output is correct
19 Correct 257 ms 42972 KB Output is correct
20 Correct 603 ms 51532 KB Output is correct
21 Correct 590 ms 50740 KB Output is correct
22 Correct 592 ms 50876 KB Output is correct
23 Correct 625 ms 51740 KB Output is correct
24 Correct 617 ms 51480 KB Output is correct
25 Correct 592 ms 51424 KB Output is correct
26 Correct 649 ms 51444 KB Output is correct
27 Correct 262 ms 42776 KB Output is correct
28 Correct 278 ms 42948 KB Output is correct
29 Correct 272 ms 42944 KB Output is correct
30 Correct 270 ms 42944 KB Output is correct
31 Correct 251 ms 42780 KB Output is correct
32 Correct 277 ms 42956 KB Output is correct
33 Correct 269 ms 42776 KB Output is correct
34 Correct 263 ms 42952 KB Output is correct
35 Correct 270 ms 42948 KB Output is correct
36 Correct 278 ms 42956 KB Output is correct
37 Correct 247 ms 42780 KB Output is correct
38 Correct 251 ms 42948 KB Output is correct
39 Correct 262 ms 42780 KB Output is correct
40 Correct 258 ms 42944 KB Output is correct
41 Correct 268 ms 42952 KB Output is correct
42 Correct 269 ms 42952 KB Output is correct
43 Correct 270 ms 42780 KB Output is correct
44 Correct 261 ms 42864 KB Output is correct
45 Correct 270 ms 42840 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 268 ms 42952 KB Output is correct
2 Correct 362 ms 46848 KB Output is correct
3 Correct 353 ms 46864 KB Output is correct
4 Correct 311 ms 46284 KB Output is correct
5 Correct 355 ms 46796 KB Output is correct
6 Correct 336 ms 46216 KB Output is correct
7 Correct 336 ms 46800 KB Output is correct
8 Correct 255 ms 42948 KB Output is correct
9 Correct 248 ms 42948 KB Output is correct
10 Correct 259 ms 42952 KB Output is correct
11 Correct 248 ms 42956 KB Output is correct
12 Correct 245 ms 42776 KB Output is correct
13 Correct 245 ms 42768 KB Output is correct
14 Correct 248 ms 42952 KB Output is correct
15 Correct 252 ms 42776 KB Output is correct
16 Correct 259 ms 42948 KB Output is correct
17 Correct 249 ms 42780 KB Output is correct
18 Correct 258 ms 42948 KB Output is correct
19 Correct 257 ms 42972 KB Output is correct
20 Correct 603 ms 51532 KB Output is correct
21 Correct 590 ms 50740 KB Output is correct
22 Correct 592 ms 50876 KB Output is correct
23 Correct 625 ms 51740 KB Output is correct
24 Correct 617 ms 51480 KB Output is correct
25 Correct 592 ms 51424 KB Output is correct
26 Correct 649 ms 51444 KB Output is correct
27 Correct 262 ms 42776 KB Output is correct
28 Correct 278 ms 42948 KB Output is correct
29 Correct 272 ms 42944 KB Output is correct
30 Correct 270 ms 42944 KB Output is correct
31 Correct 251 ms 42780 KB Output is correct
32 Correct 277 ms 42956 KB Output is correct
33 Correct 269 ms 42776 KB Output is correct
34 Correct 263 ms 42952 KB Output is correct
35 Correct 270 ms 42948 KB Output is correct
36 Correct 278 ms 42956 KB Output is correct
37 Correct 247 ms 42780 KB Output is correct
38 Correct 251 ms 42948 KB Output is correct
39 Correct 262 ms 42780 KB Output is correct
40 Correct 258 ms 42944 KB Output is correct
41 Correct 268 ms 42952 KB Output is correct
42 Correct 269 ms 42952 KB Output is correct
43 Correct 270 ms 42780 KB Output is correct
44 Correct 261 ms 42864 KB Output is correct
45 Correct 270 ms 42840 KB Output is correct
46 Correct 284 ms 42776 KB Output is correct
47 Correct 779 ms 53828 KB Output is correct
48 Correct 748 ms 53248 KB Output is correct
49 Correct 719 ms 53112 KB Output is correct
50 Correct 722 ms 53968 KB Output is correct
51 Correct 722 ms 53828 KB Output is correct
52 Correct 821 ms 53828 KB Output is correct
53 Correct 780 ms 54032 KB Output is correct
54 Correct 257 ms 42948 KB Output is correct
55 Correct 272 ms 42952 KB Output is correct
56 Correct 263 ms 42948 KB Output is correct
57 Correct 275 ms 42952 KB Output is correct
58 Correct 290 ms 42952 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 268 ms 42952 KB Output is correct
2 Correct 362 ms 46848 KB Output is correct
3 Correct 353 ms 46864 KB Output is correct
4 Correct 311 ms 46284 KB Output is correct
5 Correct 355 ms 46796 KB Output is correct
6 Correct 336 ms 46216 KB Output is correct
7 Correct 336 ms 46800 KB Output is correct
8 Correct 255 ms 42948 KB Output is correct
9 Correct 248 ms 42948 KB Output is correct
10 Correct 259 ms 42952 KB Output is correct
11 Correct 248 ms 42956 KB Output is correct
12 Correct 245 ms 42776 KB Output is correct
13 Correct 245 ms 42768 KB Output is correct
14 Correct 248 ms 42952 KB Output is correct
15 Correct 252 ms 42776 KB Output is correct
16 Correct 259 ms 42948 KB Output is correct
17 Correct 249 ms 42780 KB Output is correct
18 Correct 258 ms 42948 KB Output is correct
19 Correct 257 ms 42972 KB Output is correct
20 Correct 603 ms 51532 KB Output is correct
21 Correct 590 ms 50740 KB Output is correct
22 Correct 592 ms 50876 KB Output is correct
23 Correct 625 ms 51740 KB Output is correct
24 Correct 617 ms 51480 KB Output is correct
25 Correct 592 ms 51424 KB Output is correct
26 Correct 649 ms 51444 KB Output is correct
27 Correct 262 ms 42776 KB Output is correct
28 Correct 278 ms 42948 KB Output is correct
29 Correct 272 ms 42944 KB Output is correct
30 Correct 270 ms 42944 KB Output is correct
31 Correct 251 ms 42780 KB Output is correct
32 Correct 277 ms 42956 KB Output is correct
33 Correct 269 ms 42776 KB Output is correct
34 Correct 263 ms 42952 KB Output is correct
35 Correct 270 ms 42948 KB Output is correct
36 Correct 278 ms 42956 KB Output is correct
37 Correct 247 ms 42780 KB Output is correct
38 Correct 251 ms 42948 KB Output is correct
39 Correct 262 ms 42780 KB Output is correct
40 Correct 258 ms 42944 KB Output is correct
41 Correct 268 ms 42952 KB Output is correct
42 Correct 269 ms 42952 KB Output is correct
43 Correct 270 ms 42780 KB Output is correct
44 Correct 261 ms 42864 KB Output is correct
45 Correct 270 ms 42840 KB Output is correct
46 Correct 284 ms 42776 KB Output is correct
47 Correct 779 ms 53828 KB Output is correct
48 Correct 748 ms 53248 KB Output is correct
49 Correct 719 ms 53112 KB Output is correct
50 Correct 722 ms 53968 KB Output is correct
51 Correct 722 ms 53828 KB Output is correct
52 Correct 821 ms 53828 KB Output is correct
53 Correct 780 ms 54032 KB Output is correct
54 Correct 257 ms 42948 KB Output is correct
55 Correct 272 ms 42952 KB Output is correct
56 Correct 263 ms 42948 KB Output is correct
57 Correct 275 ms 42952 KB Output is correct
58 Correct 290 ms 42952 KB Output is correct
59 Correct 812 ms 55228 KB Output is correct
60 Correct 525 ms 47896 KB Output is correct
61 Correct 489 ms 48148 KB Output is correct
62 Correct 520 ms 48304 KB Output is correct
63 Correct 818 ms 54928 KB Output is correct
64 Correct 865 ms 55720 KB Output is correct
65 Correct 870 ms 55848 KB Output is correct
66 Correct 801 ms 55848 KB Output is correct
67 Correct 821 ms 55592 KB Output is correct
68 Correct 843 ms 55472 KB Output is correct
69 Correct 904 ms 55908 KB Output is correct
70 Correct 254 ms 42952 KB Output is correct
71 Correct 265 ms 42776 KB Output is correct
72 Correct 277 ms 42956 KB Output is correct
73 Correct 270 ms 42780 KB Output is correct
74 Correct 265 ms 42948 KB Output is correct
75 Correct 256 ms 43048 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 271 ms 42944 KB Output is correct
2 Correct 268 ms 42944 KB Output is correct
3 Correct 247 ms 42948 KB Output is correct
4 Correct 266 ms 42956 KB Output is correct
5 Correct 247 ms 42780 KB Output is correct
6 Correct 252 ms 42960 KB Output is correct
7 Correct 285 ms 42952 KB Output is correct
8 Correct 275 ms 42776 KB Output is correct
9 Correct 270 ms 42960 KB Output is correct
10 Correct 275 ms 42952 KB Output is correct
11 Correct 283 ms 42952 KB Output is correct
12 Correct 279 ms 43028 KB Output is correct
13 Correct 255 ms 42948 KB Output is correct
14 Correct 250 ms 42776 KB Output is correct
15 Correct 254 ms 42948 KB Output is correct
16 Correct 261 ms 42780 KB Output is correct
17 Correct 261 ms 42776 KB Output is correct
18 Correct 248 ms 42944 KB Output is correct
19 Correct 250 ms 42780 KB Output is correct
20 Correct 266 ms 42776 KB Output is correct
21 Correct 246 ms 42776 KB Output is correct
22 Correct 269 ms 43024 KB Output is correct
23 Correct 261 ms 43032 KB Output is correct
24 Correct 252 ms 43032 KB Output is correct
25 Correct 246 ms 42948 KB Output is correct
26 Correct 262 ms 42948 KB Output is correct
27 Correct 264 ms 42776 KB Output is correct
28 Correct 247 ms 42948 KB Output is correct
29 Correct 258 ms 43028 KB Output is correct
30 Correct 245 ms 42952 KB Output is correct
31 Correct 264 ms 42780 KB Output is correct
32 Correct 262 ms 43036 KB Output is correct
33 Correct 250 ms 42952 KB Output is correct
34 Correct 266 ms 42956 KB Output is correct
35 Correct 254 ms 42948 KB Output is correct
36 Correct 247 ms 42948 KB Output is correct
37 Correct 260 ms 42980 KB Output is correct
38 Correct 260 ms 42948 KB Output is correct
39 Correct 258 ms 42952 KB Output is correct
40 Correct 248 ms 42956 KB Output is correct
41 Correct 240 ms 42780 KB Output is correct
42 Correct 257 ms 42780 KB Output is correct
43 Correct 251 ms 42780 KB Output is correct
44 Correct 258 ms 42944 KB Output is correct
45 Correct 259 ms 42780 KB Output is correct
46 Correct 248 ms 42780 KB Output is correct
47 Correct 266 ms 42956 KB Output is correct
48 Correct 259 ms 42952 KB Output is correct
49 Correct 264 ms 42944 KB Output is correct
50 Correct 268 ms 42968 KB Output is correct
51 Correct 267 ms 43072 KB Output is correct
52 Correct 255 ms 43092 KB Output is correct
53 Correct 274 ms 43064 KB Output is correct
54 Correct 278 ms 43088 KB Output is correct
55 Correct 253 ms 42780 KB Output is correct
56 Correct 255 ms 43036 KB Output is correct
57 Correct 268 ms 42952 KB Output is correct
58 Correct 362 ms 46848 KB Output is correct
59 Correct 353 ms 46864 KB Output is correct
60 Correct 311 ms 46284 KB Output is correct
61 Correct 355 ms 46796 KB Output is correct
62 Correct 336 ms 46216 KB Output is correct
63 Correct 336 ms 46800 KB Output is correct
64 Correct 255 ms 42948 KB Output is correct
65 Correct 248 ms 42948 KB Output is correct
66 Correct 259 ms 42952 KB Output is correct
67 Correct 248 ms 42956 KB Output is correct
68 Correct 245 ms 42776 KB Output is correct
69 Correct 245 ms 42768 KB Output is correct
70 Correct 248 ms 42952 KB Output is correct
71 Correct 252 ms 42776 KB Output is correct
72 Correct 259 ms 42948 KB Output is correct
73 Correct 249 ms 42780 KB Output is correct
74 Correct 258 ms 42948 KB Output is correct
75 Correct 257 ms 42972 KB Output is correct
76 Correct 603 ms 51532 KB Output is correct
77 Correct 590 ms 50740 KB Output is correct
78 Correct 592 ms 50876 KB Output is correct
79 Correct 625 ms 51740 KB Output is correct
80 Correct 617 ms 51480 KB Output is correct
81 Correct 592 ms 51424 KB Output is correct
82 Correct 649 ms 51444 KB Output is correct
83 Correct 262 ms 42776 KB Output is correct
84 Correct 278 ms 42948 KB Output is correct
85 Correct 272 ms 42944 KB Output is correct
86 Correct 270 ms 42944 KB Output is correct
87 Correct 251 ms 42780 KB Output is correct
88 Correct 277 ms 42956 KB Output is correct
89 Correct 269 ms 42776 KB Output is correct
90 Correct 263 ms 42952 KB Output is correct
91 Correct 270 ms 42948 KB Output is correct
92 Correct 278 ms 42956 KB Output is correct
93 Correct 247 ms 42780 KB Output is correct
94 Correct 251 ms 42948 KB Output is correct
95 Correct 262 ms 42780 KB Output is correct
96 Correct 258 ms 42944 KB Output is correct
97 Correct 268 ms 42952 KB Output is correct
98 Correct 269 ms 42952 KB Output is correct
99 Correct 270 ms 42780 KB Output is correct
100 Correct 261 ms 42864 KB Output is correct
101 Correct 270 ms 42840 KB Output is correct
102 Correct 284 ms 42776 KB Output is correct
103 Correct 779 ms 53828 KB Output is correct
104 Correct 748 ms 53248 KB Output is correct
105 Correct 719 ms 53112 KB Output is correct
106 Correct 722 ms 53968 KB Output is correct
107 Correct 722 ms 53828 KB Output is correct
108 Correct 821 ms 53828 KB Output is correct
109 Correct 780 ms 54032 KB Output is correct
110 Correct 257 ms 42948 KB Output is correct
111 Correct 272 ms 42952 KB Output is correct
112 Correct 263 ms 42948 KB Output is correct
113 Correct 275 ms 42952 KB Output is correct
114 Correct 290 ms 42952 KB Output is correct
115 Correct 812 ms 55228 KB Output is correct
116 Correct 525 ms 47896 KB Output is correct
117 Correct 489 ms 48148 KB Output is correct
118 Correct 520 ms 48304 KB Output is correct
119 Correct 818 ms 54928 KB Output is correct
120 Correct 865 ms 55720 KB Output is correct
121 Correct 870 ms 55848 KB Output is correct
122 Correct 801 ms 55848 KB Output is correct
123 Correct 821 ms 55592 KB Output is correct
124 Correct 843 ms 55472 KB Output is correct
125 Correct 904 ms 55908 KB Output is correct
126 Correct 254 ms 42952 KB Output is correct
127 Correct 265 ms 42776 KB Output is correct
128 Correct 277 ms 42956 KB Output is correct
129 Correct 270 ms 42780 KB Output is correct
130 Correct 265 ms 42948 KB Output is correct
131 Correct 256 ms 43048 KB Output is correct
132 Correct 974 ms 57764 KB Output is correct
133 Correct 974 ms 57340 KB Output is correct
134 Correct 991 ms 57724 KB Output is correct
135 Correct 992 ms 57608 KB Output is correct
136 Correct 1020 ms 57776 KB Output is correct
137 Correct 953 ms 56760 KB Output is correct
138 Correct 939 ms 57164 KB Output is correct
139 Correct 921 ms 57796 KB Output is correct
140 Correct 878 ms 57404 KB Output is correct
141 Correct 960 ms 57404 KB Output is correct
142 Correct 1022 ms 57500 KB Output is correct