답안 #951674

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
951674 2024-03-22T09:48:41 Z abczz 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
148 ms 49088 KB
#include <iostream>
#include <vector>
#include <algorithm>
#include <array>
#include <deque>
#include <queue>
#include <map>
#define ll long long

using namespace std;

bool visited[100000];
ll n, m, k, a, b, g, cnt, f, rt, apcnt, low[100000], st[100000], sz[200000], dp[200000];
vector <ll> G, blocks;
bool ap[100000];
vector <ll> V, adj[100000], X[100000], E[200000];

void tar(ll u, ll p) {
  G.push_back(u);
  st[u] = low[u] = ++cnt;
  V.push_back(u);
  ll rch = 0;
  for (auto v : adj[u]) {
    if (!st[v]) {
      ++rch;
      tar(v, u);
      low[u] = min(low[u], low[v]);
      if (p != -1 && low[v] >= st[u]) ap[u] = 1;
      if (low[v] >= st[u]) {
        blocks.push_back(k);
        while (!V.empty()) {
          auto x = V.back();
          V.pop_back();
          X[x].push_back(k);
          ++sz[k];
          if (x == v) break;
        }
        X[u].push_back(k);
        ++sz[k];
        ++k;
      }
    }
    else if (v != p) {
      low[u] = min(low[u], st[v]);
    }
  }
  if (p == -1 && rch > 1) ap[u] = 1;
}

void calc(ll u, ll p) {
  if (u >= n) dp[u] = sz[u] - E[u].size();
  else dp[u] = 1;
  //cout << u << " " << sz[u] << '\n';
  for (auto v : E[u]) {
    if (v != p) {
      calc(v, u);
      dp[u] += dp[v];
      if (u >= n) {
        f += (dp[v]-1) * (G.size() - dp[v]); //down -> ap -> up
        f += (dp[v]-1) * (sz[u] - E[u].size()) * (G.size() - dp[v] - 1); //edge -> nonap -> any
        f += (sz[u] - E[u].size()) * (G.size() - dp[v] - 1); //ap -> nonap -> any
        if (p != -1 && sz[u] > 2) {
          f += (dp[v]-1) * (E[u].size()-1) * (sz[u] - 2) * 2; //down -> ap -> down
        }
      }
    }
  }
  for (auto v : E[u]) {
    if (v != p) {
      if (u >= n) {
        if (p != -1 && sz[u] > 2 && E[u].size() > 2) {
          f += (dp[v]-1) * (dp[u]-sz[u]+1-(dp[v]-1)) * (E[u].size()-2); //downL -> ap -> downR
        }
      }
    }
  }
  if (u >= n) {
    if (p != -1 && E[u].size() > 2) f += (G.size() - dp[u] - 1) * (dp[u]-sz[u]+1) * (E[u].size() - 2) * 2;
    if (p != -1) f += (G.size() - dp[u] - 1) * dp[u]; //up -> ap -> down
    if (p != -1 && sz[u] > 2) {
      f += (G.size() - dp[u] - 1) * (sz[u] - 2) * (E[u].size()-1) * 2; //up -> ap -> up
    }
    if (sz[u] > 2) {
      f += (sz[u]-1) * (sz[u]-2) * E[u].size(); //down -> ap -> down & up -> ap -> up
    }
    f += (G.size() - dp[u] - (p != -1)) * (sz[u] - E[u].size()) * (dp[u] - 1); //topedge -> nonap -> any
    if (p != -1) f += (sz[u] - E[u].size()) * (dp[u] - 1); //ap -> nonap -> any
    if (G.size() >= 2) {
      f += (sz[u] - E[u].size()) * (sz[u] - (ll)E[u].size() - 1) * (G.size() - 2); //nonap -> nonap -> any
    }
  }
}

int main() {
  cin >> n >> m;
  for (int i=0; i<m; ++i) {
    cin >> a >> b;
    --a, --b;
    adj[a].push_back(b);
    adj[b].push_back(a);
  }
  k = n;
  for (int i=0; i<n; ++i) {
    if (!st[i]) {
      G.clear();
      blocks.clear();
      V.clear();
      tar(i, -1);
      for (auto u : G) {
        if (ap[u]) {
          for (auto v : X[u]) {
            E[u].push_back(v);
            E[v].push_back(u);
          }
        }
      }
      if (!blocks.empty()) calc(blocks[0], -1);
    }
  }
  cout << f << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 12892 KB Output is correct
2 Correct 4 ms 12884 KB Output is correct
3 Correct 3 ms 12888 KB Output is correct
4 Correct 3 ms 12892 KB Output is correct
5 Correct 3 ms 12892 KB Output is correct
6 Correct 3 ms 12892 KB Output is correct
7 Correct 3 ms 12888 KB Output is correct
8 Correct 4 ms 12892 KB Output is correct
9 Correct 2 ms 12892 KB Output is correct
10 Correct 4 ms 12892 KB Output is correct
11 Correct 4 ms 12892 KB Output is correct
12 Correct 3 ms 12944 KB Output is correct
13 Correct 3 ms 12888 KB Output is correct
14 Correct 3 ms 12892 KB Output is correct
15 Correct 2 ms 12892 KB Output is correct
16 Correct 2 ms 12892 KB Output is correct
17 Correct 3 ms 12892 KB Output is correct
18 Correct 2 ms 12892 KB Output is correct
19 Correct 3 ms 12892 KB Output is correct
20 Correct 3 ms 12888 KB Output is correct
21 Correct 3 ms 12888 KB Output is correct
22 Correct 3 ms 12888 KB Output is correct
23 Correct 2 ms 12892 KB Output is correct
24 Correct 3 ms 12892 KB Output is correct
25 Correct 3 ms 12892 KB Output is correct
26 Correct 3 ms 12892 KB Output is correct
27 Correct 3 ms 12892 KB Output is correct
28 Correct 3 ms 12888 KB Output is correct
29 Correct 3 ms 12892 KB Output is correct
30 Correct 3 ms 12892 KB Output is correct
31 Correct 3 ms 12892 KB Output is correct
32 Correct 2 ms 12892 KB Output is correct
33 Correct 3 ms 12892 KB Output is correct
34 Correct 3 ms 12720 KB Output is correct
35 Correct 3 ms 12892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 12892 KB Output is correct
2 Correct 4 ms 12884 KB Output is correct
3 Correct 3 ms 12888 KB Output is correct
4 Correct 3 ms 12892 KB Output is correct
5 Correct 3 ms 12892 KB Output is correct
6 Correct 3 ms 12892 KB Output is correct
7 Correct 3 ms 12888 KB Output is correct
8 Correct 4 ms 12892 KB Output is correct
9 Correct 2 ms 12892 KB Output is correct
10 Correct 4 ms 12892 KB Output is correct
11 Correct 4 ms 12892 KB Output is correct
12 Correct 3 ms 12944 KB Output is correct
13 Correct 3 ms 12888 KB Output is correct
14 Correct 3 ms 12892 KB Output is correct
15 Correct 2 ms 12892 KB Output is correct
16 Correct 2 ms 12892 KB Output is correct
17 Correct 3 ms 12892 KB Output is correct
18 Correct 2 ms 12892 KB Output is correct
19 Correct 3 ms 12892 KB Output is correct
20 Correct 3 ms 12888 KB Output is correct
21 Correct 3 ms 12888 KB Output is correct
22 Correct 3 ms 12888 KB Output is correct
23 Correct 2 ms 12892 KB Output is correct
24 Correct 3 ms 12892 KB Output is correct
25 Correct 3 ms 12892 KB Output is correct
26 Correct 3 ms 12892 KB Output is correct
27 Correct 3 ms 12892 KB Output is correct
28 Correct 3 ms 12888 KB Output is correct
29 Correct 3 ms 12892 KB Output is correct
30 Correct 3 ms 12892 KB Output is correct
31 Correct 3 ms 12892 KB Output is correct
32 Correct 2 ms 12892 KB Output is correct
33 Correct 3 ms 12892 KB Output is correct
34 Correct 3 ms 12720 KB Output is correct
35 Correct 3 ms 12892 KB Output is correct
36 Correct 2 ms 12892 KB Output is correct
37 Correct 3 ms 12928 KB Output is correct
38 Correct 3 ms 12924 KB Output is correct
39 Correct 3 ms 12888 KB Output is correct
40 Correct 3 ms 12892 KB Output is correct
41 Correct 3 ms 12892 KB Output is correct
42 Correct 3 ms 12892 KB Output is correct
43 Correct 3 ms 12892 KB Output is correct
44 Correct 2 ms 12928 KB Output is correct
45 Correct 3 ms 12892 KB Output is correct
46 Correct 3 ms 12732 KB Output is correct
47 Correct 3 ms 12892 KB Output is correct
48 Correct 3 ms 12892 KB Output is correct
49 Correct 2 ms 12888 KB Output is correct
50 Correct 3 ms 12892 KB Output is correct
51 Correct 2 ms 12892 KB Output is correct
52 Correct 3 ms 12888 KB Output is correct
53 Correct 3 ms 12892 KB Output is correct
54 Correct 3 ms 12892 KB Output is correct
55 Correct 2 ms 12892 KB Output is correct
56 Correct 3 ms 13144 KB Output is correct
57 Correct 3 ms 12892 KB Output is correct
58 Correct 3 ms 12892 KB Output is correct
59 Correct 2 ms 12892 KB Output is correct
60 Correct 3 ms 12924 KB Output is correct
61 Correct 3 ms 12892 KB Output is correct
62 Correct 3 ms 13144 KB Output is correct
63 Correct 3 ms 12952 KB Output is correct
64 Correct 3 ms 12928 KB Output is correct
65 Correct 2 ms 12892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 76 ms 31172 KB Output is correct
2 Correct 78 ms 31192 KB Output is correct
3 Correct 110 ms 35592 KB Output is correct
4 Correct 92 ms 30780 KB Output is correct
5 Correct 88 ms 30900 KB Output is correct
6 Correct 101 ms 36904 KB Output is correct
7 Correct 105 ms 29852 KB Output is correct
8 Correct 109 ms 33096 KB Output is correct
9 Correct 102 ms 27724 KB Output is correct
10 Correct 95 ms 28748 KB Output is correct
11 Correct 73 ms 23412 KB Output is correct
12 Correct 69 ms 23376 KB Output is correct
13 Correct 63 ms 22664 KB Output is correct
14 Correct 67 ms 22636 KB Output is correct
15 Correct 70 ms 21076 KB Output is correct
16 Correct 47 ms 20816 KB Output is correct
17 Correct 5 ms 14428 KB Output is correct
18 Correct 6 ms 14628 KB Output is correct
19 Correct 4 ms 14428 KB Output is correct
20 Correct 4 ms 14428 KB Output is correct
21 Correct 6 ms 14428 KB Output is correct
22 Correct 4 ms 14428 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 12936 KB Output is correct
2 Correct 3 ms 12992 KB Output is correct
3 Correct 3 ms 12892 KB Output is correct
4 Correct 5 ms 13404 KB Output is correct
5 Correct 3 ms 13148 KB Output is correct
6 Correct 3 ms 13148 KB Output is correct
7 Correct 3 ms 13148 KB Output is correct
8 Correct 3 ms 12992 KB Output is correct
9 Correct 3 ms 13148 KB Output is correct
10 Correct 4 ms 12892 KB Output is correct
11 Correct 3 ms 13116 KB Output is correct
12 Correct 3 ms 12888 KB Output is correct
13 Correct 3 ms 12892 KB Output is correct
14 Correct 3 ms 12892 KB Output is correct
15 Correct 4 ms 12932 KB Output is correct
16 Correct 3 ms 12892 KB Output is correct
17 Correct 4 ms 12888 KB Output is correct
18 Correct 3 ms 12888 KB Output is correct
19 Correct 3 ms 12892 KB Output is correct
20 Correct 3 ms 12892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 98 ms 30228 KB Output is correct
2 Correct 99 ms 30012 KB Output is correct
3 Correct 95 ms 30012 KB Output is correct
4 Correct 98 ms 30100 KB Output is correct
5 Correct 92 ms 30048 KB Output is correct
6 Correct 126 ms 49088 KB Output is correct
7 Correct 117 ms 37372 KB Output is correct
8 Correct 104 ms 35360 KB Output is correct
9 Correct 109 ms 33916 KB Output is correct
10 Correct 104 ms 29504 KB Output is correct
11 Correct 97 ms 29824 KB Output is correct
12 Correct 97 ms 29080 KB Output is correct
13 Correct 138 ms 28940 KB Output is correct
14 Correct 91 ms 27188 KB Output is correct
15 Correct 79 ms 25940 KB Output is correct
16 Correct 47 ms 21588 KB Output is correct
17 Correct 70 ms 29124 KB Output is correct
18 Correct 71 ms 29172 KB Output is correct
19 Correct 70 ms 29364 KB Output is correct
20 Correct 71 ms 29064 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 12892 KB Output is correct
2 Correct 3 ms 12936 KB Output is correct
3 Correct 4 ms 12888 KB Output is correct
4 Correct 3 ms 12892 KB Output is correct
5 Correct 3 ms 12936 KB Output is correct
6 Correct 3 ms 13148 KB Output is correct
7 Correct 4 ms 12892 KB Output is correct
8 Correct 4 ms 12936 KB Output is correct
9 Correct 3 ms 12892 KB Output is correct
10 Correct 3 ms 13144 KB Output is correct
11 Correct 3 ms 12888 KB Output is correct
12 Correct 4 ms 13144 KB Output is correct
13 Correct 5 ms 13144 KB Output is correct
14 Correct 4 ms 13148 KB Output is correct
15 Correct 4 ms 12928 KB Output is correct
16 Correct 3 ms 12892 KB Output is correct
17 Correct 3 ms 12892 KB Output is correct
18 Correct 3 ms 12888 KB Output is correct
19 Correct 4 ms 12892 KB Output is correct
20 Correct 3 ms 12988 KB Output is correct
21 Correct 3 ms 12892 KB Output is correct
22 Correct 4 ms 12892 KB Output is correct
23 Correct 3 ms 12892 KB Output is correct
24 Correct 3 ms 12892 KB Output is correct
25 Correct 3 ms 12892 KB Output is correct
26 Correct 3 ms 12888 KB Output is correct
27 Correct 3 ms 12892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 109 ms 30048 KB Output is correct
2 Correct 117 ms 30000 KB Output is correct
3 Correct 118 ms 29428 KB Output is correct
4 Correct 130 ms 27716 KB Output is correct
5 Correct 118 ms 26132 KB Output is correct
6 Correct 95 ms 24772 KB Output is correct
7 Correct 106 ms 24460 KB Output is correct
8 Correct 101 ms 23792 KB Output is correct
9 Correct 102 ms 24008 KB Output is correct
10 Correct 79 ms 23496 KB Output is correct
11 Correct 101 ms 23196 KB Output is correct
12 Correct 90 ms 22968 KB Output is correct
13 Correct 77 ms 23068 KB Output is correct
14 Correct 73 ms 25024 KB Output is correct
15 Correct 139 ms 36736 KB Output is correct
16 Correct 112 ms 34252 KB Output is correct
17 Correct 131 ms 34884 KB Output is correct
18 Correct 128 ms 32756 KB Output is correct
19 Correct 110 ms 27568 KB Output is correct
20 Correct 113 ms 27164 KB Output is correct
21 Correct 104 ms 26884 KB Output is correct
22 Correct 113 ms 25120 KB Output is correct
23 Correct 92 ms 23632 KB Output is correct
24 Correct 93 ms 28728 KB Output is correct
25 Correct 103 ms 28576 KB Output is correct
26 Correct 100 ms 27844 KB Output is correct
27 Correct 95 ms 27964 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 12892 KB Output is correct
2 Correct 4 ms 12884 KB Output is correct
3 Correct 3 ms 12888 KB Output is correct
4 Correct 3 ms 12892 KB Output is correct
5 Correct 3 ms 12892 KB Output is correct
6 Correct 3 ms 12892 KB Output is correct
7 Correct 3 ms 12888 KB Output is correct
8 Correct 4 ms 12892 KB Output is correct
9 Correct 2 ms 12892 KB Output is correct
10 Correct 4 ms 12892 KB Output is correct
11 Correct 4 ms 12892 KB Output is correct
12 Correct 3 ms 12944 KB Output is correct
13 Correct 3 ms 12888 KB Output is correct
14 Correct 3 ms 12892 KB Output is correct
15 Correct 2 ms 12892 KB Output is correct
16 Correct 2 ms 12892 KB Output is correct
17 Correct 3 ms 12892 KB Output is correct
18 Correct 2 ms 12892 KB Output is correct
19 Correct 3 ms 12892 KB Output is correct
20 Correct 3 ms 12888 KB Output is correct
21 Correct 3 ms 12888 KB Output is correct
22 Correct 3 ms 12888 KB Output is correct
23 Correct 2 ms 12892 KB Output is correct
24 Correct 3 ms 12892 KB Output is correct
25 Correct 3 ms 12892 KB Output is correct
26 Correct 3 ms 12892 KB Output is correct
27 Correct 3 ms 12892 KB Output is correct
28 Correct 3 ms 12888 KB Output is correct
29 Correct 3 ms 12892 KB Output is correct
30 Correct 3 ms 12892 KB Output is correct
31 Correct 3 ms 12892 KB Output is correct
32 Correct 2 ms 12892 KB Output is correct
33 Correct 3 ms 12892 KB Output is correct
34 Correct 3 ms 12720 KB Output is correct
35 Correct 3 ms 12892 KB Output is correct
36 Correct 2 ms 12892 KB Output is correct
37 Correct 3 ms 12928 KB Output is correct
38 Correct 3 ms 12924 KB Output is correct
39 Correct 3 ms 12888 KB Output is correct
40 Correct 3 ms 12892 KB Output is correct
41 Correct 3 ms 12892 KB Output is correct
42 Correct 3 ms 12892 KB Output is correct
43 Correct 3 ms 12892 KB Output is correct
44 Correct 2 ms 12928 KB Output is correct
45 Correct 3 ms 12892 KB Output is correct
46 Correct 3 ms 12732 KB Output is correct
47 Correct 3 ms 12892 KB Output is correct
48 Correct 3 ms 12892 KB Output is correct
49 Correct 2 ms 12888 KB Output is correct
50 Correct 3 ms 12892 KB Output is correct
51 Correct 2 ms 12892 KB Output is correct
52 Correct 3 ms 12888 KB Output is correct
53 Correct 3 ms 12892 KB Output is correct
54 Correct 3 ms 12892 KB Output is correct
55 Correct 2 ms 12892 KB Output is correct
56 Correct 3 ms 13144 KB Output is correct
57 Correct 3 ms 12892 KB Output is correct
58 Correct 3 ms 12892 KB Output is correct
59 Correct 2 ms 12892 KB Output is correct
60 Correct 3 ms 12924 KB Output is correct
61 Correct 3 ms 12892 KB Output is correct
62 Correct 3 ms 13144 KB Output is correct
63 Correct 3 ms 12952 KB Output is correct
64 Correct 3 ms 12928 KB Output is correct
65 Correct 2 ms 12892 KB Output is correct
66 Correct 3 ms 12888 KB Output is correct
67 Correct 3 ms 13040 KB Output is correct
68 Correct 3 ms 12892 KB Output is correct
69 Correct 3 ms 12888 KB Output is correct
70 Correct 4 ms 13132 KB Output is correct
71 Correct 4 ms 12892 KB Output is correct
72 Correct 4 ms 12932 KB Output is correct
73 Correct 4 ms 12892 KB Output is correct
74 Correct 3 ms 12888 KB Output is correct
75 Correct 3 ms 12888 KB Output is correct
76 Correct 3 ms 12892 KB Output is correct
77 Correct 3 ms 12892 KB Output is correct
78 Correct 4 ms 12968 KB Output is correct
79 Correct 3 ms 12892 KB Output is correct
80 Correct 4 ms 12888 KB Output is correct
81 Correct 4 ms 12892 KB Output is correct
82 Correct 3 ms 12892 KB Output is correct
83 Correct 5 ms 12916 KB Output is correct
84 Correct 4 ms 12888 KB Output is correct
85 Correct 5 ms 13148 KB Output is correct
86 Correct 4 ms 12892 KB Output is correct
87 Correct 4 ms 12912 KB Output is correct
88 Correct 3 ms 12936 KB Output is correct
89 Correct 3 ms 12888 KB Output is correct
90 Correct 4 ms 12892 KB Output is correct
91 Correct 4 ms 12892 KB Output is correct
92 Correct 3 ms 12892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 12892 KB Output is correct
2 Correct 4 ms 12884 KB Output is correct
3 Correct 3 ms 12888 KB Output is correct
4 Correct 3 ms 12892 KB Output is correct
5 Correct 3 ms 12892 KB Output is correct
6 Correct 3 ms 12892 KB Output is correct
7 Correct 3 ms 12888 KB Output is correct
8 Correct 4 ms 12892 KB Output is correct
9 Correct 2 ms 12892 KB Output is correct
10 Correct 4 ms 12892 KB Output is correct
11 Correct 4 ms 12892 KB Output is correct
12 Correct 3 ms 12944 KB Output is correct
13 Correct 3 ms 12888 KB Output is correct
14 Correct 3 ms 12892 KB Output is correct
15 Correct 2 ms 12892 KB Output is correct
16 Correct 2 ms 12892 KB Output is correct
17 Correct 3 ms 12892 KB Output is correct
18 Correct 2 ms 12892 KB Output is correct
19 Correct 3 ms 12892 KB Output is correct
20 Correct 3 ms 12888 KB Output is correct
21 Correct 3 ms 12888 KB Output is correct
22 Correct 3 ms 12888 KB Output is correct
23 Correct 2 ms 12892 KB Output is correct
24 Correct 3 ms 12892 KB Output is correct
25 Correct 3 ms 12892 KB Output is correct
26 Correct 3 ms 12892 KB Output is correct
27 Correct 3 ms 12892 KB Output is correct
28 Correct 3 ms 12888 KB Output is correct
29 Correct 3 ms 12892 KB Output is correct
30 Correct 3 ms 12892 KB Output is correct
31 Correct 3 ms 12892 KB Output is correct
32 Correct 2 ms 12892 KB Output is correct
33 Correct 3 ms 12892 KB Output is correct
34 Correct 3 ms 12720 KB Output is correct
35 Correct 3 ms 12892 KB Output is correct
36 Correct 2 ms 12892 KB Output is correct
37 Correct 3 ms 12928 KB Output is correct
38 Correct 3 ms 12924 KB Output is correct
39 Correct 3 ms 12888 KB Output is correct
40 Correct 3 ms 12892 KB Output is correct
41 Correct 3 ms 12892 KB Output is correct
42 Correct 3 ms 12892 KB Output is correct
43 Correct 3 ms 12892 KB Output is correct
44 Correct 2 ms 12928 KB Output is correct
45 Correct 3 ms 12892 KB Output is correct
46 Correct 3 ms 12732 KB Output is correct
47 Correct 3 ms 12892 KB Output is correct
48 Correct 3 ms 12892 KB Output is correct
49 Correct 2 ms 12888 KB Output is correct
50 Correct 3 ms 12892 KB Output is correct
51 Correct 2 ms 12892 KB Output is correct
52 Correct 3 ms 12888 KB Output is correct
53 Correct 3 ms 12892 KB Output is correct
54 Correct 3 ms 12892 KB Output is correct
55 Correct 2 ms 12892 KB Output is correct
56 Correct 3 ms 13144 KB Output is correct
57 Correct 3 ms 12892 KB Output is correct
58 Correct 3 ms 12892 KB Output is correct
59 Correct 2 ms 12892 KB Output is correct
60 Correct 3 ms 12924 KB Output is correct
61 Correct 3 ms 12892 KB Output is correct
62 Correct 3 ms 13144 KB Output is correct
63 Correct 3 ms 12952 KB Output is correct
64 Correct 3 ms 12928 KB Output is correct
65 Correct 2 ms 12892 KB Output is correct
66 Correct 76 ms 31172 KB Output is correct
67 Correct 78 ms 31192 KB Output is correct
68 Correct 110 ms 35592 KB Output is correct
69 Correct 92 ms 30780 KB Output is correct
70 Correct 88 ms 30900 KB Output is correct
71 Correct 101 ms 36904 KB Output is correct
72 Correct 105 ms 29852 KB Output is correct
73 Correct 109 ms 33096 KB Output is correct
74 Correct 102 ms 27724 KB Output is correct
75 Correct 95 ms 28748 KB Output is correct
76 Correct 73 ms 23412 KB Output is correct
77 Correct 69 ms 23376 KB Output is correct
78 Correct 63 ms 22664 KB Output is correct
79 Correct 67 ms 22636 KB Output is correct
80 Correct 70 ms 21076 KB Output is correct
81 Correct 47 ms 20816 KB Output is correct
82 Correct 5 ms 14428 KB Output is correct
83 Correct 6 ms 14628 KB Output is correct
84 Correct 4 ms 14428 KB Output is correct
85 Correct 4 ms 14428 KB Output is correct
86 Correct 6 ms 14428 KB Output is correct
87 Correct 4 ms 14428 KB Output is correct
88 Correct 3 ms 12936 KB Output is correct
89 Correct 3 ms 12992 KB Output is correct
90 Correct 3 ms 12892 KB Output is correct
91 Correct 5 ms 13404 KB Output is correct
92 Correct 3 ms 13148 KB Output is correct
93 Correct 3 ms 13148 KB Output is correct
94 Correct 3 ms 13148 KB Output is correct
95 Correct 3 ms 12992 KB Output is correct
96 Correct 3 ms 13148 KB Output is correct
97 Correct 4 ms 12892 KB Output is correct
98 Correct 3 ms 13116 KB Output is correct
99 Correct 3 ms 12888 KB Output is correct
100 Correct 3 ms 12892 KB Output is correct
101 Correct 3 ms 12892 KB Output is correct
102 Correct 4 ms 12932 KB Output is correct
103 Correct 3 ms 12892 KB Output is correct
104 Correct 4 ms 12888 KB Output is correct
105 Correct 3 ms 12888 KB Output is correct
106 Correct 3 ms 12892 KB Output is correct
107 Correct 3 ms 12892 KB Output is correct
108 Correct 98 ms 30228 KB Output is correct
109 Correct 99 ms 30012 KB Output is correct
110 Correct 95 ms 30012 KB Output is correct
111 Correct 98 ms 30100 KB Output is correct
112 Correct 92 ms 30048 KB Output is correct
113 Correct 126 ms 49088 KB Output is correct
114 Correct 117 ms 37372 KB Output is correct
115 Correct 104 ms 35360 KB Output is correct
116 Correct 109 ms 33916 KB Output is correct
117 Correct 104 ms 29504 KB Output is correct
118 Correct 97 ms 29824 KB Output is correct
119 Correct 97 ms 29080 KB Output is correct
120 Correct 138 ms 28940 KB Output is correct
121 Correct 91 ms 27188 KB Output is correct
122 Correct 79 ms 25940 KB Output is correct
123 Correct 47 ms 21588 KB Output is correct
124 Correct 70 ms 29124 KB Output is correct
125 Correct 71 ms 29172 KB Output is correct
126 Correct 70 ms 29364 KB Output is correct
127 Correct 71 ms 29064 KB Output is correct
128 Correct 3 ms 12892 KB Output is correct
129 Correct 3 ms 12936 KB Output is correct
130 Correct 4 ms 12888 KB Output is correct
131 Correct 3 ms 12892 KB Output is correct
132 Correct 3 ms 12936 KB Output is correct
133 Correct 3 ms 13148 KB Output is correct
134 Correct 4 ms 12892 KB Output is correct
135 Correct 4 ms 12936 KB Output is correct
136 Correct 3 ms 12892 KB Output is correct
137 Correct 3 ms 13144 KB Output is correct
138 Correct 3 ms 12888 KB Output is correct
139 Correct 4 ms 13144 KB Output is correct
140 Correct 5 ms 13144 KB Output is correct
141 Correct 4 ms 13148 KB Output is correct
142 Correct 4 ms 12928 KB Output is correct
143 Correct 3 ms 12892 KB Output is correct
144 Correct 3 ms 12892 KB Output is correct
145 Correct 3 ms 12888 KB Output is correct
146 Correct 4 ms 12892 KB Output is correct
147 Correct 3 ms 12988 KB Output is correct
148 Correct 3 ms 12892 KB Output is correct
149 Correct 4 ms 12892 KB Output is correct
150 Correct 3 ms 12892 KB Output is correct
151 Correct 3 ms 12892 KB Output is correct
152 Correct 3 ms 12892 KB Output is correct
153 Correct 3 ms 12888 KB Output is correct
154 Correct 3 ms 12892 KB Output is correct
155 Correct 109 ms 30048 KB Output is correct
156 Correct 117 ms 30000 KB Output is correct
157 Correct 118 ms 29428 KB Output is correct
158 Correct 130 ms 27716 KB Output is correct
159 Correct 118 ms 26132 KB Output is correct
160 Correct 95 ms 24772 KB Output is correct
161 Correct 106 ms 24460 KB Output is correct
162 Correct 101 ms 23792 KB Output is correct
163 Correct 102 ms 24008 KB Output is correct
164 Correct 79 ms 23496 KB Output is correct
165 Correct 101 ms 23196 KB Output is correct
166 Correct 90 ms 22968 KB Output is correct
167 Correct 77 ms 23068 KB Output is correct
168 Correct 73 ms 25024 KB Output is correct
169 Correct 139 ms 36736 KB Output is correct
170 Correct 112 ms 34252 KB Output is correct
171 Correct 131 ms 34884 KB Output is correct
172 Correct 128 ms 32756 KB Output is correct
173 Correct 110 ms 27568 KB Output is correct
174 Correct 113 ms 27164 KB Output is correct
175 Correct 104 ms 26884 KB Output is correct
176 Correct 113 ms 25120 KB Output is correct
177 Correct 92 ms 23632 KB Output is correct
178 Correct 93 ms 28728 KB Output is correct
179 Correct 103 ms 28576 KB Output is correct
180 Correct 100 ms 27844 KB Output is correct
181 Correct 95 ms 27964 KB Output is correct
182 Correct 3 ms 12888 KB Output is correct
183 Correct 3 ms 13040 KB Output is correct
184 Correct 3 ms 12892 KB Output is correct
185 Correct 3 ms 12888 KB Output is correct
186 Correct 4 ms 13132 KB Output is correct
187 Correct 4 ms 12892 KB Output is correct
188 Correct 4 ms 12932 KB Output is correct
189 Correct 4 ms 12892 KB Output is correct
190 Correct 3 ms 12888 KB Output is correct
191 Correct 3 ms 12888 KB Output is correct
192 Correct 3 ms 12892 KB Output is correct
193 Correct 3 ms 12892 KB Output is correct
194 Correct 4 ms 12968 KB Output is correct
195 Correct 3 ms 12892 KB Output is correct
196 Correct 4 ms 12888 KB Output is correct
197 Correct 4 ms 12892 KB Output is correct
198 Correct 3 ms 12892 KB Output is correct
199 Correct 5 ms 12916 KB Output is correct
200 Correct 4 ms 12888 KB Output is correct
201 Correct 5 ms 13148 KB Output is correct
202 Correct 4 ms 12892 KB Output is correct
203 Correct 4 ms 12912 KB Output is correct
204 Correct 3 ms 12936 KB Output is correct
205 Correct 3 ms 12888 KB Output is correct
206 Correct 4 ms 12892 KB Output is correct
207 Correct 4 ms 12892 KB Output is correct
208 Correct 3 ms 12892 KB Output is correct
209 Correct 4 ms 14428 KB Output is correct
210 Correct 57 ms 21616 KB Output is correct
211 Correct 98 ms 27332 KB Output is correct
212 Correct 126 ms 30092 KB Output is correct
213 Correct 148 ms 32424 KB Output is correct
214 Correct 74 ms 24112 KB Output is correct
215 Correct 75 ms 24000 KB Output is correct
216 Correct 125 ms 28716 KB Output is correct
217 Correct 120 ms 26564 KB Output is correct
218 Correct 86 ms 23952 KB Output is correct
219 Correct 99 ms 23256 KB Output is correct
220 Correct 73 ms 22984 KB Output is correct
221 Correct 71 ms 22980 KB Output is correct
222 Correct 74 ms 24004 KB Output is correct
223 Correct 136 ms 29792 KB Output is correct
224 Correct 111 ms 28700 KB Output is correct
225 Correct 105 ms 25796 KB Output is correct
226 Correct 103 ms 25412 KB Output is correct
227 Correct 139 ms 25416 KB Output is correct
228 Correct 86 ms 24056 KB Output is correct
229 Correct 84 ms 22836 KB Output is correct
230 Correct 96 ms 26096 KB Output is correct
231 Correct 126 ms 26260 KB Output is correct