답안 #1070593

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1070593 2024-08-22T15:42:10 Z GrindMachine The Ties That Guide Us (CEOI23_incursion) C++17
100 / 100
308 ms 10844 KB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace std;
using namespace __gnu_pbds;

template<typename T> using Tree = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
typedef long long int ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL)
#define pb push_back
#define endl '\n'
#define sz(a) (int)a.size()
#define setbits(x) __builtin_popcountll(x)
#define ff first
#define ss second
#define conts continue
#define ceil2(x,y) ((x+y-1)/(y))
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define yes cout << "Yes" << endl
#define no cout << "No" << endl

#define rep(i,n) for(int i = 0; i < n; ++i)
#define rep1(i,n) for(int i = 1; i <= n; ++i)
#define rev(i,s,e) for(int i = s; i >= e; --i)
#define trav(i,a) for(auto &i : a)

template<typename T>
void amin(T &a, T b) {
    a = min(a,b);
}

template<typename T>
void amax(T &a, T b) {
    a = max(a,b);
}

#ifdef LOCAL
#include "debug.h"
#else
#define debug(...) 42
#endif

/*

read the edi a long time ago, dont really remember much from there

*/

const int MOD = 1e9 + 7;
const int N = 1e5 + 5;
const int inf1 = int(1e9) + 5;
const ll inf2 = ll(1e18) + 5;

#include "incursion.h"

std::vector<int> mark(std::vector<std::pair<int, int>> F, int safe) {
    // return {2, 2, 0};
    int n = sz(F)+1;
    vector<vector<int>> adj(n+5);
    for(auto [u,v] : F){
        adj[u].pb(v), adj[v].pb(u);
    }

    vector<int> par(n+5), subsiz(n+5);

    auto dfs = [&](int u, int p, auto &&dfs) -> void{
        par[u] = p;
        subsiz[u] = 1;
        trav(v,adj[u]){
            if(v == p) conts;
            dfs(v,u,dfs);
            subsiz[u] += subsiz[v];
        }
    };

    dfs(1,-1,dfs);

    vector<int> centroids;
    rep1(u,n){
        bool ok = true;
        trav(v,adj[u]){
            int s = subsiz[v];
            if(v == par[u]){
                s = n-subsiz[u];
            }
            if(s > n/2){
                ok = false;
            }
        }

        if(ok){
            centroids.pb(u);
        }
    }

    int siz = sz(centroids);
    assert(siz >= 1 and siz <= 2);

    auto can_reach = [&](int u, int p, auto &&can_reach) -> bool{
        bool ok = false;
        if(u == safe) ok = true;
        trav(v,adj[u]){
            if(v == p) conts;
            if(count(all(centroids),v)) conts;
            ok |= can_reach(v,u,can_reach);
        }
        return ok;
    };

    int r = -1;
    if(siz == 1){
        r = centroids[0];
    }
    else{
        rep(j,2){
            if(can_reach(centroids[j],-1,can_reach)){
                assert(r == -1);
                r = centroids[j];
            }
        }
    }

    assert(r != -1);
    dfs(r,-1,dfs);

    vector<int> ans(n);
    while(safe != -1){
        ans[safe-1] = 1;
        safe = par[safe];
    }

    return ans;
}

void locate(std::vector<std::pair<int, int>> F, int curr, int cnt) {
    int n = sz(F)+1;
    vector<vector<int>> adj(n+5);
    for(auto [u,v] : F){
        adj[u].pb(v), adj[v].pb(u);
    }

    vector<int> par(n+5), subsiz(n+5);

    auto dfs = [&](int u, int p, auto &&dfs) -> void{
        par[u] = p;
        subsiz[u] = 1;
        trav(v,adj[u]){
            if(v == p) conts;
            dfs(v,u,dfs);
            subsiz[u] += subsiz[v];
        }
    };

    dfs(1,-1,dfs);

    vector<int> centroids;
    rep1(u,n){
        bool ok = true;
        trav(v,adj[u]){
            int s = subsiz[v];
            if(v == par[u]){
                s = n-subsiz[u];
            }
            if(s > n/2){
                ok = false;
            }
        }

        if(ok){
            centroids.pb(u);
        }
    }

    int siz = sz(centroids);
    assert(siz >= 1 and siz <= 2);

    int r = centroids[0];
    dfs(r,-1,dfs);

    if(siz == 1){
        while(!cnt){
            cnt = visit(par[curr]);
            curr = par[curr];
        }

        while(true){
            vector<pii> ord;
            trav(v,adj[curr]){
                if(v == par[curr]) conts;
                ord.pb({subsiz[v],v});
            }
            sort(rall(ord));

            int nxt = -1;
            for(auto [s,v] : ord){
                int x = visit(v);
                if(x){
                    nxt = v;
                    break;
                }
                visit(curr);
            }

            if(nxt == -1) break;
            curr = nxt;
        }

        return;
    }

    while(!cnt){
        if(curr == r){
            curr = centroids[0]^centroids[1]^curr;
            visit(curr);
            break;
        }

        cnt = visit(par[curr]);
        curr = par[curr];
    }

    while(true){
        vector<pii> ord;
        trav(v,adj[curr]){
            if(v == par[curr]) conts;
            ord.pb({subsiz[v],v});
        }

        sort(rall(ord));

        int nxt = -1;
        for(auto [s,v] : ord){
            int x = visit(v);
            if(x){
                nxt = v;
                break;
            }
            visit(curr);
        }

        if(nxt == -1) break;
        curr = nxt;
    }

    // int x;
    // x = visit(3);
    // if (x != 2) {
    //     return;
    // }
    // x = visit(1);
    // if (x != 0) {
    //     return;
    // }
    // x = visit(3);
    // if (x != 2) {
    //     return;
    // }
    // x = visit(2);
    // if (x != 2) {
    //     return;
    // }
    // 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);
      |                  ~~~~~~~~~~~~~~~^~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 776 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 207 ms 9760 KB Correct
2 Correct 249 ms 9892 KB Correct
3 Correct 106 ms 10180 KB Correct
4 Correct 108 ms 10268 KB Correct
5 Correct 209 ms 10844 KB Correct
6 Correct 93 ms 10372 KB Correct
7 Correct 87 ms 9888 KB Correct
8 Correct 226 ms 10488 KB Correct
9 Correct 227 ms 10288 KB Correct
10 Correct 154 ms 10336 KB Correct
11 Correct 106 ms 10600 KB Correct
12 Correct 308 ms 10080 KB Correct
13 Correct 87 ms 9628 KB Correct
14 Correct 77 ms 9752 KB Correct
15 Correct 222 ms 10312 KB Correct
16 Correct 205 ms 10592 KB Correct
17 Correct 135 ms 9588 KB Correct
18 Correct 102 ms 9824 KB Correct
19 Correct 162 ms 9884 KB Correct
20 Correct 89 ms 10404 KB Correct
21 Correct 82 ms 9892 KB Correct
22 Correct 217 ms 9908 KB Correct
23 Correct 203 ms 10128 KB Correct
24 Correct 108 ms 9960 KB Correct
25 Correct 90 ms 10332 KB Correct
26 Correct 83 ms 9484 KB Correct
27 Correct 88 ms 9884 KB Correct
28 Correct 77 ms 10144 KB Correct
29 Correct 211 ms 10048 KB Correct
30 Correct 227 ms 9744 KB Correct
31 Correct 101 ms 10476 KB Correct
32 Correct 224 ms 10044 KB Correct
33 Correct 261 ms 10272 KB Correct
34 Correct 84 ms 9640 KB Correct
35 Correct 81 ms 9312 KB Correct
36 Correct 191 ms 10040 KB Correct
37 Correct 210 ms 10040 KB Correct
38 Correct 277 ms 10508 KB Correct
39 Correct 164 ms 10512 KB Correct
40 Correct 186 ms 10292 KB Correct
41 Correct 91 ms 10252 KB Correct
42 Correct 97 ms 10080 KB Correct
43 Correct 208 ms 10268 KB Correct
44 Correct 189 ms 9668 KB Correct
45 Correct 100 ms 9728 KB Correct
46 Correct 97 ms 9928 KB Correct
47 Correct 95 ms 10240 KB Correct
48 Correct 93 ms 9556 KB Correct
49 Correct 88 ms 10268 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 99 ms 7880 KB Correct
2 Correct 96 ms 8080 KB Correct
3 Correct 86 ms 8028 KB Correct
4 Correct 101 ms 9264 KB Correct
5 Correct 147 ms 9012 KB Correct
6 Correct 168 ms 8948 KB Correct
7 Correct 83 ms 7616 KB Correct
8 Correct 64 ms 7668 KB Correct
9 Correct 72 ms 7720 KB Correct
10 Correct 80 ms 7656 KB Correct
11 Correct 81 ms 7580 KB Correct
12 Correct 76 ms 7580 KB Correct
13 Correct 81 ms 7692 KB Correct
14 Correct 51 ms 5888 KB Correct
15 Correct 55 ms 5792 KB Correct
16 Correct 84 ms 7712 KB Correct
17 Correct 82 ms 7688 KB Correct
18 Correct 96 ms 7696 KB Correct
19 Correct 71 ms 7516 KB Correct
20 Correct 60 ms 5960 KB Correct
21 Correct 69 ms 5884 KB Correct
22 Correct 53 ms 5796 KB Correct
23 Correct 54 ms 5892 KB Correct
24 Correct 61 ms 5900 KB Correct
25 Correct 68 ms 5888 KB Correct
26 Correct 75 ms 8092 KB Correct
27 Correct 79 ms 7768 KB Correct
28 Correct 89 ms 8016 KB Correct
29 Correct 74 ms 7664 KB Correct
30 Correct 86 ms 8092 KB Correct
31 Correct 83 ms 7748 KB Correct
32 Correct 76 ms 7836 KB Correct
33 Correct 79 ms 7840 KB Correct
34 Correct 79 ms 7772 KB Correct
35 Correct 86 ms 7776 KB Correct
36 Correct 82 ms 8000 KB Correct
37 Correct 92 ms 7760 KB Correct
38 Correct 80 ms 8016 KB Correct
39 Correct 88 ms 7840 KB Correct
40 Correct 90 ms 7692 KB Correct
41 Correct 81 ms 7928 KB Correct
42 Correct 81 ms 7852 KB Correct
43 Correct 89 ms 8052 KB Correct
44 Correct 79 ms 8028 KB Correct
45 Correct 90 ms 7500 KB Correct
46 Correct 83 ms 8092 KB Correct
47 Correct 94 ms 8084 KB Correct
48 Correct 80 ms 8012 KB Correct
49 Correct 89 ms 7752 KB Correct
50 Correct 76 ms 8008 KB Correct
51 Correct 69 ms 7708 KB Correct
52 Correct 78 ms 8092 KB Correct
53 Correct 76 ms 7688 KB Correct
54 Correct 81 ms 7772 KB Correct
55 Correct 80 ms 7768 KB Correct
56 Correct 95 ms 7944 KB Correct
57 Correct 79 ms 7840 KB Correct
58 Correct 92 ms 7848 KB Correct
59 Correct 79 ms 7836 KB Correct
60 Correct 73 ms 7836 KB Correct
61 Correct 81 ms 8028 KB Correct
62 Correct 89 ms 8040 KB Correct
63 Correct 79 ms 7956 KB Correct
64 Correct 92 ms 7836 KB Correct
65 Correct 65 ms 7840 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 776 KB Correct
2 Correct 207 ms 9760 KB Correct
3 Correct 249 ms 9892 KB Correct
4 Correct 106 ms 10180 KB Correct
5 Correct 108 ms 10268 KB Correct
6 Correct 209 ms 10844 KB Correct
7 Correct 93 ms 10372 KB Correct
8 Correct 87 ms 9888 KB Correct
9 Correct 226 ms 10488 KB Correct
10 Correct 227 ms 10288 KB Correct
11 Correct 154 ms 10336 KB Correct
12 Correct 106 ms 10600 KB Correct
13 Correct 308 ms 10080 KB Correct
14 Correct 87 ms 9628 KB Correct
15 Correct 77 ms 9752 KB Correct
16 Correct 222 ms 10312 KB Correct
17 Correct 205 ms 10592 KB Correct
18 Correct 135 ms 9588 KB Correct
19 Correct 102 ms 9824 KB Correct
20 Correct 162 ms 9884 KB Correct
21 Correct 89 ms 10404 KB Correct
22 Correct 82 ms 9892 KB Correct
23 Correct 217 ms 9908 KB Correct
24 Correct 203 ms 10128 KB Correct
25 Correct 108 ms 9960 KB Correct
26 Correct 90 ms 10332 KB Correct
27 Correct 83 ms 9484 KB Correct
28 Correct 88 ms 9884 KB Correct
29 Correct 77 ms 10144 KB Correct
30 Correct 211 ms 10048 KB Correct
31 Correct 227 ms 9744 KB Correct
32 Correct 101 ms 10476 KB Correct
33 Correct 224 ms 10044 KB Correct
34 Correct 261 ms 10272 KB Correct
35 Correct 84 ms 9640 KB Correct
36 Correct 81 ms 9312 KB Correct
37 Correct 191 ms 10040 KB Correct
38 Correct 210 ms 10040 KB Correct
39 Correct 277 ms 10508 KB Correct
40 Correct 164 ms 10512 KB Correct
41 Correct 186 ms 10292 KB Correct
42 Correct 91 ms 10252 KB Correct
43 Correct 97 ms 10080 KB Correct
44 Correct 208 ms 10268 KB Correct
45 Correct 189 ms 9668 KB Correct
46 Correct 100 ms 9728 KB Correct
47 Correct 97 ms 9928 KB Correct
48 Correct 95 ms 10240 KB Correct
49 Correct 93 ms 9556 KB Correct
50 Correct 88 ms 10268 KB Correct
51 Correct 99 ms 7880 KB Correct
52 Correct 96 ms 8080 KB Correct
53 Correct 86 ms 8028 KB Correct
54 Correct 101 ms 9264 KB Correct
55 Correct 147 ms 9012 KB Correct
56 Correct 168 ms 8948 KB Correct
57 Correct 83 ms 7616 KB Correct
58 Correct 64 ms 7668 KB Correct
59 Correct 72 ms 7720 KB Correct
60 Correct 80 ms 7656 KB Correct
61 Correct 81 ms 7580 KB Correct
62 Correct 76 ms 7580 KB Correct
63 Correct 81 ms 7692 KB Correct
64 Correct 51 ms 5888 KB Correct
65 Correct 55 ms 5792 KB Correct
66 Correct 84 ms 7712 KB Correct
67 Correct 82 ms 7688 KB Correct
68 Correct 96 ms 7696 KB Correct
69 Correct 71 ms 7516 KB Correct
70 Correct 60 ms 5960 KB Correct
71 Correct 69 ms 5884 KB Correct
72 Correct 53 ms 5796 KB Correct
73 Correct 54 ms 5892 KB Correct
74 Correct 61 ms 5900 KB Correct
75 Correct 68 ms 5888 KB Correct
76 Correct 75 ms 8092 KB Correct
77 Correct 79 ms 7768 KB Correct
78 Correct 89 ms 8016 KB Correct
79 Correct 74 ms 7664 KB Correct
80 Correct 86 ms 8092 KB Correct
81 Correct 83 ms 7748 KB Correct
82 Correct 76 ms 7836 KB Correct
83 Correct 79 ms 7840 KB Correct
84 Correct 79 ms 7772 KB Correct
85 Correct 86 ms 7776 KB Correct
86 Correct 82 ms 8000 KB Correct
87 Correct 92 ms 7760 KB Correct
88 Correct 80 ms 8016 KB Correct
89 Correct 88 ms 7840 KB Correct
90 Correct 90 ms 7692 KB Correct
91 Correct 81 ms 7928 KB Correct
92 Correct 81 ms 7852 KB Correct
93 Correct 89 ms 8052 KB Correct
94 Correct 79 ms 8028 KB Correct
95 Correct 90 ms 7500 KB Correct
96 Correct 83 ms 8092 KB Correct
97 Correct 94 ms 8084 KB Correct
98 Correct 80 ms 8012 KB Correct
99 Correct 89 ms 7752 KB Correct
100 Correct 76 ms 8008 KB Correct
101 Correct 69 ms 7708 KB Correct
102 Correct 78 ms 8092 KB Correct
103 Correct 76 ms 7688 KB Correct
104 Correct 81 ms 7772 KB Correct
105 Correct 80 ms 7768 KB Correct
106 Correct 95 ms 7944 KB Correct
107 Correct 79 ms 7840 KB Correct
108 Correct 92 ms 7848 KB Correct
109 Correct 79 ms 7836 KB Correct
110 Correct 73 ms 7836 KB Correct
111 Correct 81 ms 8028 KB Correct
112 Correct 89 ms 8040 KB Correct
113 Correct 79 ms 7956 KB Correct
114 Correct 92 ms 7836 KB Correct
115 Correct 65 ms 7840 KB Correct
116 Correct 75 ms 8020 KB Correct
117 Correct 78 ms 8012 KB Correct
118 Correct 99 ms 7764 KB Correct
119 Correct 86 ms 7772 KB Correct
120 Correct 81 ms 7836 KB Correct
121 Correct 78 ms 8028 KB Correct
122 Correct 81 ms 7760 KB Correct
123 Correct 87 ms 9036 KB Correct
124 Correct 168 ms 9096 KB Correct
125 Correct 160 ms 8948 KB Correct
126 Correct 67 ms 7516 KB Correct
127 Correct 77 ms 7580 KB Correct
128 Correct 81 ms 7688 KB Correct
129 Correct 78 ms 7764 KB Correct
130 Correct 78 ms 7512 KB Correct
131 Correct 81 ms 7552 KB Correct
132 Correct 81 ms 7508 KB Correct
133 Correct 61 ms 5900 KB Correct
134 Correct 60 ms 5884 KB Correct
135 Correct 77 ms 7676 KB Correct
136 Correct 75 ms 7608 KB Correct
137 Correct 80 ms 7768 KB Correct
138 Correct 80 ms 7752 KB Correct
139 Correct 61 ms 5876 KB Correct
140 Correct 61 ms 5896 KB Correct
141 Correct 63 ms 5896 KB Correct
142 Correct 55 ms 5796 KB Correct
143 Correct 61 ms 5900 KB Correct
144 Correct 54 ms 5908 KB Correct
145 Correct 81 ms 7836 KB Correct
146 Correct 88 ms 7756 KB Correct
147 Correct 86 ms 7676 KB Correct
148 Correct 79 ms 7756 KB Correct
149 Correct 81 ms 8012 KB Correct
150 Correct 81 ms 7768 KB Correct
151 Correct 83 ms 7852 KB Correct
152 Correct 87 ms 7760 KB Correct
153 Correct 81 ms 8028 KB Correct
154 Correct 75 ms 7752 KB Correct
155 Correct 80 ms 7836 KB Correct
156 Correct 79 ms 7844 KB Correct
157 Correct 86 ms 7764 KB Correct
158 Correct 79 ms 8032 KB Correct
159 Correct 82 ms 8092 KB Correct
160 Correct 82 ms 7772 KB Correct
161 Correct 82 ms 7948 KB Correct
162 Correct 83 ms 7952 KB Correct
163 Correct 66 ms 8032 KB Correct
164 Correct 74 ms 7704 KB Correct
165 Correct 77 ms 8492 KB Correct
166 Correct 84 ms 7764 KB Correct
167 Correct 80 ms 7760 KB Correct
168 Correct 79 ms 7580 KB Correct
169 Correct 86 ms 7764 KB Correct
170 Correct 82 ms 7768 KB Correct
171 Correct 81 ms 7776 KB Correct
172 Correct 82 ms 7716 KB Correct
173 Correct 87 ms 7936 KB Correct
174 Correct 80 ms 7580 KB Correct
175 Correct 78 ms 8028 KB Correct
176 Correct 80 ms 7764 KB Correct
177 Correct 79 ms 7844 KB Correct
178 Correct 73 ms 8132 KB Correct
179 Correct 71 ms 7948 KB Correct
180 Correct 78 ms 8004 KB Correct
181 Correct 74 ms 8016 KB Correct
182 Correct 76 ms 8012 KB Correct
183 Correct 81 ms 7888 KB Correct
184 Correct 81 ms 8016 KB Correct
185 Correct 221 ms 9760 KB Correct
186 Correct 197 ms 10008 KB Correct
187 Correct 99 ms 10336 KB Correct
188 Correct 115 ms 10536 KB Correct
189 Correct 202 ms 10376 KB Correct
190 Correct 86 ms 10396 KB Correct
191 Correct 84 ms 9972 KB Correct
192 Correct 247 ms 9808 KB Correct
193 Correct 221 ms 10312 KB Correct
194 Correct 145 ms 9988 KB Correct
195 Correct 105 ms 10404 KB Correct
196 Correct 292 ms 9932 KB Correct
197 Correct 83 ms 9612 KB Correct
198 Correct 86 ms 9816 KB Correct
199 Correct 219 ms 10264 KB Correct
200 Correct 222 ms 10792 KB Correct
201 Correct 133 ms 9664 KB Correct
202 Correct 88 ms 9832 KB Correct
203 Correct 147 ms 9812 KB Correct
204 Correct 81 ms 10320 KB Correct
205 Correct 80 ms 9888 KB Correct
206 Correct 228 ms 10032 KB Correct
207 Correct 214 ms 10120 KB Correct
208 Correct 103 ms 10136 KB Correct
209 Correct 94 ms 10336 KB Correct
210 Correct 81 ms 9564 KB Correct
211 Correct 88 ms 9848 KB Correct
212 Correct 76 ms 10008 KB Correct
213 Correct 209 ms 10232 KB Correct
214 Correct 238 ms 9740 KB Correct
215 Correct 95 ms 10396 KB Correct
216 Correct 267 ms 10140 KB Correct
217 Correct 235 ms 10172 KB Correct
218 Correct 83 ms 9740 KB Correct
219 Correct 91 ms 9812 KB Correct
220 Correct 190 ms 10028 KB Correct
221 Correct 215 ms 10232 KB Correct
222 Correct 265 ms 10508 KB Correct
223 Correct 152 ms 10452 KB Correct
224 Correct 200 ms 10148 KB Correct
225 Correct 86 ms 10088 KB Correct
226 Correct 83 ms 10140 KB Correct
227 Correct 212 ms 10032 KB Correct
228 Correct 224 ms 9484 KB Correct
229 Correct 89 ms 9636 KB Correct
230 Correct 88 ms 9888 KB Correct
231 Correct 112 ms 10080 KB Correct
232 Correct 80 ms 9488 KB Correct
233 Correct 75 ms 10320 KB Correct
234 Correct 100 ms 9060 KB Correct
235 Correct 114 ms 9116 KB Correct
236 Correct 63 ms 6000 KB Correct
237 Correct 60 ms 5800 KB Correct
238 Correct 54 ms 5884 KB Correct
239 Correct 37 ms 4548 KB Correct
240 Correct 81 ms 7760 KB Correct
241 Correct 86 ms 7952 KB Correct
242 Correct 75 ms 8028 KB Correct
243 Correct 87 ms 7904 KB Correct
244 Correct 93 ms 7872 KB Correct
245 Correct 79 ms 7840 KB Correct
246 Correct 82 ms 7836 KB Correct
247 Correct 74 ms 7836 KB Correct
248 Correct 80 ms 7840 KB Correct
249 Correct 76 ms 8032 KB Correct
250 Correct 84 ms 8092 KB Correct
251 Correct 78 ms 7840 KB Correct
252 Correct 78 ms 7760 KB Correct
253 Correct 75 ms 7840 KB Correct
254 Correct 80 ms 8092 KB Correct
255 Correct 79 ms 7740 KB Correct
256 Correct 75 ms 7840 KB Correct
257 Correct 82 ms 7768 KB Correct
258 Correct 82 ms 7848 KB Correct
259 Correct 80 ms 7844 KB Correct
260 Correct 80 ms 7836 KB Correct
261 Correct 84 ms 7768 KB Correct
262 Correct 80 ms 8092 KB Correct
263 Correct 82 ms 7836 KB Correct
264 Correct 80 ms 8208 KB Correct
265 Correct 59 ms 6060 KB Correct
266 Correct 54 ms 5884 KB Correct
267 Correct 57 ms 6052 KB Correct
268 Correct 55 ms 5800 KB Correct
269 Correct 54 ms 5896 KB Correct
270 Correct 56 ms 5976 KB Correct
271 Correct 54 ms 5908 KB Correct
272 Correct 57 ms 5796 KB Correct
273 Correct 62 ms 6156 KB Correct
274 Correct 56 ms 5884 KB Correct
275 Correct 53 ms 6044 KB Correct
276 Correct 61 ms 5876 KB Correct
277 Correct 57 ms 5800 KB Correct
278 Correct 64 ms 5988 KB Correct
279 Correct 49 ms 6300 KB Correct
280 Correct 88 ms 7836 KB Correct
281 Correct 86 ms 7840 KB Correct
282 Correct 83 ms 7780 KB Correct
283 Correct 82 ms 7772 KB Correct
284 Correct 90 ms 7960 KB Correct
285 Correct 81 ms 8024 KB Correct
286 Correct 90 ms 7844 KB Correct
287 Correct 89 ms 7840 KB Correct
288 Correct 89 ms 8096 KB Correct
289 Correct 84 ms 8028 KB Correct