Submission #1099990

# Submission time Handle Problem Language Result Execution time Memory
1099990 2024-10-12T10:33:37 Z marvinthang The Ties That Guide Us (CEOI23_incursion) C++17
100 / 100
308 ms 16256 KB
/*************************************
*    author: marvinthang             *
*    created: 25.08.2023 10:13:26    *
*************************************/

#include "incursion.h"
#include <bits/stdc++.h>

using namespace std;

#define                  fi  first
#define                  se  second
#define                left  ___left
#define               right  ___right
#define                TIME  (1.0 * clock() / CLOCKS_PER_SEC)
#define             MASK(i)  (1LL << (i))
#define           BIT(x, i)  ((x) >> (i) & 1)
#define  __builtin_popcount  __builtin_popcountll
#define              ALL(v)  (v).begin(), (v).end()
#define           REP(i, n)  for (int i = 0, _n = (n); i < _n; ++i)
#define          REPD(i, n)  for (int i = (n); i-- > 0; )
#define        FOR(i, a, b)  for (int i = (a), _b = (b); i < _b; ++i) 
#define       FORD(i, b, a)  for (int i = (b), _a = (a); --i >= _a; ) 
#define       FORE(i, a, b)  for (int i = (a), _b = (b); i <= _b; ++i) 
#define      FORDE(i, b, a)  for (int i = (b), _a = (a); i >= _a; --i) 
#define        scan_op(...)  istream & operator >> (istream &in, __VA_ARGS__ &u)
#define       print_op(...)  ostream & operator << (ostream &out, const __VA_ARGS__ &u)
#ifdef LOCAL
    #include "debug.h"
#else
    #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); }
    #define DB(...) 23
    #define db(...) 23
    #define debug(...) 23
#endif

template <class U, class V> scan_op(pair <U, V>)  { return in >> u.first >> u.second; }
template <class T> scan_op(vector <T>)  { for (size_t i = 0; i < u.size(); ++i) in >> u[i]; return in; }
template <class U, class V> print_op(pair <U, V>)  { return out << '(' << u.first << ", " << u.second << ')'; }
template <size_t i, class T> ostream & print_tuple_utils(ostream &out, const T &tup) { if constexpr(i == tuple_size<T>::value) return out << ")";  else return print_tuple_utils<i + 1, T>(out << (i ? ", " : "(") << get<i>(tup), tup); }
template <class ...U> print_op(tuple<U...>) { return print_tuple_utils<0, tuple<U...>>(out, u); }
template <class Con, class = decltype(begin(declval<Con>()))> typename enable_if <!is_same<Con, string>::value, ostream&>::type operator << (ostream &out, const Con &con) { out << '{'; for (__typeof(con.begin()) it = con.begin(); it != con.end(); ++it) out << (it == con.begin() ? "" : ", ") << *it; return out << '}'; }

// end of template

vector<int> mark(vector<pair<int, int>> F, int safe) {
    int N = F.size() + 1;
    vector <int> sz(N), par(N, -1);
    vector <vector <int>> adj(N);
    for (auto [u, v]: F) {
        --u; --v;
        adj[u].push_back(v);
        adj[v].push_back(u);
    }
    function<void(int)> dfs = [&] (int u) {
        sz[u] = 1;
        for (int v: adj[u]) if (v != par[u]) {
            par[v] = u;
            dfs(v);
            sz[u] += sz[v];
        }
    };
    dfs(--safe);
    vector <int> res(N);
    REP(u, N) if (u != safe) {
        vector <int> val;
        res[u] = 1;
        for (int v: adj[u]) if (v != par[u] && N - sz[u] < sz[v]) {
            res[u] = 0;
            break;
        }
    }
    return res;
}

void locate(vector<pair<int, int>> F, int u, int t) {
    int N = F.size() + 1;
    vector <int> sz(N + 1), par(N + 1, -1);
    vector <vector <int>> adj(N + 1);
    for (auto [u, v]: F) {
        adj[u].push_back(v);
        adj[v].push_back(u);
    }
    function<void(int)> dfs = [&] (int u) {
        sz[u] = 1;
        for (int v: adj[u]) if (v != par[u]) {
            par[v] = u;
            dfs(v);
            sz[u] += sz[v];
        }
    };
    dfs(1);
    auto get_size = [&] (int u, int p) {
        return par[p] == u ? N - sz[p] : sz[u];
    };
    int last = u;
    vector <pair <int, int>> nxt;
    for (int v: adj[u]) nxt.emplace_back(get_size(v, u), v);
    sort(ALL(nxt));
    if (!t && nxt[0].fi == nxt.back().fi) return;
    if (adj[u].size() == 1) {
        t = visit(u = adj[u][0]);
    } else {
        if (t) {
            if (nxt.size() == 1 || nxt.back().fi != nxt.end()[-2].fi) {
                u = nxt.back().se;
                t = visit(u);
            } else {
                for (auto [sz, v]: nxt) if (sz == nxt.back().fi) {
                    if (visit(v)) {
                        visit(u);
                    } else {
                        u = v;
                        t = 0;
                        break;
                    }
                }
            }
        } else {
            if (nxt[1].fi == nxt.back().fi) {
                if (visit(nxt[0].se)) {
                    visit(u);
                    return;
                }
                u = nxt[0].se;
                t = 0;
            } else {
                if (visit(nxt[1].se)) {
                    visit(u);
                    if (visit(nxt[0].se)) {
                        visit(u);
                        return;
                    }
                    u = nxt[0].se;
                    t = 0;
                } else {
                    u = nxt[1].se;
                    t = 0;
                }
            }
        }
    }
    while (true) {
        vector <pair <int, int>> nxt_move, nxt;
        for (int v: adj[u]) {
            nxt.emplace_back(get_size(v, u), v);
            if (v != last) nxt_move.push_back(nxt.back());
        }
        sort(ALL(nxt));
        sort(ALL(nxt_move));
        last = u;
        if (!t && (nxt_move.empty() || nxt[0].fi == nxt.back().fi)) return;
        assert(nxt.size() > 1);
        if (t) {
            if (nxt_move.size() == 1 || nxt_move[1].fi > nxt_move[0].fi) {
                u = nxt_move.back().se;
                t = visit(u);
            } else {
                for (auto [sz, v]: nxt_move) {
                    if (visit(v)) {
                        visit(u);
                    } else {
                        u = v;
                        t = 0;
                        break;
                    }
                }
            }
        } else {
            if (nxt_move.size() == 1 || nxt_move[1].fi == nxt.back().fi) {
                if (nxt_move[0].fi == nxt.back().fi) return;
                if (visit(nxt_move[0].se)) {
                    visit(u);
                    return;
                }
                u = nxt_move[0].se;
                t = 0;
            } else {
                if (visit(nxt_move[1].se)) {
                    visit(u);
                    if (visit(nxt_move[0].se)) {
                        visit(u);
                        return;
                    }
                    u = nxt_move[0].se;
                    t = 0;
                } else {
                    u = nxt_move[1].se;
                    t = 0;
                }
            }
        }
    }
}

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 1 ms 764 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 225 ms 14620 KB Correct
2 Correct 246 ms 15520 KB Correct
3 Correct 123 ms 15736 KB Correct
4 Correct 117 ms 14808 KB Correct
5 Correct 222 ms 15660 KB Correct
6 Correct 93 ms 13740 KB Correct
7 Correct 108 ms 12704 KB Correct
8 Correct 230 ms 14776 KB Correct
9 Correct 259 ms 16256 KB Correct
10 Correct 181 ms 14292 KB Correct
11 Correct 123 ms 15316 KB Correct
12 Correct 308 ms 14668 KB Correct
13 Correct 90 ms 12444 KB Correct
14 Correct 88 ms 12340 KB Correct
15 Correct 248 ms 15492 KB Correct
16 Correct 242 ms 16160 KB Correct
17 Correct 130 ms 13368 KB Correct
18 Correct 94 ms 13328 KB Correct
19 Correct 195 ms 12884 KB Correct
20 Correct 94 ms 13580 KB Correct
21 Correct 102 ms 13652 KB Correct
22 Correct 237 ms 15224 KB Correct
23 Correct 244 ms 15712 KB Correct
24 Correct 117 ms 13756 KB Correct
25 Correct 108 ms 14420 KB Correct
26 Correct 101 ms 13576 KB Correct
27 Correct 88 ms 13132 KB Correct
28 Correct 78 ms 12032 KB Correct
29 Correct 220 ms 16200 KB Correct
30 Correct 211 ms 14556 KB Correct
31 Correct 109 ms 14612 KB Correct
32 Correct 248 ms 14108 KB Correct
33 Correct 249 ms 14564 KB Correct
34 Correct 93 ms 12372 KB Correct
35 Correct 84 ms 12704 KB Correct
36 Correct 210 ms 15444 KB Correct
37 Correct 208 ms 16192 KB Correct
38 Correct 260 ms 14792 KB Correct
39 Correct 159 ms 15736 KB Correct
40 Correct 182 ms 14432 KB Correct
41 Correct 87 ms 12644 KB Correct
42 Correct 78 ms 13584 KB Correct
43 Correct 247 ms 15552 KB Correct
44 Correct 225 ms 14728 KB Correct
45 Correct 87 ms 14176 KB Correct
46 Correct 98 ms 14940 KB Correct
47 Correct 109 ms 15008 KB Correct
48 Correct 98 ms 12056 KB Correct
49 Correct 86 ms 14080 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 98 ms 8028 KB Correct
2 Correct 82 ms 8016 KB Correct
3 Correct 102 ms 8012 KB Correct
4 Correct 98 ms 11528 KB Correct
5 Correct 147 ms 11224 KB Correct
6 Correct 200 ms 11520 KB Correct
7 Correct 69 ms 7776 KB Correct
8 Correct 67 ms 7692 KB Correct
9 Correct 83 ms 7836 KB Correct
10 Correct 92 ms 7752 KB Correct
11 Correct 95 ms 7532 KB Correct
12 Correct 75 ms 7624 KB Correct
13 Correct 81 ms 7532 KB Correct
14 Correct 64 ms 5960 KB Correct
15 Correct 56 ms 5880 KB Correct
16 Correct 77 ms 7688 KB Correct
17 Correct 77 ms 7496 KB Correct
18 Correct 80 ms 7752 KB Correct
19 Correct 74 ms 7580 KB Correct
20 Correct 56 ms 5872 KB Correct
21 Correct 62 ms 5972 KB Correct
22 Correct 76 ms 5760 KB Correct
23 Correct 69 ms 5916 KB Correct
24 Correct 70 ms 6008 KB Correct
25 Correct 56 ms 6124 KB Correct
26 Correct 103 ms 8264 KB Correct
27 Correct 90 ms 7816 KB Correct
28 Correct 83 ms 7836 KB Correct
29 Correct 91 ms 7924 KB Correct
30 Correct 91 ms 7964 KB Correct
31 Correct 80 ms 7748 KB Correct
32 Correct 90 ms 7940 KB Correct
33 Correct 82 ms 7928 KB Correct
34 Correct 89 ms 8012 KB Correct
35 Correct 78 ms 7736 KB Correct
36 Correct 93 ms 7996 KB Correct
37 Correct 80 ms 7948 KB Correct
38 Correct 87 ms 7928 KB Correct
39 Correct 91 ms 8052 KB Correct
40 Correct 94 ms 8264 KB Correct
41 Correct 92 ms 7944 KB Correct
42 Correct 88 ms 7968 KB Correct
43 Correct 89 ms 7836 KB Correct
44 Correct 98 ms 8076 KB Correct
45 Correct 91 ms 8008 KB Correct
46 Correct 87 ms 7904 KB Correct
47 Correct 89 ms 7968 KB Correct
48 Correct 84 ms 7808 KB Correct
49 Correct 81 ms 7836 KB Correct
50 Correct 79 ms 8016 KB Correct
51 Correct 93 ms 8012 KB Correct
52 Correct 84 ms 8020 KB Correct
53 Correct 88 ms 7924 KB Correct
54 Correct 88 ms 7952 KB Correct
55 Correct 75 ms 7940 KB Correct
56 Correct 81 ms 8092 KB Correct
57 Correct 88 ms 8004 KB Correct
58 Correct 69 ms 8024 KB Correct
59 Correct 80 ms 8096 KB Correct
60 Correct 70 ms 8008 KB Correct
61 Correct 82 ms 7840 KB Correct
62 Correct 82 ms 8208 KB Correct
63 Correct 72 ms 8188 KB Correct
64 Correct 89 ms 7940 KB Correct
65 Correct 75 ms 8004 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 764 KB Correct
2 Correct 225 ms 14620 KB Correct
3 Correct 246 ms 15520 KB Correct
4 Correct 123 ms 15736 KB Correct
5 Correct 117 ms 14808 KB Correct
6 Correct 222 ms 15660 KB Correct
7 Correct 93 ms 13740 KB Correct
8 Correct 108 ms 12704 KB Correct
9 Correct 230 ms 14776 KB Correct
10 Correct 259 ms 16256 KB Correct
11 Correct 181 ms 14292 KB Correct
12 Correct 123 ms 15316 KB Correct
13 Correct 308 ms 14668 KB Correct
14 Correct 90 ms 12444 KB Correct
15 Correct 88 ms 12340 KB Correct
16 Correct 248 ms 15492 KB Correct
17 Correct 242 ms 16160 KB Correct
18 Correct 130 ms 13368 KB Correct
19 Correct 94 ms 13328 KB Correct
20 Correct 195 ms 12884 KB Correct
21 Correct 94 ms 13580 KB Correct
22 Correct 102 ms 13652 KB Correct
23 Correct 237 ms 15224 KB Correct
24 Correct 244 ms 15712 KB Correct
25 Correct 117 ms 13756 KB Correct
26 Correct 108 ms 14420 KB Correct
27 Correct 101 ms 13576 KB Correct
28 Correct 88 ms 13132 KB Correct
29 Correct 78 ms 12032 KB Correct
30 Correct 220 ms 16200 KB Correct
31 Correct 211 ms 14556 KB Correct
32 Correct 109 ms 14612 KB Correct
33 Correct 248 ms 14108 KB Correct
34 Correct 249 ms 14564 KB Correct
35 Correct 93 ms 12372 KB Correct
36 Correct 84 ms 12704 KB Correct
37 Correct 210 ms 15444 KB Correct
38 Correct 208 ms 16192 KB Correct
39 Correct 260 ms 14792 KB Correct
40 Correct 159 ms 15736 KB Correct
41 Correct 182 ms 14432 KB Correct
42 Correct 87 ms 12644 KB Correct
43 Correct 78 ms 13584 KB Correct
44 Correct 247 ms 15552 KB Correct
45 Correct 225 ms 14728 KB Correct
46 Correct 87 ms 14176 KB Correct
47 Correct 98 ms 14940 KB Correct
48 Correct 109 ms 15008 KB Correct
49 Correct 98 ms 12056 KB Correct
50 Correct 86 ms 14080 KB Correct
51 Correct 98 ms 8028 KB Correct
52 Correct 82 ms 8016 KB Correct
53 Correct 102 ms 8012 KB Correct
54 Correct 98 ms 11528 KB Correct
55 Correct 147 ms 11224 KB Correct
56 Correct 200 ms 11520 KB Correct
57 Correct 69 ms 7776 KB Correct
58 Correct 67 ms 7692 KB Correct
59 Correct 83 ms 7836 KB Correct
60 Correct 92 ms 7752 KB Correct
61 Correct 95 ms 7532 KB Correct
62 Correct 75 ms 7624 KB Correct
63 Correct 81 ms 7532 KB Correct
64 Correct 64 ms 5960 KB Correct
65 Correct 56 ms 5880 KB Correct
66 Correct 77 ms 7688 KB Correct
67 Correct 77 ms 7496 KB Correct
68 Correct 80 ms 7752 KB Correct
69 Correct 74 ms 7580 KB Correct
70 Correct 56 ms 5872 KB Correct
71 Correct 62 ms 5972 KB Correct
72 Correct 76 ms 5760 KB Correct
73 Correct 69 ms 5916 KB Correct
74 Correct 70 ms 6008 KB Correct
75 Correct 56 ms 6124 KB Correct
76 Correct 103 ms 8264 KB Correct
77 Correct 90 ms 7816 KB Correct
78 Correct 83 ms 7836 KB Correct
79 Correct 91 ms 7924 KB Correct
80 Correct 91 ms 7964 KB Correct
81 Correct 80 ms 7748 KB Correct
82 Correct 90 ms 7940 KB Correct
83 Correct 82 ms 7928 KB Correct
84 Correct 89 ms 8012 KB Correct
85 Correct 78 ms 7736 KB Correct
86 Correct 93 ms 7996 KB Correct
87 Correct 80 ms 7948 KB Correct
88 Correct 87 ms 7928 KB Correct
89 Correct 91 ms 8052 KB Correct
90 Correct 94 ms 8264 KB Correct
91 Correct 92 ms 7944 KB Correct
92 Correct 88 ms 7968 KB Correct
93 Correct 89 ms 7836 KB Correct
94 Correct 98 ms 8076 KB Correct
95 Correct 91 ms 8008 KB Correct
96 Correct 87 ms 7904 KB Correct
97 Correct 89 ms 7968 KB Correct
98 Correct 84 ms 7808 KB Correct
99 Correct 81 ms 7836 KB Correct
100 Correct 79 ms 8016 KB Correct
101 Correct 93 ms 8012 KB Correct
102 Correct 84 ms 8020 KB Correct
103 Correct 88 ms 7924 KB Correct
104 Correct 88 ms 7952 KB Correct
105 Correct 75 ms 7940 KB Correct
106 Correct 81 ms 8092 KB Correct
107 Correct 88 ms 8004 KB Correct
108 Correct 69 ms 8024 KB Correct
109 Correct 80 ms 8096 KB Correct
110 Correct 70 ms 8008 KB Correct
111 Correct 82 ms 7840 KB Correct
112 Correct 82 ms 8208 KB Correct
113 Correct 72 ms 8188 KB Correct
114 Correct 89 ms 7940 KB Correct
115 Correct 75 ms 8004 KB Correct
116 Correct 77 ms 7952 KB Correct
117 Correct 81 ms 8208 KB Correct
118 Correct 92 ms 7960 KB Correct
119 Correct 95 ms 8012 KB Correct
120 Correct 78 ms 7836 KB Correct
121 Correct 88 ms 8484 KB Correct
122 Correct 92 ms 8012 KB Correct
123 Correct 92 ms 11604 KB Correct
124 Correct 151 ms 11208 KB Correct
125 Correct 170 ms 11532 KB Correct
126 Correct 84 ms 7592 KB Correct
127 Correct 77 ms 7564 KB Correct
128 Correct 81 ms 7512 KB Correct
129 Correct 84 ms 7496 KB Correct
130 Correct 74 ms 7848 KB Correct
131 Correct 71 ms 7580 KB Correct
132 Correct 70 ms 7692 KB Correct
133 Correct 54 ms 5796 KB Correct
134 Correct 55 ms 5976 KB Correct
135 Correct 92 ms 7760 KB Correct
136 Correct 80 ms 7576 KB Correct
137 Correct 89 ms 7644 KB Correct
138 Correct 87 ms 7496 KB Correct
139 Correct 52 ms 5796 KB Correct
140 Correct 56 ms 5876 KB Correct
141 Correct 60 ms 5884 KB Correct
142 Correct 63 ms 5896 KB Correct
143 Correct 56 ms 5876 KB Correct
144 Correct 67 ms 5856 KB Correct
145 Correct 89 ms 7832 KB Correct
146 Correct 84 ms 7944 KB Correct
147 Correct 84 ms 8008 KB Correct
148 Correct 86 ms 7864 KB Correct
149 Correct 89 ms 8012 KB Correct
150 Correct 80 ms 7836 KB Correct
151 Correct 89 ms 7880 KB Correct
152 Correct 78 ms 7932 KB Correct
153 Correct 83 ms 7948 KB Correct
154 Correct 80 ms 7836 KB Correct
155 Correct 87 ms 7952 KB Correct
156 Correct 87 ms 8016 KB Correct
157 Correct 96 ms 7932 KB Correct
158 Correct 82 ms 7764 KB Correct
159 Correct 86 ms 7888 KB Correct
160 Correct 78 ms 8048 KB Correct
161 Correct 91 ms 8004 KB Correct
162 Correct 88 ms 7956 KB Correct
163 Correct 81 ms 8024 KB Correct
164 Correct 86 ms 7752 KB Correct
165 Correct 88 ms 8256 KB Correct
166 Correct 86 ms 8288 KB Correct
167 Correct 82 ms 7860 KB Correct
168 Correct 83 ms 7856 KB Correct
169 Correct 90 ms 8024 KB Correct
170 Correct 75 ms 7872 KB Correct
171 Correct 75 ms 8016 KB Correct
172 Correct 75 ms 7928 KB Correct
173 Correct 84 ms 8192 KB Correct
174 Correct 80 ms 7936 KB Correct
175 Correct 82 ms 8264 KB Correct
176 Correct 73 ms 8192 KB Correct
177 Correct 96 ms 8196 KB Correct
178 Correct 93 ms 8012 KB Correct
179 Correct 71 ms 7932 KB Correct
180 Correct 79 ms 7948 KB Correct
181 Correct 82 ms 7892 KB Correct
182 Correct 90 ms 8240 KB Correct
183 Correct 72 ms 7916 KB Correct
184 Correct 77 ms 7836 KB Correct
185 Correct 225 ms 14692 KB Correct
186 Correct 247 ms 15524 KB Correct
187 Correct 122 ms 15816 KB Correct
188 Correct 119 ms 14708 KB Correct
189 Correct 225 ms 15596 KB Correct
190 Correct 89 ms 13908 KB Correct
191 Correct 91 ms 12984 KB Correct
192 Correct 244 ms 14768 KB Correct
193 Correct 227 ms 16188 KB Correct
194 Correct 180 ms 14492 KB Correct
195 Correct 106 ms 15488 KB Correct
196 Correct 295 ms 14672 KB Correct
197 Correct 89 ms 12380 KB Correct
198 Correct 97 ms 12448 KB Correct
199 Correct 203 ms 15560 KB Correct
200 Correct 207 ms 16220 KB Correct
201 Correct 138 ms 13304 KB Correct
202 Correct 90 ms 13464 KB Correct
203 Correct 155 ms 12884 KB Correct
204 Correct 83 ms 13728 KB Correct
205 Correct 78 ms 13652 KB Correct
206 Correct 218 ms 15236 KB Correct
207 Correct 254 ms 15716 KB Correct
208 Correct 111 ms 13584 KB Correct
209 Correct 90 ms 14540 KB Correct
210 Correct 100 ms 13656 KB Correct
211 Correct 88 ms 13152 KB Correct
212 Correct 72 ms 12112 KB Correct
213 Correct 224 ms 16180 KB Correct
214 Correct 240 ms 14428 KB Correct
215 Correct 87 ms 14712 KB Correct
216 Correct 281 ms 14028 KB Correct
217 Correct 230 ms 14384 KB Correct
218 Correct 84 ms 12300 KB Correct
219 Correct 83 ms 12636 KB Correct
220 Correct 200 ms 15372 KB Correct
221 Correct 240 ms 16124 KB Correct
222 Correct 272 ms 15056 KB Correct
223 Correct 165 ms 15584 KB Correct
224 Correct 190 ms 14628 KB Correct
225 Correct 71 ms 12568 KB Correct
226 Correct 94 ms 13580 KB Correct
227 Correct 247 ms 15552 KB Correct
228 Correct 267 ms 14428 KB Correct
229 Correct 95 ms 14164 KB Correct
230 Correct 87 ms 14496 KB Correct
231 Correct 113 ms 15260 KB Correct
232 Correct 80 ms 11864 KB Correct
233 Correct 94 ms 14108 KB Correct
234 Correct 100 ms 11400 KB Correct
235 Correct 117 ms 10312 KB Correct
236 Correct 54 ms 5900 KB Correct
237 Correct 55 ms 5896 KB Correct
238 Correct 56 ms 5992 KB Correct
239 Correct 43 ms 4544 KB Correct
240 Correct 72 ms 8204 KB Correct
241 Correct 82 ms 7756 KB Correct
242 Correct 83 ms 7844 KB Correct
243 Correct 84 ms 7948 KB Correct
244 Correct 82 ms 7764 KB Correct
245 Correct 81 ms 7964 KB Correct
246 Correct 90 ms 7860 KB Correct
247 Correct 75 ms 7964 KB Correct
248 Correct 76 ms 8008 KB Correct
249 Correct 78 ms 7840 KB Correct
250 Correct 83 ms 7772 KB Correct
251 Correct 91 ms 7932 KB Correct
252 Correct 91 ms 8016 KB Correct
253 Correct 96 ms 7924 KB Correct
254 Correct 87 ms 8204 KB Correct
255 Correct 86 ms 7652 KB Correct
256 Correct 82 ms 7836 KB Correct
257 Correct 73 ms 8008 KB Correct
258 Correct 89 ms 8192 KB Correct
259 Correct 82 ms 8032 KB Correct
260 Correct 82 ms 7844 KB Correct
261 Correct 72 ms 7988 KB Correct
262 Correct 88 ms 7980 KB Correct
263 Correct 89 ms 8024 KB Correct
264 Correct 88 ms 7824 KB Correct
265 Correct 61 ms 5968 KB Correct
266 Correct 56 ms 6140 KB Correct
267 Correct 55 ms 5976 KB Correct
268 Correct 60 ms 6004 KB Correct
269 Correct 57 ms 5896 KB Correct
270 Correct 62 ms 5940 KB Correct
271 Correct 56 ms 5788 KB Correct
272 Correct 57 ms 5880 KB Correct
273 Correct 69 ms 5988 KB Correct
274 Correct 51 ms 5868 KB Correct
275 Correct 57 ms 6400 KB Correct
276 Correct 54 ms 6056 KB Correct
277 Correct 53 ms 5812 KB Correct
278 Correct 57 ms 5888 KB Correct
279 Correct 54 ms 5796 KB Correct
280 Correct 69 ms 8280 KB Correct
281 Correct 84 ms 8284 KB Correct
282 Correct 87 ms 8196 KB Correct
283 Correct 87 ms 8268 KB Correct
284 Correct 87 ms 8092 KB Correct
285 Correct 80 ms 8272 KB Correct
286 Correct 93 ms 8336 KB Correct
287 Correct 88 ms 8416 KB Correct
288 Correct 84 ms 8304 KB Correct
289 Correct 79 ms 8264 KB Correct