Submission #813586

# Submission time Handle Problem Language Result Execution time Memory
813586 2023-08-07T22:29:31 Z Username4132 Fountain Parks (IOI21_parks) C++17
70 / 100
530 ms 135620 KB
#include "parks.h"
#include <iostream>
#include <vector>
#include<map>
#include<algorithm>
#include<cassert>
using namespace std;
using pii = pair<int, int>;
using ll = long long;
#define forn(i, n) for(int i=0; i<(int)n; ++i)
#define forsn(i, s, n) for(int i=s; i<(int)n; ++i)
#define dforn(i, n) for(int i=n-1; i>=0; --i)
#define dforsn(i, s, n) for(int i=n-1; i>=s; --i)
#define PB push_back
#define F first
#define S second
#define MP make_pair

const int MAXN = 400010;
int n, eind, bi, curi, X[MAXN], Y[MAXN];
bool vis1[MAXN], vis2[MAXN], vis3[MAXN];
pii ptsInd[MAXN];
map<pii, int> mp;
map<pii, int> ben;
vector<pii> g1[MAXN], draw;
vector<int> g2[MAXN];
vector<int> g3[MAXN];
pii nam[MAXN];

int getInd(pii b){
    auto itr = ben.find(b);
    if(itr!=ben.end()) return itr->S;
    else{
        ben[b]=bi;
        ptsInd[bi]=b;
        ++bi;
        return bi-1;
    }
}

void sed(int u, int v){
    int ind = curi++;
    nam[ind] = {u, v};
    int ux = X[u], uy = Y[u];
    int vx = X[v], vy = Y[v];

    if(ux==vx){
        if(uy>vy) swap(uy, vy);
        int i = getInd({ux-1, uy+1});
        int j = getInd({ux+1, uy+1});
        g2[ind].PB(i), g2[ind].PB(j);
        g3[i].PB(ind), g3[j].PB(ind);
    }
    else{
        if(ux>vx) swap(ux, vx);
        int i = getInd({ux+1, uy-1});
        int j = getInd({ux+1, uy+1});
        g2[ind].PB(i), g2[ind].PB(j);
        g3[i].PB(ind), g3[j].PB(ind);
    }

}

void dfs1(int v){
    vis1[v]=true;
    for(pii to:g1[v]) if(!vis1[to.F]){
        sed(v, to.F);
        dfs1(to.F);
    }

}

void dfs2(int v, bool flag){
    if(!flag){
        vis2[v]=true;
        int cn = 0;
        for(int to:g2[v]) if(!vis3[to]){
            if(!cn) draw.PB({v, to});
            dfs2(to, !flag);
            ++cn;
        }
    }
    else{
        vis3[v]=true;
        for(int to:g3[v]) if(!vis2[to]) dfs2(to, !flag);
    }
}

int construct_roads(std::vector<int> x, std::vector<int> y) {
    n = (int)x.size();
    forn(i, n){
        mp[MP(x[i], y[i])] = i;
        X[i]=x[i];
        Y[i]=y[i];
    }

    for(auto el:mp){
        auto it = mp.find(MP(el.F.F + 2, el.F.S));
        if(it!=mp.end()){
            g1[el.S].PB(MP(it->S, eind));
            g1[it->S].PB(MP(el.S, eind));
            ++eind;
        }
        it = mp.find({el.F.F, el.F.S + 2});
        if(it!=mp.end()){
            g1[el.S].PB(MP(it->S, eind));
            g1[it->S].PB(MP(el.S, eind));
            ++eind;
        }
    }


    dfs1(0);

    bool possible=true;
    forn(i, n) possible&=vis1[i];
    if(!possible){
        return 0;
    }

    forn(el, curi) if(!vis2[el]) dfs2(el, false);

    vector<int> u, v, a, b;

    for(pii el:draw){
        u.PB(nam[el.F].F);
        v.PB(nam[el.F].S);
        a.PB(ptsInd[el.S].F);
        b.PB(ptsInd[el.S].S);
    }

    build(u, v, a, b);
    return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 19 ms 28500 KB Output is correct
2 Correct 15 ms 28500 KB Output is correct
3 Correct 16 ms 28460 KB Output is correct
4 Correct 15 ms 28500 KB Output is correct
5 Correct 15 ms 28452 KB Output is correct
6 Correct 17 ms 28520 KB Output is correct
7 Correct 14 ms 28416 KB Output is correct
8 Correct 15 ms 28500 KB Output is correct
9 Correct 197 ms 76340 KB Output is correct
10 Correct 29 ms 33440 KB Output is correct
11 Correct 105 ms 54300 KB Output is correct
12 Correct 38 ms 35784 KB Output is correct
13 Correct 60 ms 42420 KB Output is correct
14 Correct 15 ms 28648 KB Output is correct
15 Correct 16 ms 28852 KB Output is correct
16 Correct 208 ms 74324 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 28500 KB Output is correct
2 Correct 15 ms 28500 KB Output is correct
3 Correct 16 ms 28460 KB Output is correct
4 Correct 15 ms 28500 KB Output is correct
5 Correct 15 ms 28452 KB Output is correct
6 Correct 17 ms 28520 KB Output is correct
7 Correct 14 ms 28416 KB Output is correct
8 Correct 15 ms 28500 KB Output is correct
9 Correct 197 ms 76340 KB Output is correct
10 Correct 29 ms 33440 KB Output is correct
11 Correct 105 ms 54300 KB Output is correct
12 Correct 38 ms 35784 KB Output is correct
13 Correct 60 ms 42420 KB Output is correct
14 Correct 15 ms 28648 KB Output is correct
15 Correct 16 ms 28852 KB Output is correct
16 Correct 208 ms 74324 KB Output is correct
17 Correct 14 ms 28468 KB Output is correct
18 Correct 15 ms 28520 KB Output is correct
19 Correct 15 ms 28500 KB Output is correct
20 Correct 15 ms 28492 KB Output is correct
21 Correct 14 ms 28500 KB Output is correct
22 Correct 15 ms 28504 KB Output is correct
23 Correct 444 ms 115756 KB Output is correct
24 Correct 16 ms 28496 KB Output is correct
25 Correct 16 ms 29016 KB Output is correct
26 Correct 18 ms 29240 KB Output is correct
27 Correct 17 ms 29168 KB Output is correct
28 Correct 164 ms 64984 KB Output is correct
29 Correct 242 ms 81064 KB Output is correct
30 Correct 362 ms 100676 KB Output is correct
31 Correct 462 ms 115632 KB Output is correct
32 Correct 15 ms 28524 KB Output is correct
33 Correct 15 ms 28416 KB Output is correct
34 Correct 14 ms 28496 KB Output is correct
35 Correct 14 ms 28428 KB Output is correct
36 Correct 15 ms 28456 KB Output is correct
37 Correct 15 ms 28500 KB Output is correct
38 Correct 15 ms 28464 KB Output is correct
39 Correct 15 ms 28404 KB Output is correct
40 Correct 18 ms 28500 KB Output is correct
41 Correct 15 ms 28500 KB Output is correct
42 Correct 15 ms 28504 KB Output is correct
43 Correct 18 ms 28976 KB Output is correct
44 Correct 17 ms 29012 KB Output is correct
45 Correct 187 ms 69632 KB Output is correct
46 Correct 295 ms 89412 KB Output is correct
47 Correct 307 ms 89056 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 28500 KB Output is correct
2 Correct 15 ms 28500 KB Output is correct
3 Correct 16 ms 28460 KB Output is correct
4 Correct 15 ms 28500 KB Output is correct
5 Correct 15 ms 28452 KB Output is correct
6 Correct 17 ms 28520 KB Output is correct
7 Correct 14 ms 28416 KB Output is correct
8 Correct 15 ms 28500 KB Output is correct
9 Correct 197 ms 76340 KB Output is correct
10 Correct 29 ms 33440 KB Output is correct
11 Correct 105 ms 54300 KB Output is correct
12 Correct 38 ms 35784 KB Output is correct
13 Correct 60 ms 42420 KB Output is correct
14 Correct 15 ms 28648 KB Output is correct
15 Correct 16 ms 28852 KB Output is correct
16 Correct 208 ms 74324 KB Output is correct
17 Correct 14 ms 28468 KB Output is correct
18 Correct 15 ms 28520 KB Output is correct
19 Correct 15 ms 28500 KB Output is correct
20 Correct 15 ms 28492 KB Output is correct
21 Correct 14 ms 28500 KB Output is correct
22 Correct 15 ms 28504 KB Output is correct
23 Correct 444 ms 115756 KB Output is correct
24 Correct 16 ms 28496 KB Output is correct
25 Correct 16 ms 29016 KB Output is correct
26 Correct 18 ms 29240 KB Output is correct
27 Correct 17 ms 29168 KB Output is correct
28 Correct 164 ms 64984 KB Output is correct
29 Correct 242 ms 81064 KB Output is correct
30 Correct 362 ms 100676 KB Output is correct
31 Correct 462 ms 115632 KB Output is correct
32 Correct 15 ms 28524 KB Output is correct
33 Correct 15 ms 28416 KB Output is correct
34 Correct 14 ms 28496 KB Output is correct
35 Correct 14 ms 28428 KB Output is correct
36 Correct 15 ms 28456 KB Output is correct
37 Correct 15 ms 28500 KB Output is correct
38 Correct 15 ms 28464 KB Output is correct
39 Correct 15 ms 28404 KB Output is correct
40 Correct 18 ms 28500 KB Output is correct
41 Correct 15 ms 28500 KB Output is correct
42 Correct 15 ms 28504 KB Output is correct
43 Correct 18 ms 28976 KB Output is correct
44 Correct 17 ms 29012 KB Output is correct
45 Correct 187 ms 69632 KB Output is correct
46 Correct 295 ms 89412 KB Output is correct
47 Correct 307 ms 89056 KB Output is correct
48 Correct 15 ms 28500 KB Output is correct
49 Correct 15 ms 28508 KB Output is correct
50 Correct 15 ms 28504 KB Output is correct
51 Correct 18 ms 28500 KB Output is correct
52 Correct 14 ms 28528 KB Output is correct
53 Correct 14 ms 28504 KB Output is correct
54 Correct 14 ms 28528 KB Output is correct
55 Correct 442 ms 111160 KB Output is correct
56 Correct 15 ms 28512 KB Output is correct
57 Correct 19 ms 29180 KB Output is correct
58 Correct 23 ms 31104 KB Output is correct
59 Correct 26 ms 30268 KB Output is correct
60 Correct 217 ms 69924 KB Output is correct
61 Correct 291 ms 86996 KB Output is correct
62 Correct 351 ms 97996 KB Output is correct
63 Correct 487 ms 117964 KB Output is correct
64 Correct 14 ms 28448 KB Output is correct
65 Correct 17 ms 28504 KB Output is correct
66 Correct 17 ms 28476 KB Output is correct
67 Correct 434 ms 123956 KB Output is correct
68 Correct 442 ms 124188 KB Output is correct
69 Correct 432 ms 124696 KB Output is correct
70 Correct 18 ms 29424 KB Output is correct
71 Correct 21 ms 29944 KB Output is correct
72 Correct 190 ms 67692 KB Output is correct
73 Correct 303 ms 89636 KB Output is correct
74 Correct 435 ms 107720 KB Output is correct
75 Correct 425 ms 113880 KB Output is correct
76 Correct 467 ms 126656 KB Output is correct
77 Correct 19 ms 29652 KB Output is correct
78 Correct 22 ms 30300 KB Output is correct
79 Correct 195 ms 68988 KB Output is correct
80 Correct 331 ms 90536 KB Output is correct
81 Correct 455 ms 110604 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 28500 KB Output is correct
2 Correct 15 ms 28500 KB Output is correct
3 Correct 16 ms 28460 KB Output is correct
4 Correct 15 ms 28500 KB Output is correct
5 Correct 15 ms 28452 KB Output is correct
6 Correct 17 ms 28520 KB Output is correct
7 Correct 14 ms 28416 KB Output is correct
8 Correct 15 ms 28500 KB Output is correct
9 Correct 197 ms 76340 KB Output is correct
10 Correct 29 ms 33440 KB Output is correct
11 Correct 105 ms 54300 KB Output is correct
12 Correct 38 ms 35784 KB Output is correct
13 Correct 60 ms 42420 KB Output is correct
14 Correct 15 ms 28648 KB Output is correct
15 Correct 16 ms 28852 KB Output is correct
16 Correct 208 ms 74324 KB Output is correct
17 Correct 15 ms 28424 KB Output is correct
18 Correct 15 ms 28500 KB Output is correct
19 Correct 15 ms 28416 KB Output is correct
20 Correct 387 ms 132664 KB Output is correct
21 Correct 392 ms 114540 KB Output is correct
22 Correct 412 ms 114628 KB Output is correct
23 Correct 346 ms 108492 KB Output is correct
24 Correct 146 ms 47440 KB Output is correct
25 Correct 182 ms 53880 KB Output is correct
26 Correct 182 ms 53836 KB Output is correct
27 Correct 390 ms 117212 KB Output is correct
28 Correct 391 ms 117204 KB Output is correct
29 Correct 454 ms 117372 KB Output is correct
30 Correct 459 ms 117196 KB Output is correct
31 Correct 15 ms 28500 KB Output is correct
32 Correct 36 ms 34252 KB Output is correct
33 Correct 73 ms 38372 KB Output is correct
34 Correct 398 ms 129172 KB Output is correct
35 Correct 27 ms 30560 KB Output is correct
36 Correct 57 ms 36900 KB Output is correct
37 Correct 97 ms 43604 KB Output is correct
38 Correct 155 ms 58808 KB Output is correct
39 Correct 219 ms 69444 KB Output is correct
40 Correct 278 ms 81712 KB Output is correct
41 Correct 354 ms 92548 KB Output is correct
42 Correct 417 ms 103308 KB Output is correct
43 Correct 14 ms 28500 KB Output is correct
44 Correct 14 ms 28500 KB Output is correct
45 Correct 15 ms 28492 KB Output is correct
46 Correct 15 ms 28500 KB Output is correct
47 Correct 14 ms 28468 KB Output is correct
48 Correct 15 ms 28476 KB Output is correct
49 Correct 16 ms 28500 KB Output is correct
50 Correct 16 ms 28504 KB Output is correct
51 Correct 14 ms 28424 KB Output is correct
52 Correct 13 ms 28500 KB Output is correct
53 Correct 14 ms 28428 KB Output is correct
54 Correct 16 ms 28904 KB Output is correct
55 Correct 17 ms 29032 KB Output is correct
56 Correct 184 ms 69652 KB Output is correct
57 Correct 282 ms 89400 KB Output is correct
58 Correct 299 ms 89164 KB Output is correct
59 Correct 15 ms 28500 KB Output is correct
60 Correct 15 ms 28500 KB Output is correct
61 Correct 14 ms 28500 KB Output is correct
62 Correct 420 ms 123996 KB Output is correct
63 Correct 429 ms 124172 KB Output is correct
64 Correct 414 ms 124704 KB Output is correct
65 Correct 17 ms 29396 KB Output is correct
66 Correct 19 ms 29844 KB Output is correct
67 Correct 196 ms 67720 KB Output is correct
68 Correct 312 ms 89652 KB Output is correct
69 Correct 437 ms 107544 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 28500 KB Output is correct
2 Correct 15 ms 28500 KB Output is correct
3 Correct 16 ms 28460 KB Output is correct
4 Correct 15 ms 28500 KB Output is correct
5 Correct 15 ms 28452 KB Output is correct
6 Correct 17 ms 28520 KB Output is correct
7 Correct 14 ms 28416 KB Output is correct
8 Correct 15 ms 28500 KB Output is correct
9 Correct 197 ms 76340 KB Output is correct
10 Correct 29 ms 33440 KB Output is correct
11 Correct 105 ms 54300 KB Output is correct
12 Correct 38 ms 35784 KB Output is correct
13 Correct 60 ms 42420 KB Output is correct
14 Correct 15 ms 28648 KB Output is correct
15 Correct 16 ms 28852 KB Output is correct
16 Correct 208 ms 74324 KB Output is correct
17 Correct 441 ms 125484 KB Output is correct
18 Correct 420 ms 126800 KB Output is correct
19 Correct 396 ms 135620 KB Output is correct
20 Correct 420 ms 109248 KB Output is correct
21 Correct 393 ms 107564 KB Output is correct
22 Correct 14 ms 28500 KB Output is correct
23 Correct 66 ms 40500 KB Output is correct
24 Correct 36 ms 33136 KB Output is correct
25 Correct 75 ms 40300 KB Output is correct
26 Correct 122 ms 47092 KB Output is correct
27 Correct 208 ms 69648 KB Output is correct
28 Correct 259 ms 79980 KB Output is correct
29 Correct 319 ms 91496 KB Output is correct
30 Correct 376 ms 100876 KB Output is correct
31 Correct 441 ms 111188 KB Output is correct
32 Correct 461 ms 113844 KB Output is correct
33 Correct 443 ms 126784 KB Output is correct
34 Correct 19 ms 29652 KB Output is correct
35 Correct 22 ms 30396 KB Output is correct
36 Correct 195 ms 69052 KB Output is correct
37 Correct 295 ms 90660 KB Output is correct
38 Correct 432 ms 110556 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 28500 KB Output is correct
2 Correct 15 ms 28500 KB Output is correct
3 Correct 16 ms 28460 KB Output is correct
4 Correct 15 ms 28500 KB Output is correct
5 Correct 15 ms 28452 KB Output is correct
6 Correct 17 ms 28520 KB Output is correct
7 Correct 14 ms 28416 KB Output is correct
8 Correct 15 ms 28500 KB Output is correct
9 Correct 197 ms 76340 KB Output is correct
10 Correct 29 ms 33440 KB Output is correct
11 Correct 105 ms 54300 KB Output is correct
12 Correct 38 ms 35784 KB Output is correct
13 Correct 60 ms 42420 KB Output is correct
14 Correct 15 ms 28648 KB Output is correct
15 Correct 16 ms 28852 KB Output is correct
16 Correct 208 ms 74324 KB Output is correct
17 Correct 14 ms 28468 KB Output is correct
18 Correct 15 ms 28520 KB Output is correct
19 Correct 15 ms 28500 KB Output is correct
20 Correct 15 ms 28492 KB Output is correct
21 Correct 14 ms 28500 KB Output is correct
22 Correct 15 ms 28504 KB Output is correct
23 Correct 444 ms 115756 KB Output is correct
24 Correct 16 ms 28496 KB Output is correct
25 Correct 16 ms 29016 KB Output is correct
26 Correct 18 ms 29240 KB Output is correct
27 Correct 17 ms 29168 KB Output is correct
28 Correct 164 ms 64984 KB Output is correct
29 Correct 242 ms 81064 KB Output is correct
30 Correct 362 ms 100676 KB Output is correct
31 Correct 462 ms 115632 KB Output is correct
32 Correct 15 ms 28524 KB Output is correct
33 Correct 15 ms 28416 KB Output is correct
34 Correct 14 ms 28496 KB Output is correct
35 Correct 14 ms 28428 KB Output is correct
36 Correct 15 ms 28456 KB Output is correct
37 Correct 15 ms 28500 KB Output is correct
38 Correct 15 ms 28464 KB Output is correct
39 Correct 15 ms 28404 KB Output is correct
40 Correct 18 ms 28500 KB Output is correct
41 Correct 15 ms 28500 KB Output is correct
42 Correct 15 ms 28504 KB Output is correct
43 Correct 18 ms 28976 KB Output is correct
44 Correct 17 ms 29012 KB Output is correct
45 Correct 187 ms 69632 KB Output is correct
46 Correct 295 ms 89412 KB Output is correct
47 Correct 307 ms 89056 KB Output is correct
48 Correct 15 ms 28500 KB Output is correct
49 Correct 15 ms 28508 KB Output is correct
50 Correct 15 ms 28504 KB Output is correct
51 Correct 18 ms 28500 KB Output is correct
52 Correct 14 ms 28528 KB Output is correct
53 Correct 14 ms 28504 KB Output is correct
54 Correct 14 ms 28528 KB Output is correct
55 Correct 442 ms 111160 KB Output is correct
56 Correct 15 ms 28512 KB Output is correct
57 Correct 19 ms 29180 KB Output is correct
58 Correct 23 ms 31104 KB Output is correct
59 Correct 26 ms 30268 KB Output is correct
60 Correct 217 ms 69924 KB Output is correct
61 Correct 291 ms 86996 KB Output is correct
62 Correct 351 ms 97996 KB Output is correct
63 Correct 487 ms 117964 KB Output is correct
64 Correct 14 ms 28448 KB Output is correct
65 Correct 17 ms 28504 KB Output is correct
66 Correct 17 ms 28476 KB Output is correct
67 Correct 434 ms 123956 KB Output is correct
68 Correct 442 ms 124188 KB Output is correct
69 Correct 432 ms 124696 KB Output is correct
70 Correct 18 ms 29424 KB Output is correct
71 Correct 21 ms 29944 KB Output is correct
72 Correct 190 ms 67692 KB Output is correct
73 Correct 303 ms 89636 KB Output is correct
74 Correct 435 ms 107720 KB Output is correct
75 Correct 425 ms 113880 KB Output is correct
76 Correct 467 ms 126656 KB Output is correct
77 Correct 19 ms 29652 KB Output is correct
78 Correct 22 ms 30300 KB Output is correct
79 Correct 195 ms 68988 KB Output is correct
80 Correct 331 ms 90536 KB Output is correct
81 Correct 455 ms 110604 KB Output is correct
82 Correct 15 ms 28424 KB Output is correct
83 Correct 15 ms 28500 KB Output is correct
84 Correct 15 ms 28416 KB Output is correct
85 Correct 387 ms 132664 KB Output is correct
86 Correct 392 ms 114540 KB Output is correct
87 Correct 412 ms 114628 KB Output is correct
88 Correct 346 ms 108492 KB Output is correct
89 Correct 146 ms 47440 KB Output is correct
90 Correct 182 ms 53880 KB Output is correct
91 Correct 182 ms 53836 KB Output is correct
92 Correct 390 ms 117212 KB Output is correct
93 Correct 391 ms 117204 KB Output is correct
94 Correct 454 ms 117372 KB Output is correct
95 Correct 459 ms 117196 KB Output is correct
96 Correct 15 ms 28500 KB Output is correct
97 Correct 36 ms 34252 KB Output is correct
98 Correct 73 ms 38372 KB Output is correct
99 Correct 398 ms 129172 KB Output is correct
100 Correct 27 ms 30560 KB Output is correct
101 Correct 57 ms 36900 KB Output is correct
102 Correct 97 ms 43604 KB Output is correct
103 Correct 155 ms 58808 KB Output is correct
104 Correct 219 ms 69444 KB Output is correct
105 Correct 278 ms 81712 KB Output is correct
106 Correct 354 ms 92548 KB Output is correct
107 Correct 417 ms 103308 KB Output is correct
108 Correct 14 ms 28500 KB Output is correct
109 Correct 14 ms 28500 KB Output is correct
110 Correct 15 ms 28492 KB Output is correct
111 Correct 15 ms 28500 KB Output is correct
112 Correct 14 ms 28468 KB Output is correct
113 Correct 15 ms 28476 KB Output is correct
114 Correct 16 ms 28500 KB Output is correct
115 Correct 16 ms 28504 KB Output is correct
116 Correct 14 ms 28424 KB Output is correct
117 Correct 13 ms 28500 KB Output is correct
118 Correct 14 ms 28428 KB Output is correct
119 Correct 16 ms 28904 KB Output is correct
120 Correct 17 ms 29032 KB Output is correct
121 Correct 184 ms 69652 KB Output is correct
122 Correct 282 ms 89400 KB Output is correct
123 Correct 299 ms 89164 KB Output is correct
124 Correct 15 ms 28500 KB Output is correct
125 Correct 15 ms 28500 KB Output is correct
126 Correct 14 ms 28500 KB Output is correct
127 Correct 420 ms 123996 KB Output is correct
128 Correct 429 ms 124172 KB Output is correct
129 Correct 414 ms 124704 KB Output is correct
130 Correct 17 ms 29396 KB Output is correct
131 Correct 19 ms 29844 KB Output is correct
132 Correct 196 ms 67720 KB Output is correct
133 Correct 312 ms 89652 KB Output is correct
134 Correct 437 ms 107544 KB Output is correct
135 Correct 441 ms 125484 KB Output is correct
136 Correct 420 ms 126800 KB Output is correct
137 Correct 396 ms 135620 KB Output is correct
138 Correct 420 ms 109248 KB Output is correct
139 Correct 393 ms 107564 KB Output is correct
140 Correct 14 ms 28500 KB Output is correct
141 Correct 66 ms 40500 KB Output is correct
142 Correct 36 ms 33136 KB Output is correct
143 Correct 75 ms 40300 KB Output is correct
144 Correct 122 ms 47092 KB Output is correct
145 Correct 208 ms 69648 KB Output is correct
146 Correct 259 ms 79980 KB Output is correct
147 Correct 319 ms 91496 KB Output is correct
148 Correct 376 ms 100876 KB Output is correct
149 Correct 441 ms 111188 KB Output is correct
150 Correct 461 ms 113844 KB Output is correct
151 Correct 443 ms 126784 KB Output is correct
152 Correct 19 ms 29652 KB Output is correct
153 Correct 22 ms 30396 KB Output is correct
154 Correct 195 ms 69052 KB Output is correct
155 Correct 295 ms 90660 KB Output is correct
156 Correct 432 ms 110556 KB Output is correct
157 Correct 14 ms 28500 KB Output is correct
158 Correct 15 ms 28500 KB Output is correct
159 Correct 14 ms 28500 KB Output is correct
160 Correct 16 ms 28540 KB Output is correct
161 Correct 530 ms 109988 KB Output is correct
162 Correct 411 ms 123548 KB Output is correct
163 Correct 441 ms 115248 KB Output is correct
164 Correct 381 ms 113848 KB Output is correct
165 Correct 391 ms 133736 KB Output is correct
166 Correct 438 ms 129228 KB Output is correct
167 Incorrect 99 ms 46824 KB Given structure is not connected: There is no path between vertices 0 and 1
168 Halted 0 ms 0 KB -