답안 #255454

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
255454 2020-08-01T04:47:53 Z EntityIT 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
303 ms 28472 KB
#include <bits/stdc++.h>
using namespace std;

#define ALL(x) (x).begin(), (x).end()
#define SZ(x) static_cast<int>((x).size())

template<class T, size_t D>
struct vec : vector<vec<T, D - 1>> {
  template<class... Args>
  vec(size_t n = 0, Args... args)
      : vector<vec<T, D - 1>>(n, vec<T, D - 1>(args...)) {}
};
template<class T>
struct vec<T, 1> : vector<T> {
  template<class... Args>
  vec(Args... args)
      : vector<T>(args...) {}
};

template<class T>
inline bool Minimize(T& a, const T& b) { return a > b ? a = b, true : false; }
template<class T>
inline bool Maximize(T& a, const T& b) { return a < b ? a = b, true : false; }
inline int Next(int i, int n) { return i == n - 1 ? 0 : i + 1; }
inline int Prev(int i, int n) { return !i ? n - 1 : i - 1; }

mt19937 rng(static_cast<uint32_t>(chrono::steady_clock::now().time_since_epoch().count()));

int main() {
  ios_base::sync_with_stdio(0); cin.tie(0);

  int n_vertices, n_edges; cin >> n_vertices >> n_edges;
  vec<int, 2> neighbors_vertices(n_vertices);
  while (n_edges--) {
    int u, v; cin >> u >> v; --u; --v;
    neighbors_vertices[u].emplace_back(v);
    neighbors_vertices[v].emplace_back(u);
  }

  vec<int, 1> parents(n_vertices, -1), discoveries(n_vertices, -1), earliests(n_vertices, -1);
  int n_vertices_block_cut_tree = n_vertices;
  vec<int, 2> neighbors_vertices_block_cut_tree(n_vertices);
  function<void(int)> ConstructBlockCutTree = [&](int u) {
    static int current_discovery = -1;
    static stack<pair<int, int>> current_edges;

    discoveries[u] = earliests[u] = ++current_discovery;
    for (auto& v : neighbors_vertices[u]) {
      if (!~discoveries[v]) {
        parents[v] = u;
        current_edges.emplace(u, v);
        ConstructBlockCutTree(v);
        Minimize(earliests[u], earliests[v]);

        if (earliests[v] >= discoveries[u]) {
          vec<int, 1> vertices;
          do {
            vertices.emplace_back(current_edges.top().first);
            vertices.emplace_back(current_edges.top().second);
            current_edges.pop();
          } while (vertices.rbegin()[1] != u || vertices.back() != v);
          sort(ALL(vertices)); vertices.erase(unique(ALL(vertices)), vertices.end());
          neighbors_vertices_block_cut_tree.emplace_back(vec<int, 1>());
          for (auto& vertex : vertices) {
            neighbors_vertices_block_cut_tree[vertex].emplace_back(n_vertices_block_cut_tree);
            neighbors_vertices_block_cut_tree[n_vertices_block_cut_tree].emplace_back(vertex);
          }
          ++n_vertices_block_cut_tree;
        }
      } else if (v != parents[u] && discoveries[v] < discoveries[u]) {
        current_edges.emplace(u, v);
        Minimize(earliests[u], discoveries[v]);
      }
    }
  };
  for (int u = 0; u < n_vertices; ++u) {
    if (!~discoveries[u]) {
      ConstructBlockCutTree(u);
    }
  }

  int64_t answer = 0;
  vec<int, 1> a(n_vertices_block_cut_tree), tmp_vertices;
  vec<char, 1> visited(n_vertices_block_cut_tree);
  function<int(int, int)> Solve = [&](int u, int parent) {
    visited[u] = true;
    a[u] = (u < n_vertices);
    for (auto& v : neighbors_vertices_block_cut_tree[u]) {
      if (v == parent) {
        continue;
      }
      a[u] += Solve(v, u);
      if (u >= n_vertices) {
        answer -= static_cast<int64_t>(SZ(neighbors_vertices_block_cut_tree[u]) - 1) * a[v] * (a[v] - 1);
      }
    }
    if (u >= n_vertices) {
      tmp_vertices.emplace_back(u);
    }
    return a[u];
  };
  for (int u = 0; u < n_vertices_block_cut_tree; ++u) {
    if (visited[u]) {
      continue;
    }
    auto tmp_n_vertices = Solve(u, -1);
    answer += static_cast<int64_t>(tmp_n_vertices) * (tmp_n_vertices - 1) * (tmp_n_vertices - 2);
    for (auto& vertex : tmp_vertices) {
      answer -= static_cast<int64_t>(SZ(neighbors_vertices_block_cut_tree[vertex]) - 1) * (tmp_n_vertices - a[vertex]) * ((tmp_n_vertices - a[vertex]) - 1);
    }
    tmp_vertices.clear();
  }

  cout << answer << '\n';

  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 0 ms 384 KB Output is correct
11 Correct 0 ms 384 KB Output is correct
12 Correct 0 ms 384 KB Output is correct
13 Correct 0 ms 384 KB Output is correct
14 Correct 0 ms 384 KB Output is correct
15 Correct 0 ms 384 KB Output is correct
16 Correct 0 ms 384 KB Output is correct
17 Correct 0 ms 384 KB Output is correct
18 Correct 0 ms 384 KB Output is correct
19 Correct 0 ms 384 KB Output is correct
20 Correct 0 ms 384 KB Output is correct
21 Correct 0 ms 384 KB Output is correct
22 Correct 0 ms 384 KB Output is correct
23 Correct 0 ms 384 KB Output is correct
24 Correct 0 ms 384 KB Output is correct
25 Correct 1 ms 384 KB Output is correct
26 Correct 0 ms 384 KB Output is correct
27 Correct 0 ms 384 KB Output is correct
28 Correct 0 ms 384 KB Output is correct
29 Correct 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 0 ms 384 KB Output is correct
35 Correct 0 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 0 ms 384 KB Output is correct
11 Correct 0 ms 384 KB Output is correct
12 Correct 0 ms 384 KB Output is correct
13 Correct 0 ms 384 KB Output is correct
14 Correct 0 ms 384 KB Output is correct
15 Correct 0 ms 384 KB Output is correct
16 Correct 0 ms 384 KB Output is correct
17 Correct 0 ms 384 KB Output is correct
18 Correct 0 ms 384 KB Output is correct
19 Correct 0 ms 384 KB Output is correct
20 Correct 0 ms 384 KB Output is correct
21 Correct 0 ms 384 KB Output is correct
22 Correct 0 ms 384 KB Output is correct
23 Correct 0 ms 384 KB Output is correct
24 Correct 0 ms 384 KB Output is correct
25 Correct 1 ms 384 KB Output is correct
26 Correct 0 ms 384 KB Output is correct
27 Correct 0 ms 384 KB Output is correct
28 Correct 0 ms 384 KB Output is correct
29 Correct 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 0 ms 384 KB Output is correct
35 Correct 0 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 0 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 0 ms 384 KB Output is correct
40 Correct 0 ms 384 KB Output is correct
41 Correct 1 ms 384 KB Output is correct
42 Correct 0 ms 384 KB Output is correct
43 Correct 0 ms 384 KB Output is correct
44 Correct 0 ms 384 KB Output is correct
45 Correct 0 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 0 ms 384 KB Output is correct
50 Correct 0 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 0 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 0 ms 384 KB Output is correct
55 Correct 0 ms 384 KB Output is correct
56 Correct 0 ms 384 KB Output is correct
57 Correct 0 ms 384 KB Output is correct
58 Correct 0 ms 384 KB Output is correct
59 Correct 0 ms 384 KB Output is correct
60 Correct 0 ms 384 KB Output is correct
61 Correct 1 ms 384 KB Output is correct
62 Correct 1 ms 384 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 0 ms 384 KB Output is correct
65 Correct 0 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 121 ms 27888 KB Output is correct
2 Correct 136 ms 27728 KB Output is correct
3 Correct 151 ms 23656 KB Output is correct
4 Correct 155 ms 26832 KB Output is correct
5 Correct 119 ms 21564 KB Output is correct
6 Correct 157 ms 23488 KB Output is correct
7 Correct 142 ms 21232 KB Output is correct
8 Correct 158 ms 22352 KB Output is correct
9 Correct 140 ms 19792 KB Output is correct
10 Correct 153 ms 20332 KB Output is correct
11 Correct 119 ms 16976 KB Output is correct
12 Correct 122 ms 16720 KB Output is correct
13 Correct 93 ms 16592 KB Output is correct
14 Correct 109 ms 16204 KB Output is correct
15 Correct 72 ms 14928 KB Output is correct
16 Correct 66 ms 14672 KB Output is correct
17 Correct 9 ms 8576 KB Output is correct
18 Correct 9 ms 8576 KB Output is correct
19 Correct 9 ms 8576 KB Output is correct
20 Correct 10 ms 8576 KB Output is correct
21 Correct 12 ms 8576 KB Output is correct
22 Correct 12 ms 8576 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 512 KB Output is correct
2 Correct 1 ms 512 KB Output is correct
3 Correct 2 ms 512 KB Output is correct
4 Correct 1 ms 640 KB Output is correct
5 Correct 1 ms 640 KB Output is correct
6 Correct 2 ms 640 KB Output is correct
7 Correct 2 ms 640 KB Output is correct
8 Correct 1 ms 512 KB Output is correct
9 Correct 2 ms 512 KB Output is correct
10 Correct 1 ms 512 KB Output is correct
11 Correct 1 ms 512 KB Output is correct
12 Correct 1 ms 512 KB Output is correct
13 Correct 1 ms 512 KB Output is correct
14 Correct 1 ms 512 KB Output is correct
15 Correct 1 ms 512 KB Output is correct
16 Correct 2 ms 512 KB Output is correct
17 Correct 1 ms 512 KB Output is correct
18 Correct 1 ms 512 KB Output is correct
19 Correct 1 ms 512 KB Output is correct
20 Correct 1 ms 512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 135 ms 20048 KB Output is correct
2 Correct 129 ms 20004 KB Output is correct
3 Correct 136 ms 20048 KB Output is correct
4 Correct 129 ms 20072 KB Output is correct
5 Correct 133 ms 20044 KB Output is correct
6 Correct 148 ms 28472 KB Output is correct
7 Correct 142 ms 25680 KB Output is correct
8 Correct 138 ms 24140 KB Output is correct
9 Correct 136 ms 22644 KB Output is correct
10 Correct 133 ms 19664 KB Output is correct
11 Correct 127 ms 21324 KB Output is correct
12 Correct 124 ms 20692 KB Output is correct
13 Correct 127 ms 20688 KB Output is correct
14 Correct 119 ms 19536 KB Output is correct
15 Correct 105 ms 18612 KB Output is correct
16 Correct 66 ms 15056 KB Output is correct
17 Correct 103 ms 21960 KB Output is correct
18 Correct 101 ms 21960 KB Output is correct
19 Correct 111 ms 22044 KB Output is correct
20 Correct 116 ms 21968 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 512 KB Output is correct
2 Correct 1 ms 512 KB Output is correct
3 Correct 1 ms 512 KB Output is correct
4 Correct 1 ms 512 KB Output is correct
5 Correct 1 ms 512 KB Output is correct
6 Correct 1 ms 512 KB Output is correct
7 Correct 1 ms 512 KB Output is correct
8 Correct 1 ms 512 KB Output is correct
9 Correct 1 ms 512 KB Output is correct
10 Correct 1 ms 512 KB Output is correct
11 Correct 1 ms 512 KB Output is correct
12 Correct 2 ms 616 KB Output is correct
13 Correct 1 ms 512 KB Output is correct
14 Correct 1 ms 640 KB Output is correct
15 Correct 1 ms 512 KB Output is correct
16 Correct 1 ms 512 KB Output is correct
17 Correct 1 ms 512 KB Output is correct
18 Correct 1 ms 512 KB Output is correct
19 Correct 1 ms 512 KB Output is correct
20 Correct 1 ms 512 KB Output is correct
21 Correct 2 ms 512 KB Output is correct
22 Correct 1 ms 512 KB Output is correct
23 Correct 1 ms 512 KB Output is correct
24 Correct 1 ms 512 KB Output is correct
25 Correct 2 ms 384 KB Output is correct
26 Correct 1 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 303 ms 20048 KB Output is correct
2 Correct 133 ms 19920 KB Output is correct
3 Correct 142 ms 18900 KB Output is correct
4 Correct 127 ms 17232 KB Output is correct
5 Correct 117 ms 15824 KB Output is correct
6 Correct 115 ms 15056 KB Output is correct
7 Correct 123 ms 14928 KB Output is correct
8 Correct 111 ms 14416 KB Output is correct
9 Correct 127 ms 14388 KB Output is correct
10 Correct 101 ms 14160 KB Output is correct
11 Correct 152 ms 14008 KB Output is correct
12 Correct 100 ms 14032 KB Output is correct
13 Correct 103 ms 14160 KB Output is correct
14 Correct 109 ms 17280 KB Output is correct
15 Correct 188 ms 24780 KB Output is correct
16 Correct 150 ms 22768 KB Output is correct
17 Correct 148 ms 23376 KB Output is correct
18 Correct 143 ms 21552 KB Output is correct
19 Correct 154 ms 17256 KB Output is correct
20 Correct 132 ms 18568 KB Output is correct
21 Correct 131 ms 18384 KB Output is correct
22 Correct 137 ms 17488 KB Output is correct
23 Correct 121 ms 16596 KB Output is correct
24 Correct 133 ms 20688 KB Output is correct
25 Correct 141 ms 20688 KB Output is correct
26 Correct 175 ms 19916 KB Output is correct
27 Correct 135 ms 19772 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 0 ms 384 KB Output is correct
11 Correct 0 ms 384 KB Output is correct
12 Correct 0 ms 384 KB Output is correct
13 Correct 0 ms 384 KB Output is correct
14 Correct 0 ms 384 KB Output is correct
15 Correct 0 ms 384 KB Output is correct
16 Correct 0 ms 384 KB Output is correct
17 Correct 0 ms 384 KB Output is correct
18 Correct 0 ms 384 KB Output is correct
19 Correct 0 ms 384 KB Output is correct
20 Correct 0 ms 384 KB Output is correct
21 Correct 0 ms 384 KB Output is correct
22 Correct 0 ms 384 KB Output is correct
23 Correct 0 ms 384 KB Output is correct
24 Correct 0 ms 384 KB Output is correct
25 Correct 1 ms 384 KB Output is correct
26 Correct 0 ms 384 KB Output is correct
27 Correct 0 ms 384 KB Output is correct
28 Correct 0 ms 384 KB Output is correct
29 Correct 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 0 ms 384 KB Output is correct
35 Correct 0 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 0 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 0 ms 384 KB Output is correct
40 Correct 0 ms 384 KB Output is correct
41 Correct 1 ms 384 KB Output is correct
42 Correct 0 ms 384 KB Output is correct
43 Correct 0 ms 384 KB Output is correct
44 Correct 0 ms 384 KB Output is correct
45 Correct 0 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 0 ms 384 KB Output is correct
50 Correct 0 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 0 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 0 ms 384 KB Output is correct
55 Correct 0 ms 384 KB Output is correct
56 Correct 0 ms 384 KB Output is correct
57 Correct 0 ms 384 KB Output is correct
58 Correct 0 ms 384 KB Output is correct
59 Correct 0 ms 384 KB Output is correct
60 Correct 0 ms 384 KB Output is correct
61 Correct 1 ms 384 KB Output is correct
62 Correct 1 ms 384 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 0 ms 384 KB Output is correct
65 Correct 0 ms 384 KB Output is correct
66 Correct 0 ms 384 KB Output is correct
67 Correct 1 ms 512 KB Output is correct
68 Correct 1 ms 512 KB Output is correct
69 Correct 1 ms 512 KB Output is correct
70 Correct 2 ms 640 KB Output is correct
71 Correct 1 ms 512 KB Output is correct
72 Correct 1 ms 512 KB Output is correct
73 Correct 1 ms 512 KB Output is correct
74 Correct 2 ms 512 KB Output is correct
75 Correct 1 ms 512 KB Output is correct
76 Correct 1 ms 384 KB Output is correct
77 Correct 2 ms 512 KB Output is correct
78 Correct 1 ms 512 KB Output is correct
79 Correct 1 ms 512 KB Output is correct
80 Correct 1 ms 512 KB Output is correct
81 Correct 2 ms 512 KB Output is correct
82 Correct 1 ms 624 KB Output is correct
83 Correct 1 ms 640 KB Output is correct
84 Correct 1 ms 512 KB Output is correct
85 Correct 1 ms 512 KB Output is correct
86 Correct 1 ms 512 KB Output is correct
87 Correct 1 ms 512 KB Output is correct
88 Correct 1 ms 512 KB Output is correct
89 Correct 1 ms 512 KB Output is correct
90 Correct 1 ms 512 KB Output is correct
91 Correct 2 ms 512 KB Output is correct
92 Correct 2 ms 512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 0 ms 384 KB Output is correct
11 Correct 0 ms 384 KB Output is correct
12 Correct 0 ms 384 KB Output is correct
13 Correct 0 ms 384 KB Output is correct
14 Correct 0 ms 384 KB Output is correct
15 Correct 0 ms 384 KB Output is correct
16 Correct 0 ms 384 KB Output is correct
17 Correct 0 ms 384 KB Output is correct
18 Correct 0 ms 384 KB Output is correct
19 Correct 0 ms 384 KB Output is correct
20 Correct 0 ms 384 KB Output is correct
21 Correct 0 ms 384 KB Output is correct
22 Correct 0 ms 384 KB Output is correct
23 Correct 0 ms 384 KB Output is correct
24 Correct 0 ms 384 KB Output is correct
25 Correct 1 ms 384 KB Output is correct
26 Correct 0 ms 384 KB Output is correct
27 Correct 0 ms 384 KB Output is correct
28 Correct 0 ms 384 KB Output is correct
29 Correct 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 0 ms 384 KB Output is correct
35 Correct 0 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 0 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 0 ms 384 KB Output is correct
40 Correct 0 ms 384 KB Output is correct
41 Correct 1 ms 384 KB Output is correct
42 Correct 0 ms 384 KB Output is correct
43 Correct 0 ms 384 KB Output is correct
44 Correct 0 ms 384 KB Output is correct
45 Correct 0 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 0 ms 384 KB Output is correct
50 Correct 0 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 0 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 0 ms 384 KB Output is correct
55 Correct 0 ms 384 KB Output is correct
56 Correct 0 ms 384 KB Output is correct
57 Correct 0 ms 384 KB Output is correct
58 Correct 0 ms 384 KB Output is correct
59 Correct 0 ms 384 KB Output is correct
60 Correct 0 ms 384 KB Output is correct
61 Correct 1 ms 384 KB Output is correct
62 Correct 1 ms 384 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 0 ms 384 KB Output is correct
65 Correct 0 ms 384 KB Output is correct
66 Correct 121 ms 27888 KB Output is correct
67 Correct 136 ms 27728 KB Output is correct
68 Correct 151 ms 23656 KB Output is correct
69 Correct 155 ms 26832 KB Output is correct
70 Correct 119 ms 21564 KB Output is correct
71 Correct 157 ms 23488 KB Output is correct
72 Correct 142 ms 21232 KB Output is correct
73 Correct 158 ms 22352 KB Output is correct
74 Correct 140 ms 19792 KB Output is correct
75 Correct 153 ms 20332 KB Output is correct
76 Correct 119 ms 16976 KB Output is correct
77 Correct 122 ms 16720 KB Output is correct
78 Correct 93 ms 16592 KB Output is correct
79 Correct 109 ms 16204 KB Output is correct
80 Correct 72 ms 14928 KB Output is correct
81 Correct 66 ms 14672 KB Output is correct
82 Correct 9 ms 8576 KB Output is correct
83 Correct 9 ms 8576 KB Output is correct
84 Correct 9 ms 8576 KB Output is correct
85 Correct 10 ms 8576 KB Output is correct
86 Correct 12 ms 8576 KB Output is correct
87 Correct 12 ms 8576 KB Output is correct
88 Correct 2 ms 512 KB Output is correct
89 Correct 1 ms 512 KB Output is correct
90 Correct 2 ms 512 KB Output is correct
91 Correct 1 ms 640 KB Output is correct
92 Correct 1 ms 640 KB Output is correct
93 Correct 2 ms 640 KB Output is correct
94 Correct 2 ms 640 KB Output is correct
95 Correct 1 ms 512 KB Output is correct
96 Correct 2 ms 512 KB Output is correct
97 Correct 1 ms 512 KB Output is correct
98 Correct 1 ms 512 KB Output is correct
99 Correct 1 ms 512 KB Output is correct
100 Correct 1 ms 512 KB Output is correct
101 Correct 1 ms 512 KB Output is correct
102 Correct 1 ms 512 KB Output is correct
103 Correct 2 ms 512 KB Output is correct
104 Correct 1 ms 512 KB Output is correct
105 Correct 1 ms 512 KB Output is correct
106 Correct 1 ms 512 KB Output is correct
107 Correct 1 ms 512 KB Output is correct
108 Correct 135 ms 20048 KB Output is correct
109 Correct 129 ms 20004 KB Output is correct
110 Correct 136 ms 20048 KB Output is correct
111 Correct 129 ms 20072 KB Output is correct
112 Correct 133 ms 20044 KB Output is correct
113 Correct 148 ms 28472 KB Output is correct
114 Correct 142 ms 25680 KB Output is correct
115 Correct 138 ms 24140 KB Output is correct
116 Correct 136 ms 22644 KB Output is correct
117 Correct 133 ms 19664 KB Output is correct
118 Correct 127 ms 21324 KB Output is correct
119 Correct 124 ms 20692 KB Output is correct
120 Correct 127 ms 20688 KB Output is correct
121 Correct 119 ms 19536 KB Output is correct
122 Correct 105 ms 18612 KB Output is correct
123 Correct 66 ms 15056 KB Output is correct
124 Correct 103 ms 21960 KB Output is correct
125 Correct 101 ms 21960 KB Output is correct
126 Correct 111 ms 22044 KB Output is correct
127 Correct 116 ms 21968 KB Output is correct
128 Correct 2 ms 512 KB Output is correct
129 Correct 1 ms 512 KB Output is correct
130 Correct 1 ms 512 KB Output is correct
131 Correct 1 ms 512 KB Output is correct
132 Correct 1 ms 512 KB Output is correct
133 Correct 1 ms 512 KB Output is correct
134 Correct 1 ms 512 KB Output is correct
135 Correct 1 ms 512 KB Output is correct
136 Correct 1 ms 512 KB Output is correct
137 Correct 1 ms 512 KB Output is correct
138 Correct 1 ms 512 KB Output is correct
139 Correct 2 ms 616 KB Output is correct
140 Correct 1 ms 512 KB Output is correct
141 Correct 1 ms 640 KB Output is correct
142 Correct 1 ms 512 KB Output is correct
143 Correct 1 ms 512 KB Output is correct
144 Correct 1 ms 512 KB Output is correct
145 Correct 1 ms 512 KB Output is correct
146 Correct 1 ms 512 KB Output is correct
147 Correct 1 ms 512 KB Output is correct
148 Correct 2 ms 512 KB Output is correct
149 Correct 1 ms 512 KB Output is correct
150 Correct 1 ms 512 KB Output is correct
151 Correct 1 ms 512 KB Output is correct
152 Correct 2 ms 384 KB Output is correct
153 Correct 1 ms 384 KB Output is correct
154 Correct 1 ms 384 KB Output is correct
155 Correct 303 ms 20048 KB Output is correct
156 Correct 133 ms 19920 KB Output is correct
157 Correct 142 ms 18900 KB Output is correct
158 Correct 127 ms 17232 KB Output is correct
159 Correct 117 ms 15824 KB Output is correct
160 Correct 115 ms 15056 KB Output is correct
161 Correct 123 ms 14928 KB Output is correct
162 Correct 111 ms 14416 KB Output is correct
163 Correct 127 ms 14388 KB Output is correct
164 Correct 101 ms 14160 KB Output is correct
165 Correct 152 ms 14008 KB Output is correct
166 Correct 100 ms 14032 KB Output is correct
167 Correct 103 ms 14160 KB Output is correct
168 Correct 109 ms 17280 KB Output is correct
169 Correct 188 ms 24780 KB Output is correct
170 Correct 150 ms 22768 KB Output is correct
171 Correct 148 ms 23376 KB Output is correct
172 Correct 143 ms 21552 KB Output is correct
173 Correct 154 ms 17256 KB Output is correct
174 Correct 132 ms 18568 KB Output is correct
175 Correct 131 ms 18384 KB Output is correct
176 Correct 137 ms 17488 KB Output is correct
177 Correct 121 ms 16596 KB Output is correct
178 Correct 133 ms 20688 KB Output is correct
179 Correct 141 ms 20688 KB Output is correct
180 Correct 175 ms 19916 KB Output is correct
181 Correct 135 ms 19772 KB Output is correct
182 Correct 0 ms 384 KB Output is correct
183 Correct 1 ms 512 KB Output is correct
184 Correct 1 ms 512 KB Output is correct
185 Correct 1 ms 512 KB Output is correct
186 Correct 2 ms 640 KB Output is correct
187 Correct 1 ms 512 KB Output is correct
188 Correct 1 ms 512 KB Output is correct
189 Correct 1 ms 512 KB Output is correct
190 Correct 2 ms 512 KB Output is correct
191 Correct 1 ms 512 KB Output is correct
192 Correct 1 ms 384 KB Output is correct
193 Correct 2 ms 512 KB Output is correct
194 Correct 1 ms 512 KB Output is correct
195 Correct 1 ms 512 KB Output is correct
196 Correct 1 ms 512 KB Output is correct
197 Correct 2 ms 512 KB Output is correct
198 Correct 1 ms 624 KB Output is correct
199 Correct 1 ms 640 KB Output is correct
200 Correct 1 ms 512 KB Output is correct
201 Correct 1 ms 512 KB Output is correct
202 Correct 1 ms 512 KB Output is correct
203 Correct 1 ms 512 KB Output is correct
204 Correct 1 ms 512 KB Output is correct
205 Correct 1 ms 512 KB Output is correct
206 Correct 1 ms 512 KB Output is correct
207 Correct 2 ms 512 KB Output is correct
208 Correct 2 ms 512 KB Output is correct
209 Correct 9 ms 8576 KB Output is correct
210 Correct 70 ms 14416 KB Output is correct
211 Correct 141 ms 19920 KB Output is correct
212 Correct 174 ms 24016 KB Output is correct
213 Correct 237 ms 26956 KB Output is correct
214 Correct 76 ms 16592 KB Output is correct
215 Correct 79 ms 16156 KB Output is correct
216 Correct 137 ms 19920 KB Output is correct
217 Correct 152 ms 17956 KB Output is correct
218 Correct 114 ms 15820 KB Output is correct
219 Correct 109 ms 15312 KB Output is correct
220 Correct 109 ms 15244 KB Output is correct
221 Correct 110 ms 15440 KB Output is correct
222 Correct 111 ms 16972 KB Output is correct
223 Correct 142 ms 21456 KB Output is correct
224 Correct 137 ms 20300 KB Output is correct
225 Correct 143 ms 17356 KB Output is correct
226 Correct 130 ms 17104 KB Output is correct
227 Correct 130 ms 17104 KB Output is correct
228 Correct 117 ms 16464 KB Output is correct
229 Correct 117 ms 16208 KB Output is correct
230 Correct 177 ms 18000 KB Output is correct
231 Correct 181 ms 18124 KB Output is correct