Submission #1060748

# Submission time Handle Problem Language Result Execution time Memory
1060748 2024-08-15T21:51:18 Z MilosMilutinovic The Ties That Guide Us (CEOI23_incursion) C++17
100 / 100
281 ms 16096 KB
#include "incursion.h"
#include <bits/stdc++.h>

using namespace std;

vector<int> mark(vector<pair<int, int>> e, int safe) {
  --safe;
  int n = (int) e.size() + 1;
  vector<vector<int>> g(n);
  for (int i = 0; i + 1 < n; i++) {
    --e[i].first; --e[i].second;
    g[e[i].first].push_back(e[i].second);
    g[e[i].second].push_back(e[i].first);
  }
  int root;
  {
    vector<int> sz(n);
    function<void(int, int)> Dfs = [&](int v, int pv) {
      sz[v] = 1;
      for (int u : g[v]) {
        if (u == pv) {
          continue;
        }
        Dfs(u, v);
        sz[v] += sz[u];
      }
    };
    Dfs(0, 0);
    vector<int> cen;
    function<int(int, int)> FindCentroid = [&](int v, int pv) {
      if (sz[v] * 2 == n) {
        cen.push_back(pv);
      }
      for (int u : g[v]) {
        if (u == pv || sz[u] * 2 < n) {
          continue;
        }
        return FindCentroid(u, v);
      }
      cen.push_back(v);
      return v;
    };
    root = FindCentroid(0, 0);
    if ((int) cen.size() == 2) {
      vector<int> que(1, safe);
      vector<bool> was(n);
      was[safe] = true;
      for (int b = 0; b < (int) que.size(); b++) {
        int i = que[b];
        if (i == cen[0] || i == cen[1]) {
          root = i;
          break;
        }
        for (int j : g[i]) {
          if (!was[j]) {
            que.push_back(j);
            was[j] = true;
          }
        }
      }
    }
  }
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if ((int) g[i].size() == 2) {
      cnt += 1;
    }
  }
  /* if (cnt == 1) {
    for (int i = 0; i < n; i++) {
      if ((int) g[i].size() == 2) {
        root = i;
      }
    }
  } */
  vector<int> dfn(n);
  vector<int> dfo(n);
  int T = -1;
  function<void(int, int)> Dfs = [&](int v, int pv) {
    dfn[v] = ++T;
    for (int u : g[v]) {
      if (u == pv) {
        continue;
      }
      Dfs(u, v);
    }
    dfo[v] = T;
  };
  Dfs(root, root);
  vector<int> seq(n);
  for (int i = 0; i < n; i++) {
    if (dfn[i] <= dfn[safe] && dfo[safe] <= dfo[i]) {
      seq[i] = 1;
    } else {
      seq[i] = 0;
    }
  }
  return seq;
}

void locate(vector<pair<int, int>> e, int curr, int t) {
  --curr;
  int n = (int) e.size() + 1;
  vector<vector<int>> g(n);
  for (int i = 0; i + 1 < n; i++) {
    --e[i].first; --e[i].second;
    g[e[i].first].push_back(e[i].second);
    g[e[i].second].push_back(e[i].first);
  }
  vector<int> cen;
  {
    vector<int> sz(n);
    function<void(int, int)> Dfs = [&](int v, int pv) {
      sz[v] = 1;
      for (int u : g[v]) {
        if (u == pv) {
          continue;
        }
        Dfs(u, v);
        sz[v] += sz[u];
      }
    };
    Dfs(0, 0);
    function<void(int, int)> Find = [&](int v, int pv) {
      if (sz[v] * 2 == n) {
        cen.push_back(pv);
      }
      for (int u : g[v]) {
        if (u == pv || sz[u] * 2 < n) {
          continue;
        }
        Find(u, v);
        return;
      }
      cen.push_back(v);
    };
    Find(0, 0);
  }
  int root = cen[0];
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if ((int) g[i].size() == 2) {
      cnt += 1;
    }
  }
  /* if (cnt == 1) {
    for (int i = 0; i < n; i++) {
      if ((int) g[i].size() == 2) {
        root = i;
      }
    }
  } */
  vector<int> x(n, -1);
  vector<int> pr(n);
  vector<int> sz(n);
  function<void(int, int)> Dfs = [&](int v, int pv) {
    pr[v] = pv;
    sz[v] = 1;
    for (int u : g[v]) {
      if (u == pv) {
        continue;
      }
      Dfs(u, v);
      sz[v] += sz[u];
      if (x[v] == -1 || sz[x[v]] < sz[u]) {
        x[v] = u;
      }
    }
  };
  Dfs(root, root);
  vector<bool> was(n);
  while (true) {
    was[curr] = true;
    if (curr == root && t == 0) {
      root = cen[1];
      x = vector<int>(n, -1);
      Dfs(root, root);
      t = visit(root + 1);
      curr = root;
      continue;
    }
    if (t == 0) {
      t = visit(pr[curr] + 1);
      curr = pr[curr];
      continue;
    }
    if (x[curr] == -1) {
      return;
    }
    int k = visit(x[curr] + 1);
    if (k == 1) {
      curr = x[curr];
      t = k;
      continue;
    }
    was[x[curr]] = true;
    visit(curr + 1);
    bool found = false;
    for (int u : g[curr]) {
      if (u == pr[curr] || u == x[curr] || was[u]) {
        continue;
      }
      int k = visit(u + 1);
      if (k == 1) {
        t = k;
        curr = u;
        found = true;
        break;
      }
      was[u] = true;
      visit(curr + 1);
    }
    if (!found) {
      return;
    }
  }
}

Compilation message

interface.cpp: In function 'int main()':
interface.cpp:44:55: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   44 |     if(fread(T.data(), sizeof(int), 2 * N - 2, stdin) != 2 * N - 2) exit(0);
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
interface.cpp:50:33: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   50 |         int l = (numbers.size() == N ? N : 0);
      |                  ~~~~~~~~~~~~~~~^~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 768 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 206 ms 13412 KB Correct
2 Correct 197 ms 14080 KB Correct
3 Correct 111 ms 14660 KB Correct
4 Correct 117 ms 15892 KB Correct
5 Correct 189 ms 15088 KB Correct
6 Correct 87 ms 15424 KB Correct
7 Correct 79 ms 13656 KB Correct
8 Correct 212 ms 14016 KB Correct
9 Correct 210 ms 14732 KB Correct
10 Correct 162 ms 13780 KB Correct
11 Correct 93 ms 15584 KB Correct
12 Correct 281 ms 14008 KB Correct
13 Correct 87 ms 13056 KB Correct
14 Correct 87 ms 13680 KB Correct
15 Correct 226 ms 14720 KB Correct
16 Correct 238 ms 16096 KB Correct
17 Correct 134 ms 12868 KB Correct
18 Correct 103 ms 13316 KB Correct
19 Correct 159 ms 12796 KB Correct
20 Correct 91 ms 15344 KB Correct
21 Correct 87 ms 13888 KB Correct
22 Correct 183 ms 14028 KB Correct
23 Correct 228 ms 14144 KB Correct
24 Correct 99 ms 13888 KB Correct
25 Correct 98 ms 14816 KB Correct
26 Correct 91 ms 13288 KB Correct
27 Correct 86 ms 13884 KB Correct
28 Correct 92 ms 14356 KB Correct
29 Correct 196 ms 14652 KB Correct
30 Correct 202 ms 13112 KB Correct
31 Correct 94 ms 15420 KB Correct
32 Correct 242 ms 14492 KB Correct
33 Correct 220 ms 15004 KB Correct
34 Correct 81 ms 13308 KB Correct
35 Correct 84 ms 13052 KB Correct
36 Correct 219 ms 14396 KB Correct
37 Correct 214 ms 14248 KB Correct
38 Correct 247 ms 15104 KB Correct
39 Correct 133 ms 15548 KB Correct
40 Correct 180 ms 15044 KB Correct
41 Correct 80 ms 14656 KB Correct
42 Correct 93 ms 14548 KB Correct
43 Correct 209 ms 14552 KB Correct
44 Correct 198 ms 12608 KB Correct
45 Correct 84 ms 13488 KB Correct
46 Correct 88 ms 13904 KB Correct
47 Correct 105 ms 14572 KB Correct
48 Correct 88 ms 13036 KB Correct
49 Correct 84 ms 15312 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 77 ms 7988 KB Correct
2 Correct 81 ms 8192 KB Correct
3 Correct 77 ms 7872 KB Correct
4 Correct 97 ms 12084 KB Correct
5 Correct 146 ms 11252 KB Correct
6 Correct 162 ms 11124 KB Correct
7 Correct 78 ms 7936 KB Correct
8 Correct 84 ms 7852 KB Correct
9 Correct 79 ms 7928 KB Correct
10 Correct 78 ms 8008 KB Correct
11 Correct 86 ms 7828 KB Correct
12 Correct 79 ms 7860 KB Correct
13 Correct 83 ms 8004 KB Correct
14 Correct 56 ms 6044 KB Correct
15 Correct 55 ms 6224 KB Correct
16 Correct 75 ms 8016 KB Correct
17 Correct 78 ms 8172 KB Correct
18 Correct 77 ms 7940 KB Correct
19 Correct 81 ms 7932 KB Correct
20 Correct 62 ms 5888 KB Correct
21 Correct 61 ms 6128 KB Correct
22 Correct 53 ms 6040 KB Correct
23 Correct 57 ms 5976 KB Correct
24 Correct 56 ms 5892 KB Correct
25 Correct 55 ms 6124 KB Correct
26 Correct 81 ms 8128 KB Correct
27 Correct 81 ms 7928 KB Correct
28 Correct 78 ms 7924 KB Correct
29 Correct 81 ms 7932 KB Correct
30 Correct 71 ms 7936 KB Correct
31 Correct 79 ms 7924 KB Correct
32 Correct 81 ms 8316 KB Correct
33 Correct 80 ms 7932 KB Correct
34 Correct 81 ms 7856 KB Correct
35 Correct 81 ms 8120 KB Correct
36 Correct 81 ms 7932 KB Correct
37 Correct 73 ms 7872 KB Correct
38 Correct 78 ms 7924 KB Correct
39 Correct 75 ms 7988 KB Correct
40 Correct 84 ms 7924 KB Correct
41 Correct 77 ms 7856 KB Correct
42 Correct 81 ms 8000 KB Correct
43 Correct 79 ms 7940 KB Correct
44 Correct 82 ms 7976 KB Correct
45 Correct 79 ms 7860 KB Correct
46 Correct 81 ms 8144 KB Correct
47 Correct 83 ms 8348 KB Correct
48 Correct 90 ms 8076 KB Correct
49 Correct 78 ms 7996 KB Correct
50 Correct 80 ms 7996 KB Correct
51 Correct 75 ms 8184 KB Correct
52 Correct 77 ms 7916 KB Correct
53 Correct 79 ms 8036 KB Correct
54 Correct 77 ms 7940 KB Correct
55 Correct 90 ms 7932 KB Correct
56 Correct 81 ms 8508 KB Correct
57 Correct 76 ms 8020 KB Correct
58 Correct 81 ms 8428 KB Correct
59 Correct 80 ms 8492 KB Correct
60 Correct 77 ms 8372 KB Correct
61 Correct 83 ms 8272 KB Correct
62 Correct 71 ms 8440 KB Correct
63 Correct 80 ms 8296 KB Correct
64 Correct 79 ms 8140 KB Correct
65 Correct 79 ms 8240 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 768 KB Correct
2 Correct 206 ms 13412 KB Correct
3 Correct 197 ms 14080 KB Correct
4 Correct 111 ms 14660 KB Correct
5 Correct 117 ms 15892 KB Correct
6 Correct 189 ms 15088 KB Correct
7 Correct 87 ms 15424 KB Correct
8 Correct 79 ms 13656 KB Correct
9 Correct 212 ms 14016 KB Correct
10 Correct 210 ms 14732 KB Correct
11 Correct 162 ms 13780 KB Correct
12 Correct 93 ms 15584 KB Correct
13 Correct 281 ms 14008 KB Correct
14 Correct 87 ms 13056 KB Correct
15 Correct 87 ms 13680 KB Correct
16 Correct 226 ms 14720 KB Correct
17 Correct 238 ms 16096 KB Correct
18 Correct 134 ms 12868 KB Correct
19 Correct 103 ms 13316 KB Correct
20 Correct 159 ms 12796 KB Correct
21 Correct 91 ms 15344 KB Correct
22 Correct 87 ms 13888 KB Correct
23 Correct 183 ms 14028 KB Correct
24 Correct 228 ms 14144 KB Correct
25 Correct 99 ms 13888 KB Correct
26 Correct 98 ms 14816 KB Correct
27 Correct 91 ms 13288 KB Correct
28 Correct 86 ms 13884 KB Correct
29 Correct 92 ms 14356 KB Correct
30 Correct 196 ms 14652 KB Correct
31 Correct 202 ms 13112 KB Correct
32 Correct 94 ms 15420 KB Correct
33 Correct 242 ms 14492 KB Correct
34 Correct 220 ms 15004 KB Correct
35 Correct 81 ms 13308 KB Correct
36 Correct 84 ms 13052 KB Correct
37 Correct 219 ms 14396 KB Correct
38 Correct 214 ms 14248 KB Correct
39 Correct 247 ms 15104 KB Correct
40 Correct 133 ms 15548 KB Correct
41 Correct 180 ms 15044 KB Correct
42 Correct 80 ms 14656 KB Correct
43 Correct 93 ms 14548 KB Correct
44 Correct 209 ms 14552 KB Correct
45 Correct 198 ms 12608 KB Correct
46 Correct 84 ms 13488 KB Correct
47 Correct 88 ms 13904 KB Correct
48 Correct 105 ms 14572 KB Correct
49 Correct 88 ms 13036 KB Correct
50 Correct 84 ms 15312 KB Correct
51 Correct 77 ms 7988 KB Correct
52 Correct 81 ms 8192 KB Correct
53 Correct 77 ms 7872 KB Correct
54 Correct 97 ms 12084 KB Correct
55 Correct 146 ms 11252 KB Correct
56 Correct 162 ms 11124 KB Correct
57 Correct 78 ms 7936 KB Correct
58 Correct 84 ms 7852 KB Correct
59 Correct 79 ms 7928 KB Correct
60 Correct 78 ms 8008 KB Correct
61 Correct 86 ms 7828 KB Correct
62 Correct 79 ms 7860 KB Correct
63 Correct 83 ms 8004 KB Correct
64 Correct 56 ms 6044 KB Correct
65 Correct 55 ms 6224 KB Correct
66 Correct 75 ms 8016 KB Correct
67 Correct 78 ms 8172 KB Correct
68 Correct 77 ms 7940 KB Correct
69 Correct 81 ms 7932 KB Correct
70 Correct 62 ms 5888 KB Correct
71 Correct 61 ms 6128 KB Correct
72 Correct 53 ms 6040 KB Correct
73 Correct 57 ms 5976 KB Correct
74 Correct 56 ms 5892 KB Correct
75 Correct 55 ms 6124 KB Correct
76 Correct 81 ms 8128 KB Correct
77 Correct 81 ms 7928 KB Correct
78 Correct 78 ms 7924 KB Correct
79 Correct 81 ms 7932 KB Correct
80 Correct 71 ms 7936 KB Correct
81 Correct 79 ms 7924 KB Correct
82 Correct 81 ms 8316 KB Correct
83 Correct 80 ms 7932 KB Correct
84 Correct 81 ms 7856 KB Correct
85 Correct 81 ms 8120 KB Correct
86 Correct 81 ms 7932 KB Correct
87 Correct 73 ms 7872 KB Correct
88 Correct 78 ms 7924 KB Correct
89 Correct 75 ms 7988 KB Correct
90 Correct 84 ms 7924 KB Correct
91 Correct 77 ms 7856 KB Correct
92 Correct 81 ms 8000 KB Correct
93 Correct 79 ms 7940 KB Correct
94 Correct 82 ms 7976 KB Correct
95 Correct 79 ms 7860 KB Correct
96 Correct 81 ms 8144 KB Correct
97 Correct 83 ms 8348 KB Correct
98 Correct 90 ms 8076 KB Correct
99 Correct 78 ms 7996 KB Correct
100 Correct 80 ms 7996 KB Correct
101 Correct 75 ms 8184 KB Correct
102 Correct 77 ms 7916 KB Correct
103 Correct 79 ms 8036 KB Correct
104 Correct 77 ms 7940 KB Correct
105 Correct 90 ms 7932 KB Correct
106 Correct 81 ms 8508 KB Correct
107 Correct 76 ms 8020 KB Correct
108 Correct 81 ms 8428 KB Correct
109 Correct 80 ms 8492 KB Correct
110 Correct 77 ms 8372 KB Correct
111 Correct 83 ms 8272 KB Correct
112 Correct 71 ms 8440 KB Correct
113 Correct 80 ms 8296 KB Correct
114 Correct 79 ms 8140 KB Correct
115 Correct 79 ms 8240 KB Correct
116 Correct 80 ms 8136 KB Correct
117 Correct 93 ms 8172 KB Correct
118 Correct 89 ms 8188 KB Correct
119 Correct 93 ms 8216 KB Correct
120 Correct 81 ms 8000 KB Correct
121 Correct 82 ms 8000 KB Correct
122 Correct 81 ms 8176 KB Correct
123 Correct 92 ms 11984 KB Correct
124 Correct 137 ms 11216 KB Correct
125 Correct 177 ms 11164 KB Correct
126 Correct 78 ms 7920 KB Correct
127 Correct 76 ms 8256 KB Correct
128 Correct 79 ms 7848 KB Correct
129 Correct 75 ms 8004 KB Correct
130 Correct 83 ms 7996 KB Correct
131 Correct 81 ms 7996 KB Correct
132 Correct 84 ms 7920 KB Correct
133 Correct 57 ms 6328 KB Correct
134 Correct 60 ms 6156 KB Correct
135 Correct 66 ms 8028 KB Correct
136 Correct 77 ms 8012 KB Correct
137 Correct 79 ms 7856 KB Correct
138 Correct 79 ms 8016 KB Correct
139 Correct 62 ms 6400 KB Correct
140 Correct 54 ms 6144 KB Correct
141 Correct 55 ms 5880 KB Correct
142 Correct 56 ms 6052 KB Correct
143 Correct 61 ms 6140 KB Correct
144 Correct 56 ms 6136 KB Correct
145 Correct 86 ms 7936 KB Correct
146 Correct 87 ms 8084 KB Correct
147 Correct 81 ms 7996 KB Correct
148 Correct 73 ms 8000 KB Correct
149 Correct 79 ms 7932 KB Correct
150 Correct 82 ms 7996 KB Correct
151 Correct 81 ms 8252 KB Correct
152 Correct 82 ms 7968 KB Correct
153 Correct 74 ms 7940 KB Correct
154 Correct 77 ms 8008 KB Correct
155 Correct 81 ms 7856 KB Correct
156 Correct 76 ms 7924 KB Correct
157 Correct 79 ms 7932 KB Correct
158 Correct 76 ms 8172 KB Correct
159 Correct 93 ms 7916 KB Correct
160 Correct 82 ms 7920 KB Correct
161 Correct 82 ms 7848 KB Correct
162 Correct 77 ms 8148 KB Correct
163 Correct 81 ms 7932 KB Correct
164 Correct 78 ms 7996 KB Correct
165 Correct 78 ms 7912 KB Correct
166 Correct 82 ms 8252 KB Correct
167 Correct 79 ms 7860 KB Correct
168 Correct 75 ms 7928 KB Correct
169 Correct 84 ms 7936 KB Correct
170 Correct 80 ms 8004 KB Correct
171 Correct 81 ms 8000 KB Correct
172 Correct 79 ms 7868 KB Correct
173 Correct 80 ms 8180 KB Correct
174 Correct 81 ms 7940 KB Correct
175 Correct 79 ms 8512 KB Correct
176 Correct 88 ms 8352 KB Correct
177 Correct 74 ms 8432 KB Correct
178 Correct 87 ms 8588 KB Correct
179 Correct 75 ms 8472 KB Correct
180 Correct 77 ms 8452 KB Correct
181 Correct 81 ms 8508 KB Correct
182 Correct 82 ms 8440 KB Correct
183 Correct 76 ms 8192 KB Correct
184 Correct 78 ms 8188 KB Correct
185 Correct 201 ms 13308 KB Correct
186 Correct 197 ms 13824 KB Correct
187 Correct 125 ms 14796 KB Correct
188 Correct 122 ms 15460 KB Correct
189 Correct 192 ms 15088 KB Correct
190 Correct 81 ms 15356 KB Correct
191 Correct 90 ms 13752 KB Correct
192 Correct 200 ms 14072 KB Correct
193 Correct 244 ms 14648 KB Correct
194 Correct 156 ms 13968 KB Correct
195 Correct 108 ms 15516 KB Correct
196 Correct 281 ms 13832 KB Correct
197 Correct 84 ms 13300 KB Correct
198 Correct 77 ms 13808 KB Correct
199 Correct 213 ms 14840 KB Correct
200 Correct 218 ms 15868 KB Correct
201 Correct 111 ms 12788 KB Correct
202 Correct 88 ms 13472 KB Correct
203 Correct 156 ms 12892 KB Correct
204 Correct 77 ms 15352 KB Correct
205 Correct 81 ms 14064 KB Correct
206 Correct 221 ms 14164 KB Correct
207 Correct 227 ms 14184 KB Correct
208 Correct 102 ms 13596 KB Correct
209 Correct 88 ms 14816 KB Correct
210 Correct 92 ms 13288 KB Correct
211 Correct 83 ms 13948 KB Correct
212 Correct 84 ms 14340 KB Correct
213 Correct 208 ms 14260 KB Correct
214 Correct 220 ms 13080 KB Correct
215 Correct 93 ms 15388 KB Correct
216 Correct 222 ms 14388 KB Correct
217 Correct 264 ms 14808 KB Correct
218 Correct 81 ms 13224 KB Correct
219 Correct 84 ms 13052 KB Correct
220 Correct 199 ms 14320 KB Correct
221 Correct 219 ms 14432 KB Correct
222 Correct 260 ms 15312 KB Correct
223 Correct 145 ms 15580 KB Correct
224 Correct 201 ms 15136 KB Correct
225 Correct 79 ms 14848 KB Correct
226 Correct 77 ms 14396 KB Correct
227 Correct 212 ms 14572 KB Correct
228 Correct 198 ms 12788 KB Correct
229 Correct 89 ms 13740 KB Correct
230 Correct 77 ms 13804 KB Correct
231 Correct 107 ms 14508 KB Correct
232 Correct 88 ms 12792 KB Correct
233 Correct 92 ms 15096 KB Correct
234 Correct 96 ms 10996 KB Correct
235 Correct 98 ms 11376 KB Correct
236 Correct 63 ms 5908 KB Correct
237 Correct 56 ms 5976 KB Correct
238 Correct 63 ms 6128 KB Correct
239 Correct 40 ms 4768 KB Correct
240 Correct 86 ms 7864 KB Correct
241 Correct 80 ms 7992 KB Correct
242 Correct 83 ms 8180 KB Correct
243 Correct 84 ms 7996 KB Correct
244 Correct 83 ms 8144 KB Correct
245 Correct 80 ms 8008 KB Correct
246 Correct 79 ms 8000 KB Correct
247 Correct 79 ms 8000 KB Correct
248 Correct 88 ms 7880 KB Correct
249 Correct 81 ms 7996 KB Correct
250 Correct 83 ms 7928 KB Correct
251 Correct 79 ms 8004 KB Correct
252 Correct 80 ms 8000 KB Correct
253 Correct 87 ms 8092 KB Correct
254 Correct 80 ms 8000 KB Correct
255 Correct 88 ms 7924 KB Correct
256 Correct 77 ms 7996 KB Correct
257 Correct 80 ms 7936 KB Correct
258 Correct 82 ms 7936 KB Correct
259 Correct 81 ms 7932 KB Correct
260 Correct 75 ms 8020 KB Correct
261 Correct 93 ms 7856 KB Correct
262 Correct 84 ms 7948 KB Correct
263 Correct 87 ms 8108 KB Correct
264 Correct 72 ms 7928 KB Correct
265 Correct 56 ms 6124 KB Correct
266 Correct 57 ms 6044 KB Correct
267 Correct 63 ms 6124 KB Correct
268 Correct 56 ms 6004 KB Correct
269 Correct 65 ms 6036 KB Correct
270 Correct 57 ms 6052 KB Correct
271 Correct 59 ms 6044 KB Correct
272 Correct 56 ms 6036 KB Correct
273 Correct 54 ms 6144 KB Correct
274 Correct 63 ms 5956 KB Correct
275 Correct 63 ms 6124 KB Correct
276 Correct 62 ms 6240 KB Correct
277 Correct 63 ms 6144 KB Correct
278 Correct 61 ms 5972 KB Correct
279 Correct 55 ms 6044 KB Correct
280 Correct 80 ms 8508 KB Correct
281 Correct 82 ms 8508 KB Correct
282 Correct 83 ms 8508 KB Correct
283 Correct 84 ms 8092 KB Correct
284 Correct 80 ms 8580 KB Correct
285 Correct 80 ms 8472 KB Correct
286 Correct 81 ms 8512 KB Correct
287 Correct 84 ms 8444 KB Correct
288 Correct 79 ms 8380 KB Correct
289 Correct 87 ms 8440 KB Correct