Submission #481498

# Submission time Handle Problem Language Result Execution time Memory
481498 2021-10-21T03:59:41 Z yungyao Fountain Parks (IOI21_parks) C++17
70 / 100
1173 ms 76696 KB
using namespace std;
#include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>

typedef long long LL;
typedef pair<int,int> pii;
#define pb push_back
#define mkp make_pair
#define F first
#define S second
#define REP(n) for (int __=n;__--;)
#define REP1(i,n) for (int i=1;i<=n;++i)
#define REP0(i,n) for (int i=0;i<n;++i)
typedef vector <int> vi;

#include "parks.h"

int dx[4] = {2,0,-2,0},dy[4] = {0,2,0,-2};
int dfx[8] = {1,1,1,-1,-1,-1,-1,1}, dfy[8] = {-1,1,1,1,1,-1,-1,-1};
map <pii,bool> vis;

vi u,v,fx,fy;
set <pii> ben;
map <pii,int> mp;
void dfs(int x,int y){
    vis[mkp(x,y)] = true;
    int fr = -1;
    REP0(i,4) if (vis.find(mkp(x+dx[i],y+dy[i])) != vis.end()){
        if (vis[mkp(x+dx[i],y+dy[i])]) fr = i;
    }

    int c = 0;
    for(int i=(fr+1)%4;c<4;i=(i+1)%4,++c) if (vis.find(mkp(x+dx[i],y+dy[i])) != vis.end() and !vis[mkp(x+dx[i],y+dy[i])]){
        u.pb(mp[mkp(x,y)]);
        v.pb(mp[mkp(x+dx[i],y+dy[i])]);
        if (ben.find(mkp(x+dfx[i*2],y+dfy[i*2])) == ben.end()){
            ben.insert(mkp(x+dfx[i*2],y+dfy[i*2]));
            fx.pb(x+dfx[i*2]);
            fy.pb(y+dfy[i*2]);
        }
        else{
            ben.insert(mkp(x+dfx[i*2+1],y+dfy[i*2+1]));
            fx.pb(x+dfx[i*2+1]);
            fy.pb(y+dfy[i*2+1]);
        }
        dfs(x+dx[i],y+dy[i]);
    }
}

int leaf;
void dfs2(int x,int y){
    int deg = 0;
    vis[mkp(x,y)] = true;
    REP0(i,4) if (vis.find(mkp(x+dx[i],y+dy[i])) != vis.end()){
        ++deg;
        if (!vis[mkp(x+dx[i],y+dy[i])]) dfs2(x+dx[i],y+dy[i]);
    }
    if (deg == 1) leaf = mp[mkp(x,y)];
}

int construct_roads(vi x,vi y){
    int n = x.size();

    REP0(i,n) vis[mkp(x[i],y[i])] = false;
    REP0(i,n) mp[mkp(x[i],y[i])] = i;
    dfs2(x[0],y[0]);
    REP0(i,n) vis[mkp(x[i],y[i])] = false;
    dfs(x[leaf],y[leaf]);

    for (auto [p,v]:vis) if (!v) return false;


    /*
    REP0(i,n){
        if (mp.find(mkp(x[i]+2,y[i])) != mp.end()){
            u.pb(i);
            v.pb(mp[mkp(x[i]+2,y[i])]);
            fx.pb(3);
            fy.pb(y[i]-1);
        }

        if (mp.find(mkp(x[i],y[i]+2)) != mp.end()){
            u.pb(i);
            v.pb(mp[mkp(x[i],y[i]+2)]);
            if (x[i] == 2) fx.pb(1);
            else fx.pb(5);
            fy.pb(y[i]+1);
        }
    }
    */

    build(u,v,fx,fy);
    return true;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 324 ms 37784 KB Output is correct
10 Correct 26 ms 4172 KB Output is correct
11 Correct 183 ms 20440 KB Output is correct
12 Correct 40 ms 6084 KB Output is correct
13 Correct 98 ms 12612 KB Output is correct
14 Correct 1 ms 460 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 325 ms 37812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 324 ms 37784 KB Output is correct
10 Correct 26 ms 4172 KB Output is correct
11 Correct 183 ms 20440 KB Output is correct
12 Correct 40 ms 6084 KB Output is correct
13 Correct 98 ms 12612 KB Output is correct
14 Correct 1 ms 460 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 325 ms 37812 KB Output is correct
17 Correct 0 ms 204 KB Output is correct
18 Correct 0 ms 204 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 0 ms 204 KB Output is correct
21 Correct 0 ms 204 KB Output is correct
22 Correct 0 ms 204 KB Output is correct
23 Correct 870 ms 75448 KB Output is correct
24 Correct 0 ms 204 KB Output is correct
25 Correct 3 ms 716 KB Output is correct
26 Correct 6 ms 972 KB Output is correct
27 Correct 5 ms 972 KB Output is correct
28 Correct 305 ms 30012 KB Output is correct
29 Correct 469 ms 45472 KB Output is correct
30 Correct 661 ms 58920 KB Output is correct
31 Correct 900 ms 75580 KB Output is correct
32 Correct 0 ms 204 KB Output is correct
33 Correct 0 ms 204 KB Output is correct
34 Correct 0 ms 204 KB Output is correct
35 Correct 0 ms 204 KB Output is correct
36 Correct 0 ms 204 KB Output is correct
37 Correct 0 ms 204 KB Output is correct
38 Correct 0 ms 204 KB Output is correct
39 Correct 0 ms 204 KB Output is correct
40 Correct 0 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 0 ms 204 KB Output is correct
43 Correct 3 ms 728 KB Output is correct
44 Correct 3 ms 716 KB Output is correct
45 Correct 354 ms 34964 KB Output is correct
46 Correct 548 ms 47844 KB Output is correct
47 Correct 557 ms 46984 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 324 ms 37784 KB Output is correct
10 Correct 26 ms 4172 KB Output is correct
11 Correct 183 ms 20440 KB Output is correct
12 Correct 40 ms 6084 KB Output is correct
13 Correct 98 ms 12612 KB Output is correct
14 Correct 1 ms 460 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 325 ms 37812 KB Output is correct
17 Correct 0 ms 204 KB Output is correct
18 Correct 0 ms 204 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 0 ms 204 KB Output is correct
21 Correct 0 ms 204 KB Output is correct
22 Correct 0 ms 204 KB Output is correct
23 Correct 870 ms 75448 KB Output is correct
24 Correct 0 ms 204 KB Output is correct
25 Correct 3 ms 716 KB Output is correct
26 Correct 6 ms 972 KB Output is correct
27 Correct 5 ms 972 KB Output is correct
28 Correct 305 ms 30012 KB Output is correct
29 Correct 469 ms 45472 KB Output is correct
30 Correct 661 ms 58920 KB Output is correct
31 Correct 900 ms 75580 KB Output is correct
32 Correct 0 ms 204 KB Output is correct
33 Correct 0 ms 204 KB Output is correct
34 Correct 0 ms 204 KB Output is correct
35 Correct 0 ms 204 KB Output is correct
36 Correct 0 ms 204 KB Output is correct
37 Correct 0 ms 204 KB Output is correct
38 Correct 0 ms 204 KB Output is correct
39 Correct 0 ms 204 KB Output is correct
40 Correct 0 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 0 ms 204 KB Output is correct
43 Correct 3 ms 728 KB Output is correct
44 Correct 3 ms 716 KB Output is correct
45 Correct 354 ms 34964 KB Output is correct
46 Correct 548 ms 47844 KB Output is correct
47 Correct 557 ms 46984 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 0 ms 204 KB Output is correct
50 Correct 0 ms 204 KB Output is correct
51 Correct 0 ms 204 KB Output is correct
52 Correct 0 ms 204 KB Output is correct
53 Correct 0 ms 204 KB Output is correct
54 Correct 0 ms 204 KB Output is correct
55 Correct 911 ms 72880 KB Output is correct
56 Correct 0 ms 204 KB Output is correct
57 Correct 5 ms 972 KB Output is correct
58 Correct 17 ms 2668 KB Output is correct
59 Correct 11 ms 2124 KB Output is correct
60 Correct 389 ms 37876 KB Output is correct
61 Correct 574 ms 51088 KB Output is correct
62 Correct 705 ms 62316 KB Output is correct
63 Correct 912 ms 75728 KB Output is correct
64 Correct 0 ms 204 KB Output is correct
65 Correct 0 ms 204 KB Output is correct
66 Correct 0 ms 204 KB Output is correct
67 Correct 781 ms 75428 KB Output is correct
68 Correct 771 ms 75416 KB Output is correct
69 Correct 755 ms 75032 KB Output is correct
70 Correct 6 ms 972 KB Output is correct
71 Correct 9 ms 1612 KB Output is correct
72 Correct 366 ms 28472 KB Output is correct
73 Correct 593 ms 46044 KB Output is correct
74 Correct 877 ms 57024 KB Output is correct
75 Correct 848 ms 69164 KB Output is correct
76 Correct 804 ms 75476 KB Output is correct
77 Correct 8 ms 1356 KB Output is correct
78 Correct 13 ms 2060 KB Output is correct
79 Correct 368 ms 30284 KB Output is correct
80 Correct 637 ms 46124 KB Output is correct
81 Correct 874 ms 59784 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 324 ms 37784 KB Output is correct
10 Correct 26 ms 4172 KB Output is correct
11 Correct 183 ms 20440 KB Output is correct
12 Correct 40 ms 6084 KB Output is correct
13 Correct 98 ms 12612 KB Output is correct
14 Correct 1 ms 460 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 325 ms 37812 KB Output is correct
17 Correct 0 ms 204 KB Output is correct
18 Correct 0 ms 204 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 837 ms 76072 KB Output is correct
21 Correct 889 ms 75672 KB Output is correct
22 Correct 895 ms 75756 KB Output is correct
23 Correct 699 ms 64152 KB Output is correct
24 Correct 328 ms 28404 KB Output is correct
25 Correct 323 ms 28504 KB Output is correct
26 Correct 310 ms 28480 KB Output is correct
27 Correct 732 ms 47480 KB Output is correct
28 Correct 718 ms 47384 KB Output is correct
29 Correct 1173 ms 47480 KB Output is correct
30 Correct 1146 ms 47524 KB Output is correct
31 Correct 0 ms 204 KB Output is correct
32 Correct 45 ms 4712 KB Output is correct
33 Correct 117 ms 14264 KB Output is correct
34 Correct 815 ms 75928 KB Output is correct
35 Correct 17 ms 1936 KB Output is correct
36 Correct 76 ms 7992 KB Output is correct
37 Correct 144 ms 15032 KB Output is correct
38 Correct 329 ms 19440 KB Output is correct
39 Correct 446 ms 26380 KB Output is correct
40 Correct 590 ms 33516 KB Output is correct
41 Correct 741 ms 40688 KB Output is correct
42 Correct 917 ms 47924 KB Output is correct
43 Correct 0 ms 204 KB Output is correct
44 Correct 0 ms 204 KB Output is correct
45 Correct 0 ms 204 KB Output is correct
46 Correct 0 ms 204 KB Output is correct
47 Correct 0 ms 204 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 0 ms 204 KB Output is correct
50 Correct 0 ms 204 KB Output is correct
51 Correct 1 ms 204 KB Output is correct
52 Correct 0 ms 204 KB Output is correct
53 Correct 0 ms 204 KB Output is correct
54 Correct 3 ms 716 KB Output is correct
55 Correct 3 ms 716 KB Output is correct
56 Correct 354 ms 34856 KB Output is correct
57 Correct 596 ms 47796 KB Output is correct
58 Correct 589 ms 46932 KB Output is correct
59 Correct 0 ms 204 KB Output is correct
60 Correct 0 ms 204 KB Output is correct
61 Correct 0 ms 204 KB Output is correct
62 Correct 767 ms 75360 KB Output is correct
63 Correct 794 ms 75416 KB Output is correct
64 Correct 764 ms 75024 KB Output is correct
65 Correct 6 ms 972 KB Output is correct
66 Correct 9 ms 1612 KB Output is correct
67 Correct 363 ms 28396 KB Output is correct
68 Correct 600 ms 46000 KB Output is correct
69 Correct 875 ms 56980 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 324 ms 37784 KB Output is correct
10 Correct 26 ms 4172 KB Output is correct
11 Correct 183 ms 20440 KB Output is correct
12 Correct 40 ms 6084 KB Output is correct
13 Correct 98 ms 12612 KB Output is correct
14 Correct 1 ms 460 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 325 ms 37812 KB Output is correct
17 Correct 864 ms 75408 KB Output is correct
18 Correct 821 ms 64244 KB Output is correct
19 Correct 888 ms 75640 KB Output is correct
20 Correct 1044 ms 64764 KB Output is correct
21 Correct 845 ms 55220 KB Output is correct
22 Correct 0 ms 204 KB Output is correct
23 Correct 104 ms 9204 KB Output is correct
24 Correct 41 ms 4592 KB Output is correct
25 Correct 102 ms 11812 KB Output is correct
26 Correct 187 ms 18912 KB Output is correct
27 Correct 464 ms 32864 KB Output is correct
28 Correct 642 ms 41460 KB Output is correct
29 Correct 757 ms 49860 KB Output is correct
30 Correct 873 ms 57680 KB Output is correct
31 Correct 1065 ms 66192 KB Output is correct
32 Correct 867 ms 69288 KB Output is correct
33 Correct 773 ms 75388 KB Output is correct
34 Correct 8 ms 1356 KB Output is correct
35 Correct 12 ms 1996 KB Output is correct
36 Correct 364 ms 30272 KB Output is correct
37 Correct 612 ms 46160 KB Output is correct
38 Correct 881 ms 59864 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 324 ms 37784 KB Output is correct
10 Correct 26 ms 4172 KB Output is correct
11 Correct 183 ms 20440 KB Output is correct
12 Correct 40 ms 6084 KB Output is correct
13 Correct 98 ms 12612 KB Output is correct
14 Correct 1 ms 460 KB Output is correct
15 Correct 2 ms 588 KB Output is correct
16 Correct 325 ms 37812 KB Output is correct
17 Correct 0 ms 204 KB Output is correct
18 Correct 0 ms 204 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 0 ms 204 KB Output is correct
21 Correct 0 ms 204 KB Output is correct
22 Correct 0 ms 204 KB Output is correct
23 Correct 870 ms 75448 KB Output is correct
24 Correct 0 ms 204 KB Output is correct
25 Correct 3 ms 716 KB Output is correct
26 Correct 6 ms 972 KB Output is correct
27 Correct 5 ms 972 KB Output is correct
28 Correct 305 ms 30012 KB Output is correct
29 Correct 469 ms 45472 KB Output is correct
30 Correct 661 ms 58920 KB Output is correct
31 Correct 900 ms 75580 KB Output is correct
32 Correct 0 ms 204 KB Output is correct
33 Correct 0 ms 204 KB Output is correct
34 Correct 0 ms 204 KB Output is correct
35 Correct 0 ms 204 KB Output is correct
36 Correct 0 ms 204 KB Output is correct
37 Correct 0 ms 204 KB Output is correct
38 Correct 0 ms 204 KB Output is correct
39 Correct 0 ms 204 KB Output is correct
40 Correct 0 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 0 ms 204 KB Output is correct
43 Correct 3 ms 728 KB Output is correct
44 Correct 3 ms 716 KB Output is correct
45 Correct 354 ms 34964 KB Output is correct
46 Correct 548 ms 47844 KB Output is correct
47 Correct 557 ms 46984 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 0 ms 204 KB Output is correct
50 Correct 0 ms 204 KB Output is correct
51 Correct 0 ms 204 KB Output is correct
52 Correct 0 ms 204 KB Output is correct
53 Correct 0 ms 204 KB Output is correct
54 Correct 0 ms 204 KB Output is correct
55 Correct 911 ms 72880 KB Output is correct
56 Correct 0 ms 204 KB Output is correct
57 Correct 5 ms 972 KB Output is correct
58 Correct 17 ms 2668 KB Output is correct
59 Correct 11 ms 2124 KB Output is correct
60 Correct 389 ms 37876 KB Output is correct
61 Correct 574 ms 51088 KB Output is correct
62 Correct 705 ms 62316 KB Output is correct
63 Correct 912 ms 75728 KB Output is correct
64 Correct 0 ms 204 KB Output is correct
65 Correct 0 ms 204 KB Output is correct
66 Correct 0 ms 204 KB Output is correct
67 Correct 781 ms 75428 KB Output is correct
68 Correct 771 ms 75416 KB Output is correct
69 Correct 755 ms 75032 KB Output is correct
70 Correct 6 ms 972 KB Output is correct
71 Correct 9 ms 1612 KB Output is correct
72 Correct 366 ms 28472 KB Output is correct
73 Correct 593 ms 46044 KB Output is correct
74 Correct 877 ms 57024 KB Output is correct
75 Correct 848 ms 69164 KB Output is correct
76 Correct 804 ms 75476 KB Output is correct
77 Correct 8 ms 1356 KB Output is correct
78 Correct 13 ms 2060 KB Output is correct
79 Correct 368 ms 30284 KB Output is correct
80 Correct 637 ms 46124 KB Output is correct
81 Correct 874 ms 59784 KB Output is correct
82 Correct 0 ms 204 KB Output is correct
83 Correct 0 ms 204 KB Output is correct
84 Correct 0 ms 204 KB Output is correct
85 Correct 837 ms 76072 KB Output is correct
86 Correct 889 ms 75672 KB Output is correct
87 Correct 895 ms 75756 KB Output is correct
88 Correct 699 ms 64152 KB Output is correct
89 Correct 328 ms 28404 KB Output is correct
90 Correct 323 ms 28504 KB Output is correct
91 Correct 310 ms 28480 KB Output is correct
92 Correct 732 ms 47480 KB Output is correct
93 Correct 718 ms 47384 KB Output is correct
94 Correct 1173 ms 47480 KB Output is correct
95 Correct 1146 ms 47524 KB Output is correct
96 Correct 0 ms 204 KB Output is correct
97 Correct 45 ms 4712 KB Output is correct
98 Correct 117 ms 14264 KB Output is correct
99 Correct 815 ms 75928 KB Output is correct
100 Correct 17 ms 1936 KB Output is correct
101 Correct 76 ms 7992 KB Output is correct
102 Correct 144 ms 15032 KB Output is correct
103 Correct 329 ms 19440 KB Output is correct
104 Correct 446 ms 26380 KB Output is correct
105 Correct 590 ms 33516 KB Output is correct
106 Correct 741 ms 40688 KB Output is correct
107 Correct 917 ms 47924 KB Output is correct
108 Correct 0 ms 204 KB Output is correct
109 Correct 0 ms 204 KB Output is correct
110 Correct 0 ms 204 KB Output is correct
111 Correct 0 ms 204 KB Output is correct
112 Correct 0 ms 204 KB Output is correct
113 Correct 0 ms 204 KB Output is correct
114 Correct 0 ms 204 KB Output is correct
115 Correct 0 ms 204 KB Output is correct
116 Correct 1 ms 204 KB Output is correct
117 Correct 0 ms 204 KB Output is correct
118 Correct 0 ms 204 KB Output is correct
119 Correct 3 ms 716 KB Output is correct
120 Correct 3 ms 716 KB Output is correct
121 Correct 354 ms 34856 KB Output is correct
122 Correct 596 ms 47796 KB Output is correct
123 Correct 589 ms 46932 KB Output is correct
124 Correct 0 ms 204 KB Output is correct
125 Correct 0 ms 204 KB Output is correct
126 Correct 0 ms 204 KB Output is correct
127 Correct 767 ms 75360 KB Output is correct
128 Correct 794 ms 75416 KB Output is correct
129 Correct 764 ms 75024 KB Output is correct
130 Correct 6 ms 972 KB Output is correct
131 Correct 9 ms 1612 KB Output is correct
132 Correct 363 ms 28396 KB Output is correct
133 Correct 600 ms 46000 KB Output is correct
134 Correct 875 ms 56980 KB Output is correct
135 Correct 864 ms 75408 KB Output is correct
136 Correct 821 ms 64244 KB Output is correct
137 Correct 888 ms 75640 KB Output is correct
138 Correct 1044 ms 64764 KB Output is correct
139 Correct 845 ms 55220 KB Output is correct
140 Correct 0 ms 204 KB Output is correct
141 Correct 104 ms 9204 KB Output is correct
142 Correct 41 ms 4592 KB Output is correct
143 Correct 102 ms 11812 KB Output is correct
144 Correct 187 ms 18912 KB Output is correct
145 Correct 464 ms 32864 KB Output is correct
146 Correct 642 ms 41460 KB Output is correct
147 Correct 757 ms 49860 KB Output is correct
148 Correct 873 ms 57680 KB Output is correct
149 Correct 1065 ms 66192 KB Output is correct
150 Correct 867 ms 69288 KB Output is correct
151 Correct 773 ms 75388 KB Output is correct
152 Correct 8 ms 1356 KB Output is correct
153 Correct 12 ms 1996 KB Output is correct
154 Correct 364 ms 30272 KB Output is correct
155 Correct 612 ms 46160 KB Output is correct
156 Correct 881 ms 59864 KB Output is correct
157 Correct 0 ms 204 KB Output is correct
158 Correct 0 ms 204 KB Output is correct
159 Correct 0 ms 204 KB Output is correct
160 Correct 0 ms 204 KB Output is correct
161 Correct 1163 ms 75464 KB Output is correct
162 Correct 828 ms 75896 KB Output is correct
163 Correct 866 ms 66416 KB Output is correct
164 Correct 840 ms 66432 KB Output is correct
165 Correct 979 ms 72536 KB Output is correct
166 Correct 1142 ms 76696 KB Output is correct
167 Incorrect 187 ms 14608 KB Tree @(185545, 21375) appears more than once: for edges on positions 1094 and 1123
168 Halted 0 ms 0 KB -