답안 #876023

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
876023 2023-11-21T05:46:03 Z NeroZein 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
78 ms 45608 KB
#include "bits/stdc++.h"
using namespace std;

#ifdef Nero
#include "Deb.h"
#else
#define deb(...)
#endif

const int N = 3e5 + 5; 

int num; 
int a[N];
int id[N];
int sz[N];
bool c[N]; 
int compsz[N]; 
long long ans; 
stack<int> stk;
int vis[N], low[N];
bool is_cutpoint[N];
vector<int> g[N], t[N]; 
vector<vector<int>> bcc; 

void dfs(int v, int p) {
  vis[v] = low[v] = ++num; 
  stk.push(v); 
  for (int u : g[v]) {
    if (u == p) {
      continue;
    }
    if (vis[u]) {
      low[v] = min(low[v], vis[u]);
      continue; 
    }
    dfs(u, v); 
    low[v] = min(low[v], low[u]);
    if (low[u] >= vis[v]) {
      is_cutpoint[v] = true; 
      bcc.push_back({}); 
      bcc.back().push_back(v);
      while (bcc.back().back() != u) {
        bcc.back().push_back(stk.top());
        stk.pop(); 
      }
    }
  }
}

void dfs2(int v, int p) {
  vis[v] = true; 
  sz[v] = a[v]; 
  for (int u : t[v]) {
    if (u == p) continue; 
    dfs2(u, v);
    sz[v] += sz[u]; 
  }
}

void dfs3(int v, int p, int n) {
  for (int u : t[v]) {
    if (c[v]) {
      int x = (u == p ? n - sz[v] : sz[u]);
      ans -= (long long) (compsz[u] - 1) * (n - x) * (n - x - 1); 
    }
    if (u != p) {
      dfs3(u, v, n); 
    }
  }
}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; ++i) {
    int u, v;
    cin >> u >> v;
    g[u].push_back(v);
    g[v].push_back(u); 
  }
  for (int i = 1; i <= n; ++i) {
    if (!vis[i]) {
      dfs(i, i); 
      if (g[i].size() <= 1) {
        is_cutpoint[i] = false; 
      }
    }
  }
  int idd = 0; 
  for (int i = 1; i <= n; ++i) {
    if (is_cutpoint[i]) {
      c[idd] = true; 
      a[idd] = 1; 
      id[i] = idd++; 
    }
  }
  for (int i = 0; i < (int) bcc.size(); ++i) {
    vector<int>& comp = bcc[i];
    int cur = idd++;
    compsz[cur] = comp.size(); 
    for (int v : comp) {
      if (is_cutpoint[v]) {
        t[id[v]].push_back(cur);
        t[cur].push_back(id[v]); 
      } else {
        id[v] = cur; 
        a[cur]++; 
      }
    }
  }
  memset(vis, 0, sizeof vis); 
  for (int i = 0; i < idd; ++i) {
    if (!vis[i]) {
      dfs2(i, i);
      dfs3(i, i, sz[i]); 
      ans += (long long) sz[i] * (sz[i] - 1) * (sz[i] - 2); 
    }
  }
  cout << ans << '\n'; 
  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 20060 KB Output is correct
2 Correct 4 ms 20060 KB Output is correct
3 Correct 4 ms 20060 KB Output is correct
4 Correct 4 ms 20056 KB Output is correct
5 Correct 5 ms 20060 KB Output is correct
6 Correct 4 ms 20060 KB Output is correct
7 Correct 4 ms 20060 KB Output is correct
8 Correct 4 ms 20060 KB Output is correct
9 Correct 4 ms 20060 KB Output is correct
10 Correct 4 ms 20060 KB Output is correct
11 Correct 5 ms 20056 KB Output is correct
12 Correct 4 ms 20060 KB Output is correct
13 Correct 4 ms 20136 KB Output is correct
14 Correct 4 ms 20060 KB Output is correct
15 Correct 4 ms 20060 KB Output is correct
16 Correct 4 ms 20060 KB Output is correct
17 Correct 4 ms 20056 KB Output is correct
18 Correct 4 ms 20060 KB Output is correct
19 Correct 4 ms 20060 KB Output is correct
20 Correct 4 ms 20060 KB Output is correct
21 Correct 4 ms 20060 KB Output is correct
22 Correct 4 ms 20060 KB Output is correct
23 Correct 4 ms 20060 KB Output is correct
24 Correct 4 ms 20060 KB Output is correct
25 Correct 4 ms 20060 KB Output is correct
26 Correct 4 ms 20060 KB Output is correct
27 Correct 4 ms 20056 KB Output is correct
28 Correct 4 ms 20060 KB Output is correct
29 Correct 5 ms 20060 KB Output is correct
30 Correct 4 ms 20060 KB Output is correct
31 Correct 4 ms 20060 KB Output is correct
32 Correct 4 ms 20056 KB Output is correct
33 Correct 4 ms 20060 KB Output is correct
34 Correct 4 ms 20060 KB Output is correct
35 Correct 4 ms 20060 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 20060 KB Output is correct
2 Correct 4 ms 20060 KB Output is correct
3 Correct 4 ms 20060 KB Output is correct
4 Correct 4 ms 20056 KB Output is correct
5 Correct 5 ms 20060 KB Output is correct
6 Correct 4 ms 20060 KB Output is correct
7 Correct 4 ms 20060 KB Output is correct
8 Correct 4 ms 20060 KB Output is correct
9 Correct 4 ms 20060 KB Output is correct
10 Correct 4 ms 20060 KB Output is correct
11 Correct 5 ms 20056 KB Output is correct
12 Correct 4 ms 20060 KB Output is correct
13 Correct 4 ms 20136 KB Output is correct
14 Correct 4 ms 20060 KB Output is correct
15 Correct 4 ms 20060 KB Output is correct
16 Correct 4 ms 20060 KB Output is correct
17 Correct 4 ms 20056 KB Output is correct
18 Correct 4 ms 20060 KB Output is correct
19 Correct 4 ms 20060 KB Output is correct
20 Correct 4 ms 20060 KB Output is correct
21 Correct 4 ms 20060 KB Output is correct
22 Correct 4 ms 20060 KB Output is correct
23 Correct 4 ms 20060 KB Output is correct
24 Correct 4 ms 20060 KB Output is correct
25 Correct 4 ms 20060 KB Output is correct
26 Correct 4 ms 20060 KB Output is correct
27 Correct 4 ms 20056 KB Output is correct
28 Correct 4 ms 20060 KB Output is correct
29 Correct 5 ms 20060 KB Output is correct
30 Correct 4 ms 20060 KB Output is correct
31 Correct 4 ms 20060 KB Output is correct
32 Correct 4 ms 20056 KB Output is correct
33 Correct 4 ms 20060 KB Output is correct
34 Correct 4 ms 20060 KB Output is correct
35 Correct 4 ms 20060 KB Output is correct
36 Correct 5 ms 20060 KB Output is correct
37 Correct 4 ms 20060 KB Output is correct
38 Correct 4 ms 20060 KB Output is correct
39 Correct 4 ms 20140 KB Output is correct
40 Correct 5 ms 20060 KB Output is correct
41 Correct 4 ms 20080 KB Output is correct
42 Correct 4 ms 20060 KB Output is correct
43 Correct 4 ms 20060 KB Output is correct
44 Correct 4 ms 20056 KB Output is correct
45 Correct 5 ms 19900 KB Output is correct
46 Correct 4 ms 20060 KB Output is correct
47 Correct 4 ms 20060 KB Output is correct
48 Correct 4 ms 20060 KB Output is correct
49 Correct 4 ms 20060 KB Output is correct
50 Correct 5 ms 20060 KB Output is correct
51 Correct 4 ms 20060 KB Output is correct
52 Correct 4 ms 20060 KB Output is correct
53 Correct 4 ms 20140 KB Output is correct
54 Correct 4 ms 20060 KB Output is correct
55 Correct 4 ms 20060 KB Output is correct
56 Correct 4 ms 20060 KB Output is correct
57 Correct 4 ms 20060 KB Output is correct
58 Correct 4 ms 20060 KB Output is correct
59 Correct 4 ms 20060 KB Output is correct
60 Correct 4 ms 20060 KB Output is correct
61 Correct 4 ms 20060 KB Output is correct
62 Correct 4 ms 20060 KB Output is correct
63 Correct 4 ms 20060 KB Output is correct
64 Correct 4 ms 20136 KB Output is correct
65 Correct 4 ms 20088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 39 ms 35288 KB Output is correct
2 Correct 38 ms 35280 KB Output is correct
3 Correct 50 ms 35952 KB Output is correct
4 Correct 61 ms 36028 KB Output is correct
5 Correct 45 ms 32948 KB Output is correct
6 Correct 54 ms 36484 KB Output is correct
7 Correct 52 ms 35076 KB Output is correct
8 Correct 53 ms 35592 KB Output is correct
9 Correct 53 ms 33544 KB Output is correct
10 Correct 51 ms 33028 KB Output is correct
11 Correct 40 ms 29884 KB Output is correct
12 Correct 40 ms 29704 KB Output is correct
13 Correct 36 ms 29188 KB Output is correct
14 Correct 38 ms 28936 KB Output is correct
15 Correct 29 ms 27164 KB Output is correct
16 Correct 28 ms 27144 KB Output is correct
17 Correct 5 ms 20572 KB Output is correct
18 Correct 5 ms 20572 KB Output is correct
19 Correct 5 ms 20572 KB Output is correct
20 Correct 5 ms 20572 KB Output is correct
21 Correct 5 ms 20636 KB Output is correct
22 Correct 5 ms 20632 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 20060 KB Output is correct
2 Correct 4 ms 20060 KB Output is correct
3 Correct 6 ms 20060 KB Output is correct
4 Correct 5 ms 20316 KB Output is correct
5 Correct 4 ms 20316 KB Output is correct
6 Correct 4 ms 20316 KB Output is correct
7 Correct 5 ms 20348 KB Output is correct
8 Correct 4 ms 20316 KB Output is correct
9 Correct 6 ms 20316 KB Output is correct
10 Correct 5 ms 20060 KB Output is correct
11 Correct 4 ms 20060 KB Output is correct
12 Correct 5 ms 20060 KB Output is correct
13 Correct 4 ms 20056 KB Output is correct
14 Correct 4 ms 20060 KB Output is correct
15 Correct 4 ms 20264 KB Output is correct
16 Correct 4 ms 20060 KB Output is correct
17 Correct 6 ms 20088 KB Output is correct
18 Correct 5 ms 20060 KB Output is correct
19 Correct 4 ms 20060 KB Output is correct
20 Correct 4 ms 20148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 58 ms 34820 KB Output is correct
2 Correct 60 ms 35516 KB Output is correct
3 Correct 70 ms 35588 KB Output is correct
4 Correct 71 ms 35488 KB Output is correct
5 Correct 60 ms 35504 KB Output is correct
6 Correct 78 ms 45608 KB Output is correct
7 Correct 76 ms 42272 KB Output is correct
8 Correct 66 ms 41208 KB Output is correct
9 Correct 65 ms 39496 KB Output is correct
10 Correct 57 ms 35588 KB Output is correct
11 Correct 61 ms 35528 KB Output is correct
12 Correct 58 ms 35440 KB Output is correct
13 Correct 67 ms 35588 KB Output is correct
14 Correct 53 ms 35076 KB Output is correct
15 Correct 50 ms 32764 KB Output is correct
16 Correct 31 ms 28224 KB Output is correct
17 Correct 52 ms 34544 KB Output is correct
18 Correct 41 ms 34300 KB Output is correct
19 Correct 40 ms 34680 KB Output is correct
20 Correct 44 ms 34308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 20056 KB Output is correct
2 Correct 5 ms 20060 KB Output is correct
3 Correct 5 ms 20060 KB Output is correct
4 Correct 4 ms 20060 KB Output is correct
5 Correct 4 ms 20060 KB Output is correct
6 Correct 4 ms 20060 KB Output is correct
7 Correct 4 ms 20060 KB Output is correct
8 Correct 4 ms 20060 KB Output is correct
9 Correct 4 ms 20060 KB Output is correct
10 Correct 5 ms 20060 KB Output is correct
11 Correct 4 ms 20060 KB Output is correct
12 Correct 4 ms 20316 KB Output is correct
13 Correct 5 ms 20056 KB Output is correct
14 Correct 4 ms 20060 KB Output is correct
15 Correct 4 ms 20060 KB Output is correct
16 Correct 4 ms 20056 KB Output is correct
17 Correct 5 ms 20060 KB Output is correct
18 Correct 4 ms 20060 KB Output is correct
19 Correct 4 ms 20312 KB Output is correct
20 Correct 6 ms 20216 KB Output is correct
21 Correct 4 ms 20060 KB Output is correct
22 Correct 4 ms 20060 KB Output is correct
23 Correct 4 ms 20060 KB Output is correct
24 Correct 4 ms 20232 KB Output is correct
25 Correct 6 ms 20164 KB Output is correct
26 Correct 5 ms 20060 KB Output is correct
27 Correct 4 ms 20148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 71 ms 34308 KB Output is correct
2 Correct 64 ms 35784 KB Output is correct
3 Correct 72 ms 35132 KB Output is correct
4 Correct 66 ms 31744 KB Output is correct
5 Correct 47 ms 29192 KB Output is correct
6 Correct 42 ms 27880 KB Output is correct
7 Correct 47 ms 27336 KB Output is correct
8 Correct 37 ms 26512 KB Output is correct
9 Correct 38 ms 26252 KB Output is correct
10 Correct 36 ms 26192 KB Output is correct
11 Correct 32 ms 25684 KB Output is correct
12 Correct 33 ms 25684 KB Output is correct
13 Correct 40 ms 25684 KB Output is correct
14 Correct 33 ms 28252 KB Output is correct
15 Correct 68 ms 40704 KB Output is correct
16 Correct 74 ms 39092 KB Output is correct
17 Correct 63 ms 38216 KB Output is correct
18 Correct 60 ms 36380 KB Output is correct
19 Correct 55 ms 31752 KB Output is correct
20 Correct 56 ms 31756 KB Output is correct
21 Correct 73 ms 32116 KB Output is correct
22 Correct 48 ms 30724 KB Output is correct
23 Correct 42 ms 29264 KB Output is correct
24 Correct 68 ms 34568 KB Output is correct
25 Correct 61 ms 34048 KB Output is correct
26 Correct 57 ms 32384 KB Output is correct
27 Correct 53 ms 32384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 20060 KB Output is correct
2 Correct 4 ms 20060 KB Output is correct
3 Correct 4 ms 20060 KB Output is correct
4 Correct 4 ms 20056 KB Output is correct
5 Correct 5 ms 20060 KB Output is correct
6 Correct 4 ms 20060 KB Output is correct
7 Correct 4 ms 20060 KB Output is correct
8 Correct 4 ms 20060 KB Output is correct
9 Correct 4 ms 20060 KB Output is correct
10 Correct 4 ms 20060 KB Output is correct
11 Correct 5 ms 20056 KB Output is correct
12 Correct 4 ms 20060 KB Output is correct
13 Correct 4 ms 20136 KB Output is correct
14 Correct 4 ms 20060 KB Output is correct
15 Correct 4 ms 20060 KB Output is correct
16 Correct 4 ms 20060 KB Output is correct
17 Correct 4 ms 20056 KB Output is correct
18 Correct 4 ms 20060 KB Output is correct
19 Correct 4 ms 20060 KB Output is correct
20 Correct 4 ms 20060 KB Output is correct
21 Correct 4 ms 20060 KB Output is correct
22 Correct 4 ms 20060 KB Output is correct
23 Correct 4 ms 20060 KB Output is correct
24 Correct 4 ms 20060 KB Output is correct
25 Correct 4 ms 20060 KB Output is correct
26 Correct 4 ms 20060 KB Output is correct
27 Correct 4 ms 20056 KB Output is correct
28 Correct 4 ms 20060 KB Output is correct
29 Correct 5 ms 20060 KB Output is correct
30 Correct 4 ms 20060 KB Output is correct
31 Correct 4 ms 20060 KB Output is correct
32 Correct 4 ms 20056 KB Output is correct
33 Correct 4 ms 20060 KB Output is correct
34 Correct 4 ms 20060 KB Output is correct
35 Correct 4 ms 20060 KB Output is correct
36 Correct 5 ms 20060 KB Output is correct
37 Correct 4 ms 20060 KB Output is correct
38 Correct 4 ms 20060 KB Output is correct
39 Correct 4 ms 20140 KB Output is correct
40 Correct 5 ms 20060 KB Output is correct
41 Correct 4 ms 20080 KB Output is correct
42 Correct 4 ms 20060 KB Output is correct
43 Correct 4 ms 20060 KB Output is correct
44 Correct 4 ms 20056 KB Output is correct
45 Correct 5 ms 19900 KB Output is correct
46 Correct 4 ms 20060 KB Output is correct
47 Correct 4 ms 20060 KB Output is correct
48 Correct 4 ms 20060 KB Output is correct
49 Correct 4 ms 20060 KB Output is correct
50 Correct 5 ms 20060 KB Output is correct
51 Correct 4 ms 20060 KB Output is correct
52 Correct 4 ms 20060 KB Output is correct
53 Correct 4 ms 20140 KB Output is correct
54 Correct 4 ms 20060 KB Output is correct
55 Correct 4 ms 20060 KB Output is correct
56 Correct 4 ms 20060 KB Output is correct
57 Correct 4 ms 20060 KB Output is correct
58 Correct 4 ms 20060 KB Output is correct
59 Correct 4 ms 20060 KB Output is correct
60 Correct 4 ms 20060 KB Output is correct
61 Correct 4 ms 20060 KB Output is correct
62 Correct 4 ms 20060 KB Output is correct
63 Correct 4 ms 20060 KB Output is correct
64 Correct 4 ms 20136 KB Output is correct
65 Correct 4 ms 20088 KB Output is correct
66 Correct 4 ms 20060 KB Output is correct
67 Correct 4 ms 20060 KB Output is correct
68 Correct 4 ms 20056 KB Output is correct
69 Correct 4 ms 20060 KB Output is correct
70 Correct 4 ms 20060 KB Output is correct
71 Correct 4 ms 20060 KB Output is correct
72 Correct 4 ms 20060 KB Output is correct
73 Correct 6 ms 20152 KB Output is correct
74 Correct 4 ms 20060 KB Output is correct
75 Correct 5 ms 20060 KB Output is correct
76 Correct 5 ms 19904 KB Output is correct
77 Correct 4 ms 20060 KB Output is correct
78 Correct 4 ms 20060 KB Output is correct
79 Correct 5 ms 20060 KB Output is correct
80 Correct 5 ms 20060 KB Output is correct
81 Correct 4 ms 20312 KB Output is correct
82 Correct 4 ms 20160 KB Output is correct
83 Correct 4 ms 20060 KB Output is correct
84 Correct 5 ms 20060 KB Output is correct
85 Correct 4 ms 20012 KB Output is correct
86 Correct 4 ms 20060 KB Output is correct
87 Correct 4 ms 20060 KB Output is correct
88 Correct 4 ms 19992 KB Output is correct
89 Correct 5 ms 20060 KB Output is correct
90 Correct 4 ms 20060 KB Output is correct
91 Correct 6 ms 20200 KB Output is correct
92 Correct 4 ms 20060 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 20060 KB Output is correct
2 Correct 4 ms 20060 KB Output is correct
3 Correct 4 ms 20060 KB Output is correct
4 Correct 4 ms 20056 KB Output is correct
5 Correct 5 ms 20060 KB Output is correct
6 Correct 4 ms 20060 KB Output is correct
7 Correct 4 ms 20060 KB Output is correct
8 Correct 4 ms 20060 KB Output is correct
9 Correct 4 ms 20060 KB Output is correct
10 Correct 4 ms 20060 KB Output is correct
11 Correct 5 ms 20056 KB Output is correct
12 Correct 4 ms 20060 KB Output is correct
13 Correct 4 ms 20136 KB Output is correct
14 Correct 4 ms 20060 KB Output is correct
15 Correct 4 ms 20060 KB Output is correct
16 Correct 4 ms 20060 KB Output is correct
17 Correct 4 ms 20056 KB Output is correct
18 Correct 4 ms 20060 KB Output is correct
19 Correct 4 ms 20060 KB Output is correct
20 Correct 4 ms 20060 KB Output is correct
21 Correct 4 ms 20060 KB Output is correct
22 Correct 4 ms 20060 KB Output is correct
23 Correct 4 ms 20060 KB Output is correct
24 Correct 4 ms 20060 KB Output is correct
25 Correct 4 ms 20060 KB Output is correct
26 Correct 4 ms 20060 KB Output is correct
27 Correct 4 ms 20056 KB Output is correct
28 Correct 4 ms 20060 KB Output is correct
29 Correct 5 ms 20060 KB Output is correct
30 Correct 4 ms 20060 KB Output is correct
31 Correct 4 ms 20060 KB Output is correct
32 Correct 4 ms 20056 KB Output is correct
33 Correct 4 ms 20060 KB Output is correct
34 Correct 4 ms 20060 KB Output is correct
35 Correct 4 ms 20060 KB Output is correct
36 Correct 5 ms 20060 KB Output is correct
37 Correct 4 ms 20060 KB Output is correct
38 Correct 4 ms 20060 KB Output is correct
39 Correct 4 ms 20140 KB Output is correct
40 Correct 5 ms 20060 KB Output is correct
41 Correct 4 ms 20080 KB Output is correct
42 Correct 4 ms 20060 KB Output is correct
43 Correct 4 ms 20060 KB Output is correct
44 Correct 4 ms 20056 KB Output is correct
45 Correct 5 ms 19900 KB Output is correct
46 Correct 4 ms 20060 KB Output is correct
47 Correct 4 ms 20060 KB Output is correct
48 Correct 4 ms 20060 KB Output is correct
49 Correct 4 ms 20060 KB Output is correct
50 Correct 5 ms 20060 KB Output is correct
51 Correct 4 ms 20060 KB Output is correct
52 Correct 4 ms 20060 KB Output is correct
53 Correct 4 ms 20140 KB Output is correct
54 Correct 4 ms 20060 KB Output is correct
55 Correct 4 ms 20060 KB Output is correct
56 Correct 4 ms 20060 KB Output is correct
57 Correct 4 ms 20060 KB Output is correct
58 Correct 4 ms 20060 KB Output is correct
59 Correct 4 ms 20060 KB Output is correct
60 Correct 4 ms 20060 KB Output is correct
61 Correct 4 ms 20060 KB Output is correct
62 Correct 4 ms 20060 KB Output is correct
63 Correct 4 ms 20060 KB Output is correct
64 Correct 4 ms 20136 KB Output is correct
65 Correct 4 ms 20088 KB Output is correct
66 Correct 39 ms 35288 KB Output is correct
67 Correct 38 ms 35280 KB Output is correct
68 Correct 50 ms 35952 KB Output is correct
69 Correct 61 ms 36028 KB Output is correct
70 Correct 45 ms 32948 KB Output is correct
71 Correct 54 ms 36484 KB Output is correct
72 Correct 52 ms 35076 KB Output is correct
73 Correct 53 ms 35592 KB Output is correct
74 Correct 53 ms 33544 KB Output is correct
75 Correct 51 ms 33028 KB Output is correct
76 Correct 40 ms 29884 KB Output is correct
77 Correct 40 ms 29704 KB Output is correct
78 Correct 36 ms 29188 KB Output is correct
79 Correct 38 ms 28936 KB Output is correct
80 Correct 29 ms 27164 KB Output is correct
81 Correct 28 ms 27144 KB Output is correct
82 Correct 5 ms 20572 KB Output is correct
83 Correct 5 ms 20572 KB Output is correct
84 Correct 5 ms 20572 KB Output is correct
85 Correct 5 ms 20572 KB Output is correct
86 Correct 5 ms 20636 KB Output is correct
87 Correct 5 ms 20632 KB Output is correct
88 Correct 5 ms 20060 KB Output is correct
89 Correct 4 ms 20060 KB Output is correct
90 Correct 6 ms 20060 KB Output is correct
91 Correct 5 ms 20316 KB Output is correct
92 Correct 4 ms 20316 KB Output is correct
93 Correct 4 ms 20316 KB Output is correct
94 Correct 5 ms 20348 KB Output is correct
95 Correct 4 ms 20316 KB Output is correct
96 Correct 6 ms 20316 KB Output is correct
97 Correct 5 ms 20060 KB Output is correct
98 Correct 4 ms 20060 KB Output is correct
99 Correct 5 ms 20060 KB Output is correct
100 Correct 4 ms 20056 KB Output is correct
101 Correct 4 ms 20060 KB Output is correct
102 Correct 4 ms 20264 KB Output is correct
103 Correct 4 ms 20060 KB Output is correct
104 Correct 6 ms 20088 KB Output is correct
105 Correct 5 ms 20060 KB Output is correct
106 Correct 4 ms 20060 KB Output is correct
107 Correct 4 ms 20148 KB Output is correct
108 Correct 58 ms 34820 KB Output is correct
109 Correct 60 ms 35516 KB Output is correct
110 Correct 70 ms 35588 KB Output is correct
111 Correct 71 ms 35488 KB Output is correct
112 Correct 60 ms 35504 KB Output is correct
113 Correct 78 ms 45608 KB Output is correct
114 Correct 76 ms 42272 KB Output is correct
115 Correct 66 ms 41208 KB Output is correct
116 Correct 65 ms 39496 KB Output is correct
117 Correct 57 ms 35588 KB Output is correct
118 Correct 61 ms 35528 KB Output is correct
119 Correct 58 ms 35440 KB Output is correct
120 Correct 67 ms 35588 KB Output is correct
121 Correct 53 ms 35076 KB Output is correct
122 Correct 50 ms 32764 KB Output is correct
123 Correct 31 ms 28224 KB Output is correct
124 Correct 52 ms 34544 KB Output is correct
125 Correct 41 ms 34300 KB Output is correct
126 Correct 40 ms 34680 KB Output is correct
127 Correct 44 ms 34308 KB Output is correct
128 Correct 4 ms 20056 KB Output is correct
129 Correct 5 ms 20060 KB Output is correct
130 Correct 5 ms 20060 KB Output is correct
131 Correct 4 ms 20060 KB Output is correct
132 Correct 4 ms 20060 KB Output is correct
133 Correct 4 ms 20060 KB Output is correct
134 Correct 4 ms 20060 KB Output is correct
135 Correct 4 ms 20060 KB Output is correct
136 Correct 4 ms 20060 KB Output is correct
137 Correct 5 ms 20060 KB Output is correct
138 Correct 4 ms 20060 KB Output is correct
139 Correct 4 ms 20316 KB Output is correct
140 Correct 5 ms 20056 KB Output is correct
141 Correct 4 ms 20060 KB Output is correct
142 Correct 4 ms 20060 KB Output is correct
143 Correct 4 ms 20056 KB Output is correct
144 Correct 5 ms 20060 KB Output is correct
145 Correct 4 ms 20060 KB Output is correct
146 Correct 4 ms 20312 KB Output is correct
147 Correct 6 ms 20216 KB Output is correct
148 Correct 4 ms 20060 KB Output is correct
149 Correct 4 ms 20060 KB Output is correct
150 Correct 4 ms 20060 KB Output is correct
151 Correct 4 ms 20232 KB Output is correct
152 Correct 6 ms 20164 KB Output is correct
153 Correct 5 ms 20060 KB Output is correct
154 Correct 4 ms 20148 KB Output is correct
155 Correct 71 ms 34308 KB Output is correct
156 Correct 64 ms 35784 KB Output is correct
157 Correct 72 ms 35132 KB Output is correct
158 Correct 66 ms 31744 KB Output is correct
159 Correct 47 ms 29192 KB Output is correct
160 Correct 42 ms 27880 KB Output is correct
161 Correct 47 ms 27336 KB Output is correct
162 Correct 37 ms 26512 KB Output is correct
163 Correct 38 ms 26252 KB Output is correct
164 Correct 36 ms 26192 KB Output is correct
165 Correct 32 ms 25684 KB Output is correct
166 Correct 33 ms 25684 KB Output is correct
167 Correct 40 ms 25684 KB Output is correct
168 Correct 33 ms 28252 KB Output is correct
169 Correct 68 ms 40704 KB Output is correct
170 Correct 74 ms 39092 KB Output is correct
171 Correct 63 ms 38216 KB Output is correct
172 Correct 60 ms 36380 KB Output is correct
173 Correct 55 ms 31752 KB Output is correct
174 Correct 56 ms 31756 KB Output is correct
175 Correct 73 ms 32116 KB Output is correct
176 Correct 48 ms 30724 KB Output is correct
177 Correct 42 ms 29264 KB Output is correct
178 Correct 68 ms 34568 KB Output is correct
179 Correct 61 ms 34048 KB Output is correct
180 Correct 57 ms 32384 KB Output is correct
181 Correct 53 ms 32384 KB Output is correct
182 Correct 4 ms 20060 KB Output is correct
183 Correct 4 ms 20060 KB Output is correct
184 Correct 4 ms 20056 KB Output is correct
185 Correct 4 ms 20060 KB Output is correct
186 Correct 4 ms 20060 KB Output is correct
187 Correct 4 ms 20060 KB Output is correct
188 Correct 4 ms 20060 KB Output is correct
189 Correct 6 ms 20152 KB Output is correct
190 Correct 4 ms 20060 KB Output is correct
191 Correct 5 ms 20060 KB Output is correct
192 Correct 5 ms 19904 KB Output is correct
193 Correct 4 ms 20060 KB Output is correct
194 Correct 4 ms 20060 KB Output is correct
195 Correct 5 ms 20060 KB Output is correct
196 Correct 5 ms 20060 KB Output is correct
197 Correct 4 ms 20312 KB Output is correct
198 Correct 4 ms 20160 KB Output is correct
199 Correct 4 ms 20060 KB Output is correct
200 Correct 5 ms 20060 KB Output is correct
201 Correct 4 ms 20012 KB Output is correct
202 Correct 4 ms 20060 KB Output is correct
203 Correct 4 ms 20060 KB Output is correct
204 Correct 4 ms 19992 KB Output is correct
205 Correct 5 ms 20060 KB Output is correct
206 Correct 4 ms 20060 KB Output is correct
207 Correct 6 ms 20200 KB Output is correct
208 Correct 4 ms 20060 KB Output is correct
209 Correct 5 ms 20572 KB Output is correct
210 Correct 32 ms 28168 KB Output is correct
211 Correct 48 ms 31492 KB Output is correct
212 Correct 59 ms 32900 KB Output is correct
213 Correct 60 ms 34504 KB Output is correct
214 Correct 37 ms 29264 KB Output is correct
215 Correct 37 ms 28648 KB Output is correct
216 Correct 56 ms 32256 KB Output is correct
217 Correct 58 ms 29700 KB Output is correct
218 Correct 39 ms 26772 KB Output is correct
219 Correct 35 ms 25940 KB Output is correct
220 Correct 40 ms 25656 KB Output is correct
221 Correct 31 ms 25552 KB Output is correct
222 Correct 35 ms 26740 KB Output is correct
223 Correct 56 ms 32772 KB Output is correct
224 Correct 55 ms 31752 KB Output is correct
225 Correct 50 ms 28988 KB Output is correct
226 Correct 60 ms 29444 KB Output is correct
227 Correct 49 ms 28936 KB Output is correct
228 Correct 45 ms 28428 KB Output is correct
229 Correct 43 ms 28112 KB Output is correct
230 Correct 45 ms 29200 KB Output is correct
231 Correct 46 ms 29188 KB Output is correct