Submission #734341

# Submission time Handle Problem Language Result Execution time Memory
734341 2023-05-02T09:50:15 Z cig32 Duathlon (APIO18_duathlon) C++17
100 / 100
219 ms 45224 KB
#include "bits/stdc++.h"
#define int long long
using namespace std;
const int MAXN = 4e5 + 10;
vector<int> adj[MAXN];
vector<int> rst[MAXN]; // round-square tree
int n, m, cur;
int tin[MAXN], low[MAXN], vis[MAXN];
stack<int> stk;
int nxt;
int ans = 0;
void dfs(int node, int prv) {
  vis[node] = 1;
  tin[node] = ++cur;
  low[node] = tin[node];
  stk.push(node);
  for(int x: adj[node]) {
    if(x != prv) {
      if(!vis[x]) {
        dfs(x, node);
        low[node] = min(low[node], low[x]);
        if(low[x] >= tin[node]) {
          while(1) {
            int u = stk.top();
            stk.pop();
            rst[u].push_back(nxt);
            rst[nxt].push_back(u);
            if(u == x) break;
          }
          rst[node].push_back(nxt);
          rst[nxt].push_back(node);
          nxt++;
        }
      }
      else {
        low[node] = min(low[node], tin[x]);
      }
    }
  }
}
int w[MAXN];
int bruh;
int calc(int node, int prv) {
  int ret = (node <= n);
  vector<int> vt;
  for(int x: rst[node]) {
    if(x != prv) {
      int v = calc(x, node);
      ret += v;
      vt.push_back(v);
    }
  }
  vt.push_back(bruh - ret);
  int con = (node <= n ? 2 * (bruh-1) : 0);
  int ps = 0;
  for(int x: vt) {
    con += ps * x * 2;
    ps += x;
  }
  ans += con * w[node];
  return ret;
}
void count(int node, int prv) {
  vis[node] = 1;
  bruh += (node <= n);
  for(int x: rst[node]) if(x != prv) count(x, node);
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> m;
  for(int i=1; i<=m; i++) {
    int u, v;
    cin >> u >> v;
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  nxt = n+1;
  for(int i=1; i<=n; i++) {
    if(!vis[i]) {
      dfs(i, -1);
      while(stk.size()) stk.pop();
    }
  }
  m = nxt-1 - n;
  for(int i=1; i<=n; i++) w[i] = -1;
  for(int i=n+1; i<=n+m; i++) w[i] = rst[i].size();
  for(int i=1; i<=n+m; i++) vis[i] = 0;
  for(int i=1; i<=n+m; i++) {
    if(!vis[i]) {
      bruh = 0;
      count(i, -1);
      calc(i, -1);
    }
  }
  cout << ans << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 11 ms 19028 KB Output is correct
2 Correct 15 ms 19016 KB Output is correct
3 Correct 12 ms 19028 KB Output is correct
4 Correct 12 ms 19060 KB Output is correct
5 Correct 10 ms 19028 KB Output is correct
6 Correct 10 ms 19104 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19028 KB Output is correct
9 Correct 10 ms 19028 KB Output is correct
10 Correct 10 ms 19116 KB Output is correct
11 Correct 10 ms 19136 KB Output is correct
12 Correct 11 ms 19028 KB Output is correct
13 Correct 14 ms 19116 KB Output is correct
14 Correct 10 ms 19028 KB Output is correct
15 Correct 12 ms 19068 KB Output is correct
16 Correct 10 ms 19028 KB Output is correct
17 Correct 10 ms 19028 KB Output is correct
18 Correct 12 ms 19132 KB Output is correct
19 Correct 10 ms 19028 KB Output is correct
20 Correct 12 ms 19028 KB Output is correct
21 Correct 11 ms 19128 KB Output is correct
22 Correct 11 ms 19124 KB Output is correct
23 Correct 11 ms 19028 KB Output is correct
24 Correct 10 ms 19128 KB Output is correct
25 Correct 11 ms 19120 KB Output is correct
26 Correct 11 ms 19032 KB Output is correct
27 Correct 12 ms 19028 KB Output is correct
28 Correct 13 ms 19124 KB Output is correct
29 Correct 12 ms 19028 KB Output is correct
30 Correct 10 ms 19028 KB Output is correct
31 Correct 10 ms 19028 KB Output is correct
32 Correct 10 ms 19028 KB Output is correct
33 Correct 10 ms 19096 KB Output is correct
34 Correct 11 ms 19072 KB Output is correct
35 Correct 11 ms 19108 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 19028 KB Output is correct
2 Correct 15 ms 19016 KB Output is correct
3 Correct 12 ms 19028 KB Output is correct
4 Correct 12 ms 19060 KB Output is correct
5 Correct 10 ms 19028 KB Output is correct
6 Correct 10 ms 19104 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19028 KB Output is correct
9 Correct 10 ms 19028 KB Output is correct
10 Correct 10 ms 19116 KB Output is correct
11 Correct 10 ms 19136 KB Output is correct
12 Correct 11 ms 19028 KB Output is correct
13 Correct 14 ms 19116 KB Output is correct
14 Correct 10 ms 19028 KB Output is correct
15 Correct 12 ms 19068 KB Output is correct
16 Correct 10 ms 19028 KB Output is correct
17 Correct 10 ms 19028 KB Output is correct
18 Correct 12 ms 19132 KB Output is correct
19 Correct 10 ms 19028 KB Output is correct
20 Correct 12 ms 19028 KB Output is correct
21 Correct 11 ms 19128 KB Output is correct
22 Correct 11 ms 19124 KB Output is correct
23 Correct 11 ms 19028 KB Output is correct
24 Correct 10 ms 19128 KB Output is correct
25 Correct 11 ms 19120 KB Output is correct
26 Correct 11 ms 19032 KB Output is correct
27 Correct 12 ms 19028 KB Output is correct
28 Correct 13 ms 19124 KB Output is correct
29 Correct 12 ms 19028 KB Output is correct
30 Correct 10 ms 19028 KB Output is correct
31 Correct 10 ms 19028 KB Output is correct
32 Correct 10 ms 19028 KB Output is correct
33 Correct 10 ms 19096 KB Output is correct
34 Correct 11 ms 19072 KB Output is correct
35 Correct 11 ms 19108 KB Output is correct
36 Correct 13 ms 19116 KB Output is correct
37 Correct 13 ms 19116 KB Output is correct
38 Correct 17 ms 19028 KB Output is correct
39 Correct 11 ms 19028 KB Output is correct
40 Correct 13 ms 19120 KB Output is correct
41 Correct 10 ms 19032 KB Output is correct
42 Correct 10 ms 19132 KB Output is correct
43 Correct 11 ms 19028 KB Output is correct
44 Correct 14 ms 19096 KB Output is correct
45 Correct 11 ms 19068 KB Output is correct
46 Correct 14 ms 19092 KB Output is correct
47 Correct 10 ms 19044 KB Output is correct
48 Correct 16 ms 19028 KB Output is correct
49 Correct 11 ms 19112 KB Output is correct
50 Correct 10 ms 19028 KB Output is correct
51 Correct 10 ms 19028 KB Output is correct
52 Correct 10 ms 19136 KB Output is correct
53 Correct 10 ms 19128 KB Output is correct
54 Correct 10 ms 19028 KB Output is correct
55 Correct 10 ms 19072 KB Output is correct
56 Correct 10 ms 19028 KB Output is correct
57 Correct 10 ms 19112 KB Output is correct
58 Correct 11 ms 19028 KB Output is correct
59 Correct 12 ms 19100 KB Output is correct
60 Correct 10 ms 19028 KB Output is correct
61 Correct 13 ms 19028 KB Output is correct
62 Correct 9 ms 19028 KB Output is correct
63 Correct 10 ms 19028 KB Output is correct
64 Correct 12 ms 19028 KB Output is correct
65 Correct 9 ms 19028 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 80 ms 41808 KB Output is correct
2 Correct 112 ms 41884 KB Output is correct
3 Correct 150 ms 40496 KB Output is correct
4 Correct 90 ms 41280 KB Output is correct
5 Correct 134 ms 37860 KB Output is correct
6 Correct 113 ms 40256 KB Output is correct
7 Correct 144 ms 37468 KB Output is correct
8 Correct 173 ms 38260 KB Output is correct
9 Correct 131 ms 35292 KB Output is correct
10 Correct 133 ms 35964 KB Output is correct
11 Correct 87 ms 32120 KB Output is correct
12 Correct 108 ms 31792 KB Output is correct
13 Correct 109 ms 31632 KB Output is correct
14 Correct 110 ms 31244 KB Output is correct
15 Correct 71 ms 30024 KB Output is correct
16 Correct 87 ms 29760 KB Output is correct
17 Correct 18 ms 22192 KB Output is correct
18 Correct 21 ms 22316 KB Output is correct
19 Correct 20 ms 22256 KB Output is correct
20 Correct 18 ms 22228 KB Output is correct
21 Correct 16 ms 22288 KB Output is correct
22 Correct 18 ms 22280 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 19260 KB Output is correct
2 Correct 13 ms 19284 KB Output is correct
3 Correct 14 ms 19256 KB Output is correct
4 Correct 15 ms 19412 KB Output is correct
5 Correct 13 ms 19412 KB Output is correct
6 Correct 20 ms 19384 KB Output is correct
7 Correct 13 ms 19284 KB Output is correct
8 Correct 12 ms 19284 KB Output is correct
9 Correct 11 ms 19356 KB Output is correct
10 Correct 12 ms 19284 KB Output is correct
11 Correct 12 ms 19284 KB Output is correct
12 Correct 13 ms 19220 KB Output is correct
13 Correct 13 ms 19244 KB Output is correct
14 Correct 14 ms 19284 KB Output is correct
15 Correct 12 ms 19284 KB Output is correct
16 Correct 11 ms 19156 KB Output is correct
17 Correct 12 ms 19284 KB Output is correct
18 Correct 11 ms 19292 KB Output is correct
19 Correct 11 ms 19284 KB Output is correct
20 Correct 11 ms 19284 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 114 ms 34564 KB Output is correct
2 Correct 206 ms 34564 KB Output is correct
3 Correct 155 ms 34464 KB Output is correct
4 Correct 139 ms 34560 KB Output is correct
5 Correct 176 ms 34552 KB Output is correct
6 Correct 191 ms 45224 KB Output is correct
7 Correct 155 ms 42328 KB Output is correct
8 Correct 177 ms 40336 KB Output is correct
9 Correct 167 ms 38236 KB Output is correct
10 Correct 143 ms 34460 KB Output is correct
11 Correct 137 ms 35644 KB Output is correct
12 Correct 165 ms 35688 KB Output is correct
13 Correct 164 ms 35580 KB Output is correct
14 Correct 137 ms 34656 KB Output is correct
15 Correct 123 ms 33612 KB Output is correct
16 Correct 83 ms 30156 KB Output is correct
17 Correct 103 ms 37536 KB Output is correct
18 Correct 122 ms 37096 KB Output is correct
19 Correct 109 ms 37280 KB Output is correct
20 Correct 87 ms 36812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 19260 KB Output is correct
2 Correct 11 ms 19276 KB Output is correct
3 Correct 13 ms 19284 KB Output is correct
4 Correct 14 ms 19184 KB Output is correct
5 Correct 16 ms 19156 KB Output is correct
6 Correct 11 ms 19260 KB Output is correct
7 Correct 16 ms 19268 KB Output is correct
8 Correct 13 ms 19156 KB Output is correct
9 Correct 16 ms 19252 KB Output is correct
10 Correct 12 ms 19156 KB Output is correct
11 Correct 13 ms 19284 KB Output is correct
12 Correct 13 ms 19284 KB Output is correct
13 Correct 14 ms 19284 KB Output is correct
14 Correct 12 ms 19264 KB Output is correct
15 Correct 12 ms 19284 KB Output is correct
16 Correct 12 ms 19284 KB Output is correct
17 Correct 12 ms 19232 KB Output is correct
18 Correct 13 ms 19284 KB Output is correct
19 Correct 12 ms 19276 KB Output is correct
20 Correct 12 ms 19192 KB Output is correct
21 Correct 14 ms 19276 KB Output is correct
22 Correct 15 ms 19284 KB Output is correct
23 Correct 16 ms 19276 KB Output is correct
24 Correct 13 ms 19244 KB Output is correct
25 Correct 13 ms 19208 KB Output is correct
26 Correct 11 ms 19192 KB Output is correct
27 Correct 13 ms 19168 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 191 ms 34560 KB Output is correct
2 Correct 199 ms 34236 KB Output is correct
3 Correct 149 ms 33876 KB Output is correct
4 Correct 161 ms 32864 KB Output is correct
5 Correct 142 ms 31572 KB Output is correct
6 Correct 113 ms 30936 KB Output is correct
7 Correct 107 ms 30800 KB Output is correct
8 Correct 140 ms 30308 KB Output is correct
9 Correct 138 ms 30284 KB Output is correct
10 Correct 99 ms 30228 KB Output is correct
11 Correct 110 ms 30032 KB Output is correct
12 Correct 124 ms 30148 KB Output is correct
13 Correct 122 ms 30116 KB Output is correct
14 Correct 119 ms 32776 KB Output is correct
15 Correct 150 ms 42176 KB Output is correct
16 Correct 210 ms 39428 KB Output is correct
17 Correct 200 ms 40452 KB Output is correct
18 Correct 216 ms 38172 KB Output is correct
19 Correct 183 ms 32868 KB Output is correct
20 Correct 131 ms 34232 KB Output is correct
21 Correct 159 ms 34228 KB Output is correct
22 Correct 155 ms 33140 KB Output is correct
23 Correct 138 ms 32236 KB Output is correct
24 Correct 138 ms 35744 KB Output is correct
25 Correct 166 ms 35632 KB Output is correct
26 Correct 139 ms 35408 KB Output is correct
27 Correct 153 ms 34880 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 19028 KB Output is correct
2 Correct 15 ms 19016 KB Output is correct
3 Correct 12 ms 19028 KB Output is correct
4 Correct 12 ms 19060 KB Output is correct
5 Correct 10 ms 19028 KB Output is correct
6 Correct 10 ms 19104 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19028 KB Output is correct
9 Correct 10 ms 19028 KB Output is correct
10 Correct 10 ms 19116 KB Output is correct
11 Correct 10 ms 19136 KB Output is correct
12 Correct 11 ms 19028 KB Output is correct
13 Correct 14 ms 19116 KB Output is correct
14 Correct 10 ms 19028 KB Output is correct
15 Correct 12 ms 19068 KB Output is correct
16 Correct 10 ms 19028 KB Output is correct
17 Correct 10 ms 19028 KB Output is correct
18 Correct 12 ms 19132 KB Output is correct
19 Correct 10 ms 19028 KB Output is correct
20 Correct 12 ms 19028 KB Output is correct
21 Correct 11 ms 19128 KB Output is correct
22 Correct 11 ms 19124 KB Output is correct
23 Correct 11 ms 19028 KB Output is correct
24 Correct 10 ms 19128 KB Output is correct
25 Correct 11 ms 19120 KB Output is correct
26 Correct 11 ms 19032 KB Output is correct
27 Correct 12 ms 19028 KB Output is correct
28 Correct 13 ms 19124 KB Output is correct
29 Correct 12 ms 19028 KB Output is correct
30 Correct 10 ms 19028 KB Output is correct
31 Correct 10 ms 19028 KB Output is correct
32 Correct 10 ms 19028 KB Output is correct
33 Correct 10 ms 19096 KB Output is correct
34 Correct 11 ms 19072 KB Output is correct
35 Correct 11 ms 19108 KB Output is correct
36 Correct 13 ms 19116 KB Output is correct
37 Correct 13 ms 19116 KB Output is correct
38 Correct 17 ms 19028 KB Output is correct
39 Correct 11 ms 19028 KB Output is correct
40 Correct 13 ms 19120 KB Output is correct
41 Correct 10 ms 19032 KB Output is correct
42 Correct 10 ms 19132 KB Output is correct
43 Correct 11 ms 19028 KB Output is correct
44 Correct 14 ms 19096 KB Output is correct
45 Correct 11 ms 19068 KB Output is correct
46 Correct 14 ms 19092 KB Output is correct
47 Correct 10 ms 19044 KB Output is correct
48 Correct 16 ms 19028 KB Output is correct
49 Correct 11 ms 19112 KB Output is correct
50 Correct 10 ms 19028 KB Output is correct
51 Correct 10 ms 19028 KB Output is correct
52 Correct 10 ms 19136 KB Output is correct
53 Correct 10 ms 19128 KB Output is correct
54 Correct 10 ms 19028 KB Output is correct
55 Correct 10 ms 19072 KB Output is correct
56 Correct 10 ms 19028 KB Output is correct
57 Correct 10 ms 19112 KB Output is correct
58 Correct 11 ms 19028 KB Output is correct
59 Correct 12 ms 19100 KB Output is correct
60 Correct 10 ms 19028 KB Output is correct
61 Correct 13 ms 19028 KB Output is correct
62 Correct 9 ms 19028 KB Output is correct
63 Correct 10 ms 19028 KB Output is correct
64 Correct 12 ms 19028 KB Output is correct
65 Correct 9 ms 19028 KB Output is correct
66 Correct 11 ms 19156 KB Output is correct
67 Correct 13 ms 19124 KB Output is correct
68 Correct 12 ms 19252 KB Output is correct
69 Correct 14 ms 19264 KB Output is correct
70 Correct 13 ms 19276 KB Output is correct
71 Correct 14 ms 19164 KB Output is correct
72 Correct 12 ms 19156 KB Output is correct
73 Correct 14 ms 19256 KB Output is correct
74 Correct 12 ms 19260 KB Output is correct
75 Correct 12 ms 19156 KB Output is correct
76 Correct 15 ms 19156 KB Output is correct
77 Correct 15 ms 19256 KB Output is correct
78 Correct 16 ms 19256 KB Output is correct
79 Correct 17 ms 19156 KB Output is correct
80 Correct 16 ms 19156 KB Output is correct
81 Correct 13 ms 19212 KB Output is correct
82 Correct 13 ms 19256 KB Output is correct
83 Correct 14 ms 19260 KB Output is correct
84 Correct 18 ms 19308 KB Output is correct
85 Correct 15 ms 19312 KB Output is correct
86 Correct 16 ms 19208 KB Output is correct
87 Correct 17 ms 19252 KB Output is correct
88 Correct 18 ms 19288 KB Output is correct
89 Correct 16 ms 19160 KB Output is correct
90 Correct 15 ms 19256 KB Output is correct
91 Correct 13 ms 19228 KB Output is correct
92 Correct 14 ms 19284 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 19028 KB Output is correct
2 Correct 15 ms 19016 KB Output is correct
3 Correct 12 ms 19028 KB Output is correct
4 Correct 12 ms 19060 KB Output is correct
5 Correct 10 ms 19028 KB Output is correct
6 Correct 10 ms 19104 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19028 KB Output is correct
9 Correct 10 ms 19028 KB Output is correct
10 Correct 10 ms 19116 KB Output is correct
11 Correct 10 ms 19136 KB Output is correct
12 Correct 11 ms 19028 KB Output is correct
13 Correct 14 ms 19116 KB Output is correct
14 Correct 10 ms 19028 KB Output is correct
15 Correct 12 ms 19068 KB Output is correct
16 Correct 10 ms 19028 KB Output is correct
17 Correct 10 ms 19028 KB Output is correct
18 Correct 12 ms 19132 KB Output is correct
19 Correct 10 ms 19028 KB Output is correct
20 Correct 12 ms 19028 KB Output is correct
21 Correct 11 ms 19128 KB Output is correct
22 Correct 11 ms 19124 KB Output is correct
23 Correct 11 ms 19028 KB Output is correct
24 Correct 10 ms 19128 KB Output is correct
25 Correct 11 ms 19120 KB Output is correct
26 Correct 11 ms 19032 KB Output is correct
27 Correct 12 ms 19028 KB Output is correct
28 Correct 13 ms 19124 KB Output is correct
29 Correct 12 ms 19028 KB Output is correct
30 Correct 10 ms 19028 KB Output is correct
31 Correct 10 ms 19028 KB Output is correct
32 Correct 10 ms 19028 KB Output is correct
33 Correct 10 ms 19096 KB Output is correct
34 Correct 11 ms 19072 KB Output is correct
35 Correct 11 ms 19108 KB Output is correct
36 Correct 13 ms 19116 KB Output is correct
37 Correct 13 ms 19116 KB Output is correct
38 Correct 17 ms 19028 KB Output is correct
39 Correct 11 ms 19028 KB Output is correct
40 Correct 13 ms 19120 KB Output is correct
41 Correct 10 ms 19032 KB Output is correct
42 Correct 10 ms 19132 KB Output is correct
43 Correct 11 ms 19028 KB Output is correct
44 Correct 14 ms 19096 KB Output is correct
45 Correct 11 ms 19068 KB Output is correct
46 Correct 14 ms 19092 KB Output is correct
47 Correct 10 ms 19044 KB Output is correct
48 Correct 16 ms 19028 KB Output is correct
49 Correct 11 ms 19112 KB Output is correct
50 Correct 10 ms 19028 KB Output is correct
51 Correct 10 ms 19028 KB Output is correct
52 Correct 10 ms 19136 KB Output is correct
53 Correct 10 ms 19128 KB Output is correct
54 Correct 10 ms 19028 KB Output is correct
55 Correct 10 ms 19072 KB Output is correct
56 Correct 10 ms 19028 KB Output is correct
57 Correct 10 ms 19112 KB Output is correct
58 Correct 11 ms 19028 KB Output is correct
59 Correct 12 ms 19100 KB Output is correct
60 Correct 10 ms 19028 KB Output is correct
61 Correct 13 ms 19028 KB Output is correct
62 Correct 9 ms 19028 KB Output is correct
63 Correct 10 ms 19028 KB Output is correct
64 Correct 12 ms 19028 KB Output is correct
65 Correct 9 ms 19028 KB Output is correct
66 Correct 80 ms 41808 KB Output is correct
67 Correct 112 ms 41884 KB Output is correct
68 Correct 150 ms 40496 KB Output is correct
69 Correct 90 ms 41280 KB Output is correct
70 Correct 134 ms 37860 KB Output is correct
71 Correct 113 ms 40256 KB Output is correct
72 Correct 144 ms 37468 KB Output is correct
73 Correct 173 ms 38260 KB Output is correct
74 Correct 131 ms 35292 KB Output is correct
75 Correct 133 ms 35964 KB Output is correct
76 Correct 87 ms 32120 KB Output is correct
77 Correct 108 ms 31792 KB Output is correct
78 Correct 109 ms 31632 KB Output is correct
79 Correct 110 ms 31244 KB Output is correct
80 Correct 71 ms 30024 KB Output is correct
81 Correct 87 ms 29760 KB Output is correct
82 Correct 18 ms 22192 KB Output is correct
83 Correct 21 ms 22316 KB Output is correct
84 Correct 20 ms 22256 KB Output is correct
85 Correct 18 ms 22228 KB Output is correct
86 Correct 16 ms 22288 KB Output is correct
87 Correct 18 ms 22280 KB Output is correct
88 Correct 12 ms 19260 KB Output is correct
89 Correct 13 ms 19284 KB Output is correct
90 Correct 14 ms 19256 KB Output is correct
91 Correct 15 ms 19412 KB Output is correct
92 Correct 13 ms 19412 KB Output is correct
93 Correct 20 ms 19384 KB Output is correct
94 Correct 13 ms 19284 KB Output is correct
95 Correct 12 ms 19284 KB Output is correct
96 Correct 11 ms 19356 KB Output is correct
97 Correct 12 ms 19284 KB Output is correct
98 Correct 12 ms 19284 KB Output is correct
99 Correct 13 ms 19220 KB Output is correct
100 Correct 13 ms 19244 KB Output is correct
101 Correct 14 ms 19284 KB Output is correct
102 Correct 12 ms 19284 KB Output is correct
103 Correct 11 ms 19156 KB Output is correct
104 Correct 12 ms 19284 KB Output is correct
105 Correct 11 ms 19292 KB Output is correct
106 Correct 11 ms 19284 KB Output is correct
107 Correct 11 ms 19284 KB Output is correct
108 Correct 114 ms 34564 KB Output is correct
109 Correct 206 ms 34564 KB Output is correct
110 Correct 155 ms 34464 KB Output is correct
111 Correct 139 ms 34560 KB Output is correct
112 Correct 176 ms 34552 KB Output is correct
113 Correct 191 ms 45224 KB Output is correct
114 Correct 155 ms 42328 KB Output is correct
115 Correct 177 ms 40336 KB Output is correct
116 Correct 167 ms 38236 KB Output is correct
117 Correct 143 ms 34460 KB Output is correct
118 Correct 137 ms 35644 KB Output is correct
119 Correct 165 ms 35688 KB Output is correct
120 Correct 164 ms 35580 KB Output is correct
121 Correct 137 ms 34656 KB Output is correct
122 Correct 123 ms 33612 KB Output is correct
123 Correct 83 ms 30156 KB Output is correct
124 Correct 103 ms 37536 KB Output is correct
125 Correct 122 ms 37096 KB Output is correct
126 Correct 109 ms 37280 KB Output is correct
127 Correct 87 ms 36812 KB Output is correct
128 Correct 13 ms 19260 KB Output is correct
129 Correct 11 ms 19276 KB Output is correct
130 Correct 13 ms 19284 KB Output is correct
131 Correct 14 ms 19184 KB Output is correct
132 Correct 16 ms 19156 KB Output is correct
133 Correct 11 ms 19260 KB Output is correct
134 Correct 16 ms 19268 KB Output is correct
135 Correct 13 ms 19156 KB Output is correct
136 Correct 16 ms 19252 KB Output is correct
137 Correct 12 ms 19156 KB Output is correct
138 Correct 13 ms 19284 KB Output is correct
139 Correct 13 ms 19284 KB Output is correct
140 Correct 14 ms 19284 KB Output is correct
141 Correct 12 ms 19264 KB Output is correct
142 Correct 12 ms 19284 KB Output is correct
143 Correct 12 ms 19284 KB Output is correct
144 Correct 12 ms 19232 KB Output is correct
145 Correct 13 ms 19284 KB Output is correct
146 Correct 12 ms 19276 KB Output is correct
147 Correct 12 ms 19192 KB Output is correct
148 Correct 14 ms 19276 KB Output is correct
149 Correct 15 ms 19284 KB Output is correct
150 Correct 16 ms 19276 KB Output is correct
151 Correct 13 ms 19244 KB Output is correct
152 Correct 13 ms 19208 KB Output is correct
153 Correct 11 ms 19192 KB Output is correct
154 Correct 13 ms 19168 KB Output is correct
155 Correct 191 ms 34560 KB Output is correct
156 Correct 199 ms 34236 KB Output is correct
157 Correct 149 ms 33876 KB Output is correct
158 Correct 161 ms 32864 KB Output is correct
159 Correct 142 ms 31572 KB Output is correct
160 Correct 113 ms 30936 KB Output is correct
161 Correct 107 ms 30800 KB Output is correct
162 Correct 140 ms 30308 KB Output is correct
163 Correct 138 ms 30284 KB Output is correct
164 Correct 99 ms 30228 KB Output is correct
165 Correct 110 ms 30032 KB Output is correct
166 Correct 124 ms 30148 KB Output is correct
167 Correct 122 ms 30116 KB Output is correct
168 Correct 119 ms 32776 KB Output is correct
169 Correct 150 ms 42176 KB Output is correct
170 Correct 210 ms 39428 KB Output is correct
171 Correct 200 ms 40452 KB Output is correct
172 Correct 216 ms 38172 KB Output is correct
173 Correct 183 ms 32868 KB Output is correct
174 Correct 131 ms 34232 KB Output is correct
175 Correct 159 ms 34228 KB Output is correct
176 Correct 155 ms 33140 KB Output is correct
177 Correct 138 ms 32236 KB Output is correct
178 Correct 138 ms 35744 KB Output is correct
179 Correct 166 ms 35632 KB Output is correct
180 Correct 139 ms 35408 KB Output is correct
181 Correct 153 ms 34880 KB Output is correct
182 Correct 11 ms 19156 KB Output is correct
183 Correct 13 ms 19124 KB Output is correct
184 Correct 12 ms 19252 KB Output is correct
185 Correct 14 ms 19264 KB Output is correct
186 Correct 13 ms 19276 KB Output is correct
187 Correct 14 ms 19164 KB Output is correct
188 Correct 12 ms 19156 KB Output is correct
189 Correct 14 ms 19256 KB Output is correct
190 Correct 12 ms 19260 KB Output is correct
191 Correct 12 ms 19156 KB Output is correct
192 Correct 15 ms 19156 KB Output is correct
193 Correct 15 ms 19256 KB Output is correct
194 Correct 16 ms 19256 KB Output is correct
195 Correct 17 ms 19156 KB Output is correct
196 Correct 16 ms 19156 KB Output is correct
197 Correct 13 ms 19212 KB Output is correct
198 Correct 13 ms 19256 KB Output is correct
199 Correct 14 ms 19260 KB Output is correct
200 Correct 18 ms 19308 KB Output is correct
201 Correct 15 ms 19312 KB Output is correct
202 Correct 16 ms 19208 KB Output is correct
203 Correct 17 ms 19252 KB Output is correct
204 Correct 18 ms 19288 KB Output is correct
205 Correct 16 ms 19160 KB Output is correct
206 Correct 15 ms 19256 KB Output is correct
207 Correct 13 ms 19228 KB Output is correct
208 Correct 14 ms 19284 KB Output is correct
209 Correct 29 ms 22204 KB Output is correct
210 Correct 103 ms 29496 KB Output is correct
211 Correct 135 ms 35416 KB Output is correct
212 Correct 207 ms 39876 KB Output is correct
213 Correct 219 ms 42704 KB Output is correct
214 Correct 88 ms 32764 KB Output is correct
215 Correct 76 ms 32732 KB Output is correct
216 Correct 177 ms 35248 KB Output is correct
217 Correct 162 ms 33760 KB Output is correct
218 Correct 162 ms 31732 KB Output is correct
219 Correct 137 ms 31340 KB Output is correct
220 Correct 111 ms 31200 KB Output is correct
221 Correct 110 ms 31132 KB Output is correct
222 Correct 114 ms 32632 KB Output is correct
223 Correct 149 ms 37292 KB Output is correct
224 Correct 206 ms 36140 KB Output is correct
225 Correct 169 ms 33432 KB Output is correct
226 Correct 145 ms 33396 KB Output is correct
227 Correct 153 ms 33404 KB Output is correct
228 Correct 148 ms 32560 KB Output is correct
229 Correct 131 ms 31920 KB Output is correct
230 Correct 145 ms 34084 KB Output is correct
231 Correct 160 ms 33944 KB Output is correct