답안 #1082488

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1082488 2024-08-31T13:23:43 Z nikd The Ties That Guide Us (CEOI23_incursion) C++17
100 / 100
281 ms 14748 KB
#include "incursion.h"
#include <bits/stdc++.h>
using namespace std;

vector<vector<int>> adj1;
vector<int> siz;
vector<int> marked;
int n;

void calcsiz(int v, int e){
  siz[v]=1;
  for(int u: adj1[v]){
    if(u==e) continue;
    calcsiz(u, v);
    siz[v]+=siz[u];
  }
  return;
}

void dfsmark(int v, int e){
  int f1, f2;
  f1 = f2 = -1;
  for(int u: adj1[v]){
    if(u==e) continue;
    if(f1!=-1) f2 = u;
    else f1 = u;
    dfsmark(u, v);
  }
  int var = n- (f1!=-1 ? siz[f1] : 0) - (f2!=-1 ? siz[f2] : 0)-1;
  if(f1!=-1 && siz[f1]>=var){
    marked[v]=0;
  }
  if(f2!=-1 && siz[f2]>=var){
    marked[v]=0;
  }
  return;
}



vector<int> mark(vector<pair<int, int>> F, int safe) {
    n = F.size()+1;
    safe--;
    adj1.resize(n);
    /*for(int i = 0; i<n-1; i++){
      if(F[i].first == 0 || F[i].second == 0) while(1);
    }*/
    for(int i = 0; i<n-1; i++){
      adj1[F[i].first-1].push_back(F[i].second-1);
      adj1[F[i].second-1].push_back(F[i].first-1);
    }
    
    siz.resize(n);
    calcsiz(safe, safe);
    marked.resize(n, 1);
    marked[safe]=0;
    for(int u: adj1[safe]){
      dfsmark(u, safe);
    }
    return marked;
}

vector<vector<pair<int, int>>> adj2;
vector<int> vis;



void calcsiz2(int v, int e){
  siz[v]=1;
  for(auto eg: adj2[v]){
    int u = eg.first;
    if(u==e) continue;
    calcsiz2(u, v);
    siz[v]+=siz[u];
  }
  return;
}

void calcsiz3(int v, int e){
  int var = 0;
  for(auto& eg: adj2[v]){
    int u = eg.first;
    if(u==e){
      continue;
    }
    calcsiz3(u, v);
    eg.second = siz[u];
    var += siz[u];
  }
  for(auto& eg: adj2[v]){
    int u = eg.first;
    if(u==e){
      eg.second = n-var-1;
    }
  }
  return;
}

int real_pos;

int visit2(int v){
  if(vis[v]==-1){
    real_pos = v;
    return vis[v] = visit(v+1);
  }
  return vis[v];
}

void locate(vector<pair<int, int>> F, int curr, int t) {
  n = F.size()+1;
  adj2.resize(n);
  vis.resize(n, -1);
  for(int i = 0; i<n-1; i++){
    adj2[F[i].first-1].push_back({F[i].second-1, -1});
    adj2[F[i].second-1].push_back({F[i].first-1, -1});
  }
  curr--;
  siz.resize(n);
  calcsiz2(curr, curr); //segfaulta
  calcsiz3(curr, curr);
  int v = curr;
  real_pos = v;
  vis[curr]=t;
  while(1){
    sort(adj2[v].begin(), adj2[v].end(), [](auto a, auto b){
      return a.second > b.second;
    });
    if(t){
      v = adj2[v][0].first;
      t = visit2(v);
    }
    else{
      if(adj2[v].size()<2) return;
      if(adj2[v][0].second==adj2[v][1].second){
        t = visit2(adj2[v][0].first);
        if(t==1){
          t = visit2(v);
          if(real_pos!=v){
            visit(v+1);
            real_pos = v;
          }

          if(adj2[v].size()<2) return;
          t = visit2(adj2[v][1].first);
          if(t==1){
            t = visit2(v);
            if(real_pos!=v){
              visit(v+1);
              real_pos = v;
            } 
            if(adj2[v].size()<3) return;
            t = visit2(adj2[v][2].first);
            if(t==1){
              visit2(v);
              if(real_pos!=v){
                visit(v+1);
                real_pos = v;
              } 
              return;
            }
            else v = adj2[v][2].first;
          }
          else v = adj2[v][1].first;
        }
        else v = adj2[v][0].first;
      }

      else{
      t = visit2(adj2[v][1].first);
      if(t==1){
        t = visit2(v);
        if(real_pos!=v){
          visit(v+1);
          real_pos = v;
        }
        if(adj2[v].size()<3) return;
        t = visit2(adj2[v][2].first);
        if(t==1){
          visit2(v); 
          if(real_pos!=v){
            visit(v+1);
            real_pos = v;
          }
          return;
        }
        else v = adj2[v][2].first;
      }
      else v = adj2[v][1].first;
      }
    }
    

  }
} 

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);
      |                  ~~~~~~~~~~~~~~~^~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 764 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 229 ms 13292 KB Correct
2 Correct 222 ms 13220 KB Correct
3 Correct 114 ms 14680 KB Correct
4 Correct 108 ms 12444 KB Correct
5 Correct 204 ms 13176 KB Correct
6 Correct 82 ms 11168 KB Correct
7 Correct 82 ms 11408 KB Correct
8 Correct 216 ms 13216 KB Correct
9 Correct 241 ms 13204 KB Correct
10 Correct 149 ms 12372 KB Correct
11 Correct 99 ms 13248 KB Correct
12 Correct 276 ms 14132 KB Correct
13 Correct 86 ms 11492 KB Correct
14 Correct 97 ms 11364 KB Correct
15 Correct 235 ms 13208 KB Correct
16 Correct 193 ms 13280 KB Correct
17 Correct 134 ms 12632 KB Correct
18 Correct 103 ms 13924 KB Correct
19 Correct 168 ms 13428 KB Correct
20 Correct 88 ms 11420 KB Correct
21 Correct 83 ms 11280 KB Correct
22 Correct 230 ms 13244 KB Correct
23 Correct 238 ms 13216 KB Correct
24 Correct 102 ms 12952 KB Correct
25 Correct 89 ms 14420 KB Correct
26 Correct 92 ms 12892 KB Correct
27 Correct 89 ms 11284 KB Correct
28 Correct 84 ms 11100 KB Correct
29 Correct 217 ms 13384 KB Correct
30 Correct 226 ms 13220 KB Correct
31 Correct 93 ms 11932 KB Correct
32 Correct 239 ms 13532 KB Correct
33 Correct 234 ms 13524 KB Correct
34 Correct 84 ms 11356 KB Correct
35 Correct 82 ms 11420 KB Correct
36 Correct 212 ms 13208 KB Correct
37 Correct 234 ms 13212 KB Correct
38 Correct 260 ms 13980 KB Correct
39 Correct 164 ms 13460 KB Correct
40 Correct 205 ms 13212 KB Correct
41 Correct 84 ms 11164 KB Correct
42 Correct 92 ms 11356 KB Correct
43 Correct 213 ms 13216 KB Correct
44 Correct 218 ms 13152 KB Correct
45 Correct 95 ms 13472 KB Correct
46 Correct 89 ms 13660 KB Correct
47 Correct 106 ms 12628 KB Correct
48 Correct 86 ms 11424 KB Correct
49 Correct 83 ms 11420 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 83 ms 8524 KB Correct
2 Correct 78 ms 8348 KB Correct
3 Correct 76 ms 8520 KB Correct
4 Correct 88 ms 11176 KB Correct
5 Correct 147 ms 10844 KB Correct
6 Correct 193 ms 11460 KB Correct
7 Correct 77 ms 8100 KB Correct
8 Correct 84 ms 8096 KB Correct
9 Correct 81 ms 8096 KB Correct
10 Correct 74 ms 8096 KB Correct
11 Correct 79 ms 8348 KB Correct
12 Correct 84 ms 8008 KB Correct
13 Correct 72 ms 8092 KB Correct
14 Correct 63 ms 6140 KB Correct
15 Correct 55 ms 6044 KB Correct
16 Correct 76 ms 8092 KB Correct
17 Correct 73 ms 8188 KB Correct
18 Correct 83 ms 8176 KB Correct
19 Correct 78 ms 8224 KB Correct
20 Correct 56 ms 6396 KB Correct
21 Correct 55 ms 6056 KB Correct
22 Correct 53 ms 6304 KB Correct
23 Correct 66 ms 6156 KB Correct
24 Correct 66 ms 6164 KB Correct
25 Correct 60 ms 6152 KB Correct
26 Correct 82 ms 8544 KB Correct
27 Correct 76 ms 8184 KB Correct
28 Correct 78 ms 8348 KB Correct
29 Correct 79 ms 8544 KB Correct
30 Correct 82 ms 8528 KB Correct
31 Correct 82 ms 8352 KB Correct
32 Correct 86 ms 8364 KB Correct
33 Correct 84 ms 8540 KB Correct
34 Correct 77 ms 8540 KB Correct
35 Correct 88 ms 8296 KB Correct
36 Correct 80 ms 8464 KB Correct
37 Correct 82 ms 8524 KB Correct
38 Correct 83 ms 8272 KB Correct
39 Correct 80 ms 8352 KB Correct
40 Correct 77 ms 8540 KB Correct
41 Correct 81 ms 8424 KB Correct
42 Correct 90 ms 8352 KB Correct
43 Correct 77 ms 8532 KB Correct
44 Correct 76 ms 8292 KB Correct
45 Correct 78 ms 8352 KB Correct
46 Correct 78 ms 8456 KB Correct
47 Correct 87 ms 8176 KB Correct
48 Correct 79 ms 8348 KB Correct
49 Correct 80 ms 8352 KB Correct
50 Correct 77 ms 8456 KB Correct
51 Correct 81 ms 8352 KB Correct
52 Correct 79 ms 8356 KB Correct
53 Correct 78 ms 8176 KB Correct
54 Correct 84 ms 8544 KB Correct
55 Correct 88 ms 8268 KB Correct
56 Correct 81 ms 8584 KB Correct
57 Correct 77 ms 8448 KB Correct
58 Correct 79 ms 8288 KB Correct
59 Correct 79 ms 8608 KB Correct
60 Correct 86 ms 8376 KB Correct
61 Correct 88 ms 8452 KB Correct
62 Correct 86 ms 8464 KB Correct
63 Correct 79 ms 8540 KB Correct
64 Correct 87 ms 8288 KB Correct
65 Correct 83 ms 8536 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 764 KB Correct
2 Correct 229 ms 13292 KB Correct
3 Correct 222 ms 13220 KB Correct
4 Correct 114 ms 14680 KB Correct
5 Correct 108 ms 12444 KB Correct
6 Correct 204 ms 13176 KB Correct
7 Correct 82 ms 11168 KB Correct
8 Correct 82 ms 11408 KB Correct
9 Correct 216 ms 13216 KB Correct
10 Correct 241 ms 13204 KB Correct
11 Correct 149 ms 12372 KB Correct
12 Correct 99 ms 13248 KB Correct
13 Correct 276 ms 14132 KB Correct
14 Correct 86 ms 11492 KB Correct
15 Correct 97 ms 11364 KB Correct
16 Correct 235 ms 13208 KB Correct
17 Correct 193 ms 13280 KB Correct
18 Correct 134 ms 12632 KB Correct
19 Correct 103 ms 13924 KB Correct
20 Correct 168 ms 13428 KB Correct
21 Correct 88 ms 11420 KB Correct
22 Correct 83 ms 11280 KB Correct
23 Correct 230 ms 13244 KB Correct
24 Correct 238 ms 13216 KB Correct
25 Correct 102 ms 12952 KB Correct
26 Correct 89 ms 14420 KB Correct
27 Correct 92 ms 12892 KB Correct
28 Correct 89 ms 11284 KB Correct
29 Correct 84 ms 11100 KB Correct
30 Correct 217 ms 13384 KB Correct
31 Correct 226 ms 13220 KB Correct
32 Correct 93 ms 11932 KB Correct
33 Correct 239 ms 13532 KB Correct
34 Correct 234 ms 13524 KB Correct
35 Correct 84 ms 11356 KB Correct
36 Correct 82 ms 11420 KB Correct
37 Correct 212 ms 13208 KB Correct
38 Correct 234 ms 13212 KB Correct
39 Correct 260 ms 13980 KB Correct
40 Correct 164 ms 13460 KB Correct
41 Correct 205 ms 13212 KB Correct
42 Correct 84 ms 11164 KB Correct
43 Correct 92 ms 11356 KB Correct
44 Correct 213 ms 13216 KB Correct
45 Correct 218 ms 13152 KB Correct
46 Correct 95 ms 13472 KB Correct
47 Correct 89 ms 13660 KB Correct
48 Correct 106 ms 12628 KB Correct
49 Correct 86 ms 11424 KB Correct
50 Correct 83 ms 11420 KB Correct
51 Correct 83 ms 8524 KB Correct
52 Correct 78 ms 8348 KB Correct
53 Correct 76 ms 8520 KB Correct
54 Correct 88 ms 11176 KB Correct
55 Correct 147 ms 10844 KB Correct
56 Correct 193 ms 11460 KB Correct
57 Correct 77 ms 8100 KB Correct
58 Correct 84 ms 8096 KB Correct
59 Correct 81 ms 8096 KB Correct
60 Correct 74 ms 8096 KB Correct
61 Correct 79 ms 8348 KB Correct
62 Correct 84 ms 8008 KB Correct
63 Correct 72 ms 8092 KB Correct
64 Correct 63 ms 6140 KB Correct
65 Correct 55 ms 6044 KB Correct
66 Correct 76 ms 8092 KB Correct
67 Correct 73 ms 8188 KB Correct
68 Correct 83 ms 8176 KB Correct
69 Correct 78 ms 8224 KB Correct
70 Correct 56 ms 6396 KB Correct
71 Correct 55 ms 6056 KB Correct
72 Correct 53 ms 6304 KB Correct
73 Correct 66 ms 6156 KB Correct
74 Correct 66 ms 6164 KB Correct
75 Correct 60 ms 6152 KB Correct
76 Correct 82 ms 8544 KB Correct
77 Correct 76 ms 8184 KB Correct
78 Correct 78 ms 8348 KB Correct
79 Correct 79 ms 8544 KB Correct
80 Correct 82 ms 8528 KB Correct
81 Correct 82 ms 8352 KB Correct
82 Correct 86 ms 8364 KB Correct
83 Correct 84 ms 8540 KB Correct
84 Correct 77 ms 8540 KB Correct
85 Correct 88 ms 8296 KB Correct
86 Correct 80 ms 8464 KB Correct
87 Correct 82 ms 8524 KB Correct
88 Correct 83 ms 8272 KB Correct
89 Correct 80 ms 8352 KB Correct
90 Correct 77 ms 8540 KB Correct
91 Correct 81 ms 8424 KB Correct
92 Correct 90 ms 8352 KB Correct
93 Correct 77 ms 8532 KB Correct
94 Correct 76 ms 8292 KB Correct
95 Correct 78 ms 8352 KB Correct
96 Correct 78 ms 8456 KB Correct
97 Correct 87 ms 8176 KB Correct
98 Correct 79 ms 8348 KB Correct
99 Correct 80 ms 8352 KB Correct
100 Correct 77 ms 8456 KB Correct
101 Correct 81 ms 8352 KB Correct
102 Correct 79 ms 8356 KB Correct
103 Correct 78 ms 8176 KB Correct
104 Correct 84 ms 8544 KB Correct
105 Correct 88 ms 8268 KB Correct
106 Correct 81 ms 8584 KB Correct
107 Correct 77 ms 8448 KB Correct
108 Correct 79 ms 8288 KB Correct
109 Correct 79 ms 8608 KB Correct
110 Correct 86 ms 8376 KB Correct
111 Correct 88 ms 8452 KB Correct
112 Correct 86 ms 8464 KB Correct
113 Correct 79 ms 8540 KB Correct
114 Correct 87 ms 8288 KB Correct
115 Correct 83 ms 8536 KB Correct
116 Correct 77 ms 8612 KB Correct
117 Correct 79 ms 8432 KB Correct
118 Correct 83 ms 8092 KB Correct
119 Correct 83 ms 8360 KB Correct
120 Correct 69 ms 8352 KB Correct
121 Correct 83 ms 8444 KB Correct
122 Correct 81 ms 8520 KB Correct
123 Correct 91 ms 10996 KB Correct
124 Correct 175 ms 10748 KB Correct
125 Correct 190 ms 11268 KB Correct
126 Correct 72 ms 8272 KB Correct
127 Correct 80 ms 8200 KB Correct
128 Correct 90 ms 8352 KB Correct
129 Correct 77 ms 8092 KB Correct
130 Correct 81 ms 8280 KB Correct
131 Correct 80 ms 8092 KB Correct
132 Correct 82 ms 8268 KB Correct
133 Correct 62 ms 6140 KB Correct
134 Correct 61 ms 6132 KB Correct
135 Correct 82 ms 8020 KB Correct
136 Correct 77 ms 8104 KB Correct
137 Correct 76 ms 8188 KB Correct
138 Correct 84 ms 8264 KB Correct
139 Correct 55 ms 6232 KB Correct
140 Correct 60 ms 6224 KB Correct
141 Correct 66 ms 6296 KB Correct
142 Correct 54 ms 6156 KB Correct
143 Correct 56 ms 6056 KB Correct
144 Correct 52 ms 6144 KB Correct
145 Correct 77 ms 8272 KB Correct
146 Correct 78 ms 8352 KB Correct
147 Correct 73 ms 8540 KB Correct
148 Correct 84 ms 8540 KB Correct
149 Correct 89 ms 8276 KB Correct
150 Correct 79 ms 8364 KB Correct
151 Correct 80 ms 8396 KB Correct
152 Correct 79 ms 8684 KB Correct
153 Correct 86 ms 8360 KB Correct
154 Correct 82 ms 8492 KB Correct
155 Correct 76 ms 8352 KB Correct
156 Correct 89 ms 8532 KB Correct
157 Correct 76 ms 8276 KB Correct
158 Correct 90 ms 8536 KB Correct
159 Correct 82 ms 8396 KB Correct
160 Correct 81 ms 8540 KB Correct
161 Correct 79 ms 8544 KB Correct
162 Correct 88 ms 8320 KB Correct
163 Correct 83 ms 8468 KB Correct
164 Correct 79 ms 8604 KB Correct
165 Correct 68 ms 8476 KB Correct
166 Correct 81 ms 8528 KB Correct
167 Correct 88 ms 8348 KB Correct
168 Correct 89 ms 8276 KB Correct
169 Correct 84 ms 8372 KB Correct
170 Correct 78 ms 8356 KB Correct
171 Correct 86 ms 8544 KB Correct
172 Correct 83 ms 8352 KB Correct
173 Correct 71 ms 8352 KB Correct
174 Correct 87 ms 8284 KB Correct
175 Correct 82 ms 8608 KB Correct
176 Correct 88 ms 8268 KB Correct
177 Correct 82 ms 8540 KB Correct
178 Correct 82 ms 8464 KB Correct
179 Correct 83 ms 8272 KB Correct
180 Correct 83 ms 8276 KB Correct
181 Correct 81 ms 8636 KB Correct
182 Correct 80 ms 8604 KB Correct
183 Correct 80 ms 8280 KB Correct
184 Correct 81 ms 8356 KB Correct
185 Correct 218 ms 13156 KB Correct
186 Correct 211 ms 13212 KB Correct
187 Correct 106 ms 14676 KB Correct
188 Correct 109 ms 12508 KB Correct
189 Correct 229 ms 13180 KB Correct
190 Correct 84 ms 11168 KB Correct
191 Correct 91 ms 11280 KB Correct
192 Correct 223 ms 13172 KB Correct
193 Correct 215 ms 13208 KB Correct
194 Correct 149 ms 12368 KB Correct
195 Correct 109 ms 13448 KB Correct
196 Correct 279 ms 13980 KB Correct
197 Correct 82 ms 11360 KB Correct
198 Correct 76 ms 11168 KB Correct
199 Correct 198 ms 13136 KB Correct
200 Correct 214 ms 13572 KB Correct
201 Correct 143 ms 12652 KB Correct
202 Correct 98 ms 13980 KB Correct
203 Correct 172 ms 13424 KB Correct
204 Correct 82 ms 11420 KB Correct
205 Correct 93 ms 11356 KB Correct
206 Correct 196 ms 13208 KB Correct
207 Correct 212 ms 13188 KB Correct
208 Correct 107 ms 13076 KB Correct
209 Correct 93 ms 14748 KB Correct
210 Correct 95 ms 13340 KB Correct
211 Correct 83 ms 11424 KB Correct
212 Correct 87 ms 11420 KB Correct
213 Correct 194 ms 13212 KB Correct
214 Correct 210 ms 13212 KB Correct
215 Correct 83 ms 12036 KB Correct
216 Correct 241 ms 13600 KB Correct
217 Correct 239 ms 13464 KB Correct
218 Correct 87 ms 11168 KB Correct
219 Correct 83 ms 11084 KB Correct
220 Correct 228 ms 13252 KB Correct
221 Correct 218 ms 13388 KB Correct
222 Correct 281 ms 13908 KB Correct
223 Correct 152 ms 13468 KB Correct
224 Correct 199 ms 12996 KB Correct
225 Correct 83 ms 11344 KB Correct
226 Correct 89 ms 11364 KB Correct
227 Correct 221 ms 13216 KB Correct
228 Correct 225 ms 13468 KB Correct
229 Correct 89 ms 13400 KB Correct
230 Correct 88 ms 13788 KB Correct
231 Correct 109 ms 12704 KB Correct
232 Correct 81 ms 11164 KB Correct
233 Correct 81 ms 11420 KB Correct
234 Correct 101 ms 11868 KB Correct
235 Correct 97 ms 10660 KB Correct
236 Correct 60 ms 6140 KB Correct
237 Correct 62 ms 6144 KB Correct
238 Correct 54 ms 6048 KB Correct
239 Correct 45 ms 4900 KB Correct
240 Correct 79 ms 8368 KB Correct
241 Correct 84 ms 8440 KB Correct
242 Correct 80 ms 8544 KB Correct
243 Correct 82 ms 8184 KB Correct
244 Correct 82 ms 8604 KB Correct
245 Correct 78 ms 8352 KB Correct
246 Correct 90 ms 8272 KB Correct
247 Correct 79 ms 8276 KB Correct
248 Correct 82 ms 8268 KB Correct
249 Correct 80 ms 8276 KB Correct
250 Correct 77 ms 8348 KB Correct
251 Correct 81 ms 8368 KB Correct
252 Correct 82 ms 8160 KB Correct
253 Correct 82 ms 8472 KB Correct
254 Correct 81 ms 8472 KB Correct
255 Correct 77 ms 8348 KB Correct
256 Correct 74 ms 8540 KB Correct
257 Correct 82 ms 8348 KB Correct
258 Correct 80 ms 8484 KB Correct
259 Correct 77 ms 8288 KB Correct
260 Correct 81 ms 8652 KB Correct
261 Correct 72 ms 8608 KB Correct
262 Correct 74 ms 8236 KB Correct
263 Correct 84 ms 8472 KB Correct
264 Correct 86 ms 8364 KB Correct
265 Correct 62 ms 6192 KB Correct
266 Correct 53 ms 6300 KB Correct
267 Correct 61 ms 6124 KB Correct
268 Correct 59 ms 6400 KB Correct
269 Correct 57 ms 6232 KB Correct
270 Correct 54 ms 6032 KB Correct
271 Correct 57 ms 6052 KB Correct
272 Correct 66 ms 6056 KB Correct
273 Correct 61 ms 6408 KB Correct
274 Correct 49 ms 6312 KB Correct
275 Correct 55 ms 6052 KB Correct
276 Correct 61 ms 6148 KB Correct
277 Correct 55 ms 6052 KB Correct
278 Correct 61 ms 6136 KB Correct
279 Correct 63 ms 6236 KB Correct
280 Correct 84 ms 8024 KB Correct
281 Correct 76 ms 8360 KB Correct
282 Correct 87 ms 8352 KB Correct
283 Correct 87 ms 8028 KB Correct
284 Correct 82 ms 8348 KB Correct
285 Correct 82 ms 8184 KB Correct
286 Correct 86 ms 8348 KB Correct
287 Correct 82 ms 8268 KB Correct
288 Correct 86 ms 8020 KB Correct
289 Correct 69 ms 8284 KB Correct