답안 #1111678

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1111678 2024-11-12T15:37:59 Z flashmt Council (JOI23_council) C++17
100 / 100
787 ms 123468 KB
#include <bits/stdc++.h>
using namespace std;
const int M = 20;

vector<int> id[1 << M];

void dfs(int bit, int mask, int curId)
{
  if (size(id[mask]) >= 2)
    return;

  if (bit < 0)
  {
    id[mask].push_back(curId);
    return;
  }

  dfs(bit - 1, mask, curId);
  if (mask >> bit & 1)
    dfs(bit - 1, mask ^ 1 << bit, curId);
}

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  vector<int> cntCol(m);
  vector<vector<int>> a(n, vector<int>(m));
  vector<int> maskA(n);
  for (int i = 0; i < n; i++)
  {
    int mask = 0;
    for (int j = 0; j < m; j++)
    {
      cin >> a[i][j];
      if (a[i][j]) cntCol[j]++;
      else mask |= 1 << j;
    }
    dfs(m - 1, mask, i);
  }

  vector<pair<int, int>> f(1 << m, make_pair(0, -1));
  auto f2 = f;
  for (int mask = 1; mask < 1 << m; mask++)
    if (!empty(id[mask]))
    {
      int bit = __builtin_popcount(mask);
      f[mask] = {bit, id[mask][0]};
      if (size(id[mask]) == 2)
        f2[mask] = {bit, id[mask][1]};
    }

  auto update = [&](pair<int, int> u, int mask)
  {
    if (u > f[mask])
    {
      if (f[mask].second != u.second)
        f2[mask] = f[mask];
      f[mask] = u;
    }
    else if (f[mask].second != u.second)
    {
      f2[mask] = max(f2[mask], u);
    }
  };

  for (int i = 0; i < m; i++)
    for (int mask = 1; mask < 1 << m; mask++)
      if (mask >> i & 1)
      {
        update(f[mask ^ 1 << i], mask);
        update(f2[mask ^ 1 << i], mask);
      }

  int need = n / 2;
  for (int i = 0; i < n; i++)
  {
    int importantMask = 0, approved = 0;
    for (int j = 0; j < m; j++)
    {
      cntCol[j] -= a[i][j];
      if (cntCol[j] == need) importantMask |= 1 << j;
      else if (cntCol[j] > need) approved++;
    }

    int best = f[importantMask].second != i ? f[importantMask].first : f2[importantMask].first;
    cout << approved + best << '\n';

    for (int j = 0; j < m; j++)
      cntCol[j] += a[i][j];
  }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 17 ms 24912 KB Output is correct
3 Correct 16 ms 24912 KB Output is correct
4 Correct 18 ms 24912 KB Output is correct
5 Correct 125 ms 57672 KB Output is correct
6 Correct 62 ms 41552 KB Output is correct
7 Correct 71 ms 42824 KB Output is correct
8 Correct 80 ms 42332 KB Output is correct
9 Correct 167 ms 52756 KB Output is correct
10 Correct 76 ms 41772 KB Output is correct
11 Correct 90 ms 42252 KB Output is correct
12 Correct 171 ms 52176 KB Output is correct
13 Correct 18 ms 24912 KB Output is correct
14 Correct 16 ms 24912 KB Output is correct
15 Correct 18 ms 24912 KB Output is correct
16 Correct 17 ms 25052 KB Output is correct
17 Correct 19 ms 24912 KB Output is correct
18 Correct 19 ms 25068 KB Output is correct
19 Correct 18 ms 24912 KB Output is correct
20 Correct 19 ms 24912 KB Output is correct
21 Correct 18 ms 24912 KB Output is correct
22 Correct 18 ms 24912 KB Output is correct
23 Correct 18 ms 24864 KB Output is correct
24 Correct 17 ms 24912 KB Output is correct
25 Correct 17 ms 24856 KB Output is correct
26 Correct 17 ms 24884 KB Output is correct
27 Correct 18 ms 25060 KB Output is correct
28 Correct 18 ms 24912 KB Output is correct
29 Correct 20 ms 24912 KB Output is correct
30 Correct 18 ms 24876 KB Output is correct
31 Correct 17 ms 25168 KB Output is correct
32 Correct 16 ms 24912 KB Output is correct
33 Correct 16 ms 24912 KB Output is correct
34 Correct 18 ms 24924 KB Output is correct
35 Correct 17 ms 24912 KB Output is correct
36 Correct 17 ms 24904 KB Output is correct
37 Correct 18 ms 24912 KB Output is correct
38 Correct 17 ms 24912 KB Output is correct
39 Correct 18 ms 25120 KB Output is correct
40 Correct 16 ms 24912 KB Output is correct
41 Correct 23 ms 25420 KB Output is correct
42 Correct 18 ms 25168 KB Output is correct
43 Correct 18 ms 25424 KB Output is correct
44 Correct 18 ms 25284 KB Output is correct
45 Correct 19 ms 25440 KB Output is correct
46 Correct 28 ms 29008 KB Output is correct
47 Correct 24 ms 27216 KB Output is correct
48 Correct 26 ms 27216 KB Output is correct
49 Correct 24 ms 27216 KB Output is correct
50 Correct 27 ms 27728 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 17 ms 24912 KB Output is correct
3 Correct 16 ms 24912 KB Output is correct
4 Correct 18 ms 24912 KB Output is correct
5 Correct 125 ms 57672 KB Output is correct
6 Correct 62 ms 41552 KB Output is correct
7 Correct 71 ms 42824 KB Output is correct
8 Correct 80 ms 42332 KB Output is correct
9 Correct 167 ms 52756 KB Output is correct
10 Correct 76 ms 41772 KB Output is correct
11 Correct 90 ms 42252 KB Output is correct
12 Correct 171 ms 52176 KB Output is correct
13 Correct 18 ms 24912 KB Output is correct
14 Correct 16 ms 24912 KB Output is correct
15 Correct 18 ms 24912 KB Output is correct
16 Correct 17 ms 25052 KB Output is correct
17 Correct 19 ms 24912 KB Output is correct
18 Correct 19 ms 25068 KB Output is correct
19 Correct 18 ms 24912 KB Output is correct
20 Correct 19 ms 24912 KB Output is correct
21 Correct 18 ms 24912 KB Output is correct
22 Correct 18 ms 24912 KB Output is correct
23 Correct 18 ms 24864 KB Output is correct
24 Correct 17 ms 24912 KB Output is correct
25 Correct 17 ms 24856 KB Output is correct
26 Correct 17 ms 24884 KB Output is correct
27 Correct 18 ms 25060 KB Output is correct
28 Correct 18 ms 24912 KB Output is correct
29 Correct 20 ms 24912 KB Output is correct
30 Correct 18 ms 24876 KB Output is correct
31 Correct 17 ms 25168 KB Output is correct
32 Correct 16 ms 24912 KB Output is correct
33 Correct 16 ms 24912 KB Output is correct
34 Correct 18 ms 24924 KB Output is correct
35 Correct 17 ms 24912 KB Output is correct
36 Correct 17 ms 24904 KB Output is correct
37 Correct 18 ms 24912 KB Output is correct
38 Correct 17 ms 24912 KB Output is correct
39 Correct 18 ms 25120 KB Output is correct
40 Correct 16 ms 24912 KB Output is correct
41 Correct 23 ms 25420 KB Output is correct
42 Correct 18 ms 25168 KB Output is correct
43 Correct 18 ms 25424 KB Output is correct
44 Correct 18 ms 25284 KB Output is correct
45 Correct 19 ms 25440 KB Output is correct
46 Correct 28 ms 29008 KB Output is correct
47 Correct 24 ms 27216 KB Output is correct
48 Correct 26 ms 27216 KB Output is correct
49 Correct 24 ms 27216 KB Output is correct
50 Correct 27 ms 27728 KB Output is correct
51 Correct 75 ms 41888 KB Output is correct
52 Correct 158 ms 74824 KB Output is correct
53 Correct 274 ms 74824 KB Output is correct
54 Correct 267 ms 68860 KB Output is correct
55 Correct 23 ms 25168 KB Output is correct
56 Correct 50 ms 31056 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 82 ms 44352 KB Output is correct
3 Correct 78 ms 44360 KB Output is correct
4 Correct 68 ms 43848 KB Output is correct
5 Correct 77 ms 44260 KB Output is correct
6 Correct 68 ms 43848 KB Output is correct
7 Correct 79 ms 44216 KB Output is correct
8 Correct 17 ms 24912 KB Output is correct
9 Correct 17 ms 24912 KB Output is correct
10 Correct 17 ms 24912 KB Output is correct
11 Correct 20 ms 24912 KB Output is correct
12 Correct 18 ms 24912 KB Output is correct
13 Correct 17 ms 25008 KB Output is correct
14 Correct 18 ms 25080 KB Output is correct
15 Correct 19 ms 24912 KB Output is correct
16 Correct 18 ms 24912 KB Output is correct
17 Correct 20 ms 25168 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 82 ms 44352 KB Output is correct
3 Correct 78 ms 44360 KB Output is correct
4 Correct 68 ms 43848 KB Output is correct
5 Correct 77 ms 44260 KB Output is correct
6 Correct 68 ms 43848 KB Output is correct
7 Correct 79 ms 44216 KB Output is correct
8 Correct 17 ms 24912 KB Output is correct
9 Correct 17 ms 24912 KB Output is correct
10 Correct 17 ms 24912 KB Output is correct
11 Correct 20 ms 24912 KB Output is correct
12 Correct 18 ms 24912 KB Output is correct
13 Correct 17 ms 25008 KB Output is correct
14 Correct 18 ms 25080 KB Output is correct
15 Correct 19 ms 24912 KB Output is correct
16 Correct 18 ms 24912 KB Output is correct
17 Correct 20 ms 25168 KB Output is correct
18 Correct 18 ms 24912 KB Output is correct
19 Correct 18 ms 24912 KB Output is correct
20 Correct 198 ms 54088 KB Output is correct
21 Correct 193 ms 53064 KB Output is correct
22 Correct 189 ms 53188 KB Output is correct
23 Correct 173 ms 54088 KB Output is correct
24 Correct 155 ms 53748 KB Output is correct
25 Correct 177 ms 53832 KB Output is correct
26 Correct 186 ms 53904 KB Output is correct
27 Correct 18 ms 24912 KB Output is correct
28 Correct 18 ms 25064 KB Output is correct
29 Correct 18 ms 24912 KB Output is correct
30 Correct 22 ms 24912 KB Output is correct
31 Correct 19 ms 25084 KB Output is correct
32 Correct 18 ms 24912 KB Output is correct
33 Correct 19 ms 24912 KB Output is correct
34 Correct 19 ms 24912 KB Output is correct
35 Correct 19 ms 24912 KB Output is correct
36 Correct 19 ms 24912 KB Output is correct
37 Correct 19 ms 24992 KB Output is correct
38 Correct 17 ms 24912 KB Output is correct
39 Correct 20 ms 24912 KB Output is correct
40 Correct 19 ms 24912 KB Output is correct
41 Correct 18 ms 24912 KB Output is correct
42 Correct 18 ms 25036 KB Output is correct
43 Correct 18 ms 25080 KB Output is correct
44 Correct 18 ms 24912 KB Output is correct
45 Correct 17 ms 24912 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 82 ms 44352 KB Output is correct
3 Correct 78 ms 44360 KB Output is correct
4 Correct 68 ms 43848 KB Output is correct
5 Correct 77 ms 44260 KB Output is correct
6 Correct 68 ms 43848 KB Output is correct
7 Correct 79 ms 44216 KB Output is correct
8 Correct 17 ms 24912 KB Output is correct
9 Correct 17 ms 24912 KB Output is correct
10 Correct 17 ms 24912 KB Output is correct
11 Correct 20 ms 24912 KB Output is correct
12 Correct 18 ms 24912 KB Output is correct
13 Correct 17 ms 25008 KB Output is correct
14 Correct 18 ms 25080 KB Output is correct
15 Correct 19 ms 24912 KB Output is correct
16 Correct 18 ms 24912 KB Output is correct
17 Correct 20 ms 25168 KB Output is correct
18 Correct 18 ms 24912 KB Output is correct
19 Correct 18 ms 24912 KB Output is correct
20 Correct 198 ms 54088 KB Output is correct
21 Correct 193 ms 53064 KB Output is correct
22 Correct 189 ms 53188 KB Output is correct
23 Correct 173 ms 54088 KB Output is correct
24 Correct 155 ms 53748 KB Output is correct
25 Correct 177 ms 53832 KB Output is correct
26 Correct 186 ms 53904 KB Output is correct
27 Correct 18 ms 24912 KB Output is correct
28 Correct 18 ms 25064 KB Output is correct
29 Correct 18 ms 24912 KB Output is correct
30 Correct 22 ms 24912 KB Output is correct
31 Correct 19 ms 25084 KB Output is correct
32 Correct 18 ms 24912 KB Output is correct
33 Correct 19 ms 24912 KB Output is correct
34 Correct 19 ms 24912 KB Output is correct
35 Correct 19 ms 24912 KB Output is correct
36 Correct 19 ms 24912 KB Output is correct
37 Correct 19 ms 24992 KB Output is correct
38 Correct 17 ms 24912 KB Output is correct
39 Correct 20 ms 24912 KB Output is correct
40 Correct 19 ms 24912 KB Output is correct
41 Correct 18 ms 24912 KB Output is correct
42 Correct 18 ms 25036 KB Output is correct
43 Correct 18 ms 25080 KB Output is correct
44 Correct 18 ms 24912 KB Output is correct
45 Correct 17 ms 24912 KB Output is correct
46 Correct 22 ms 25132 KB Output is correct
47 Correct 251 ms 61512 KB Output is correct
48 Correct 224 ms 60556 KB Output is correct
49 Correct 228 ms 60488 KB Output is correct
50 Correct 218 ms 61560 KB Output is correct
51 Correct 204 ms 61512 KB Output is correct
52 Correct 250 ms 61540 KB Output is correct
53 Correct 253 ms 61768 KB Output is correct
54 Correct 20 ms 25592 KB Output is correct
55 Correct 21 ms 25320 KB Output is correct
56 Correct 20 ms 25424 KB Output is correct
57 Correct 22 ms 25168 KB Output is correct
58 Correct 19 ms 25424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 82 ms 44352 KB Output is correct
3 Correct 78 ms 44360 KB Output is correct
4 Correct 68 ms 43848 KB Output is correct
5 Correct 77 ms 44260 KB Output is correct
6 Correct 68 ms 43848 KB Output is correct
7 Correct 79 ms 44216 KB Output is correct
8 Correct 17 ms 24912 KB Output is correct
9 Correct 17 ms 24912 KB Output is correct
10 Correct 17 ms 24912 KB Output is correct
11 Correct 20 ms 24912 KB Output is correct
12 Correct 18 ms 24912 KB Output is correct
13 Correct 17 ms 25008 KB Output is correct
14 Correct 18 ms 25080 KB Output is correct
15 Correct 19 ms 24912 KB Output is correct
16 Correct 18 ms 24912 KB Output is correct
17 Correct 20 ms 25168 KB Output is correct
18 Correct 18 ms 24912 KB Output is correct
19 Correct 18 ms 24912 KB Output is correct
20 Correct 198 ms 54088 KB Output is correct
21 Correct 193 ms 53064 KB Output is correct
22 Correct 189 ms 53188 KB Output is correct
23 Correct 173 ms 54088 KB Output is correct
24 Correct 155 ms 53748 KB Output is correct
25 Correct 177 ms 53832 KB Output is correct
26 Correct 186 ms 53904 KB Output is correct
27 Correct 18 ms 24912 KB Output is correct
28 Correct 18 ms 25064 KB Output is correct
29 Correct 18 ms 24912 KB Output is correct
30 Correct 22 ms 24912 KB Output is correct
31 Correct 19 ms 25084 KB Output is correct
32 Correct 18 ms 24912 KB Output is correct
33 Correct 19 ms 24912 KB Output is correct
34 Correct 19 ms 24912 KB Output is correct
35 Correct 19 ms 24912 KB Output is correct
36 Correct 19 ms 24912 KB Output is correct
37 Correct 19 ms 24992 KB Output is correct
38 Correct 17 ms 24912 KB Output is correct
39 Correct 20 ms 24912 KB Output is correct
40 Correct 19 ms 24912 KB Output is correct
41 Correct 18 ms 24912 KB Output is correct
42 Correct 18 ms 25036 KB Output is correct
43 Correct 18 ms 25080 KB Output is correct
44 Correct 18 ms 24912 KB Output is correct
45 Correct 17 ms 24912 KB Output is correct
46 Correct 22 ms 25132 KB Output is correct
47 Correct 251 ms 61512 KB Output is correct
48 Correct 224 ms 60556 KB Output is correct
49 Correct 228 ms 60488 KB Output is correct
50 Correct 218 ms 61560 KB Output is correct
51 Correct 204 ms 61512 KB Output is correct
52 Correct 250 ms 61540 KB Output is correct
53 Correct 253 ms 61768 KB Output is correct
54 Correct 20 ms 25592 KB Output is correct
55 Correct 21 ms 25320 KB Output is correct
56 Correct 20 ms 25424 KB Output is correct
57 Correct 22 ms 25168 KB Output is correct
58 Correct 19 ms 25424 KB Output is correct
59 Correct 294 ms 69204 KB Output is correct
60 Correct 161 ms 47144 KB Output is correct
61 Correct 176 ms 48500 KB Output is correct
62 Correct 189 ms 48968 KB Output is correct
63 Correct 293 ms 69704 KB Output is correct
64 Correct 334 ms 72388 KB Output is correct
65 Correct 332 ms 72556 KB Output is correct
66 Correct 259 ms 69560 KB Output is correct
67 Correct 256 ms 73288 KB Output is correct
68 Correct 333 ms 73404 KB Output is correct
69 Correct 322 ms 73672 KB Output is correct
70 Correct 30 ms 29008 KB Output is correct
71 Correct 23 ms 27216 KB Output is correct
72 Correct 28 ms 27216 KB Output is correct
73 Correct 25 ms 27228 KB Output is correct
74 Correct 27 ms 27896 KB Output is correct
75 Correct 52 ms 31040 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 24912 KB Output is correct
2 Correct 17 ms 24912 KB Output is correct
3 Correct 16 ms 24912 KB Output is correct
4 Correct 18 ms 24912 KB Output is correct
5 Correct 125 ms 57672 KB Output is correct
6 Correct 62 ms 41552 KB Output is correct
7 Correct 71 ms 42824 KB Output is correct
8 Correct 80 ms 42332 KB Output is correct
9 Correct 167 ms 52756 KB Output is correct
10 Correct 76 ms 41772 KB Output is correct
11 Correct 90 ms 42252 KB Output is correct
12 Correct 171 ms 52176 KB Output is correct
13 Correct 18 ms 24912 KB Output is correct
14 Correct 16 ms 24912 KB Output is correct
15 Correct 18 ms 24912 KB Output is correct
16 Correct 17 ms 25052 KB Output is correct
17 Correct 19 ms 24912 KB Output is correct
18 Correct 19 ms 25068 KB Output is correct
19 Correct 18 ms 24912 KB Output is correct
20 Correct 19 ms 24912 KB Output is correct
21 Correct 18 ms 24912 KB Output is correct
22 Correct 18 ms 24912 KB Output is correct
23 Correct 18 ms 24864 KB Output is correct
24 Correct 17 ms 24912 KB Output is correct
25 Correct 17 ms 24856 KB Output is correct
26 Correct 17 ms 24884 KB Output is correct
27 Correct 18 ms 25060 KB Output is correct
28 Correct 18 ms 24912 KB Output is correct
29 Correct 20 ms 24912 KB Output is correct
30 Correct 18 ms 24876 KB Output is correct
31 Correct 17 ms 25168 KB Output is correct
32 Correct 16 ms 24912 KB Output is correct
33 Correct 16 ms 24912 KB Output is correct
34 Correct 18 ms 24924 KB Output is correct
35 Correct 17 ms 24912 KB Output is correct
36 Correct 17 ms 24904 KB Output is correct
37 Correct 18 ms 24912 KB Output is correct
38 Correct 17 ms 24912 KB Output is correct
39 Correct 18 ms 25120 KB Output is correct
40 Correct 16 ms 24912 KB Output is correct
41 Correct 23 ms 25420 KB Output is correct
42 Correct 18 ms 25168 KB Output is correct
43 Correct 18 ms 25424 KB Output is correct
44 Correct 18 ms 25284 KB Output is correct
45 Correct 19 ms 25440 KB Output is correct
46 Correct 28 ms 29008 KB Output is correct
47 Correct 24 ms 27216 KB Output is correct
48 Correct 26 ms 27216 KB Output is correct
49 Correct 24 ms 27216 KB Output is correct
50 Correct 27 ms 27728 KB Output is correct
51 Correct 75 ms 41888 KB Output is correct
52 Correct 158 ms 74824 KB Output is correct
53 Correct 274 ms 74824 KB Output is correct
54 Correct 267 ms 68860 KB Output is correct
55 Correct 23 ms 25168 KB Output is correct
56 Correct 50 ms 31056 KB Output is correct
57 Correct 17 ms 24912 KB Output is correct
58 Correct 82 ms 44352 KB Output is correct
59 Correct 78 ms 44360 KB Output is correct
60 Correct 68 ms 43848 KB Output is correct
61 Correct 77 ms 44260 KB Output is correct
62 Correct 68 ms 43848 KB Output is correct
63 Correct 79 ms 44216 KB Output is correct
64 Correct 17 ms 24912 KB Output is correct
65 Correct 17 ms 24912 KB Output is correct
66 Correct 17 ms 24912 KB Output is correct
67 Correct 20 ms 24912 KB Output is correct
68 Correct 18 ms 24912 KB Output is correct
69 Correct 17 ms 25008 KB Output is correct
70 Correct 18 ms 25080 KB Output is correct
71 Correct 19 ms 24912 KB Output is correct
72 Correct 18 ms 24912 KB Output is correct
73 Correct 20 ms 25168 KB Output is correct
74 Correct 18 ms 24912 KB Output is correct
75 Correct 18 ms 24912 KB Output is correct
76 Correct 198 ms 54088 KB Output is correct
77 Correct 193 ms 53064 KB Output is correct
78 Correct 189 ms 53188 KB Output is correct
79 Correct 173 ms 54088 KB Output is correct
80 Correct 155 ms 53748 KB Output is correct
81 Correct 177 ms 53832 KB Output is correct
82 Correct 186 ms 53904 KB Output is correct
83 Correct 18 ms 24912 KB Output is correct
84 Correct 18 ms 25064 KB Output is correct
85 Correct 18 ms 24912 KB Output is correct
86 Correct 22 ms 24912 KB Output is correct
87 Correct 19 ms 25084 KB Output is correct
88 Correct 18 ms 24912 KB Output is correct
89 Correct 19 ms 24912 KB Output is correct
90 Correct 19 ms 24912 KB Output is correct
91 Correct 19 ms 24912 KB Output is correct
92 Correct 19 ms 24912 KB Output is correct
93 Correct 19 ms 24992 KB Output is correct
94 Correct 17 ms 24912 KB Output is correct
95 Correct 20 ms 24912 KB Output is correct
96 Correct 19 ms 24912 KB Output is correct
97 Correct 18 ms 24912 KB Output is correct
98 Correct 18 ms 25036 KB Output is correct
99 Correct 18 ms 25080 KB Output is correct
100 Correct 18 ms 24912 KB Output is correct
101 Correct 17 ms 24912 KB Output is correct
102 Correct 22 ms 25132 KB Output is correct
103 Correct 251 ms 61512 KB Output is correct
104 Correct 224 ms 60556 KB Output is correct
105 Correct 228 ms 60488 KB Output is correct
106 Correct 218 ms 61560 KB Output is correct
107 Correct 204 ms 61512 KB Output is correct
108 Correct 250 ms 61540 KB Output is correct
109 Correct 253 ms 61768 KB Output is correct
110 Correct 20 ms 25592 KB Output is correct
111 Correct 21 ms 25320 KB Output is correct
112 Correct 20 ms 25424 KB Output is correct
113 Correct 22 ms 25168 KB Output is correct
114 Correct 19 ms 25424 KB Output is correct
115 Correct 294 ms 69204 KB Output is correct
116 Correct 161 ms 47144 KB Output is correct
117 Correct 176 ms 48500 KB Output is correct
118 Correct 189 ms 48968 KB Output is correct
119 Correct 293 ms 69704 KB Output is correct
120 Correct 334 ms 72388 KB Output is correct
121 Correct 332 ms 72556 KB Output is correct
122 Correct 259 ms 69560 KB Output is correct
123 Correct 256 ms 73288 KB Output is correct
124 Correct 333 ms 73404 KB Output is correct
125 Correct 322 ms 73672 KB Output is correct
126 Correct 30 ms 29008 KB Output is correct
127 Correct 23 ms 27216 KB Output is correct
128 Correct 28 ms 27216 KB Output is correct
129 Correct 25 ms 27228 KB Output is correct
130 Correct 27 ms 27896 KB Output is correct
131 Correct 52 ms 31040 KB Output is correct
132 Correct 515 ms 123180 KB Output is correct
133 Correct 497 ms 123176 KB Output is correct
134 Correct 534 ms 123340 KB Output is correct
135 Correct 787 ms 109708 KB Output is correct
136 Correct 764 ms 123100 KB Output is correct
137 Correct 550 ms 93768 KB Output is correct
138 Correct 589 ms 94700 KB Output is correct
139 Correct 328 ms 90384 KB Output is correct
140 Correct 435 ms 122952 KB Output is correct
141 Correct 636 ms 122952 KB Output is correct
142 Correct 706 ms 123468 KB Output is correct