Submission #1070516

# Submission time Handle Problem Language Result Execution time Memory
1070516 2024-08-22T14:55:38 Z GrindMachine The Ties That Guide Us (CEOI23_incursion) C++17
60 / 100
270 ms 10908 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);
    
    while(true){
        vector<pii> ord;
        trav(v,adj[curr]){
            if(v == par[curr] or count(all(centroids),v)) 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(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 0 ms 768 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 201 ms 9772 KB Correct
2 Correct 212 ms 10016 KB Correct
3 Correct 130 ms 10420 KB Correct
4 Correct 104 ms 10396 KB Correct
5 Correct 216 ms 10312 KB Correct
6 Correct 86 ms 10620 KB Correct
7 Correct 95 ms 9736 KB Correct
8 Correct 194 ms 10000 KB Correct
9 Correct 206 ms 10252 KB Correct
10 Correct 147 ms 10076 KB Correct
11 Correct 95 ms 10520 KB Correct
12 Correct 263 ms 9868 KB Correct
13 Correct 86 ms 9560 KB Correct
14 Correct 92 ms 9820 KB Correct
15 Correct 225 ms 10240 KB Correct
16 Correct 219 ms 10792 KB Correct
17 Correct 127 ms 9596 KB Correct
18 Correct 104 ms 10164 KB Correct
19 Correct 147 ms 9812 KB Correct
20 Correct 94 ms 10324 KB Correct
21 Correct 80 ms 10080 KB Correct
22 Correct 219 ms 9908 KB Correct
23 Correct 231 ms 10328 KB Correct
24 Correct 87 ms 9732 KB Correct
25 Correct 95 ms 10336 KB Correct
26 Correct 90 ms 9824 KB Correct
27 Correct 87 ms 9888 KB Correct
28 Correct 83 ms 10080 KB Correct
29 Correct 217 ms 10064 KB Correct
30 Correct 208 ms 9572 KB Correct
31 Correct 90 ms 10360 KB Correct
32 Correct 270 ms 10156 KB Correct
33 Correct 257 ms 10200 KB Correct
34 Correct 91 ms 9752 KB Correct
35 Correct 82 ms 9504 KB Correct
36 Correct 214 ms 10272 KB Correct
37 Correct 228 ms 10032 KB Correct
38 Correct 252 ms 10504 KB Correct
39 Correct 158 ms 10640 KB Correct
40 Correct 214 ms 10356 KB Correct
41 Correct 90 ms 10212 KB Correct
42 Correct 83 ms 10140 KB Correct
43 Correct 240 ms 10088 KB Correct
44 Correct 197 ms 9500 KB Correct
45 Correct 112 ms 9804 KB Correct
46 Correct 96 ms 9732 KB Correct
47 Correct 119 ms 9984 KB Correct
48 Correct 101 ms 9476 KB Correct
49 Correct 87 ms 10488 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 89 ms 7944 KB Correct
2 Correct 94 ms 8064 KB Correct
3 Correct 107 ms 8128 KB Correct
4 Correct 101 ms 9220 KB Correct
5 Correct 129 ms 9008 KB Correct
6 Correct 163 ms 9136 KB Correct
7 Correct 96 ms 7708 KB Correct
8 Correct 84 ms 7756 KB Correct
9 Correct 87 ms 7712 KB Correct
10 Correct 105 ms 7656 KB Correct
11 Correct 98 ms 7720 KB Correct
12 Correct 98 ms 7668 KB Correct
13 Correct 98 ms 7580 KB Correct
14 Correct 66 ms 5956 KB Correct
15 Correct 53 ms 6012 KB Correct
16 Correct 82 ms 7668 KB Correct
17 Correct 96 ms 7692 KB Correct
18 Correct 91 ms 7676 KB Correct
19 Correct 83 ms 7668 KB Correct
20 Correct 66 ms 5872 KB Correct
21 Correct 57 ms 6204 KB Correct
22 Correct 48 ms 6132 KB Correct
23 Correct 63 ms 5876 KB Correct
24 Correct 62 ms 5884 KB Correct
25 Correct 56 ms 5800 KB Correct
26 Correct 84 ms 8360 KB Correct
27 Correct 78 ms 8008 KB Correct
28 Correct 84 ms 7840 KB Correct
29 Correct 82 ms 7688 KB Correct
30 Correct 89 ms 8012 KB Correct
31 Correct 91 ms 7844 KB Correct
32 Correct 89 ms 8020 KB Correct
33 Correct 79 ms 7768 KB Correct
34 Correct 73 ms 7760 KB Correct
35 Correct 93 ms 7656 KB Correct
36 Correct 83 ms 7840 KB Correct
37 Correct 81 ms 8092 KB Correct
38 Correct 81 ms 7836 KB Correct
39 Correct 82 ms 7848 KB Correct
40 Correct 78 ms 7760 KB Correct
41 Correct 86 ms 7868 KB Correct
42 Correct 75 ms 7768 KB Correct
43 Correct 87 ms 7664 KB Correct
44 Correct 80 ms 8028 KB Correct
45 Correct 81 ms 7832 KB Correct
46 Correct 81 ms 7756 KB Correct
47 Correct 81 ms 8040 KB Correct
48 Correct 82 ms 7776 KB Correct
49 Correct 79 ms 7580 KB Correct
50 Correct 83 ms 7840 KB Correct
51 Correct 87 ms 7772 KB Correct
52 Correct 83 ms 8012 KB Correct
53 Correct 81 ms 7584 KB Correct
54 Correct 80 ms 7840 KB Correct
55 Correct 81 ms 7508 KB Correct
56 Correct 77 ms 8092 KB Correct
57 Correct 87 ms 7676 KB Correct
58 Correct 83 ms 7776 KB Correct
59 Correct 84 ms 8220 KB Correct
60 Correct 80 ms 7704 KB Correct
61 Correct 76 ms 8036 KB Correct
62 Correct 94 ms 7960 KB Correct
63 Correct 80 ms 7840 KB Correct
64 Correct 77 ms 7772 KB Correct
65 Correct 70 ms 8024 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 768 KB Correct
2 Correct 201 ms 9772 KB Correct
3 Correct 212 ms 10016 KB Correct
4 Correct 130 ms 10420 KB Correct
5 Correct 104 ms 10396 KB Correct
6 Correct 216 ms 10312 KB Correct
7 Correct 86 ms 10620 KB Correct
8 Correct 95 ms 9736 KB Correct
9 Correct 194 ms 10000 KB Correct
10 Correct 206 ms 10252 KB Correct
11 Correct 147 ms 10076 KB Correct
12 Correct 95 ms 10520 KB Correct
13 Correct 263 ms 9868 KB Correct
14 Correct 86 ms 9560 KB Correct
15 Correct 92 ms 9820 KB Correct
16 Correct 225 ms 10240 KB Correct
17 Correct 219 ms 10792 KB Correct
18 Correct 127 ms 9596 KB Correct
19 Correct 104 ms 10164 KB Correct
20 Correct 147 ms 9812 KB Correct
21 Correct 94 ms 10324 KB Correct
22 Correct 80 ms 10080 KB Correct
23 Correct 219 ms 9908 KB Correct
24 Correct 231 ms 10328 KB Correct
25 Correct 87 ms 9732 KB Correct
26 Correct 95 ms 10336 KB Correct
27 Correct 90 ms 9824 KB Correct
28 Correct 87 ms 9888 KB Correct
29 Correct 83 ms 10080 KB Correct
30 Correct 217 ms 10064 KB Correct
31 Correct 208 ms 9572 KB Correct
32 Correct 90 ms 10360 KB Correct
33 Correct 270 ms 10156 KB Correct
34 Correct 257 ms 10200 KB Correct
35 Correct 91 ms 9752 KB Correct
36 Correct 82 ms 9504 KB Correct
37 Correct 214 ms 10272 KB Correct
38 Correct 228 ms 10032 KB Correct
39 Correct 252 ms 10504 KB Correct
40 Correct 158 ms 10640 KB Correct
41 Correct 214 ms 10356 KB Correct
42 Correct 90 ms 10212 KB Correct
43 Correct 83 ms 10140 KB Correct
44 Correct 240 ms 10088 KB Correct
45 Correct 197 ms 9500 KB Correct
46 Correct 112 ms 9804 KB Correct
47 Correct 96 ms 9732 KB Correct
48 Correct 119 ms 9984 KB Correct
49 Correct 101 ms 9476 KB Correct
50 Correct 87 ms 10488 KB Correct
51 Correct 89 ms 7944 KB Correct
52 Correct 94 ms 8064 KB Correct
53 Correct 107 ms 8128 KB Correct
54 Correct 101 ms 9220 KB Correct
55 Correct 129 ms 9008 KB Correct
56 Correct 163 ms 9136 KB Correct
57 Correct 96 ms 7708 KB Correct
58 Correct 84 ms 7756 KB Correct
59 Correct 87 ms 7712 KB Correct
60 Correct 105 ms 7656 KB Correct
61 Correct 98 ms 7720 KB Correct
62 Correct 98 ms 7668 KB Correct
63 Correct 98 ms 7580 KB Correct
64 Correct 66 ms 5956 KB Correct
65 Correct 53 ms 6012 KB Correct
66 Correct 82 ms 7668 KB Correct
67 Correct 96 ms 7692 KB Correct
68 Correct 91 ms 7676 KB Correct
69 Correct 83 ms 7668 KB Correct
70 Correct 66 ms 5872 KB Correct
71 Correct 57 ms 6204 KB Correct
72 Correct 48 ms 6132 KB Correct
73 Correct 63 ms 5876 KB Correct
74 Correct 62 ms 5884 KB Correct
75 Correct 56 ms 5800 KB Correct
76 Correct 84 ms 8360 KB Correct
77 Correct 78 ms 8008 KB Correct
78 Correct 84 ms 7840 KB Correct
79 Correct 82 ms 7688 KB Correct
80 Correct 89 ms 8012 KB Correct
81 Correct 91 ms 7844 KB Correct
82 Correct 89 ms 8020 KB Correct
83 Correct 79 ms 7768 KB Correct
84 Correct 73 ms 7760 KB Correct
85 Correct 93 ms 7656 KB Correct
86 Correct 83 ms 7840 KB Correct
87 Correct 81 ms 8092 KB Correct
88 Correct 81 ms 7836 KB Correct
89 Correct 82 ms 7848 KB Correct
90 Correct 78 ms 7760 KB Correct
91 Correct 86 ms 7868 KB Correct
92 Correct 75 ms 7768 KB Correct
93 Correct 87 ms 7664 KB Correct
94 Correct 80 ms 8028 KB Correct
95 Correct 81 ms 7832 KB Correct
96 Correct 81 ms 7756 KB Correct
97 Correct 81 ms 8040 KB Correct
98 Correct 82 ms 7776 KB Correct
99 Correct 79 ms 7580 KB Correct
100 Correct 83 ms 7840 KB Correct
101 Correct 87 ms 7772 KB Correct
102 Correct 83 ms 8012 KB Correct
103 Correct 81 ms 7584 KB Correct
104 Correct 80 ms 7840 KB Correct
105 Correct 81 ms 7508 KB Correct
106 Correct 77 ms 8092 KB Correct
107 Correct 87 ms 7676 KB Correct
108 Correct 83 ms 7776 KB Correct
109 Correct 84 ms 8220 KB Correct
110 Correct 80 ms 7704 KB Correct
111 Correct 76 ms 8036 KB Correct
112 Correct 94 ms 7960 KB Correct
113 Correct 80 ms 7840 KB Correct
114 Correct 77 ms 7772 KB Correct
115 Correct 70 ms 8024 KB Correct
116 Correct 90 ms 8028 KB Correct
117 Correct 84 ms 8156 KB Correct
118 Correct 87 ms 7936 KB Correct
119 Correct 95 ms 7772 KB Correct
120 Correct 81 ms 8028 KB Correct
121 Correct 84 ms 7852 KB Correct
122 Correct 86 ms 7764 KB Correct
123 Correct 87 ms 9116 KB Correct
124 Correct 133 ms 9372 KB Correct
125 Correct 177 ms 8800 KB Correct
126 Correct 87 ms 7796 KB Correct
127 Correct 84 ms 7772 KB Correct
128 Correct 81 ms 7580 KB Correct
129 Correct 77 ms 7756 KB Correct
130 Correct 71 ms 7500 KB Correct
131 Correct 86 ms 7512 KB Correct
132 Correct 82 ms 7668 KB Correct
133 Correct 62 ms 5808 KB Correct
134 Correct 56 ms 6056 KB Correct
135 Correct 72 ms 7516 KB Correct
136 Correct 84 ms 7664 KB Correct
137 Correct 87 ms 7752 KB Correct
138 Correct 79 ms 7680 KB Correct
139 Correct 61 ms 5884 KB Correct
140 Correct 53 ms 5796 KB Correct
141 Correct 65 ms 6132 KB Correct
142 Correct 62 ms 5984 KB Correct
143 Correct 56 ms 5896 KB Correct
144 Correct 62 ms 5888 KB Correct
145 Correct 83 ms 8204 KB Correct
146 Correct 80 ms 7920 KB Correct
147 Correct 73 ms 7784 KB Correct
148 Correct 82 ms 7972 KB Correct
149 Correct 83 ms 7952 KB Correct
150 Correct 73 ms 7836 KB Correct
151 Correct 90 ms 8096 KB Correct
152 Correct 80 ms 7772 KB Correct
153 Correct 80 ms 7760 KB Correct
154 Correct 88 ms 7860 KB Correct
155 Correct 83 ms 7836 KB Correct
156 Correct 90 ms 7688 KB Correct
157 Correct 80 ms 7820 KB Correct
158 Correct 78 ms 7836 KB Correct
159 Correct 81 ms 7696 KB Correct
160 Correct 81 ms 8092 KB Correct
161 Correct 82 ms 7836 KB Correct
162 Correct 81 ms 8020 KB Correct
163 Correct 91 ms 7836 KB Correct
164 Correct 90 ms 7580 KB Correct
165 Correct 81 ms 7840 KB Correct
166 Correct 91 ms 7844 KB Correct
167 Correct 86 ms 7792 KB Correct
168 Correct 78 ms 7760 KB Correct
169 Correct 82 ms 7844 KB Correct
170 Correct 80 ms 8268 KB Correct
171 Correct 81 ms 8096 KB Correct
172 Correct 79 ms 7768 KB Correct
173 Correct 79 ms 8096 KB Correct
174 Correct 88 ms 7508 KB Correct
175 Correct 90 ms 8092 KB Correct
176 Correct 80 ms 7760 KB Correct
177 Correct 79 ms 8008 KB Correct
178 Correct 83 ms 8092 KB Correct
179 Correct 84 ms 7948 KB Correct
180 Correct 82 ms 7840 KB Correct
181 Correct 82 ms 8096 KB Correct
182 Correct 80 ms 8052 KB Correct
183 Correct 83 ms 7840 KB Correct
184 Correct 87 ms 7840 KB Correct
185 Correct 214 ms 9700 KB Correct
186 Correct 212 ms 9988 KB Correct
187 Correct 114 ms 10584 KB Correct
188 Correct 110 ms 10396 KB Correct
189 Correct 223 ms 10396 KB Correct
190 Correct 88 ms 10576 KB Correct
191 Correct 83 ms 9800 KB Correct
192 Correct 189 ms 10072 KB Correct
193 Correct 207 ms 10312 KB Correct
194 Correct 146 ms 10076 KB Correct
195 Correct 101 ms 10312 KB Correct
196 Correct 261 ms 9940 KB Correct
197 Correct 95 ms 9556 KB Correct
198 Correct 82 ms 9824 KB Correct
199 Correct 207 ms 10332 KB Correct
200 Correct 228 ms 10908 KB Correct
201 Correct 124 ms 9632 KB Correct
202 Correct 98 ms 9812 KB Correct
203 Correct 165 ms 9884 KB Correct
204 Correct 86 ms 10444 KB Correct
205 Correct 82 ms 9884 KB Correct
206 Correct 223 ms 9996 KB Correct
207 Correct 208 ms 10032 KB Correct
208 Correct 118 ms 9764 KB Correct
209 Correct 97 ms 10136 KB Correct
210 Correct 105 ms 9892 KB Correct
211 Correct 86 ms 9796 KB Correct
212 Correct 86 ms 10064 KB Correct
213 Correct 214 ms 10244 KB Correct
214 Correct 193 ms 9736 KB Correct
215 Correct 91 ms 10620 KB Correct
216 Correct 239 ms 10012 KB Correct
217 Correct 247 ms 10276 KB Correct
218 Correct 90 ms 9632 KB Correct
219 Correct 77 ms 9568 KB Correct
220 Correct 216 ms 10280 KB Correct
221 Correct 233 ms 10300 KB Correct
222 Correct 251 ms 10508 KB Correct
223 Correct 150 ms 10660 KB Correct
224 Correct 208 ms 10580 KB Correct
225 Correct 86 ms 10140 KB Correct
226 Correct 88 ms 10140 KB Correct
227 Correct 196 ms 10096 KB Correct
228 Correct 232 ms 9380 KB Correct
229 Correct 92 ms 9628 KB Correct
230 Correct 92 ms 9804 KB Correct
231 Correct 93 ms 10140 KB Correct
232 Correct 84 ms 9708 KB Correct
233 Correct 83 ms 10336 KB Correct
234 Correct 83 ms 8860 KB Correct
235 Correct 104 ms 8992 KB Correct
236 Correct 55 ms 6004 KB Correct
237 Correct 55 ms 6064 KB Correct
238 Correct 67 ms 6236 KB Correct
239 Correct 46 ms 4760 KB Correct
240 Correct 79 ms 8012 KB Correct
241 Correct 74 ms 8016 KB Correct
242 Correct 79 ms 7836 KB Correct
243 Correct 77 ms 7656 KB Correct
244 Correct 83 ms 8036 KB Correct
245 Correct 82 ms 7936 KB Correct
246 Correct 83 ms 8028 KB Correct
247 Correct 83 ms 8016 KB Correct
248 Correct 75 ms 7972 KB Correct
249 Correct 82 ms 8092 KB Correct
250 Correct 78 ms 7964 KB Correct
251 Correct 79 ms 7952 KB Correct
252 Correct 80 ms 7844 KB Correct
253 Correct 82 ms 7776 KB Correct
254 Correct 74 ms 7836 KB Correct
255 Correct 83 ms 7836 KB Correct
256 Correct 82 ms 7780 KB Correct
257 Correct 80 ms 7800 KB Correct
258 Correct 79 ms 7848 KB Correct
259 Correct 83 ms 7836 KB Correct
260 Correct 86 ms 7760 KB Correct
261 Correct 79 ms 7844 KB Correct
262 Correct 77 ms 8016 KB Correct
263 Correct 88 ms 8024 KB Correct
264 Correct 84 ms 7768 KB Correct
265 Incorrect 48 ms 5788 KB Not correct
266 Halted 0 ms 0 KB -