Submission #1070528

# Submission time Handle Problem Language Result Execution time Memory
1070528 2024-08-22T15:00:19 Z GrindMachine The Ties That Guide Us (CEOI23_incursion) C++17
60 / 100
303 ms 10800 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);

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

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

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

    rep(j,sz(centroids)){
        if(centroids[j] != r){
            ans[centroids[j]-1] = 0;
        }
    }

    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(count(all(centroids),curr)){
            break;
        }

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

    if(count(all(centroids),curr)){
        if(cnt){
            r = curr;
        }
        else{
            int other = curr^centroids[0]^centroids[1];
            r = curr = other;
            visit(r);
        }
    }

    dfs(r,-1,dfs);
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

    while(true){
        vector<pii> ord;
        map<int,vector<int>> mp;
        trav(v,adj[curr]){
            if(v == par[curr] or count(all(centroids),v)) conts;
            mp[subsiz[v]].pb(v);
        }

        for(auto it = mp.rbegin(); it != mp.rend(); ++it){
            shuffle(all(it->ss),rng);
            trav(v,it->ss) ord.pb({subsiz[v],v});
        }

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

        if(curr == r and nxt == -1){
            nxt = r^centroids[0]^centroids[1];
            visit(nxt);
        }

        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);
      |                  ~~~~~~~~~~~~~~~^~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 768 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 217 ms 9768 KB Correct
2 Correct 210 ms 10024 KB Correct
3 Correct 99 ms 10340 KB Correct
4 Correct 111 ms 10460 KB Correct
5 Correct 222 ms 10320 KB Correct
6 Correct 88 ms 10396 KB Correct
7 Correct 82 ms 9888 KB Correct
8 Correct 227 ms 10240 KB Correct
9 Correct 221 ms 10316 KB Correct
10 Correct 142 ms 10080 KB Correct
11 Correct 100 ms 10292 KB Correct
12 Correct 254 ms 9908 KB Correct
13 Correct 84 ms 9636 KB Correct
14 Correct 86 ms 9808 KB Correct
15 Correct 211 ms 10336 KB Correct
16 Correct 227 ms 10716 KB Correct
17 Correct 128 ms 9628 KB Correct
18 Correct 101 ms 9884 KB Correct
19 Correct 153 ms 9884 KB Correct
20 Correct 86 ms 10332 KB Correct
21 Correct 80 ms 9884 KB Correct
22 Correct 212 ms 9924 KB Correct
23 Correct 232 ms 9884 KB Correct
24 Correct 97 ms 9884 KB Correct
25 Correct 97 ms 10332 KB Correct
26 Correct 93 ms 9560 KB Correct
27 Correct 86 ms 9728 KB Correct
28 Correct 86 ms 10060 KB Correct
29 Correct 220 ms 10272 KB Correct
30 Correct 200 ms 9672 KB Correct
31 Correct 86 ms 10660 KB Correct
32 Correct 257 ms 10216 KB Correct
33 Correct 257 ms 10260 KB Correct
34 Correct 89 ms 9556 KB Correct
35 Correct 89 ms 9376 KB Correct
36 Correct 205 ms 9884 KB Correct
37 Correct 242 ms 9816 KB Correct
38 Correct 259 ms 10452 KB Correct
39 Correct 166 ms 10448 KB Correct
40 Correct 214 ms 10524 KB Correct
41 Correct 81 ms 10140 KB Correct
42 Correct 90 ms 9968 KB Correct
43 Correct 191 ms 10272 KB Correct
44 Correct 179 ms 9652 KB Correct
45 Correct 81 ms 9996 KB Correct
46 Correct 89 ms 9980 KB Correct
47 Correct 98 ms 10320 KB Correct
48 Correct 81 ms 9388 KB Correct
49 Correct 83 ms 10208 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 84 ms 8012 KB Correct
2 Correct 92 ms 8012 KB Correct
3 Correct 102 ms 7936 KB Correct
4 Correct 98 ms 9040 KB Correct
5 Correct 123 ms 9040 KB Correct
6 Correct 180 ms 9200 KB Correct
7 Correct 82 ms 7496 KB Correct
8 Correct 77 ms 7680 KB Correct
9 Correct 73 ms 7752 KB Correct
10 Correct 88 ms 7676 KB Correct
11 Correct 95 ms 7756 KB Correct
12 Correct 83 ms 7696 KB Correct
13 Correct 88 ms 7680 KB Correct
14 Correct 67 ms 5980 KB Correct
15 Correct 59 ms 5940 KB Correct
16 Correct 88 ms 7500 KB Correct
17 Correct 101 ms 7488 KB Correct
18 Correct 78 ms 7764 KB Correct
19 Correct 80 ms 7880 KB Correct
20 Correct 46 ms 5924 KB Correct
21 Correct 59 ms 5888 KB Correct
22 Correct 67 ms 6044 KB Correct
23 Correct 50 ms 5828 KB Correct
24 Correct 59 ms 5892 KB Correct
25 Correct 64 ms 5860 KB Correct
26 Correct 100 ms 7792 KB Correct
27 Correct 82 ms 7836 KB Correct
28 Correct 79 ms 7768 KB Correct
29 Correct 78 ms 7840 KB Correct
30 Correct 81 ms 7768 KB Correct
31 Correct 75 ms 7800 KB Correct
32 Correct 84 ms 7780 KB Correct
33 Correct 78 ms 7836 KB Correct
34 Correct 82 ms 8044 KB Correct
35 Correct 83 ms 7836 KB Correct
36 Correct 82 ms 8028 KB Correct
37 Correct 87 ms 7760 KB Correct
38 Correct 80 ms 7840 KB Correct
39 Correct 87 ms 8096 KB Correct
40 Correct 83 ms 7840 KB Correct
41 Correct 84 ms 7836 KB Correct
42 Correct 74 ms 7840 KB Correct
43 Correct 83 ms 7920 KB Correct
44 Correct 78 ms 7836 KB Correct
45 Correct 77 ms 7752 KB Correct
46 Correct 81 ms 7844 KB Correct
47 Correct 84 ms 8012 KB Correct
48 Correct 77 ms 8028 KB Correct
49 Correct 86 ms 7664 KB Correct
50 Correct 79 ms 7768 KB Correct
51 Correct 77 ms 8020 KB Correct
52 Correct 81 ms 7836 KB Correct
53 Correct 88 ms 7696 KB Correct
54 Correct 84 ms 8096 KB Correct
55 Correct 73 ms 7844 KB Correct
56 Correct 77 ms 7940 KB Correct
57 Correct 76 ms 7844 KB Correct
58 Correct 79 ms 8016 KB Correct
59 Correct 89 ms 8180 KB Correct
60 Correct 83 ms 7780 KB Correct
61 Correct 75 ms 7840 KB Correct
62 Correct 82 ms 8108 KB Correct
63 Correct 82 ms 8024 KB Correct
64 Correct 81 ms 7748 KB Correct
65 Correct 81 ms 7952 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 768 KB Correct
2 Correct 217 ms 9768 KB Correct
3 Correct 210 ms 10024 KB Correct
4 Correct 99 ms 10340 KB Correct
5 Correct 111 ms 10460 KB Correct
6 Correct 222 ms 10320 KB Correct
7 Correct 88 ms 10396 KB Correct
8 Correct 82 ms 9888 KB Correct
9 Correct 227 ms 10240 KB Correct
10 Correct 221 ms 10316 KB Correct
11 Correct 142 ms 10080 KB Correct
12 Correct 100 ms 10292 KB Correct
13 Correct 254 ms 9908 KB Correct
14 Correct 84 ms 9636 KB Correct
15 Correct 86 ms 9808 KB Correct
16 Correct 211 ms 10336 KB Correct
17 Correct 227 ms 10716 KB Correct
18 Correct 128 ms 9628 KB Correct
19 Correct 101 ms 9884 KB Correct
20 Correct 153 ms 9884 KB Correct
21 Correct 86 ms 10332 KB Correct
22 Correct 80 ms 9884 KB Correct
23 Correct 212 ms 9924 KB Correct
24 Correct 232 ms 9884 KB Correct
25 Correct 97 ms 9884 KB Correct
26 Correct 97 ms 10332 KB Correct
27 Correct 93 ms 9560 KB Correct
28 Correct 86 ms 9728 KB Correct
29 Correct 86 ms 10060 KB Correct
30 Correct 220 ms 10272 KB Correct
31 Correct 200 ms 9672 KB Correct
32 Correct 86 ms 10660 KB Correct
33 Correct 257 ms 10216 KB Correct
34 Correct 257 ms 10260 KB Correct
35 Correct 89 ms 9556 KB Correct
36 Correct 89 ms 9376 KB Correct
37 Correct 205 ms 9884 KB Correct
38 Correct 242 ms 9816 KB Correct
39 Correct 259 ms 10452 KB Correct
40 Correct 166 ms 10448 KB Correct
41 Correct 214 ms 10524 KB Correct
42 Correct 81 ms 10140 KB Correct
43 Correct 90 ms 9968 KB Correct
44 Correct 191 ms 10272 KB Correct
45 Correct 179 ms 9652 KB Correct
46 Correct 81 ms 9996 KB Correct
47 Correct 89 ms 9980 KB Correct
48 Correct 98 ms 10320 KB Correct
49 Correct 81 ms 9388 KB Correct
50 Correct 83 ms 10208 KB Correct
51 Correct 84 ms 8012 KB Correct
52 Correct 92 ms 8012 KB Correct
53 Correct 102 ms 7936 KB Correct
54 Correct 98 ms 9040 KB Correct
55 Correct 123 ms 9040 KB Correct
56 Correct 180 ms 9200 KB Correct
57 Correct 82 ms 7496 KB Correct
58 Correct 77 ms 7680 KB Correct
59 Correct 73 ms 7752 KB Correct
60 Correct 88 ms 7676 KB Correct
61 Correct 95 ms 7756 KB Correct
62 Correct 83 ms 7696 KB Correct
63 Correct 88 ms 7680 KB Correct
64 Correct 67 ms 5980 KB Correct
65 Correct 59 ms 5940 KB Correct
66 Correct 88 ms 7500 KB Correct
67 Correct 101 ms 7488 KB Correct
68 Correct 78 ms 7764 KB Correct
69 Correct 80 ms 7880 KB Correct
70 Correct 46 ms 5924 KB Correct
71 Correct 59 ms 5888 KB Correct
72 Correct 67 ms 6044 KB Correct
73 Correct 50 ms 5828 KB Correct
74 Correct 59 ms 5892 KB Correct
75 Correct 64 ms 5860 KB Correct
76 Correct 100 ms 7792 KB Correct
77 Correct 82 ms 7836 KB Correct
78 Correct 79 ms 7768 KB Correct
79 Correct 78 ms 7840 KB Correct
80 Correct 81 ms 7768 KB Correct
81 Correct 75 ms 7800 KB Correct
82 Correct 84 ms 7780 KB Correct
83 Correct 78 ms 7836 KB Correct
84 Correct 82 ms 8044 KB Correct
85 Correct 83 ms 7836 KB Correct
86 Correct 82 ms 8028 KB Correct
87 Correct 87 ms 7760 KB Correct
88 Correct 80 ms 7840 KB Correct
89 Correct 87 ms 8096 KB Correct
90 Correct 83 ms 7840 KB Correct
91 Correct 84 ms 7836 KB Correct
92 Correct 74 ms 7840 KB Correct
93 Correct 83 ms 7920 KB Correct
94 Correct 78 ms 7836 KB Correct
95 Correct 77 ms 7752 KB Correct
96 Correct 81 ms 7844 KB Correct
97 Correct 84 ms 8012 KB Correct
98 Correct 77 ms 8028 KB Correct
99 Correct 86 ms 7664 KB Correct
100 Correct 79 ms 7768 KB Correct
101 Correct 77 ms 8020 KB Correct
102 Correct 81 ms 7836 KB Correct
103 Correct 88 ms 7696 KB Correct
104 Correct 84 ms 8096 KB Correct
105 Correct 73 ms 7844 KB Correct
106 Correct 77 ms 7940 KB Correct
107 Correct 76 ms 7844 KB Correct
108 Correct 79 ms 8016 KB Correct
109 Correct 89 ms 8180 KB Correct
110 Correct 83 ms 7780 KB Correct
111 Correct 75 ms 7840 KB Correct
112 Correct 82 ms 8108 KB Correct
113 Correct 82 ms 8024 KB Correct
114 Correct 81 ms 7748 KB Correct
115 Correct 81 ms 7952 KB Correct
116 Correct 84 ms 7836 KB Correct
117 Correct 82 ms 7792 KB Correct
118 Correct 86 ms 7836 KB Correct
119 Correct 86 ms 8064 KB Correct
120 Correct 75 ms 7976 KB Correct
121 Correct 83 ms 8084 KB Correct
122 Correct 80 ms 7836 KB Correct
123 Correct 94 ms 9036 KB Correct
124 Correct 137 ms 9144 KB Correct
125 Correct 144 ms 8972 KB Correct
126 Correct 82 ms 7552 KB Correct
127 Correct 79 ms 7840 KB Correct
128 Correct 74 ms 7768 KB Correct
129 Correct 76 ms 7588 KB Correct
130 Correct 83 ms 7704 KB Correct
131 Correct 78 ms 7764 KB Correct
132 Correct 82 ms 7504 KB Correct
133 Correct 59 ms 6048 KB Correct
134 Correct 72 ms 5964 KB Correct
135 Correct 81 ms 7752 KB Correct
136 Correct 89 ms 7756 KB Correct
137 Correct 92 ms 7924 KB Correct
138 Correct 87 ms 7772 KB Correct
139 Correct 63 ms 5892 KB Correct
140 Correct 66 ms 5872 KB Correct
141 Correct 57 ms 5896 KB Correct
142 Correct 57 ms 5952 KB Correct
143 Correct 69 ms 5976 KB Correct
144 Correct 63 ms 5892 KB Correct
145 Correct 76 ms 7860 KB Correct
146 Correct 82 ms 7840 KB Correct
147 Correct 74 ms 7772 KB Correct
148 Correct 70 ms 7840 KB Correct
149 Correct 87 ms 7796 KB Correct
150 Correct 80 ms 7692 KB Correct
151 Correct 79 ms 7916 KB Correct
152 Correct 72 ms 8036 KB Correct
153 Correct 84 ms 7756 KB Correct
154 Correct 79 ms 7696 KB Correct
155 Correct 81 ms 7836 KB Correct
156 Correct 92 ms 7948 KB Correct
157 Correct 79 ms 7936 KB Correct
158 Correct 80 ms 8024 KB Correct
159 Correct 97 ms 8012 KB Correct
160 Correct 86 ms 7756 KB Correct
161 Correct 86 ms 7812 KB Correct
162 Correct 78 ms 8028 KB Correct
163 Correct 84 ms 8048 KB Correct
164 Correct 90 ms 7596 KB Correct
165 Correct 81 ms 7868 KB Correct
166 Correct 90 ms 8028 KB Correct
167 Correct 77 ms 8032 KB Correct
168 Correct 86 ms 7688 KB Correct
169 Correct 82 ms 7756 KB Correct
170 Correct 78 ms 7836 KB Correct
171 Correct 86 ms 8096 KB Correct
172 Correct 95 ms 7772 KB Correct
173 Correct 82 ms 7768 KB Correct
174 Correct 81 ms 7756 KB Correct
175 Correct 90 ms 7848 KB Correct
176 Correct 84 ms 7648 KB Correct
177 Correct 82 ms 7880 KB Correct
178 Correct 84 ms 8144 KB Correct
179 Correct 83 ms 7772 KB Correct
180 Correct 79 ms 7860 KB Correct
181 Correct 80 ms 7964 KB Correct
182 Correct 83 ms 7920 KB Correct
183 Correct 80 ms 7688 KB Correct
184 Correct 77 ms 7844 KB Correct
185 Correct 229 ms 9944 KB Correct
186 Correct 210 ms 10276 KB Correct
187 Correct 113 ms 10396 KB Correct
188 Correct 109 ms 10540 KB Correct
189 Correct 182 ms 10316 KB Correct
190 Correct 86 ms 10484 KB Correct
191 Correct 80 ms 9748 KB Correct
192 Correct 227 ms 10072 KB Correct
193 Correct 220 ms 10196 KB Correct
194 Correct 159 ms 10012 KB Correct
195 Correct 111 ms 10488 KB Correct
196 Correct 303 ms 10004 KB Correct
197 Correct 75 ms 9628 KB Correct
198 Correct 87 ms 10084 KB Correct
199 Correct 228 ms 10328 KB Correct
200 Correct 220 ms 10800 KB Correct
201 Correct 134 ms 9884 KB Correct
202 Correct 96 ms 9816 KB Correct
203 Correct 173 ms 9672 KB Correct
204 Correct 93 ms 10152 KB Correct
205 Correct 82 ms 9892 KB Correct
206 Correct 208 ms 9984 KB Correct
207 Correct 223 ms 10044 KB Correct
208 Correct 98 ms 10144 KB Correct
209 Correct 104 ms 10340 KB Correct
210 Correct 89 ms 9628 KB Correct
211 Correct 87 ms 9884 KB Correct
212 Correct 82 ms 10068 KB Correct
213 Correct 218 ms 10244 KB Correct
214 Correct 221 ms 9740 KB Correct
215 Correct 81 ms 10336 KB Correct
216 Correct 244 ms 10236 KB Correct
217 Correct 230 ms 10196 KB Correct
218 Correct 91 ms 9660 KB Correct
219 Correct 88 ms 9556 KB Correct
220 Correct 226 ms 10244 KB Correct
221 Correct 221 ms 10068 KB Correct
222 Correct 274 ms 10508 KB Correct
223 Correct 174 ms 10452 KB Correct
224 Correct 216 ms 10144 KB Correct
225 Correct 78 ms 10276 KB Correct
226 Correct 84 ms 10148 KB Correct
227 Correct 241 ms 9820 KB Correct
228 Correct 233 ms 9664 KB Correct
229 Correct 89 ms 9820 KB Correct
230 Correct 83 ms 9888 KB Correct
231 Correct 95 ms 10020 KB Correct
232 Correct 89 ms 9628 KB Correct
233 Correct 86 ms 10396 KB Correct
234 Correct 94 ms 9116 KB Correct
235 Correct 104 ms 8800 KB Correct
236 Correct 60 ms 5892 KB Correct
237 Correct 63 ms 5872 KB Correct
238 Correct 61 ms 5900 KB Correct
239 Correct 47 ms 4692 KB Correct
240 Correct 92 ms 7836 KB Correct
241 Correct 79 ms 7836 KB Correct
242 Correct 88 ms 8028 KB Correct
243 Correct 93 ms 7860 KB Correct
244 Correct 82 ms 8028 KB Correct
245 Correct 84 ms 7764 KB Correct
246 Correct 83 ms 7844 KB Correct
247 Correct 90 ms 7768 KB Correct
248 Correct 79 ms 7756 KB Correct
249 Correct 84 ms 7908 KB Correct
250 Correct 82 ms 8024 KB Correct
251 Correct 92 ms 7776 KB Correct
252 Correct 71 ms 7760 KB Correct
253 Correct 84 ms 7948 KB Correct
254 Correct 96 ms 7664 KB Correct
255 Correct 81 ms 7848 KB Correct
256 Correct 91 ms 7836 KB Correct
257 Correct 82 ms 7836 KB Correct
258 Correct 79 ms 7884 KB Correct
259 Correct 83 ms 7848 KB Correct
260 Correct 82 ms 8024 KB Correct
261 Correct 87 ms 7664 KB Correct
262 Correct 80 ms 7948 KB Correct
263 Correct 89 ms 7668 KB Correct
264 Correct 86 ms 8020 KB Correct
265 Incorrect 62 ms 5964 KB Not correct
266 Halted 0 ms 0 KB -